parameters: (self, dt, dx, numtracers, init)
docstring: Initialize position, color and velocity arrays we also make Vertex
          Buffer Objects for the position and color arrays
docstring_summary: Initialize position, color and velocity arrays we also make Vertex
          Buffer Objects for the position and color arrays
docstring_tokens: Initialize position color and velocity arrays we also make Vertex Buffer Objects for the position and color arrays
function: def init_wave(self, dt, dx, numtracers, init):
          """Initialize position, color and velocity arrays we also make Vertex
          Buffer Objects for the position and color arrays"""
  
          pos, col, self.num = initialize.wave_np(self.wtype, dt, dx, numtracers)
          self.set_params()
          
          #print timings
  
          if init:
              #create the Vertex Buffer Objects
              from OpenGL.arrays import vbo 
              self.pos_vbo = vbo.VBO(data=pos, usage=GL_DYNAMIC_DRAW, target=GL_ARRAY_BUFFER)
              self.pos_vbo.bind()
              self.col_vbo = vbo.VBO(data=col, usage=GL_DYNAMIC_DRAW, target=GL_ARRAY_BUFFER)
              self.col_vbo.bind()
          else:
              self.pos_vbo.bind()
              self.pos_vbo.set_array(pos)
              self.pos_vbo.copy_data()
              self.col_vbo.bind()
              self.col_vbo.set_array(col)
              self.col_vbo.copy_data()
              self.cle.set_params(self.params)
              self.cle.reloadData()
function_tokens: def init_wave ( self , dt , dx , numtracers , init ) : pos , col , self . num = initialize . wave_np ( self . wtype , dt , dx , numtracers ) self . set_params ( ) #print timings if init : #create the Vertex Buffer Objects from OpenGL . arrays import vbo self . pos_vbo = vbo . VBO ( data = pos , usage = GL_DYNAMIC_DRAW , target = GL_ARRAY_BUFFER ) self . pos_vbo . bind ( ) self . col_vbo = vbo . VBO ( data = col , usage = GL_DYNAMIC_DRAW , target = GL_ARRAY_BUFFER ) self . col_vbo . bind ( ) else : self . pos_vbo . bind ( ) self . pos_vbo . set_array ( pos ) self . pos_vbo . copy_data ( ) self . col_vbo . bind ( ) self . col_vbo . set_array ( col ) self . col_vbo . copy_data ( ) self . cle . set_params ( self . params ) self . cle . reloadData ( )