MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / returnTexture

Method returnTexture

Source/Graphics/textures.cpp:2388–2393  ·  view source on GitHub ↗

Return the OpenGL id of a texture

Source from the content-addressed store, hash-verified

2386
2387// Return the OpenGL id of a texture
2388GLuint Textures::returnTexture(const TextureRef& which_texture) {
2389 PROFILED_TEXTURE_MUTEX_LOCK
2390 GLuint ret = textures[which_texture.id].gl_texture_id;
2391 PROFILED_TEXTURE_MUTEX_UNLOCK
2392 return ret;
2393}
2394
2395GLuint Textures::returnTexture(const TextureAssetRef& which_texture) {
2396 PROFILED_TEXTURE_MUTEX_LOCK

Callers 15

CubemapMipChainFunction · 0.80
ProcessCubeMapFunction · 0.80
RenderCubeMapMethod · 0.80
InitScreenMethod · 0.80
DrawCubeMapMethod · 0.80
DrawMethod · 0.80
IsCharacterSelcetedFunction · 0.80
AddSpawnerItemFunction · 0.80
DrawImGuiCameraPreviewFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected