diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2009-04-29 14:06:38 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2009-04-29 14:06:38 +0400 |
commit | f004c36e41023b8a4ffa386226589b19c92eb971 (patch) | |
tree | 17921d31c7d6587c2c03861ec4f9edaa21b1707b /source/gameengine/Rasterizer/RAS_IPolygonMaterial.h | |
parent | 2d78dcfb610381a5056eed5f59dd57aa50e444c3 (diff) |
BGE: speed up mesh conversion by avoiding allocation/deallocation of material object on each face. The speed up is minor on optimized builds but considerable on less optimized builds, good for debugging large scene.
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_IPolygonMaterial.h')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_IPolygonMaterial.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h index dcd8b53402e..35652f528b9 100644 --- a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h +++ b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h @@ -100,6 +100,7 @@ public: SHADOW =8192 }; + RAS_IPolyMaterial::RAS_IPolyMaterial(); RAS_IPolyMaterial(const STR_String& texname, const STR_String& matname, int materialindex, @@ -111,6 +112,17 @@ public: bool alpha, bool zsort, int lightlayer); + void Initialize(const STR_String& texname, + const STR_String& matname, + int materialindex, + int tile, + int tilexrep, + int tileyrep, + int mode, + int transp, + bool alpha, + bool zsort, + int lightlayer); virtual ~RAS_IPolyMaterial() {}; /** @@ -151,7 +163,6 @@ public: virtual void GetMaterialRGBAColor(unsigned char *rgba) const; virtual bool UsesLighting(RAS_IRasterizer *rasty) const; virtual bool UsesObjectColor() const; - /* * PreCalculate texture gen */ |