class Prism::Systems::EntityRenderer

Defined in:

prism/stdlib/systems/render_system/entity_renderer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(shader : Prism::EntityShader) #

[View source]

Instance Method Detail

def disable_culling #

[View source]
def disable_wires #

[View source]
def enable_culling #

[View source]
def enable_wires #

[View source]
def prepare_instance(entity : Crash::Entity) #

Prepares the shader for rendering the actual entity


[View source]
def prepare_textured_model(textured_model : Prism::TexturedModel) #

Prepares the shader before rendering a batch of TexturedModels


[View source]
def render(entities : Hash(Prism::TexturedModel, Array(Crash::Entity))) #

Renders batches of TexturedModels at a time for increased performance


[View source]
def unbind_textured_model #

Cleans up after rendering a batch of TexturedModels


[View source]