TerraForge3D
2.3.1
3D Terrain And Landscape Generator
◆
UploadToGPU()
void ShaderTextureManager::UploadToGPU
(
int
id
)
Definition at line
62
of file
ShaderTextureManager.cpp
.
63
{
64
glBindTexture(GL_TEXTURE_2D_ARRAY, textureArray);
65
textureNodes[id]->texture->Resize(resolution, resolution);
66
glTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0,
id
, resolution, resolution, 1, GL_RGB, GL_UNSIGNED_BYTE, textureNodes[
id
]->texture->GetData());
67
glBindTexture(GL_TEXTURE_2D_ARRAY, 0);
68
}
ShaderTextureManager
Generated on Thu Apr 7 2022 14:10:54 for TerraForge3D by
1.9.3