Lines Matching refs:state
75 GLClientState* state = ctx->m_state; in s_glGetIntegerv() local
94 *ptr = state->getBoundTexture(GL_TEXTURE_2D); in s_glGetIntegerv()
98 *ptr = state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES); in s_glGetIntegerv()
107 if (!state->getClientStateParameter<GLint>(param,ptr)) { in s_glGetIntegerv()
118 GLClientState* state = ctx->m_state; in s_glGetFloatv() local
138 *ptr = (GLfloat)state->getBoundTexture(GL_TEXTURE_2D); in s_glGetFloatv()
142 *ptr = (GLfloat)state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES); in s_glGetFloatv()
146 if (!state->getClientStateParameter<GLfloat>(param,ptr)) { in s_glGetFloatv()
157 GLClientState* state = ctx->m_state; in s_glGetFixedv() local
177 *ptr = state->getBoundTexture(GL_TEXTURE_2D) << 16; in s_glGetFixedv()
181 *ptr = state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES) << 16; in s_glGetFixedv()
185 if (!state->getClientStateParameter<GLfixed>(param,ptr)) { in s_glGetFixedv()
196 GLClientState* state = ctx->m_state; in s_glGetBooleanv() local
211 *ptr = state->getBoundTexture(GL_TEXTURE_2D) != 0 ? GL_TRUE : GL_FALSE; in s_glGetBooleanv()
215 *ptr = state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES) != 0 in s_glGetBooleanv()
220 if (!state->getClientStateParameter<GLboolean>(param,ptr)) { in s_glGetBooleanv()
330 void GLEncoder::s_glEnableClientState(void *self, GLenum state) in s_glEnableClientState() argument
334 int loc = ctx->m_state->getLocation(state); in s_glEnableClientState()
338 void GLEncoder::s_glDisableClientState(void *self, GLenum state) in s_glDisableClientState() argument
342 int loc = ctx->m_state->getLocation(state); in s_glDisableClientState()
351 const GLClientState::VertexAttribState& state = ctx->m_state->getState(loc); in s_glIsEnabled() local
352 return state.enabled; in s_glIsEnabled()
403 … const GLClientState::VertexAttribState& state = m_state->getStateAndEnableDirty(i, &enableDirty); in sendVertexData() local
406 if (!enableDirty && !state.enabled) continue; in sendVertexData()
413 if (state.enabled) { in sendVertexData()
415 m_glEnableClientState_enc(this, state.glConst); in sendVertexData()
417 unsigned int datalen = state.elementSize * count; in sendVertexData()
418 int stride = state.stride; in sendVertexData()
419 if (stride == 0) stride = state.elementSize; in sendVertexData()
422 this->m_glBindBuffer_enc(this, GL_ARRAY_BUFFER, state.bufferObject); in sendVertexData()
423 if (state.bufferObject == 0) { in sendVertexData()
427 this->glVertexPointerData(this, state.size, state.type, state.stride, in sendVertexData()
428 (unsigned char *)state.data + firstIndex, datalen); in sendVertexData()
431 this->glNormalPointerData(this, state.type, state.stride, in sendVertexData()
432 (unsigned char *)state.data + firstIndex, datalen); in sendVertexData()
435 this->glColorPointerData(this, state.size, state.type, state.stride, in sendVertexData()
436 (unsigned char *)state.data + firstIndex, datalen); in sendVertexData()
448 …CoordPointerData(this, i - GLClientState::TEXCOORD0_LOCATION, state.size, state.type, state.stride, in sendVertexData()
449 (unsigned char *)state.data + firstIndex, datalen); in sendVertexData()
453 this->glPointSizePointerData(this, state.type, state.stride, in sendVertexData()
454 … (unsigned char *) state.data + firstIndex, datalen); in sendVertexData()
457 this->glWeightPointerData(this, state.size, state.type, state.stride, in sendVertexData()
458 (unsigned char * ) state.data + firstIndex, datalen); in sendVertexData()
461 this->glMatrixIndexPointerData(this, state.size, state.type, state.stride, in sendVertexData()
462 … (unsigned char *)state.data + firstIndex, datalen); in sendVertexData()
469 this->glVertexPointerOffset(this, state.size, state.type, state.stride, in sendVertexData()
470 (uintptr_t)state.data + firstIndex); in sendVertexData()
473 this->glNormalPointerOffset(this, state.type, state.stride, in sendVertexData()
474 (uintptr_t)state.data + firstIndex); in sendVertexData()
477 this->glPointSizePointerOffset(this, state.type, state.stride, in sendVertexData()
478 (uintptr_t)state.data + firstIndex); in sendVertexData()
481 this->glColorPointerOffset(this, state.size, state.type, state.stride, in sendVertexData()
482 (uintptr_t)state.data + firstIndex); in sendVertexData()
492 this->glTexCoordPointerOffset(this, state.size, state.type, state.stride, in sendVertexData()
493 (uintptr_t)state.data + firstIndex); in sendVertexData()
496 this->glWeightPointerOffset(this,state.size,state.type,state.stride, in sendVertexData()
497 (uintptr_t)state.data+firstIndex); in sendVertexData()
500 this->glMatrixIndexPointerOffset(this,state.size,state.type,state.stride, in sendVertexData()
501 (uintptr_t)state.data+firstIndex); in sendVertexData()
507 this->m_glDisableClientState_enc(this, state.glConst); in sendVertexData()
519 const GLClientState::VertexAttribState& state = ctx->m_state->getState(i); in s_glDrawArrays() local
520 if (state.enabled) { in s_glDrawArrays()
521 if (state.bufferObject || state.data) { in s_glDrawArrays()
551 const GLClientState::VertexAttribState& state = ctx->m_state->getState(i); in s_glDrawElements() local
552 if (state.enabled) { in s_glDrawElements()
553 if (state.bufferObject != 0) { in s_glDrawElements()
555 } else if (state.data) { in s_glDrawElements()
645 GLClientState* state = ctx->m_state; in s_glActiveTexture() local
648 if ((err = state->setActiveTextureUnit(texture)) != GL_NO_ERROR) { in s_glActiveTexture()
660 GLClientState* state = ctx->m_state; in s_glBindTexture() local
664 if ((err = state->bindTexture(target, texture, &firstUse)) != GL_NO_ERROR) { in s_glBindTexture()
675 GLenum priorityTarget = state->getPriorityEnabledTarget(GL_TEXTURE_2D); in s_glBindTexture()
689 state->getBoundTexture(GL_TEXTURE_2D)); in s_glBindTexture()
701 GLClientState* state = ctx->m_state; in s_glDeleteTextures() local
703 state->deleteTextures(n, textures); in s_glDeleteTextures()
710 GLClientState* state = ctx->m_state; in s_glDisable() local
713 GLenum prevTarget = state->getPriorityEnabledTarget(GL_INVALID_ENUM); in s_glDisable()
714 state->disableTextureTarget(cap); in s_glDisable()
715 GLenum currTarget = state->getPriorityEnabledTarget(GL_INVALID_ENUM); in s_glDisable()
726 state->getBoundTexture(currTarget)); in s_glDisable()
737 GLClientState* state = ctx->m_state; in s_glEnable() local
740 GLenum prevTarget = state->getPriorityEnabledTarget(GL_INVALID_ENUM); in s_glEnable()
741 state->enableTextureTarget(cap); in s_glEnable()
742 GLenum currTarget = state->getPriorityEnabledTarget(GL_INVALID_ENUM); in s_glEnable()
750 state->getBoundTexture(currTarget)); in s_glEnable()
954 GLClientState* state = ctx->m_state; in s_glGenFramebuffersOES() local
959 state->addFramebuffers(n, framebuffers); in s_glGenFramebuffersOES()
965 GLClientState* state = ctx->m_state; in s_glDeleteFramebuffersOES() local
970 state->removeFramebuffers(n, framebuffers); in s_glDeleteFramebuffersOES()
976 GLClientState* state = ctx->m_state; in s_glBindFramebufferOES() local
981 state->bindFramebuffer(target, framebuffer); in s_glBindFramebufferOES()
990 GLClientState* state = ctx->m_state; in s_glFramebufferTexture2DOES() local
992 state->attachTextureObject(target, attachment, texture); in s_glFramebufferTexture2DOES()
1001 GLClientState* state = ctx->m_state; in s_glFramebufferTexture2DMultisampleIMG() local
1003 state->attachTextureObject(target, attachment, texture); in s_glFramebufferTexture2DMultisampleIMG()
1012 const GLClientState* state = ctx->m_state; in s_glGetFramebufferAttachmentParameterivOES() local
1014 SET_ERROR_IF(state->boundFramebuffer(GL_FRAMEBUFFER) == 0, in s_glGetFramebufferAttachmentParameterivOES()
1017 (!state->attachmentHasObject(GL_FRAMEBUFFER, attachment)), in s_glGetFramebufferAttachmentParameterivOES()