diff options
author | pixel <pixel> | 2003-04-04 15:06:29 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-04-04 15:06:29 +0000 |
commit | feba563611f39efe4f71cf09347d5aa9cd13ada6 (patch) | |
tree | 8081c7ba2946b255e23d82bb69221bc54f0f6381 /lib/texture.cc | |
parent | 986a589d45841832e3655892f65b773193e277af (diff) |
Finished filling
Diffstat (limited to 'lib/texture.cc')
-rw-r--r-- | lib/texture.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/texture.cc b/lib/texture.cc index 80853ca..bea33a4 100644 --- a/lib/texture.cc +++ b/lib/texture.cc @@ -39,6 +39,8 @@ mogltk::texture::texture(int w, int h, bool plane) throw (GeneralException) : wi throw GeneralException(_("Can't create RGB Surface")); } + SDL_FillRect(surface, 0, 0); + #ifdef TRACE_TEXTURES next = 0; prev = footer; @@ -154,6 +156,10 @@ SDL_Surface * mogltk::texture::GetSurface() { return surface; } +SDL_PixelFormat * mogltk::texture::GetFormat() { + return surface->format; +} + void mogltk::texture::Generate() { if (texture_allocated) { glDeleteTextures(1, &tex); |