mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-16 15:41:39 +00:00
0e14f00b51
- fixed handling of CLAMP_XY_NOMIP sampler mode. This cannot be lumped together with CLAMP_XY because it has different mipmap requirements.
27 lines
413 B
C++
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
|
|
|