General fixes
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#include "Base.h"
|
||||
|
||||
|
||||
//#ifndef TEXTURE_HANDLER
|
||||
//#define TEXTURE_HANDLER
|
||||
#ifndef TEXTURE_HANDLER
|
||||
#define TEXTURE_HANDLER
|
||||
class TextureHandler
|
||||
{
|
||||
private:
|
||||
@@ -39,6 +39,7 @@ class TextureHandler
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 16, 16, 0, GL_RGB, GL_UNSIGNED_BYTE, imageData);
|
||||
|
||||
|
||||
imageData1 = loadTexture("data/img/oak.png");
|
||||
glGenTextures(1, &textures1);
|
||||
glBindTexture(GL_TEXTURE_2D, textures1);
|
||||
@@ -67,4 +68,4 @@ class TextureHandler
|
||||
}
|
||||
};
|
||||
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user