animated texture

This commit is contained in:
Eduardo Bart
2011-05-12 20:24:57 -03:00
parent c6753747fb
commit 42eae9afd8
32 changed files with 289 additions and 146 deletions

View File

@@ -26,7 +26,6 @@
#include <graphics/texture.h>
#include <GL/gl.h>
#include <GL/glext.h>
Texture::Texture(int width, int height, int components, uchar *pixels)
{
@@ -85,3 +84,4 @@ uchar *Texture::getPixels()
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
return pixels;
}