Lines Matching refs:location
136 void GLClientState::enable(int location, int state) in enable() argument
138 m_currVaoState[location].enableDirty |= (state != m_currVaoState[location].enabled); in enable()
139 m_currVaoState[location].enabled = state; in enable()
141 m_attribEnableCache |= (1 << location); in enable()
144 m_attribEnableCache &= ~(1 << location); in enable()
148 void GLClientState::setVertexAttribState(int location, int size, GLenum type, GLboolean normalized,… in setVertexAttribState() argument
150 m_currVaoState[location].size = size; in setVertexAttribState()
151 m_currVaoState[location].type = type; in setVertexAttribState()
152 m_currVaoState[location].stride = stride; in setVertexAttribState()
153 m_currVaoState[location].data = (void*)data; in setVertexAttribState()
154 m_currVaoState[location].bufferObject = m_arrayBuffer; in setVertexAttribState()
155 m_currVaoState[location].elementSize = size ? (glSizeof(type) * size) : 0; in setVertexAttribState()
159 m_currVaoState[location].elementSize = in setVertexAttribState()
160 m_currVaoState[location].elementSize / 4; in setVertexAttribState()
165 m_currVaoState[location].normalized = normalized; in setVertexAttribState()
166 m_currVaoState[location].isInt = isInt; in setVertexAttribState()
184 void GLClientState::setVertexAttribFormat(int location, int size, GLenum type, GLboolean normalized… in setVertexAttribFormat() argument
185 m_currVaoState[location].size = size; in setVertexAttribFormat()
186 m_currVaoState[location].type = type; in setVertexAttribFormat()
187 m_currVaoState[location].normalized = normalized; in setVertexAttribFormat()
188 m_currVaoState[location].reloffset = reloffset; in setVertexAttribFormat()
189 m_currVaoState[location].elementSize = size ? (glSizeof(type) * size) : 0; in setVertexAttribFormat()
193 m_currVaoState[location].elementSize = in setVertexAttribFormat()
194 m_currVaoState[location].elementSize / 4; in setVertexAttribFormat()
199 m_currVaoState[location].isInt = isInt; in setVertexAttribFormat()
347 const GLClientState::VertexAttribState& GLClientState::getState(int location) { in getState() argument
348 return m_currVaoState[location]; in getState()
351 const GLClientState::VertexAttribState& GLClientState::getStateAndEnableDirty(int location, bool *e… in getStateAndEnableDirty() argument
354 *enableChanged = m_currVaoState[location].enableDirty; in getStateAndEnableDirty()
357 m_currVaoState[location].enableDirty = false; in getStateAndEnableDirty()
358 return m_currVaoState[location]; in getStateAndEnableDirty()