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

Function ictype2gl

src/backend/opengl/common.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60GLenum ictype2gl(const ChannelFormat pMode)
61{
62 if (pMode==FG_GRAYSCALE)
63 return GL_RED;
64 else if (pMode==FG_RG)
65 return GL_RG;
66 else if (pMode==FG_RGB || pMode==FG_BGR)
67 return GL_RGB;
68
69 return GL_RGBA;
70}
71
72#define FG_COMPILE_LINK_ERROR(pArg, PTYPE) \
73do { \

Callers 1

image_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected