Changeset 1360 for trunk/pysoy/include

Show
Ignore:
Timestamp:
09/11/08 01:39:22 (3 months ago)
Author:
ArcRiley
Message:

Ticket #963 :

  • moved the temporary arrays to local variables
  • added structs for convience
  • folded create buffer code into _render (slightly faster)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pysoy/include/soy.models.pxd

    r1358 r1360  
    4949# 
    5050############################################################################## 
     51 
     52# Structs 
     53 
     54 
     55cdef : 
     56  struct Line : 
     57    unsigned char a 
     58    unsigned char b 
     59 
     60  struct Face : 
     61    unsigned short a 
     62    unsigned short b 
     63    unsigned short c 
     64 
     65  struct VertPC : 
     66    float px 
     67    float py 
     68    float pz 
     69    float cr 
     70    float cg 
     71    float cb 
    5172 
    5273 
     
    101122 
    102123cdef class Axis (Model) : 
    103   cdef gl.GLuint                    _vertexBuffer# VBO ids 
    104   cdef gl.GLuint                    _elementBuffer 
    105   cdef float                        _axis[12] # contains both vertex and color data 
    106   cdef char                         _elements[2] # contains infomation to render the above vertex data in order 
    107   cdef void                         _createBuffer  ( self ) 
     124  cdef gl.GLuint                    _vertBuffer 
     125  cdef gl.GLuint                    _elmtBuffer 
    108126   
    109127 
    110