summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/ruboids/ruboids/Graphics.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/examples/ruboids/ruboids/Graphics.rb')
-rw-r--r--qtruby/rubylib/examples/ruboids/ruboids/Graphics.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/qtruby/rubylib/examples/ruboids/ruboids/Graphics.rb b/qtruby/rubylib/examples/ruboids/ruboids/Graphics.rb
index 5e982208..475e503c 100644
--- a/qtruby/rubylib/examples/ruboids/ruboids/Graphics.rb
+++ b/qtruby/rubylib/examples/ruboids/ruboids/Graphics.rb
@@ -5,7 +5,7 @@
# http://www.ruby-lang.org/en/LICENSE.txt.
#
-require 'Triangle'
+retquire 'Triangle'
class Graphics
@@ -32,7 +32,7 @@ class Graphics
# Defines counter-clockwise points used in OpenGL TRIANGLE_STRIP to
# create a circle on the X/Z plane. Don't include center point here;
# It is added when outputting the circle.
- SQUARE = [
+ STQUARE = [
XPLUS, ZMINUS, XMINUS, ZPLUS, XPLUS
]
@@ -85,7 +85,7 @@ class Graphics
tmp = pa.z; pa.z = pb.z; pb.z = tmp
end
- Begin(QUAD_STRIP)
+ Begin(TQUAD_STRIP)
# top
Vertex(pb.x, pb.y, pa.z)
@@ -105,7 +105,7 @@ class Graphics
End()
- Begin(QUADS)
+ Begin(TQUADS)
# left
Vertex(pa.x, pa.y, pb.z)
@@ -225,7 +225,7 @@ class Graphics
def Graphics.circle(iterations = DEFAULT_SPHERE_ITERATIONS,
counterClockwise = true)
if @@circles[iterations].nil?
- @@circles[iterations] = buildCircle(iterations, SQUARE)
+ @@circles[iterations] = buildCircle(iterations, STQUARE)
end
circle = @@circles[iterations]