summaryrefslogtreecommitdiff
path: root/lib/gltexture.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-02-12 00:29:15 +0000
committerpixel <pixel>2003-02-12 00:29:15 +0000
commit1ca09259a5195eda52223172e35c58f24383329d (patch)
tree1cc85f843792a2e05eeec687f810ae36fd9a9a17 /lib/gltexture.cc
parent28f5202ab892c2031f2ffb7fd6ad22171b01d139 (diff)
sprites finished... have to test 'em now...
Diffstat (limited to 'lib/gltexture.cc')
-rw-r--r--lib/gltexture.cc6
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;
}