[PyOpenGL-Users] glDrawPixels
Brought to you by:
mcfletch
From: Jason W. <ny...@gm...> - 2007-08-15 17:29:51
|
Hi I am trying to call glDrawPixels but it doesn't seem to be working. I say: from numpy import arange pixels = arange( float( 1024*768*3 )) for j in range(1024*768*3): pixels[j]=float(1) #Normal opengl setup code etc glDrawPixels(1024,768,GL_RGB,GL_FLOAT,pixels) # I am using a 1D array that will be organised in the right fashion, but IDLE keeps crashing with this line of code |