Implements type conversion for queries.

TRAC #11593 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch Also adds missing query parameters. Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/trunk@102 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 5441d665
...@@ -150,6 +150,8 @@ struct State ...@@ -150,6 +150,8 @@ struct State
GLenum stencilBackPassDepthPass; GLenum stencilBackPassDepthPass;
GLuint stencilBackWritemask; GLuint stencilBackWritemask;
bool polygonOffsetFill; bool polygonOffsetFill;
GLfloat polygonOffsetFactor;
GLfloat polygonOffsetUnits;
bool sampleAlphaToCoverage; bool sampleAlphaToCoverage;
bool sampleCoverage; bool sampleCoverage;
GLclampf sampleCoverageValue; GLclampf sampleCoverageValue;
...@@ -254,6 +256,12 @@ class Context : public State ...@@ -254,6 +256,12 @@ class Context : public State
Texture *getSamplerTexture(unsigned int sampler, SamplerType type); Texture *getSamplerTexture(unsigned int sampler, SamplerType type);
Framebuffer *getFramebuffer(); Framebuffer *getFramebuffer();
bool getFloatv(GLenum pname, GLfloat *params);
bool getIntegerv(GLenum pname, GLint *params);
bool getBooleanv(GLenum pname, GLboolean *params);
bool getQueryParameterInfo(GLenum pname, GLenum *type, unsigned int *numParams);
bool applyRenderTarget(bool ignoreViewport); bool applyRenderTarget(bool ignoreViewport);
void applyState(); void applyState();
void applyVertexBuffer(GLint first, GLsizei count); void applyVertexBuffer(GLint first, GLsizei count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment