Lines Matching refs:params
2448 void __stdcall glGetBooleanv(GLenum pname, GLboolean* params)
2450 TRACE("(GLenum pname = 0x%X, GLboolean* params = 0x%0.8p)", pname, params);
2458 if (!(context->getBooleanv(pname, params)))
2478 params[i] = GL_FALSE;
2480 params[i] = GL_TRUE;
2495 params[i] = GL_FALSE;
2497 params[i] = GL_TRUE;
2511 void __stdcall glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
2513 TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint* params = 0x%0.8p)", target, pname, params);
2543 *params = buffer->usage();
2546 *params = buffer->size();
2572 void __stdcall glGetFenceivNV(GLuint fence, GLenum pname, GLint *params)
2574 TRACE("(GLuint fence = %d, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", fence, pname, params);
2590 fenceObject->getFenceiv(pname, params);
2599 void __stdcall glGetFloatv(GLenum pname, GLfloat* params)
2601 TRACE("(GLenum pname = 0x%X, GLfloat* params = 0x%0.8p)", pname, params);
2609 if (!(context->getFloatv(pname, params)))
2629 params[i] = 0.0f;
2631 params[i] = 1.0f;
2645 params[i] = (GLfloat)intParams[i];
2659 void __stdcall glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params)
2661 TRACE("(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum pname = 0x%X, GLint* params = 0x%0.8p)",
2662 target, attachment, pname, params);
2728 *params = attachmentObjectType;
2733 *params = attachmentHandle;
2743 *params = 0; // FramebufferTexture2D will not allow level to be set to anything else in GL ES 2.0
2755 *params = attachmentType;
2759 *params = 0;
2778 void __stdcall glGetIntegerv(GLenum pname, GLint* params)
2780 TRACE("(GLenum pname = 0x%X, GLint* params = 0x%0.8p)", pname, params);
2788 if (!(context->getIntegerv(pname, params)))
2808 params[i] = 0;
2810 params[i] = 1;
2826 params[i] = (GLint)(((GLfloat)(0xFFFFFFFF) * floatParams[i] - 1.0f) / 2.0f);
2829 params[i] = (GLint)(floatParams[i] > 0.0f ? floor(floatParams[i] + 0.5) : ceil(floatParams[i] - 0.5));
2843 void __stdcall glGetProgramiv(GLuint program, GLenum pname, GLint* params)
2845 TRACE("(GLuint program = %d, GLenum pname = %d, GLint* params = 0x%0.8p)", program, pname, params);
2863 *params = programObject->isFlaggedForDeletion();
2866 *params = programObject->isLinked();
2869 *params = programObject->isValidated();
2872 *params = programObject->getInfoLogLength();
2875 *params = programObject->getAttachedShadersCount();
2878 *params = programObject->getActiveAttributeCount();
2881 *params = programObject->getActiveAttributeMaxLength();
2884 *params = programObject->getActiveUniformCount();
2887 *params = programObject->getActiveUniformMaxLength();
2932 void __stdcall glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params)
2934 TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint* params = 0x%0.8p)", target, pname, params);
2957 *params = renderbuffer->getWidth();
2960 *params = renderbuffer->getHeight();
2963 *params = renderbuffer->getFormat();
2968 *params = static_cast<gl::Colorbuffer*>(renderbuffer->getStorage())->getRedSize();
2972 *params = 0;
2978 *params = static_cast<gl::Colorbuffer*>(renderbuffer->getStorage())->getGreenSize();
2982 *params = 0;
2988 *params = static_cast<gl::Colorbuffer*>(renderbuffer->getStorage())->getBlueSize();
2992 *params = 0;
2998 *params = static_cast<gl::Colorbuffer*>(renderbuffer->getStorage())->getAlphaSize();
3002 *params = 0;
3008 *params = static_cast<gl::Depthbuffer*>(renderbuffer->getStorage())->getDepthSize();
3012 *params = 0;
3018 *params = static_cast<gl::Stencilbuffer*>(renderbuffer->getStorage())->getStencilSize();
3022 *params = 0;
3029 *params = renderbuffer->getStorage()->getSamples();
3048 void __stdcall glGetShaderiv(GLuint shader, GLenum pname, GLint* params)
3050 TRACE("(GLuint shader = %d, GLenum pname = %d, GLint* params = 0x%0.8p)", shader, pname, params);
3068 *params = shaderObject->getType();
3071 *params = shaderObject->isFlaggedForDeletion();
3074 *params = shaderObject->isCompiled() ? GL_TRUE : GL_FALSE;
3077 *params = shaderObject->getInfoLogLength();
3080 *params = shaderObject->getSourceLength();
3234 void __stdcall glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
3236 TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat* params = 0x%0.8p)", target, pname, params);
3261 *params = (GLfloat)texture->getMagFilter();
3264 *params = (GLfloat)texture->getMinFilter();
3267 *params = (GLfloat)texture->getWrapS();
3270 *params = (GLfloat)texture->getWrapT();
3283 void __stdcall glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
3285 TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint* params = 0x%0.8p)", target, pname, params);
3310 *params = texture->getMagFilter();
3313 *params = texture->getMinFilter();
3316 *params = texture->getWrapS();
3319 *params = texture->getWrapT();
3332 void __stdcall glGetUniformfv(GLuint program, GLint location, GLfloat* params)
3334 TRACE("(GLuint program = %d, GLint location = %d, GLfloat* params = 0x%0.8p)", program, location, params);
3354 if (!programObject->getUniformfv(location, params))
3366 void __stdcall glGetUniformiv(GLuint program, GLint location, GLint* params)
3368 TRACE("(GLuint program = %d, GLint location = %d, GLint* params = 0x%0.8p)", program, location, params);
3393 if (!programObject->getUniformiv(location, params))
3450 void __stdcall glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params)
3452 TRACE("(GLuint index = %d, GLenum pname = 0x%X, GLfloat* params = 0x%0.8p)", index, pname, params);
3470 *params = (GLfloat)(attribState.mArrayEnabled ? GL_TRUE : GL_FALSE);
3473 *params = (GLfloat)attribState.mSize;
3476 *params = (GLfloat)attribState.mStride;
3479 *params = (GLfloat)attribState.mType;
3482 *params = (GLfloat)(attribState.mNormalized ? GL_TRUE : GL_FALSE);
3485 *params = (GLfloat)attribState.mBoundBuffer.id();
3490 params[i] = attribState.mCurrentValue[i];
3503 void __stdcall glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params)
3505 TRACE("(GLuint index = %d, GLenum pname = 0x%X, GLint* params = 0x%0.8p)", index, pname, params);
3523 *params = (attribState.mArrayEnabled ? GL_TRUE : GL_FALSE);
3526 *params = attribState.mSize;
3529 *params = attribState.mStride;
3532 *params = attribState.mType;
3535 *params = (attribState.mNormalized ? GL_TRUE : GL_FALSE);
3538 *params = attribState.mBoundBuffer.id();
3544 params[i] = (GLint)(currentValue > 0.0f ? floor(currentValue + 0.5f) : ceil(currentValue - 0.5f));
4655 void __stdcall glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
4657 glTexParameteri(target, pname, (GLint)*params);
4721 void __stdcall glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
4723 glTexParameteri(target, pname, *params);