Lines Matching refs:index

510     void TrianglesRenderData::SetPosition(const u32 index,  in SetPosition()  argument
513 if ( ( m_VertexAttributes & VERTEX_POSITION_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetPosition()
515 m_PositionArray[4 * index] = positionX; in SetPosition()
516 m_PositionArray[4 * index + 1] = positionY; in SetPosition()
517 m_PositionArray[4 * index + 2] = positionZ; in SetPosition()
518 m_PositionArray[4 * index + 3] = 1.0f; in SetPosition()
526 void TrianglesRenderData::SetPosition(const u32 index, in SetPosition() argument
530 if ( ( m_VertexAttributes & VERTEX_POSITION_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetPosition()
532 m_PositionArray[4 * index] = positionX; in SetPosition()
533 m_PositionArray[4 * index + 1] = positionY; in SetPosition()
534 m_PositionArray[4 * index + 2] = positionZ; in SetPosition()
535 m_PositionArray[4 * index + 3] = positionW; in SetPosition()
543 void TrianglesRenderData::SetColor(const u32 index, in SetColor() argument
546 if ( ( m_VertexAttributes & VERTEX_COLOR_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetColor()
548 m_ColorArray[4 * index] = red; in SetColor()
549 m_ColorArray[4 * index + 1] = green; in SetColor()
550 m_ColorArray[4 * index + 2] = blue; in SetColor()
551 m_ColorArray[4 * index + 3] = 1.0f; in SetColor()
559 void TrianglesRenderData::SetColor(const u32 index, in SetColor() argument
562 if ( ( m_VertexAttributes & VERTEX_COLOR_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetColor()
564 m_ColorArray[4 * index] = red; in SetColor()
565 m_ColorArray[4 * index + 1] = green; in SetColor()
566 m_ColorArray[4 * index + 2] = blue; in SetColor()
567 m_ColorArray[4 * index + 3] = alpha; in SetColor()
579 for (u32 index = 0; index < m_VerticesNum; index++) in SetColor() local
581 m_ColorArray[4 * index] = red; in SetColor()
582 m_ColorArray[4 * index + 1] = green; in SetColor()
583 m_ColorArray[4 * index + 2] = blue; in SetColor()
584 m_ColorArray[4 * index + 3] = 1.0f; in SetColor()
598 for (u32 index = 0; index < m_VerticesNum; index++) in SetColor() local
600 m_ColorArray[4 * index] = red; in SetColor()
601 m_ColorArray[4 * index + 1] = green; in SetColor()
602 m_ColorArray[4 * index + 2] = blue; in SetColor()
603 m_ColorArray[4 * index + 3] = alpha; in SetColor()
612 void TrianglesRenderData::SetTexcoord(const u32 index, in SetTexcoord() argument
615 if ( ( m_VertexAttributes & VERTEX_TEXCOORD_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetTexcoord()
617 m_TexcoordArray[3 * index] = texcoordS; in SetTexcoord()
618 m_TexcoordArray[3 * index + 1] = texcoordT; in SetTexcoord()
619 m_TexcoordArray[3 * index + 2] = 1.0f; in SetTexcoord()
627 void TrianglesRenderData::SetTexcoord(const u32 index, in SetTexcoord() argument
630 if ( ( m_VertexAttributes & VERTEX_TEXCOORD_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetTexcoord()
632 m_TexcoordArray[3 * index] = texcoordS; in SetTexcoord()
633 m_TexcoordArray[3 * index + 1] = texcoordT; in SetTexcoord()
634 m_TexcoordArray[3 * index + 2] = texcoordR; in SetTexcoord()
642 void TrianglesRenderData::SetNormal(const u32 index, in SetNormal() argument
645 if ( ( m_VertexAttributes & VERTEX_NORMAL_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetNormal()
647 m_NormalArray[3 * index] = normalX; in SetNormal()
648 m_NormalArray[3 * index + 1] = normalY; in SetNormal()
649 m_NormalArray[3 * index + 2] = normalZ; in SetNormal()
657 void TrianglesRenderData::SetTangent(const u32 index, in SetTangent() argument
660 if ( ( m_VertexAttributes & VERTEX_TANGENT_ATTRIBUTE ) && ( index < m_VerticesNum ) ) in SetTangent()
662 m_TangentArray[3 * index] = tangentX; in SetTangent()
663 m_TangentArray[3 * index + 1] = tangentY; in SetTangent()
664 m_TangentArray[3 * index + 2] = tangentZ; in SetTangent()
672 void TrianglesRenderData::SetIndex(const u32 index, in SetIndex() argument
675 if ( index < m_TrianglesNum ) in SetIndex()
677 m_IndexArray[3 * index] = static_cast<GLushort>(index0); in SetIndex()
678 m_IndexArray[3 * index + 1] = static_cast<GLushort>(index1); in SetIndex()
679 m_IndexArray[3 * index + 2] = static_cast<GLushort>(index2); in SetIndex()