toGLType

nothrow pure @nogc @safe @property
toGLType
(
T
)
()

Examples

assert( toGLType!ubyte  == GLType.UBYTE );
assert( toGLType!byte   == GLType.BYTE );
assert( toGLType!ushort == GLType.USHORT );
assert( toGLType!short  == GLType.SHORT );
assert( toGLType!uint   == GLType.UINT );
assert( toGLType!int    == GLType.INT );
assert( toGLType!float  == GLType.FLOAT );
assert( toGLType!double == GLType.DOUBLE );

Meta