MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / InitTextures

Function InitTextures

Descent3/gametexture.cpp:300–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300int InitTextures() {
301 // Initalizes the texture system
302
303 int i, tex;
304
305 mprintf(0, "Initializing texture system.\n");
306 for (i = 0; i < MAX_TEXTURES; i++)
307 GameTextures[i].used = 0;
308
309 tex = AllocTexture();
310 GameTextures[tex].bm_handle = BAD_BITMAP_HANDLE;
311 strcpy(GameTextures[tex].name, "SAMPLE TEXTURE");
312
313 // Initialize procedural tables and such
314 InitProcedurals();
315
316 atexit(FreeAllTextures);
317
318 return 1;
319}
320
321// Set aside a texture for use
322// This function returns a valid texture handle

Callers 1

InitGraphicsFunction · 0.85

Calls 2

AllocTextureFunction · 0.85
InitProceduralsFunction · 0.85

Tested by

no test coverage detected