Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (37 sloc) 0.924 kb
#
# Plane.rb
# CtF
#
# Created by Thomas R. Koll on 10.12.10.
# Copyright (c) 2010 ananasblau. All rights reserved.
#
class Plane
# It's an airplane!
def self.draw
# Body
glBegin(GL_QUADS)
glVertex3f( 0.025, -0.01, 0.0);
glVertex3f( 0.025, 0.01, 0.0);
glVertex3f(-0.09, 0.01, 0.0);
glVertex3f(-0.09, -0.01, 0.0);
glVertex3f( 0.025, -0.01, 0.0);
glEnd
# Tail
glBegin(GL_QUADS)
glVertex3f(-0.07, -0.03, 0.0);
glVertex3f(-0.07, 0.03, 0.0);
glVertex3f(-0.08, 0.03, 0.0);
glVertex3f(-0.08, -0.03, 0.0);
glVertex3f(-0.07, -0.03, 0.0);
glEnd
# Main wing
glColor3f(0.5,0.5,0.5)
glBegin(GL_QUADS)
glVertex3f( 0.01, -0.07, 0.0);
glVertex3f( 0.01, 0.07, 0.0);
glVertex3f(-0.02, 0.07, 0.0);
glVertex3f(-0.02, -0.07, 0.0);
glVertex3f( 0.01, -0.07, 0.0);
glEnd
end
end
Jump to Line
Something went wrong with that request. Please try again.