Lines Matching refs:gl

39         if (texture < GL_TEXTURE0 || texture > GL_TEXTURE0 + gl::MAX_TEXTURE_IMAGE_UNITS - 1)
44 gl::Context *context = gl::getContext();
63 gl::Context *context = gl::getContext();
67 gl::Program *programObject = context->getProgram(program);
68 gl::Shader *shaderObject = context->getShader(shader);
112 if (index >= gl::MAX_VERTEX_ATTRIBS)
117 gl::Context *context = gl::getContext();
121 gl::Program *programObject = context->getProgram(program);
155 gl::Context *context = gl::getContext();
189 gl::Context *context = gl::getContext();
221 gl::Context *context = gl::getContext();
240 gl::Context *context = gl::getContext();
244 gl::Texture *textureObject = context->getTexture(texture);
277 gl::Context* context = gl::getContext();
281 context->setBlendColor(gl::clamp01(red), gl::clamp01(green), gl::clamp01(blue), gl::clamp01(alpha));
321 gl::Context *context = gl::getContext();
444 gl::Context *context = gl::getContext();
479 gl::Context *context = gl::getContext();
483 gl::Buffer *buffer;
528 gl::Context *context = gl::getContext();
532 gl::Buffer *buffer;
576 gl::Context *context = gl::getContext();
580 gl::Framebuffer *framebuffer = NULL;
607 gl::Context *context = gl::getContext();
627 gl::Context *context = gl::getContext();
646 gl::Context *context = gl::getContext();
665 gl::Context *context = gl::getContext();
685 gl::Context *context = gl::getContext();
704 gl::Context *context = gl::getContext();
708 gl::Shader *shaderObject = context->getShader(shader);
745 if (width < 0 || height < 0 || (level > 0 && !gl::isPow2(width)) || (level > 0 && !gl::isPow2(height)) || border != 0 || imageSize < 0)
764 gl::Context *context = gl::getContext();
808 if (imageSize != gl::ComputeCompressedSize(width, height, internalformat))
815 gl::Texture2D *texture = context->getTexture2D();
826 gl::TextureCubeMap *texture = context->getTextureCubeMap();
865 if (!gl::IsTextureTarget(target))
876 (level > 0 && !gl::isPow2(width)) || (level > 0 && !gl::isPow2(height)) || imageSize < 0)
895 gl::Context *context = gl::getContext();
909 if (imageSize != gl::ComputeCompressedSize(width, height, format))
922 gl::Texture2D *texture = context->getTexture2D();
942 else if (gl::IsCubemapTextureTarget(target))
944 gl::TextureCubeMap *texture = context->getTextureCubeMap();
989 if (level > 0 && (!gl::isPow2(width) || !gl::isPow2(height)))
999 gl::Context *context = gl::getContext();
1033 gl::Framebuffer *framebuffer = context->getReadFramebuffer();
1045 gl::Colorbuffer *source = framebuffer->getColorbuffer();
1101 gl::Texture2D *texture = context->getTexture2D();
1110 else if (gl::IsCubemapTextureTarget(target))
1112 gl::TextureCubeMap *texture = context->getTextureCubeMap();
1138 if (!gl::IsTextureTarget(target))
1158 gl::Context *context = gl::getContext();
1167 gl::Framebuffer *framebuffer = context->getReadFramebuffer();
1179 gl::Colorbuffer *source = framebuffer->getColorbuffer();
1181 gl::Texture *texture = NULL;
1187 else if (gl::IsCubemapTextureTarget(target))
1259 gl::Context *context = gl::getContext();
1280 gl::Context *context = gl::getContext();
1314 gl::Context *context = gl::getContext();
1343 gl::Context *context = gl::getContext();
1370 gl::Context *context = gl::getContext();
1397 gl::Context *context = gl::getContext();
1427 gl::Context *context = gl::getContext();
1463 gl::Context *context = gl::getContext();
1490 gl::Context *context = gl::getContext();
1526 gl::Context *context = gl::getContext();
1566 gl::Context *context = gl::getContext();
1585 gl::Context *context = gl::getContext();
1604 gl::Context *context = gl::getContext();
1623 gl::Context *context = gl::getContext();
1628 gl::Program *programObject = context->getProgram(program);
1629 gl::Shader *shaderObject = context->getShader(shader);
1633 gl::Shader *shaderByProgramHandle;
1647 gl::Program *programByShaderHandle = context->getProgram(shader);
1676 gl::Context *context = gl::getContext();
1708 if (index >= gl::MAX_VERTEX_ATTRIBS)
1713 gl::Context *context = gl::getContext();
1737 gl::Context *context = gl::getContext();
1762 gl::Context *context = gl::getContext();
1796 gl::Context *context = gl::getContext();
1828 if (index >= gl::MAX_VERTEX_ATTRIBS)
1833 gl::Context *context = gl::getContext();
1852 gl::Context *context = gl::getContext();
1856 gl::Fence* fenceObject = context->getFence(fence);
1878 gl::Context *context = gl::getContext();
1897 gl::Context *context = gl::getContext();
1923 gl::Context *context = gl::getContext();
1927 gl::Framebuffer *framebuffer = NULL;
1989 gl::Context *context = gl::getContext();
1999 gl::Texture *tex = context->getTexture(texture);
2042 gl::Framebuffer *framebuffer = NULL;
2085 gl::Context *context = gl::getContext();
2114 gl::Context *context = gl::getContext();
2136 gl::Context *context = gl::getContext();
2140 gl::Texture *texture;
2181 gl::Context *context = gl::getContext();
2208 gl::Context *context = gl::getContext();
2235 gl::Context *context = gl::getContext();
2262 gl::Context *context = gl::getContext();
2291 gl::Context *context = gl::getContext();
2295 gl::Program *programObject = context->getProgram(program);
2336 gl::Context *context = gl::getContext();
2340 gl::Program *programObject = context->getProgram(program);
2380 gl::Context *context = gl::getContext();
2384 gl::Program *programObject = context->getProgram(program);
2413 gl::Context *context = gl::getContext();
2418 gl::Program *programObject = context->getProgram(program);
2454 gl::Context *context = gl::getContext();
2517 gl::Context *context = gl::getContext();
2521 gl::Buffer *buffer;
2562 gl::Context *context = gl::getContext();
2579 gl::Context *context = gl::getContext();
2583 gl::Fence *fenceObject = context->getFence(fence);
2605 gl::Context *context = gl::getContext();
2666 gl::Context *context = gl::getContext();
2675 gl::Framebuffer *framebuffer = NULL;
2719 else if (gl::IsTextureTarget(attachmentType))
2753 if (gl::IsCubemapTextureTarget(attachmentType))
2784 gl::Context *context = gl::getContext();
2849 gl::Context *context = gl::getContext();
2853 gl::Program *programObject = context->getProgram(program);
2912 gl::Context *context = gl::getContext();
2916 gl::Program *programObject = context->getProgram(program);
2938 gl::Context *context = gl::getContext();
2952 gl::Renderbuffer *renderbuffer = context->getRenderbuffer(context->getRenderbufferHandle());
2968 *params = static_cast<gl::Colorbuffer*>(renderbuffer->getStorage())->getRedSize();
2978 *params = static_cast<gl::Colorbuffer*>(renderbuffer->getStorage())->getGreenSize();
2988 *params = static_cast<gl::Colorbuffer*>(renderbuffer->getStorage())->getBlueSize();
2998 *params = static_cast<gl::Colorbuffer*>(renderbuffer->getStorage())->getAlphaSize();
3008 *params = static_cast<gl::Depthbuffer*>(renderbuffer->getStorage())->getDepthSize();
3018 *params = static_cast<gl::Stencilbuffer*>(renderbuffer->getStorage())->getStencilSize();
3054 gl::Context *context = gl::getContext();
3058 gl::Shader *shaderObject = context->getShader(shader);
3105 gl::Context *context = gl::getContext();
3109 gl::Shader *shaderObject = context->getShader(shader);
3182 gl::Context *context = gl::getContext();
3186 gl::Shader *shaderObject = context->getShader(shader);
3208 gl::Context *context = gl::getContext();
3240 gl::Context *context = gl::getContext();
3244 gl::Texture *texture;
3289 gl::Context *context = gl::getContext();
3293 gl::Texture *texture;
3338 gl::Context *context = gl::getContext();
3347 gl::Program *programObject = context->getProgram(program);
3372 gl::Context *context = gl::getContext();
3381 gl::Program *programObject = context->getProgram(program);
3411 gl::Context *context = gl::getContext();
3420 gl::Program *programObject = context->getProgram(program);
3456 gl::Context *context = gl::getContext();
3460 if (index >= gl::MAX_VERTEX_ATTRIBS)
3465 const gl::VertexAttribute &attribState = context->getVertexAttribState(index);
3509 gl::Context *context = gl::getContext();
3513 if (index >= gl::MAX_VERTEX_ATTRIBS)
3518 const gl::VertexAttribute &attribState = context->getVertexAttribState(index);
3563 gl::Context *context = gl::getContext();
3567 if (index >= gl::MAX_VERTEX_ATTRIBS)
3602 gl::Context *context = gl::getContext();
3627 gl::Context *context = gl::getContext();
3631 gl::Buffer *bufferObject = context->getBuffer(buffer);
3653 gl::Context *context = gl::getContext();
3687 gl::Context *context = gl::getContext();
3691 gl::Fence *fenceObject = context->getFence(fence);
3715 gl::Context *context = gl::getContext();
3719 gl::Framebuffer *framebufferObject = context->getFramebuffer(framebuffer);
3741 gl::Context *context = gl::getContext();
3745 gl::Program *programObject = context->getProgram(program);
3767 gl::Context *context = gl::getContext();
3771 gl::Renderbuffer *renderbufferObject = context->getRenderbuffer(renderbuffer);
3793 gl::Context *context = gl::getContext();
3797 gl::Shader *shaderObject = context->getShader(shader);
3819 gl::Context *context = gl::getContext();
3823 gl::Texture *textureObject = context->getTexture(texture);
3850 gl::Context *context = gl::getContext();
3869 gl::Context *context = gl::getContext();
3873 gl::Program *programObject = context->getProgram(program);
3902 gl::Context *context = gl::getContext();
3943 gl::Context *context = gl::getContext();
3991 case gl::IMPLEMENTATION_COLOR_READ_FORMAT:
3994 case gl::IMPLEMENTATION_COLOR_READ_TYPE:
4004 gl::Context *context = gl::getContext();
4023 gl::Shader::releaseCompiler();
4046 if (!gl::IsColorRenderable(internalformat) && !gl::IsDepthRenderable(internalformat) && !gl::IsStencilRenderable(internalformat))
4056 gl::Context *context = gl::getContext();
4076 context->setRenderbufferStorage(new gl::Depthbuffer(width, height, samples));
4083 context->setRenderbufferStorage(new gl::Colorbuffer(width, height, internalformat, samples));
4086 context->setRenderbufferStorage(new gl::Stencilbuffer(width, height, samples));
4089 context->setRenderbufferStorage(new gl::DepthStencilbuffer(width, height, samples));
4113 gl::Context* context = gl::getContext();
4117 context->setSampleCoverageParams(gl::clamp01(value), invert == GL_TRUE);
4137 gl::Context *context = gl::getContext();
4141 gl::Fence *fenceObject = context->getFence(fence);
4168 gl::Context* context = gl::getContext();
4210 gl::Context *context = gl::getContext();
4214 gl::Shader *shaderObject = context->getShader(shader);
4273 gl::Context *context = gl::getContext();
4315 gl::Context *context = gl::getContext();
4403 gl::Context *context = gl::getContext();
4430 gl::Context *context = gl::getContext();
4434 gl::Fence *fenceObject = context->getFence(fence);
4466 if (level > 0 && (!gl::isPow2(width) || !gl::isPow2(height)))
4537 gl::Context *context = gl::getContext();
4601 gl::Texture2D *texture = context->getTexture2D();
4612 gl::TextureCubeMap *texture = context->getTextureCubeMap();
4666 gl::Context *context = gl::getContext();
4670 gl::Texture *texture;
4736 if (!gl::IsTextureTarget(target))
4751 if (!gl::CheckTextureFormatType(format, type))
4761 gl::Context *context = gl::getContext();
4787 gl::Texture2D *texture = context->getTexture2D();
4806 else if (gl::IsCubemapTextureTarget(target))
4808 gl::TextureCubeMap *texture = context->getTextureCubeMap();
4860 gl::Context *context = gl::getContext();
4864 gl::Program *program = context->getCurrentProgram();
4904 gl::Context *context = gl::getContext();
4908 gl::Program *program = context->getCurrentProgram();
4950 gl::Context *context = gl::getContext();
4954 gl::Program *program = context->getCurrentProgram();
4996 gl::Context *context = gl::getContext();
5000 gl::Program *program = context->getCurrentProgram();
5042 gl::Context *context = gl::getContext();
5046 gl::Program *program = context->getCurrentProgram();
5088 gl::Context *context = gl::getContext();
5092 gl::Program *program = context->getCurrentProgram();
5134 gl::Context *context = gl::getContext();
5138 gl::Program *program = context->getCurrentProgram();
5180 gl::Context *context = gl::getContext();
5184 gl::Program *program = context->getCurrentProgram();
5220 gl::Context *context = gl::getContext();
5224 gl::Program *program = context->getCurrentProgram();
5260 gl::Context *context = gl::getContext();
5264 gl::Program *program = context->getCurrentProgram();
5300 gl::Context *context = gl::getContext();
5304 gl::Program *program = context->getCurrentProgram();
5329 gl::Context *context = gl::getContext();
5333 gl::Program *programObject = context->getProgram(program);
5367 gl::Context *context = gl::getContext();
5371 gl::Program *programObject = context->getProgram(program);
5400 if (index >= gl::MAX_VERTEX_ATTRIBS)
5405 gl::Context *context = gl::getContext();
5425 if (index >= gl::MAX_VERTEX_ATTRIBS)
5430 gl::Context *context = gl::getContext();
5450 if (index >= gl::MAX_VERTEX_ATTRIBS)
5455 gl::Context *context = gl::getContext();
5475 if (index >= gl::MAX_VERTEX_ATTRIBS)
5480 gl::Context *context = gl::getContext();
5500 if (index >= gl::MAX_VERTEX_ATTRIBS)
5505 gl::Context *context = gl::getContext();
5525 if (index >= gl::MAX_VERTEX_ATTRIBS)
5530 gl::Context *context = gl::getContext();
5550 if (index >= gl::MAX_VERTEX_ATTRIBS)
5555 gl::Context *context = gl::getContext();
5575 if (index >= gl::MAX_VERTEX_ATTRIBS)
5580 gl::Context *context = gl::getContext();
5601 if (index >= gl::MAX_VERTEX_ATTRIBS)
5629 gl::Context *context = gl::getContext();
5653 gl::Context *context = gl::getContext();
5695 gl::Context *context = gl::getContext();