Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (22 sloc) 0.51 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#
# Scene.rb
# CtF
#
# Created by Thomas R. Koll on 09.12.10.
# Copyright (c) 2010 ananasblau. All rights reserved.
#

class Scene
  def redraw(tick)
    r = rand / 10.0
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
    glClearColor(r,r,r,0)

    glColor3f(1, 1, 1)
    glBegin(GL_LINE_STRIP)
      glVertex3f( -0.9, -0.7, 0.0);
      glVertex3f( 0.9, -0.7, 0.0);
      glVertex3f( 0.9, 0.9, 0.0);
      glVertex3f( -0.9, 0.9, 0.0);
      glVertex3f( -0.9, -0.7, 0.0);
    glEnd
  end
end
Something went wrong with that request. Please try again.