removed edgecode from the game engines RAS_Polygon class since its not used
authorCampbell Barton <ideasman42@gmail.com>
Sun, 22 Mar 2009 17:03:55 +0000 (17:03 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 22 Mar 2009 17:03:55 +0000 (17:03 +0000)
source/gameengine/Rasterizer/RAS_Polygon.cpp
source/gameengine/Rasterizer/RAS_Polygon.h

index 50331d7a664013ffea609ceda0dd73a3d763d072..66b14bb60b0c078ed584825384608d24f325aeac 100644 (file)
@@ -39,7 +39,7 @@ RAS_Polygon::RAS_Polygon(RAS_MaterialBucket* bucket, RAS_DisplayArray *darray, i
        m_offset[0]= m_offset[1]= m_offset[2]= m_offset[3]= 0;
        m_numvert = numvert;
 
-       m_edgecode = 255;
+//     m_edgecode = 255;
        m_polyflags = 0;
 }
 
@@ -63,6 +63,7 @@ int RAS_Polygon::GetVertexOffset(int i)
        return m_offset[i];
 }
 
+/*
 int RAS_Polygon::GetEdgeCode()
 {
        return m_edgecode;
@@ -71,7 +72,7 @@ int RAS_Polygon::GetEdgeCode()
 void RAS_Polygon::SetEdgeCode(int edgecode)
 {
        m_edgecode = edgecode;
-}
+}*/
 
        
 bool RAS_Polygon::IsVisible()
index 18526ba45f799ce9a409570c25239f90c8ef5e30..224a7e0eed26877f69ffe8974655ec22ea939fa1 100644 (file)
@@ -46,9 +46,13 @@ 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,
@@ -65,8 +69,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);