From 1ca09259a5195eda52223172e35c58f24383329d Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 12 Feb 2003 00:29:15 +0000 Subject: sprites finished... have to test 'em now... --- lib/gltexture.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/gltexture.cc') 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; } -- cgit v1.2.3