Module: Moon::RenderPrimitive::Renderable

Included in:
Moon::RenderContext
Defined in:
lib/moon/packages/render_primitives/renderable.rb

Instance Method Summary collapse

Instance Method Details

#render(x = 0, y = 0, z = 0, options = {}) ⇒ Object

Parameters:


25
26
27
# File 'lib/moon/packages/render_primitives/renderable.rb', line 25

def render(x = 0, y = 0, z = 0, options = {})
  render_abs(x, y, z, options) if render?
end

#render?Boolean

Returns should this render?.

Returns:

  • (Boolean)

    should this render?


6
7
8
# File 'lib/moon/packages/render_primitives/renderable.rb', line 6

def render?
  true
end