VisPro  1.0
Project of Visualisierung 2
Texture.h
Go to the documentation of this file.
1 #pragma once
2 
7 #include "glew.h"
8 #include <string>
9 
10 class Texture {
11 public:
12  Texture(const std::string& path);
13  ~Texture();
14 
17  void bind(int unit);
18 
19 private:
20  unsigned char* loadFile(const char* path);
21  GLuint handle;
22  unsigned char* data;
23  int width, height;
24 
25 };
Definition: Texture.h:10
void bind(int unit)
Definition: Texture.cpp:58