PCG-FPS  v2 m0.22.4
Simple First Person Shooter with Procedurally Generated Level
Cubemap.h
Go to the documentation of this file.
1 #ifndef SKR_FPS2_RENDERER_OPENGL_CUBEMAP_H
2 #define SKR_FPS2_RENDERER_OPENGL_CUBEMAP_H
3 
4 #include "..\..\pch.h"
5 
6 #include <vector>
7 #include <string>
8 
9 namespace skr
10 {
11 namespace fps2
12 {
13 namespace Renderer
14 {
15 namespace OpenGL
16 {
19  class Cubemap
20  {
21  private:
22  std::vector<std::string> _faces;
23 
24  public:
25  uint32_t _id;
26 
27  public:
29  // default constructor is needed since OpenGL Renderer Object is a global object, although it does nothing
30  Cubemap() : _id(0) { };
31 
34  Cubemap(std::vector<std::string> faces);
35 
36  private:
39  bool LoadCubemap();
40  };
41 }
42 }
43 }
44 }
45 
46 #endif // SKR_FPS2_RENDERER_OPENGL_CUBEMAP_H
47 
skr::fps2::Renderer::OpenGL::Cubemap
manages cubemap texture
Definition: Cubemap.h:20
skr::fps2::Renderer::OpenGL::Cubemap::_id
uint32_t _id
texture id
Definition: Cubemap.h:25
skr::fps2::Renderer::OpenGL::Cubemap::LoadCubemap
bool LoadCubemap()
load cubemap loads texture specified in _faces list
Definition: Cubemap.cpp:28
skr
Definition: AssetPath.h:10
skr::fps2::Renderer::OpenGL::Cubemap::Cubemap
Cubemap()
default constructor
Definition: Cubemap.h:30
skr::fps2::Renderer::OpenGL::Cubemap::_faces
std::vector< std::string > _faces
list of faces
Definition: Cubemap.h:22