diff options
Diffstat (limited to 'lib/gltexture.cc')
-rw-r--r-- | lib/gltexture.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gltexture.cc b/lib/gltexture.cc index accdb3a..19fc9bf 100644 --- a/lib/gltexture.cc +++ b/lib/gltexture.cc @@ -55,7 +55,7 @@ mogltk::texture::texture(int w, int h, bool plane) throw (GeneralException) : wi #endif } -mogltk::texture::texture(Handle * h, bool plane, texture_type ttype) throw (GeneralException) : +mogltk::texture::texture(Handle * h, bool plane) throw (GeneralException) : texture_allocated(false), planar(plane), tainted(true) { SDL_Surface * temp; @@ -149,6 +149,10 @@ mogltk::texture::~texture() { #endif } +Uint32 * mogltk::texture::GetPixels() { + return (Uint32 *) surface->pixels; +} + SDL_Surface * mogltk::texture::GetSurface() { return surface; } |