TerraForge3D
2.3.1
3D Terrain And Landscape Generator
ShaderTextureManager.h
1
#pragma once
2
3
#include <cstdint>
4
#include <string>
5
#include <vector>
6
7
#include "Base/Texture2D.h"
8
class
ShaderTextureNode
;
9
10
class
ShaderTextureManager
11
{
12
public
:
13
ShaderTextureManager
();
14
~ShaderTextureManager
();
15
16
void
Register(
ShaderTextureNode
*node);
17
void
Unregister(
ShaderTextureNode
*node);
18
19
void
UploadToGPU(
int
id
);
20
void
UpdateShaders();
21
22
void
Bind(uint32_t slot);
23
24
public
:
25
uint32_t resolution = 512;
26
uint32_t textureArray;
27
std::vector<ShaderTextureNode *> textureNodes;
28
};
ShaderTextureManager
Definition:
ShaderTextureManager.h:11
ShaderTextureNode
Definition:
ShaderTextureNode.h:9
TerraForge3D
include
Shading
ShaderTextureManager.h
Generated on Thu Apr 7 2022 14:10:50 for TerraForge3D by
1.9.3