GPU Splatting  1.0
A deffered render that draws the surface of point cloud data.
GLTexture.h
1 #pragma once
2 #include <GL/glew.h>
3 //#include <FreeImage.h>
4 
5 namespace GL
6 {
8  class GLTexture
9  {
10  public:
12  GLTexture();
13 
15  ~GLTexture();
16 
17  void bind(int texture_slot) const;
18  bool loadFromFile(const char* path, bool swapRB);
19  void fromHandle(GLuint handle);
20  private:
21  GLuint handle;
22  };
23 }
void bind(int texture_slot) const
Binds the texture to the given slot.
Definition: GLTexture.cpp:20
GLTexture()
Creates a new texture without any image data.
Definition: GLTexture.cpp:4
bool loadFromFile(const char *path, bool swapRB)
Loads the image and stores it in this texture.
Definition: GLTexture.cpp:32
void fromHandle(GLuint handle)
Sets the handle of the texture.
Definition: GLTexture.cpp:27
~GLTexture()
Delets the texture.
Definition: GLTexture.cpp:15
Definition: GLProgram.h:11
Encapsules an OpenGL texture for easier use.
Definition: GLTexture.h:8