Home | History | Annotate | Download | only in OpenglCodecCommon

Lines Matching full:location

77 void GLClientState::enable(int location, int state)
79 if (!validLocation(location)) {
83 m_states[location].enableDirty |= (state != m_states[location].enabled);
84 m_states[location].enabled = state;
87 void GLClientState::setState(int location, int size, GLenum type, GLboolean normalized, GLsizei stride, const void *data)
89 if (!validLocation(location)) {
92 m_states[location].size = size;
93 m_states[location].type = type;
94 m_states[location].stride = stride;
95 m_states[location].data = (void*)data;
96 m_states[location].bufferObject = m_currentArrayVbo;
97 m_states[location].elementSize = size ? (glSizeof(type) * size) : 0;
98 m_states[location].normalized = normalized;
101 void GLClientState::setBufferObject(int location, GLuint id)
103 if (!validLocation(location)) {
107 m_states[location].bufferObject = id;
110 const GLClientState::VertexAttribState * GLClientState::getState(int location)
112 if (!validLocation(location)) {
115 return & m_states[location];
118 const GLClientState::VertexAttribState * GLClientState::getStateAndEnableDirty(int location, bool *enableChanged)
120 if (!validLocation(location)) {
125 *enableChanged = m_states[location].enableDirty;
128 m_states[location].enableDirty = false;
129 return & m_states[location];