|
|
|
@ -11,29 +11,6 @@ |
|
|
|
|
|
|
|
namespace OpenGL { |
|
|
|
|
|
|
|
namespace TextureUnits { |
|
|
|
|
|
|
|
struct TextureUnit { |
|
|
|
GLint id; |
|
|
|
constexpr GLenum Enum() const { |
|
|
|
return static_cast<GLenum>(GL_TEXTURE0 + id); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
constexpr TextureUnit MaxwellTexture(int unit) { |
|
|
|
return TextureUnit{unit}; |
|
|
|
} |
|
|
|
|
|
|
|
constexpr TextureUnit LightingLUT{3}; |
|
|
|
constexpr TextureUnit FogLUT{4}; |
|
|
|
constexpr TextureUnit ProcTexNoiseLUT{5}; |
|
|
|
constexpr TextureUnit ProcTexColorMap{6}; |
|
|
|
constexpr TextureUnit ProcTexAlphaMap{7}; |
|
|
|
constexpr TextureUnit ProcTexLUT{8}; |
|
|
|
constexpr TextureUnit ProcTexDiffLUT{9}; |
|
|
|
|
|
|
|
} // namespace TextureUnits |
|
|
|
|
|
|
|
class OpenGLState { |
|
|
|
public: |
|
|
|
struct { |
|
|
|
|