| 348 | } |
| 349 | |
| 350 | int OpenGLGuiHelper::registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices, int primitiveType, int textureId) |
| 351 | { |
| 352 | if (textureId == -2) |
| 353 | { |
| 354 | if (m_data->m_checkedTextureGrey < 0) |
| 355 | { |
| 356 | m_data->m_checkedTextureGrey = createCheckeredTexture(192, 192, 192); |
| 357 | } |
| 358 | textureId = m_data->m_checkedTextureGrey; |
| 359 | } |
| 360 | |
| 361 | int shapeId = m_data->m_glApp->m_renderer->registerShape(vertices, numvertices, indices, numIndices, primitiveType, textureId); |
| 362 | return shapeId; |
| 363 | } |
| 364 | |
| 365 | int OpenGLGuiHelper::registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling) |
| 366 | { |
no test coverage detected