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

Method getDetailNormalArray

Source/Graphics/textures.cpp:1915–1929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1913}
1914
1915TextureRef Textures::getDetailNormalArray() {
1916 PROFILED_TEXTURE_MUTEX_LOCK
1917 if (!detail_normal_texture_ref.valid()) {
1918 setWrap(GL_REPEAT, GL_REPEAT);
1919 unsigned int t = makeArrayTextureInternal(0, 0);
1920 PROFILED_TEXTURE_MUTEX_UNLOCK
1921 detail_normal_texture_ref = TextureRef(t);
1922 DecrementRefCount(t);
1923 SetTextureName(detail_normal_texture_ref, "Detail Texture Array - Normals");
1924 } else {
1925 PROFILED_TEXTURE_MUTEX_UNLOCK
1926 }
1927
1928 return detail_normal_texture_ref;
1929}
1930
1931TextureRef Textures::makeArrayTexture(unsigned int num_slices, unsigned char flags) {
1932 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