MCPcopy Index your code
hub / github.com/assaultcube/AC / texformat

Function texformat

source/src/texture.cpp:288–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288GLenum texformat(int bpp)
289{
290 switch(bpp)
291 {
292 case 8: return GL_LUMINANCE;
293 case 16: return GL_LUMINANCE_ALPHA;
294 case 24: return GL_RGB;
295 case 32: return GL_RGBA;
296 default: return 0;
297 }
298}
299
300SDL_Surface *texdecal(SDL_Surface *s)
301{

Callers 1

loadsurfaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected