Advertisement
Guest User

CCGPU - Example code

a guest
Mar 30th, 2012
2,139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. gpuBindOutputBuffer(1)
  2. gpuClearBuffer()
  3.  
  4. glBegin(GL_QUADS)
  5. do
  6.         glColor3f(1, 0, 0)
  7.         glVertex2f(32, 32)
  8.  
  9.         glColor3f(0, 1, 0)
  10.         glVertex2f(96, 32)
  11.  
  12.         glColor3f(0, 0, 1)
  13.         glVertex2f(96, 96)
  14.  
  15.         glColor3f(0, 1, 0)
  16.         glVertex2f(32, 96)
  17. end
  18. glEnd()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement