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

Function ncFormatToNonInternal

Sources/nCine/Graphics/Texture.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 GLenum ncFormatToNonInternal(Texture::Format format)
31 {
32 switch (format) {
33 case Texture::Format::R8:
34 return GL_RED;
35 case Texture::Format::RG8:
36 return GL_RG;
37 case Texture::Format::RGB8:
38 return GL_RGB;
39 case Texture::Format::RGBA8:
40 default:
41 return GL_RGBA;
42 }
43 }
44
45 Texture::Format internalFormatToNc(GLenum format)
46 {

Callers 2

LoadFromTexelsMethod · 0.85
SaveToMemoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected