MCPcopy Create free account
hub / github.com/arrayfire/forge / ctype2gl

Function ctype2gl

src/backend/opengl/common.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48GLenum ctype2gl(const ChannelFormat pMode)
49{
50 switch(pMode) {
51 case FG_GRAYSCALE: return GL_RED;
52 case FG_RG : return GL_RG;
53 case FG_RGB : return GL_RGB;
54 case FG_BGR : return GL_BGR;
55 case FG_BGRA: return GL_BGRA;
56 default : return GL_RGBA;
57 }
58}
59
60GLenum ictype2gl(const ChannelFormat pMode)
61{

Callers 1

image_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected