Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbladez committed Nov 29, 2010
1 parent bf21479 commit 3177542
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions using_nehe_lessons/lesson08.rb
Expand Up @@ -38,17 +38,17 @@ def initialize_light
def initialize_textures
gl do
nearest = Texture.new(self)
glBindTexture(GL_TEXTURE_2D, nearest.info.tex_name); # see lesson 1
glBindTexture(GL_TEXTURE_2D, nearest.info.tex_name) # see lesson 1
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST) # see nehe07
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST) # see nehe07

linear = Texture.new(self)
glBindTexture(GL_TEXTURE_2D, linear.info.tex_name);
glBindTexture(GL_TEXTURE_2D, linear.info.tex_name)
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR) # see nehe06
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR)

minimap = Texture.new(self)
glBindTexture(GL_TEXTURE_2D, minimap.info.tex_name);
glBindTexture(GL_TEXTURE_2D, minimap.info.tex_name)
texture = glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_FLOAT) # see nehe07
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR)

Expand Down

0 comments on commit 3177542

Please sign in to comment.