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

Method getDetailColorArray

Source/Graphics/textures.cpp:1899–1913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1897}
1898
1899TextureRef Textures::getDetailColorArray() {
1900 PROFILED_TEXTURE_MUTEX_LOCK
1901 if (!detail_color_texture_ref.valid()) {
1902 setWrap(GL_REPEAT, GL_REPEAT);
1903 unsigned int t = makeArrayTextureInternal(0, PX_SRGB);
1904 PROFILED_TEXTURE_MUTEX_UNLOCK
1905 detail_color_texture_ref = TextureRef(t);
1906 DecrementRefCount(t);
1907 SetTextureName(detail_color_texture_ref, "Detail Texture Array - Color");
1908 } else {
1909 PROFILED_TEXTURE_MUTEX_UNLOCK
1910 }
1911
1912 return detail_color_texture_ref;
1913}
1914
1915TextureRef Textures::getDetailNormalArray() {
1916 PROFILED_TEXTURE_MUTEX_LOCK

Callers 2

DrawInstancesMethod · 0.80
LoadMethod · 0.80

Calls 2

TextureRefClass · 0.85
validMethod · 0.45

Tested by

no test coverage detected