6 #include <glbinding/gl/types.h> 8 #include <globjects/globjects_api.h> 20 virtual void enable(gl::GLenum capability) = 0;
21 virtual void disable(gl::GLenum capability) = 0;
22 virtual bool isEnabled(gl::GLenum capability)
const = 0;
23 virtual void enable(gl::GLenum capability,
int index) = 0;
24 virtual void disable(gl::GLenum capability,
int index) = 0;
25 virtual bool isEnabled(gl::GLenum capability,
int index)
const = 0;
27 void setEnabled(gl::GLenum capability,
bool enabled);
28 void setEnabled(gl::GLenum capability,
int index,
bool enabled);
30 void blendColor(gl::GLfloat red, gl::GLfloat green, gl::GLfloat blue, gl::GLfloat alpha);
31 void blendColor(
const std::array<gl::GLfloat, 4> & color);
32 void blendFunc(gl::GLenum sFactor, gl::GLenum dFactor);
33 void blendFuncSeparate(gl::GLenum srcRGB, gl::GLenum dstRGB, gl::GLenum srcAlpha, gl::GLenum dstAlpha);
34 void clearColor(gl::GLfloat red, gl::GLfloat green, gl::GLfloat blue, gl::GLfloat alpha);
35 void clearColor(
const std::array<gl::GLfloat, 4> & color);
36 void clearDepth(gl::GLfloat depth);
37 void clearStencil(gl::GLint s);
38 void colorMask(gl::GLboolean red, gl::GLboolean green, gl::GLboolean blue, gl::GLboolean alpha);
39 void colorMask(
const std::array<gl::GLboolean, 4> & mask);
40 void cullFace(gl::GLenum mode);
41 void depthFunc(gl::GLenum func);
42 void depthMask(gl::GLboolean flag);
43 void depthRange(gl::GLdouble nearVal, gl::GLdouble farVal);
44 void depthRange(gl::GLfloat nearVal, gl::GLfloat farVal);
45 void depthRange(
const std::array<gl::GLfloat, 2> & range);
46 void frontFace(gl::GLenum winding);
47 void logicOp(gl::GLenum opcode);
48 void pixelStore(gl::GLenum pname,
const gl::GLboolean param);
49 void pointParameter(gl::GLenum pname,
const gl::GLenum param);
50 void pointSize(gl::GLfloat size);
51 void polygonMode(gl::GLenum face, gl::GLenum mode);
52 void polygonOffset(gl::GLfloat factor, gl::GLfloat units);
53 void primitiveRestartIndex(gl::GLuint index);
54 void provokingVertex(gl::GLenum provokeMode);
55 void sampleCoverage(gl::GLfloat value, gl::GLboolean invert);
56 void scissor(gl::GLint x, gl::GLint y, gl::GLsizei width, gl::GLsizei height);
57 void scissor(
const std::array<gl::GLint, 4> & scissorBox);
58 void stencilFunc(gl::GLenum func, gl::GLint ref, gl::GLuint mask);
59 void stencilMask(gl::GLuint mask);
60 void stencilOp(gl::GLenum stencilFail, gl::GLenum depthFail, gl::GLenum depthPass);
61 void stencilFuncSeparate(gl::GLenum face, gl::GLenum func, gl::GLint ref, gl::GLuint mask);
62 void stencilMaskSeparate(gl::GLenum face, gl::GLuint mask);
63 void stencilOpSeparate(gl::GLenum face, gl::GLenum stencilFail, gl::GLenum depthFail, gl::GLenum depthPass);
67 template <
typename... Arguments>
68 void set(void (*
function)(Arguments...), Arguments... arguments);
75 #include <globjects/AbstractState.inl> GLOBJECTS_API bool isEnabled(gl::GLenum capability)
Definition: StateSetting.h:35
GLOBJECTS_API void disable(gl::GLenum capability)
Contains all the classes that wrap OpenGL functionality.
GLOBJECTS_API void setEnabled(gl::GLenum capability, bool enabled)
Definition: AbstractState.h:17
GLOBJECTS_API void enable(gl::GLenum capability)