mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-20 11:11:34 +00:00
28 lines
458 B
C++
28 lines
458 B
C++
#ifndef __GL_SAMPLERS_H
|
|
#define __GL_SAMPLERS_H
|
|
|
|
#include "gl_hwtexture.h"
|
|
|
|
class FSamplerManager
|
|
{
|
|
// We need 6 different samplers: 4 for the different clamping modes,
|
|
// one for 2D-textures and one for voxel textures
|
|
unsigned int mSamplers[7];
|
|
unsigned int mLastBound[FHardwareTexture::MAX_TEXTURES];
|
|
|
|
void UnbindAll();
|
|
|
|
public:
|
|
|
|
FSamplerManager();
|
|
~FSamplerManager();
|
|
|
|
void Bind(int texunit, int num);
|
|
void SetTextureFilterMode();
|
|
|
|
|
|
};
|
|
|
|
|
|
#endif
|
|
|