Lines Matching refs:bytesPerIndex
74 size_t bytesPerIndex = 0; in copyIndices() local
80 bytesPerIndex = sizeof(GLubyte); in copyIndices()
83 bytesPerIndex = sizeof(GLuint); in copyIndices()
86 bytesPerIndex = sizeof(GLushort); in copyIndices()
103 size_t numBytes = (numIndices / verticesPerPrimitive) * verticesPerPrimitive * bytesPerIndex; in copyIndices()
109 inPtr += (numIndices + 1) * bytesPerIndex; in copyIndices()
120 memcpy(outPtr, inPtr, bytesPerIndex); in copyIndices()
121 outPtr += bytesPerIndex; in copyIndices()
122 memcpy(outPtr, inPtr + ((tri + 1) * bytesPerIndex), bytesPerIndex + bytesPerIndex); in copyIndices()
123 outPtr += bytesPerIndex + bytesPerIndex; in copyIndices()
125 inPtr += (numIndices + 1) * bytesPerIndex; in copyIndices()
137 memcpy(outPtr, inPtr + ((tri + 1) * bytesPerIndex), bytesPerIndex); in copyIndices()
138 outPtr += bytesPerIndex; in copyIndices()
139 memcpy(outPtr, inPtr + ((tri + 0) * bytesPerIndex), bytesPerIndex); in copyIndices()
140 outPtr += bytesPerIndex; in copyIndices()
141 memcpy(outPtr, inPtr + ((tri + 2) * bytesPerIndex), bytesPerIndex); in copyIndices()
142 outPtr += bytesPerIndex; in copyIndices()
146 size_t numBytes = 3 * bytesPerIndex; in copyIndices()
147 memcpy(outPtr, inPtr + (tri * bytesPerIndex), numBytes); in copyIndices()
151 inPtr += (numIndices + 1) * bytesPerIndex; in copyIndices()
161 memcpy(outPtr, inPtr + (numIndices - 1) * bytesPerIndex, bytesPerIndex); // Last vertex in copyIndices()
162 outPtr += bytesPerIndex; in copyIndices()
163 memcpy(outPtr, inPtr, bytesPerIndex); // First vertex in copyIndices()
164 outPtr += bytesPerIndex; in copyIndices()
165 size_t bytesPerLine = 2 * bytesPerIndex; in copyIndices()
168 memcpy(outPtr, inPtr + tri * bytesPerIndex, bytesPerLine); in copyIndices()
172 inPtr += (numIndices + 1) * bytesPerIndex; in copyIndices()
180 size_t bytesPerLine = 2 * bytesPerIndex; in copyIndices()
183 memcpy(outPtr, inPtr + tri * bytesPerIndex, bytesPerLine); in copyIndices()
186 inPtr += (numIndices + 1) * bytesPerIndex; in copyIndices()