Lines Matching refs:m_currVaoState
75 m_currVaoState[VERTEX_LOCATION].glConst = GL_VERTEX_ARRAY; in init()
76 m_currVaoState[NORMAL_LOCATION].glConst = GL_NORMAL_ARRAY; in init()
77 m_currVaoState[COLOR_LOCATION].glConst = GL_COLOR_ARRAY; in init()
78 m_currVaoState[POINTSIZE_LOCATION].glConst = GL_POINT_SIZE_ARRAY_OES; in init()
79 m_currVaoState[TEXCOORD0_LOCATION].glConst = GL_TEXTURE_COORD_ARRAY; in init()
80 m_currVaoState[TEXCOORD1_LOCATION].glConst = GL_TEXTURE_COORD_ARRAY; in init()
81 m_currVaoState[TEXCOORD2_LOCATION].glConst = GL_TEXTURE_COORD_ARRAY; in init()
82 m_currVaoState[TEXCOORD3_LOCATION].glConst = GL_TEXTURE_COORD_ARRAY; in init()
83 m_currVaoState[TEXCOORD4_LOCATION].glConst = GL_TEXTURE_COORD_ARRAY; in init()
84 m_currVaoState[TEXCOORD5_LOCATION].glConst = GL_TEXTURE_COORD_ARRAY; in init()
85 m_currVaoState[TEXCOORD6_LOCATION].glConst = GL_TEXTURE_COORD_ARRAY; in init()
86 m_currVaoState[TEXCOORD7_LOCATION].glConst = GL_TEXTURE_COORD_ARRAY; in init()
87 m_currVaoState[MATRIXINDEX_LOCATION].glConst = GL_MATRIX_INDEX_ARRAY_OES; in init()
88 m_currVaoState[WEIGHT_LOCATION].glConst = GL_WEIGHT_ARRAY_OES; in init()
167 m_currVaoState[location].enableDirty |= (state != m_currVaoState[location].enabled); in enable()
168 m_currVaoState[location].enabled = state; in enable()
179 m_currVaoState[location].size = size; in setVertexAttribState()
180 m_currVaoState[location].type = type; in setVertexAttribState()
181 m_currVaoState[location].stride = stride; in setVertexAttribState()
182 m_currVaoState[location].data = (void*)data; in setVertexAttribState()
183 m_currVaoState[location].bufferObject = m_arrayBuffer; in setVertexAttribState()
184 m_currVaoState[location].elementSize = size ? (glSizeof(type) * size) : 0; in setVertexAttribState()
188 m_currVaoState[location].elementSize = in setVertexAttribState()
189 m_currVaoState[location].elementSize / 4; in setVertexAttribState()
194 m_currVaoState[location].normalized = normalized; in setVertexAttribState()
195 m_currVaoState[location].isInt = isInt; in setVertexAttribState()
199 m_currVaoState.bufferBinding(bindingindex).divisor = divisor; in setVertexBindingDivisor()
203 return m_currVaoState.bufferBindings_const()[m_currVaoState[attribindex].bindingindex]; in getCurrAttributeBindingInfo()
207 m_currVaoState[attribindex].bindingindex = bindingindex; in setVertexAttribBinding()
208 m_currVaoState.bufferBinding(bindingindex).vertexAttribLoc = attribindex; in setVertexAttribBinding()
214 m_currVaoState[location].size = size; in setVertexAttribFormat()
215 m_currVaoState[location].type = type; in setVertexAttribFormat()
216 m_currVaoState[location].normalized = normalized; in setVertexAttribFormat()
217 m_currVaoState[location].reloffset = reloffset; in setVertexAttribFormat()
218 m_currVaoState[location].elementSize = size ? (glSizeof(type) * size) : 0; in setVertexAttribFormat()
222 m_currVaoState[location].elementSize = in setVertexAttribFormat()
223 m_currVaoState[location].elementSize / 4; in setVertexAttribFormat()
228 m_currVaoState[location].isInt = isInt; in setVertexAttribFormat()
239 if (arrays[i] && m_currVaoState.vaoId() == arrays[i]) { in removeVertexArrayObjects()
301 if (name && m_currVaoState.vaoId() == name) { in setVertexArrayObject()
307 m_currVaoState = in setVertexArrayObject()
351 m_currVaoState.bufferBindings_const()[ in getVBOUsage()
352 m_currVaoState[i].bindingindex]; in getVBOUsage()
377 return m_currVaoState[location]; in getState()
383 *enableChanged = m_currVaoState[location].enableDirty; in getStateAndEnableDirty()
386 m_currVaoState[location].enableDirty = false; in getStateAndEnableDirty()
387 return m_currVaoState[location]; in getStateAndEnableDirty()
392 VAOState& vaoState = m_currVaoState.vaoState(); in updateEnableDirtyArrayForDraw()
406 return m_currVaoState.vaoState(); in currentVaoState()
719 if (m_currVaoState.iboId() == id) { in unBindBuffer()
720 m_currVaoState.iboId() = 0; in unBindBuffer()
721 m_currVaoState.iboIdLastEncode() = 0; in unBindBuffer()
751 sClearIndexedBufferBinding(id, m_currVaoState.bufferBindings()); in unBindBuffer()
764 m_currVaoState.iboId() = id; in bindBuffer()
832 m_currVaoState.bufferBinding(index).buffer = buffer; in bindIndexedBuffer()
833 m_currVaoState.bufferBinding(index).offset = offset; in bindIndexedBuffer()
834 m_currVaoState.bufferBinding(index).size = size; in bindIndexedBuffer()
835 m_currVaoState.bufferBinding(index).stride = stride; in bindIndexedBuffer()
836 m_currVaoState.bufferBinding(index).effectiveStride = effectiveStride; in bindIndexedBuffer()
837 … m_vaoAttribBindingCacheInvalid |= (1 << m_currVaoState.bufferBinding(index).vertexAttribLoc); in bindIndexedBuffer()
853 return m_currVaoState.bufferBindings_const().size(); in getMaxIndexedBufferBindings()
896 return m_currVaoState.bufferBinding(index).buffer == buffer && in isIndexedBindNoOp()
897 m_currVaoState.bufferBinding(index).offset == offset && in isIndexedBindNoOp()
898 m_currVaoState.bufferBinding(index).size == size && in isIndexedBindNoOp()
899 m_currVaoState.bufferBinding(index).stride == stride && in isIndexedBindNoOp()
900 m_currVaoState.bufferBinding(index).effectiveStride == effectiveStride; in isIndexedBindNoOp()
952 ret = m_currVaoState.iboId(); in getBuffer()
1001 ret = m_currVaoState.iboIdLastEncode(); in getLastEncodedBufferBind()
1021 m_currVaoState.iboIdLastEncode() = id; in setLastEncodedBufferBind()
1106 *params = m_currVaoState[which_state].data; in getClientStatePointer()