Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-05-26 16:01:08 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-05-26 16:01:08 +0400
commite5cc9abceb5047b934b3ae8c4aac521d7e82fc00 (patch)
treea97e64cfcc8f28541facfb127e64cf851401f1e5 /source/gameengine/Rasterizer/RAS_IPolygonMaterial.h
parent05e76c22b08cd2844b25d9c45b25581da78ee7c9 (diff)
Fix Bug #1309 Disabling Actor leaves Ghost, Dynamic and Rigid Body etc enabled.
Depth sorting for Transparent polygons. Use ZTransp in Material buttons to enable. This will cause an object's polygons to be sorted (back to front for alpha polygons, front to back for solid polygons.)
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_IPolygonMaterial.h')
-rw-r--r--source/gameengine/Rasterizer/RAS_IPolygonMaterial.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h
index 7d10f23068b..93c6d829e85 100644
--- a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h
+++ b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h
@@ -55,7 +55,8 @@ protected:
int m_tile;
int m_tilexrep,m_tileyrep;
int m_drawingmode; // tface->mode
- int m_transparant;
+ bool m_transparant;
+ bool m_zsort;
int m_lightlayer;
bool m_bIsTriangle;
@@ -84,7 +85,8 @@ public:
int tilexrep,
int tileyrep,
int mode,
- int transparant,
+ bool transparant,
+ bool zsort,
int lightlayer,
bool bIsTriangle,
void* clientobject);
@@ -108,11 +110,12 @@ public:
bool Equals(const RAS_IPolyMaterial& lhs) const;
bool Less(const RAS_IPolyMaterial& rhs) const;
- int GetLightLayer();
- bool IsTransparant();
- bool UsesTriangles();
+ int GetLightLayer() const;
+ bool IsTransparant() const;
+ bool IsZSort() const;
+ bool UsesTriangles() const;
unsigned int hash() const;
- int GetDrawingMode();
+ int GetDrawingMode() const;
const STR_String& GetMaterialName() const;
const STR_String& GetTextureName() const;
};