TerraForge3D
2.3.1
3D Terrain And Landscape Generator
TextureCubemap.h
1
#pragma once
2
#include <string>
3
#include <vector>
4
#include "Base/BaseMath.h"
5
#include "Base/Texture2D.h"
6
7
#define TEXTURE_CUBEMAP_PX 0
8
#define TEXTURE_CUBEMAP_NX 1
9
#define TEXTURE_CUBEMAP_PY 2
10
#define TEXTURE_CUBEMAP_NY 3
11
#define TEXTURE_CUBEMAP_PZ 4
12
#define TEXTURE_CUBEMAP_NZ 5
13
14
15
16
class
TextureCubemap
17
{
18
public
:
19
TextureCubemap
();
20
~TextureCubemap
();
21
22
void
SetUpOnGPU();
23
bool
LoadFaces(std::vector<std::string> paths);
24
bool
LoadFace(std::string path,
int
face);
25
void
DeleteData();
26
bool
UploadFaceToGPU(
int
face);
27
void
UploadDataToGPU();
28
void
Bind(
int
slot);
29
30
Texture2D
*textures[6];
31
unsigned
char
*facesData[6];
32
IVec2
facesSizes[6];
33
uint32_t rendereID;
34
std::vector<std::string> faces;
35
};
Texture2D
Definition:
Texture2D.h:8
TextureCubemap
Definition:
TextureCubemap.h:17
IVec2
Definition:
BaseMath.h:4
TerraForge3D
include
Base
TextureCubemap.h
Generated on Thu Apr 7 2022 14:10:50 for TerraForge3D by
1.9.3