MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / getIndex

Function getIndex

engine/source/platformEmscripten/EmscriptenOutlineGL.cpp:43–51  ·  view source on GitHub ↗

A utility for the outline drawing routines

Source from the content-addressed store, hash-verified

41
42/// A utility for the outline drawing routines
43static 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
53void glOutlineDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
54{

Callers 1

glOutlineDrawElementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected