Lines Matching refs:state
75 GLClientState* state = ctx->m_state;
94 *ptr = state->getBoundTexture(GL_TEXTURE_2D);
98 *ptr = state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES);
102 if (!state->getClientStateParameter<GLint>(param,ptr)) {
113 GLClientState* state = ctx->m_state;
133 *ptr = (GLfloat)state->getBoundTexture(GL_TEXTURE_2D);
137 *ptr = (GLfloat)state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES);
141 if (!state->getClientStateParameter<GLfloat>(param,ptr)) {
152 GLClientState* state = ctx->m_state;
172 *ptr = state->getBoundTexture(GL_TEXTURE_2D) << 16;
176 *ptr = state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES) << 16;
180 if (!state->getClientStateParameter<GLfixed>(param,ptr)) {
191 GLClientState* state = ctx->m_state;
206 *ptr = state->getBoundTexture(GL_TEXTURE_2D) != 0 ? GL_TRUE : GL_FALSE;
210 *ptr = state->getBoundTexture(GL_TEXTURE_EXTERNAL_OES) != 0
215 if (!state->getClientStateParameter<GLboolean>(param,ptr)) {
323 void GLEncoder::s_glEnableClientState(void *self, GLenum state)
327 int loc = ctx->m_state->getLocation(state);
331 void GLEncoder::s_glDisableClientState(void *self, GLenum state)
335 int loc = ctx->m_state->getLocation(state);
344 const GLClientState::VertexAttribState *state = ctx->m_state->getState(loc);
346 if (state!=NULL)
347 return state->enabled;
357 // TODO set error state if needed;
399 const GLClientState::VertexAttribState *state = m_state->getStateAndEnableDirty(i, &enableDirty);
401 // do not process if state not valid
402 if (!state) continue;
404 // do not send disable state if state was already disabled
405 if (!enableDirty && !state->enabled) continue;
412 if (state->enabled) {
415 m_glEnableClientState_enc(this, state->glConst);
417 unsigned int datalen = state->elementSize * count;
418 int stride = state->stride;
419 if (stride == 0) stride = state->elementSize;
422 if (state->bufferObject == 0) {
426 this->glVertexPointerData(this, state->size, state->type, state->stride,
427 (unsigned char *)state->data + firstIndex, datalen);
430 this->glNormalPointerData(this, state->type, state->stride,
431 (unsigned char *)state->data + firstIndex, datalen);
434 this->glColorPointerData(this, state->size, state->type, state->stride,
435 (unsigned char *)state->data + firstIndex, datalen);
445 this->glTexCoordPointerData(this, i - GLClientState::TEXCOORD0_LOCATION, state->size, state->type, state->stride,
446 (unsigned char *)state->data + firstIndex, datalen);
449 this->glPointSizePointerData(this, state->type, state->stride,
450 (unsigned char *) state->data + firstIndex, datalen);
453 this->glWeightPointerData(this, state->size, state->type, state->stride,
454 (unsigned char * ) state->data + firstIndex, datalen);
457 this->glMatrixIndexPointerData(this, state->size, state->type, state->stride,
458 (unsigned char *)state->data + firstIndex, datalen);
462 this->m_glBindBuffer_enc(this, GL_ARRAY_BUFFER, state->bufferObject);
466 this->glVertexPointerOffset(this, state->size, state->type, state->stride,
467 (GLuint)state->data + firstIndex);
470 this->glNormalPointerOffset(this, state->type, state->stride,
471 (GLuint) state->data + firstIndex);
474 this->glPointSizePointerOffset(this, state->type, state->stride,
475 (GLuint) state->data + firstIndex);
478 this->glColorPointerOffset(this, state->size, state->type, state->stride,
479 (GLuint) state->data + firstIndex);
489 this->glTexCoordPointerOffset(this, state->size, state->type, state->stride,
490 (GLuint) state->data + firstIndex);
493 this->glWeightPointerOffset(this,state->size,state->type,state->stride,
494 (GLuint)state->data+firstIndex);
497 this->glMatrixIndexPointerOffset(this,state->size,state->type,state->stride,
498 (GLuint)state->data+firstIndex);
504 this->m_glDisableClientState_enc(this, state->glConst);
528 const GLClientState::VertexAttribState *state = ctx->m_state->getState(i);
529 if (state->enabled) {
530 if (state->bufferObject != 0) {
603 GLClientState* state = ctx->m_state;
606 if ((err = state->setActiveTextureUnit(texture)) != GL_NO_ERROR) {
618 GLClientState* state = ctx->m_state;
622 if ((err = state->bindTexture(target, texture, &firstUse)) != GL_NO_ERROR) {
633 GLenum priorityTarget = state->getPriorityEnabledTarget(GL_TEXTURE_2D);
647 state->getBoundTexture(GL_TEXTURE_2D));
659 GLClientState* state = ctx->m_state;
661 state->deleteTextures(n, textures);
668 GLClientState* state = ctx->m_state;
671 GLenum prevTarget = state->getPriorityEnabledTarget(GL_INVALID_ENUM);
672 state->disableTextureTarget(cap);
673 GLenum currTarget = state->getPriorityEnabledTarget(GL_INVALID_ENUM);
684 state->getBoundTexture(currTarget));
695 GLClientState* state = ctx->m_state;
698 GLenum prevTarget = state->getPriorityEnabledTarget(GL_INVALID_ENUM);
699 state->enableTextureTarget(cap);
700 GLenum currTarget = state->getPriorityEnabledTarget(GL_INVALID_ENUM);
708 state->getBoundTexture(currTarget));
721 const GLClientState* state = ctx->m_state;
736 const GLClientState* state = ctx->m_state;
759 const GLClientState* state = ctx->m_state;
793 const GLClientState* state = ctx->m_state;
812 const GLClientState* state = ctx->m_state;
831 const GLClientState* state = ctx->m_state;
850 const GLClientState* state = ctx->m_state;
869 const GLClientState* state = ctx->m_state;
888 const GLClientState* state = ctx->m_state;