gzdoom/src/gl/textures/gl_samplers.h
Christoph Oelckers 0e14f00b51 - fixed caching of texture sampler state for old hardware.
- fixed handling of CLAMP_XY_NOMIP sampler mode. This cannot be lumped together with CLAMP_XY because it has different mipmap requirements.
2016-05-03 13:39:41 +02:00

27 lines
413 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];
void UnbindAll();
public:
FSamplerManager();
~FSamplerManager();
BYTE Bind(int texunit, int num, int lastval);
void SetTextureFilterMode();
};
#endif