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
17{
18public:
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};
Definition: BaseMath.h:4