Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Adds explanation for model
Browse files Browse the repository at this point in the history
  • Loading branch information
dorsath committed Feb 6, 2012
1 parent 98b3d6a commit 6c4b04a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/models/cube.rb
@@ -1,4 +1,6 @@
def drawCube size
#glBegin(GL_QUADS) #this is required before the call thus making the choice for wired or solid
#possible
#front
glTexCoord( 0.0, 1.0); glVertex(-size,-size, size)
glTexCoord( 1.0, 1.0); glVertex(-size, size, size)
Expand Down
3 changes: 1 addition & 2 deletions playground
Expand Up @@ -99,9 +99,8 @@ class Fuselage < View
def draw
glMultMatrix(@model.rotation)

glEnable( GL_TEXTURE_2D )

texture = $window.textures.find(:wooden_box)
glEnable( GL_TEXTURE_2D )
glBindTexture( GL_TEXTURE_2D, texture )
glBegin(GL_QUADS)
drawCube(1)
Expand Down

0 comments on commit 6c4b04a

Please sign in to comment.