OpenGLContext.scenegraph.arraygeometry
index
p:\openglcontext\scenegraph\arraygeometry.py

Vertex-array-based geometry node for faces, lines and points

 
Modules
            
OpenGLContext.scenegraph.polygonsort
OpenGLContext.triangleutilities

 
Classes
            
ArrayGeometry

 
class ArrayGeometry
      Vertex-array-based geometry node for faces, lines and points
 
The ArrayGeometry class allows for rendering various
types of geometry using the vertex-array extensions of
OpenGL 1.1 and above.
 
Attributes of note:
        vertexArray -- array of vertex coordinates to draw
        colorArray = None -- optional array of vertex colors
        normalArray = None -- optional array of normals
        textureCoordinateArray = None -- optional array of texture coordinates
        objectType= GL_TRIANGLES -- type of primitive, see glDrawArrays,
                Allowed values are:
                GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES,
                GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN,     GL_TRIANGLES, GL_QUAD_STRIP,
                GL_QUADS, and GL_POLYGON 
        startIndex = 0 -- the index from which to draw, see glDrawArrays
        count = -1 -- by default, render the whole array (len(vertexArray)), see glDrawArrays
        ccw = 1 -- determines winding direction
        solid = 1 -- whether backspace culling should be enabled
 
  
__init__(self, vertexArray, colorArray=None, normalArray=None, textureCoordinateArray=None, objectType=4, startIndex=0, count=-1, ccw=1, solid=1)
draw(self)
Does the actual rendering after the arrays are set up
drawTransparent(self)
Same as draw, but called when a transparent render is required
render(self, visible=1, lit=1, textured=1, transparent=0)

 
Data
             __file__ = r'p:\OpenGLContext\scenegraph\arraygeometry.pyc'
__name__ = 'OpenGLContext.scenegraph.arraygeometry'