A utility for the outline drawing routines
| 41 | |
| 42 | /// A utility for the outline drawing routines |
| 43 | static U32 getIndex(GLenum type, const void *indices, U32 i) |
| 44 | { |
| 45 | if(type == GL_UNSIGNED_BYTE) |
| 46 | return ((U8 *) indices)[i]; |
| 47 | else if(type == GL_UNSIGNED_SHORT) |
| 48 | return ((U16 *) indices)[i]; |
| 49 | else |
| 50 | return ((U32 *) indices)[i]; |
| 51 | } |
| 52 | |
| 53 | void glOutlineDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) |
| 54 | { |
no outgoing calls
no test coverage detected