Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 0.51 kB
#
# 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
Jump to Line
Something went wrong with that request. Please try again.