Logo Search packages:      
Sourcecode: python-gtkglext1 version File versions  Download package

def coolwave::CoolWave::__draw_wireframe (   self,
  gridSize 
) [private]
Use the vertex data to render the
waveform in 3D space.

Definition at line 136 of file coolwave.py.

                                         :
        ''' Use the vertex data to render the
        waveform in 3D space.
        '''
        glColor3f(1.0, 1.0, 1.0)
        for i in xrange(0, gridSize):
            glBegin(GL_LINE_STRIP)
            for j in xrange(0, gridSize): glVertex3f(float(i), float(j), self.__posit[i][j])
            glEnd()

        for i in xrange(0, gridSize):
            glBegin(GL_LINE_STRIP)
            for j in xrange(0, gridSize): glVertex3f(float(j), float(i), self.__posit[j][i])
            glEnd()


Generated by  Doxygen 1.6.0   Back to index