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

Function GetNextTexture

Descent3/gametexture.cpp:837–853  ·  view source on GitHub ↗

Given current index, gets index of next texture in use

Source from the content-addressed store, hash-verified

835
836// Given current index, gets index of next texture in use
837int GetNextTexture(int n) {
838 int i;
839
840 if (Num_textures == 0)
841 return -1;
842
843 for (i = n + 1; i < MAX_TEXTURES; i++) {
844 if (GameTextures[i].used)
845 return i;
846 }
847 for (i = 0; i < n; i++) {
848 if (GameTextures[i].used)
849 return i;
850 }
851
852 return n;
853}
854// Given current index, gets index of prev texture in use
855int GetPreviousTexture(int n) {
856 int i;

Callers 8

OnNextMethod · 0.85
UpdateTextureViewsMethod · 0.85
OnDeleteMethod · 0.85
TextureListDownMethod · 0.85
UpdateTextureViewMethod · 0.85
TextureListDownMethod · 0.85
Parse3DSMaxChunkFunction · 0.85
ListNextItemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected