2014-08-22 21:50:38 +00:00
|
|
|
#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
|
2014-09-17 08:52:34 +00:00
|
|
|
unsigned int mSamplers[7];
|
2014-08-22 21:50:38 +00:00
|
|
|
unsigned int mLastBound[FHardwareTexture::MAX_TEXTURES];
|
|
|
|
|
|
|
|
void UnbindAll();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
FSamplerManager();
|
|
|
|
~FSamplerManager();
|
|
|
|
|
2016-04-22 17:54:51 +00:00
|
|
|
BYTE Bind(int texunit, int num, int lastval);
|
2014-08-22 21:50:38 +00:00
|
|
|
void SetTextureFilterMode();
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|