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:
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_Polygon.h')
-rw-r--r--source/gameengine/Rasterizer/RAS_Polygon.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/source/gameengine/Rasterizer/RAS_Polygon.h b/source/gameengine/Rasterizer/RAS_Polygon.h
index 18526ba45f7..41eaa6bdd4a 100644
--- a/source/gameengine/Rasterizer/RAS_Polygon.h
+++ b/source/gameengine/Rasterizer/RAS_Polygon.h
@@ -46,13 +46,18 @@ class RAS_Polygon
unsigned short m_numvert;
/* flags */
+#if 1
+ unsigned short m_polyflags;
+#else
unsigned char m_edgecode;
unsigned char m_polyflags;
-
+#endif
+
public:
enum {
VISIBLE = 1,
- COLLIDER = 2
+ COLLIDER = 2,
+ TWOSIDE = 4
};
RAS_Polygon(RAS_MaterialBucket* bucket, RAS_DisplayArray* darray, int numvert);
@@ -65,8 +70,9 @@ public:
int GetVertexOffset(int i);
// each bit is for a visible edge, starting with bit 1 for the first edge, bit 2 for second etc.
- int GetEdgeCode();
- void SetEdgeCode(int edgecode);
+ // - Not used yet!
+/* int GetEdgeCode();
+ void SetEdgeCode(int edgecode); */
bool IsVisible();
void SetVisible(bool visible);
@@ -74,6 +80,9 @@ public:
bool IsCollider();
void SetCollider(bool collider);
+ bool IsTwoside();
+ void SetTwoside(bool twoside);
+
RAS_MaterialBucket* GetMaterial();
RAS_DisplayArray* GetDisplayArray();
};