Game Development Community

Dgl/gDynamicTexture.cc

by Gregory "Centove" McLean · in Torque Game Engine · 04/14/2005 (4:54 pm) · 3 replies

GCC choaks on this file:

dgl/gDynamicTexture.cc: In member function 'void
DynamicTexture::setUpdateRect(const RectI&)':
dgl/gDynamicTexture.cc:97: error: 'GBitmap::BitmapFormat' is not an aggregate
type
Index: engine/dgl/gDynamicTexture.cc
===================================================================
RCS file: /cvs/torque/torque/engine/dgl/gDynamicTexture.cc,v
retrieving revision 1.1
diff -u -r1.1 gDynamicTexture.cc
--- engine/dgl/gDynamicTexture.cc       2005/03/19 14:05:25     1.1
+++ engine/dgl/gDynamicTexture.cc       2005/04/10 17:07:01
@@ -94,7 +94,7 @@
    // Check to see if this is being called as part of the constructor
    if( mTextureHandle == NULL )
    {
-      GBitmap *bmp = new GBitmap( newRect.extent.x, newRect.extent.y, false, GBitmap::BitmapFormat::RGBA );
+      GBitmap *bmp = new GBitmap( newRect.extent.x, newRect.extent.y, false, GBitmap::RGBA );
       mTextureHandle = new TextureHandle( NULL, bmp, BitmapKeepTexture, true );    }

@@ -132,7 +132,7 @@
          delete mTextureHandle;
          mTextureHandle = NULL;

-         GBitmap *bmp = new GBitmap( updateRect.extent.x, updateRect.extent.y, false, GBitmap::BitmapFormat::RGBA );
+         GBitmap *bmp = new GBitmap( updateRect.extent.x, updateRect.extent.y, false, GBitmap::RGBA );
          mTextureHandle = new TextureHandle( NULL, bmp, BitmapKeepTexture, true );
       }
    }

Fixes it to compile.

#1
04/14/2005 (6:35 pm)
Fixed, thanks!
#2
04/15/2005 (8:07 am)
@Gregory
Great job on finding these bugs, but when you post a fix could you please state what version of the engine you are working off of. Thanks again for the fixes, even those these last 2 only seem to apply to 1.4.
#3
04/15/2005 (4:48 pm)
@Todd, if I can remember :) I'm sorting though the changes we have and figuring out which would be accepted and which are just the anal rententivness warnings/errors and most likely to be ignored.