7 #include "TextureMinifyType.h"
29 GLint GetMinifyParam(Rendering::TextureMinifyType minifyType);
31 void SetUniformTextureSampler(
Rendering::GLState& glState,
int uniformSampler,
int samplerIndex);
33 void BindTexture2D(
Rendering::GLState& glState,
int samplerIndex, u32 textureId, Rendering::TextureMinifyType minifyType,
bool repeat);
38 #if defined(EEGEO_WIN)
39 void EnterGLContextGuard();
40 void ExitGLContextGuard();
42 inline void EnterGLContextGuard() {}
43 inline void ExitGLContextGuard() {}
51 EnterGLContextGuard();
62 inline void ClearBuffers()
64 Eegeo_GL(glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE));
65 Eegeo_GL(glDepthMask(GL_TRUE))
66 Eegeo_GL(glStencilMask(0xffffffff))
67 Eegeo_GL(glDisable(GL_SCISSOR_TEST));
69 Eegeo_GL(glClearDepth(1));
71 Eegeo_GL(glClearDepthf(1));
73 Eegeo_GL(glClearStencil(0));
75 Eegeo_GL(glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT));
78 int GetTextureLoaderSamplerIndex();