~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/gameengine/Rasterizer/RAS_Polygon.cpp

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#endif
35
35
 
36
36
#include "RAS_Polygon.h"
37
 
#include "RAS_MeshObject.h" /* only for GetVertexOffsetAbs */
38
37
 
39
38
RAS_Polygon::RAS_Polygon(RAS_MaterialBucket* bucket, RAS_DisplayArray *darray, int numvert)
40
39
{
67
66
        return m_offset[i];
68
67
}
69
68
 
70
 
int RAS_Polygon::GetVertexOffsetAbs(RAS_MeshObject *mesh, int i)
71
 
{
72
 
        /* hack that only works because there can only ever be 2 different
73
 
         * GetDisplayArray's per mesh. if this uses a different display array to the first
74
 
         * then its indices are offset.
75
 
         * if support for edges is added back this would need to be changed. */
76
 
        RAS_DisplayArray* darray= mesh->GetPolygon(0)->GetDisplayArray();
77
 
        
78
 
        if (m_darray != darray)
79
 
                return m_offset[i] + darray->m_vertex.size();
80
 
        
81
 
        return m_offset[i];
82
 
}
83
 
 
84
69
/*
85
70
int RAS_Polygon::GetEdgeCode()
86
71
{