2 #include "image_loader.h"
8 Image::Image(wxString path)
13 void Image::load(wxString path)
15 ID=loadImage(path, &width, &height, &textureWidth, &textureHeight);
17 tex_coord_x = (float)width/(float)textureWidth;
18 tex_coord_y = (float)height/(float)textureHeight;
21 GLuint* Image::getID()
28 glDeleteTextures (1, ID);