Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/shattered_view/ogrerb/rgb.rb,
lib/shattered_view/ogrerb/vector.rb
Instance Method Summary collapse
-
#rgb(r, g, b) ⇒ Object
rgb(0,0,0) is a shorthand for creating colours in Ogre.
-
#v(x, y, z) ⇒ Object
This is a shorthand to define vector object coordinates.
Instance Method Details
#rgb(r, g, b) ⇒ Object
rgb(0,0,0) is a shorthand for creating colours in Ogre.
3 4 5 |
# File 'lib/shattered_view/ogrerb/rgb.rb', line 3 def rgb(r,g,b) Ogre::ColourValue.new(r,g,b) end |
#v(x, y, z) ⇒ Object
This is a shorthand to define vector object coordinates.
Creates a vector object at coordinates x,y,z
5 6 7 |
# File 'lib/shattered_view/ogrerb/vector.rb', line 5 def v(x, y, z) Ogre::Vector3.new(x, y, z) end |