Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
ddstexture.h
1 #pragma once
2 #include <string>
3 
4 #include <GL/glew.h>
5 
6 
7 namespace glow {
8  class Texture;
9 }
10 
11 
13 {
14 public:
15  static bool loadImage2d(glow::Texture * texture, std::string path);
16 
17  static bool loadImageCube(glow::Texture * texture, std::string pathXp, std::string pathXn,
18  std::string pathYp, std::string pathYn, std::string pathZp, std::string pathZn);
19 
20 private:
21  static bool loadImage2d(glow::Texture * texture, std::string path, GLenum target);
22 
23  const static int FOURCC_DXT1 = 0x31545844;
24  const static int FOURCC_DXT2 = 0x32545844;
25  const static int FOURCC_DXT3 = 0x33545844;
26  const static int FOURCC_DXT4 = 0x34545844;
27  const static int FOURCC_DXT5 = 0x35545844;
28 };
29 
Definition: ddstexture.h:12