Method: Shattered::View::ClassMethods#mesh

Defined in:
lib/shattered_view/shattered_view.rb

#mesh(name, options = {}) ⇒ Object

Meshes are the foundation for your world.

They tie in to Ogre’s .mesh file format, and display a 3d object onto the screen.

class DirtyRubyView
  mesh "dirty_ruby", :position => v(0,0,1)
end


25
26
27
# File 'lib/shattered_view/shattered_view.rb', line 25

def mesh(name, options = {})
	before_init_call :dsl_create, :mesh, name, options
end