Home | History | Annotate | Download | only in OpenglCodecCommon

Lines Matching refs:location

73 void GLClientState::enable(int location, int state)
75 if (!validLocation(location)) {
79 m_states[location].enableDirty |= (state != m_states[location].enabled);
80 m_states[location].enabled = state;
83 void GLClientState::setState(int location, int size, GLenum type, GLboolean normalized, GLsizei stride, const void *data)
85 if (!validLocation(location)) {
88 m_states[location].size = size;
89 m_states[location].type = type;
90 m_states[location].stride = stride;
91 m_states[location].data = (void*)data;
92 m_states[location].bufferObject = m_currentArrayVbo;
93 m_states[location].elementSize = glSizeof(type) * size;
94 m_states[location].normalized = normalized;
97 void GLClientState::setBufferObject(int location, GLuint id)
99 if (!validLocation(location)) {
103 m_states[location].bufferObject = id;
106 const GLClientState::VertexAttribState * GLClientState::getState(int location)
108 if (!validLocation(location)) {
111 return & m_states[location];
114 const GLClientState::VertexAttribState * GLClientState::getStateAndEnableDirty(int location, bool *enableChanged)
116 if (!validLocation(location)) {
121 *enableChanged = m_states[location].enableDirty;
124 m_states[location].enableDirty = false;
125 return & m_states[location];