MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / ncFormatToInternal

Function ncFormatToInternal

Sources/nCine/Graphics/Texture.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace nCine
14{
15 GLenum ncFormatToInternal(Texture::Format format)
16 {
17 switch (format) {
18 case Texture::Format::R8:
19 return GL_R8;
20 case Texture::Format::RG8:
21 return GL_RG8;
22 case Texture::Format::RGB8:
23 return GL_RGB8;
24 case Texture::Format::RGBA8:
25 default:
26 return GL_RGBA8;
27 }
28 }
29
30 GLenum ncFormatToNonInternal(Texture::Format format)
31 {

Callers 2

InitMethod · 0.85
InitializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected