class Prism::Systems::EntityRenderer
- Prism::Systems::EntityRenderer
- Reference
- Object
Defined in:
prism/stdlib/systems/render_system/entity_renderer.crConstructors
Instance Method Summary
- #disable_culling
- #disable_wires
- #enable_culling
- #enable_wires
-
#prepare_instance(entity : Crash::Entity)
Prepares the shader for rendering the actual entity
-
#prepare_textured_model(textured_model : Prism::TexturedModel)
Prepares the shader before rendering a batch of
TexturedModel
s -
#render(entities : Hash(Prism::TexturedModel, Array(Crash::Entity)))
Renders batches of
TexturedModel
s at a time for increased performance -
#unbind_textured_model
Cleans up after rendering a batch of
TexturedModel
s
Constructor Detail
Instance Method Detail
def prepare_textured_model(textured_model : Prism::TexturedModel)
#
Prepares the shader before rendering a batch of TexturedModel
s
def render(entities : Hash(Prism::TexturedModel, Array(Crash::Entity)))
#
Renders batches of TexturedModel
s at a time for increased performance