#include <targetable.h>
Public Member Functions | |
RenderableTargetingEntities (const TargetingEntities &targets) | |
void | compile (const VolumeTest &volume, const Vector3 &world_position) const |
void | render (Renderer &renderer, const VolumeTest &volume, const Vector3 &world_position) const |
Static Public Attributes | |
static Shader * | m_state |
Private Attributes | |
const TargetingEntities & | m_targets |
RenderablePointVector | m_target_lines |
Definition at line 285 of file targetable.h.
RenderableTargetingEntities::RenderableTargetingEntities | ( | const TargetingEntities & | targets | ) | [inline] |
Definition at line 292 of file targetable.h.
void RenderableTargetingEntities::compile | ( | const VolumeTest & | volume, | |
const Vector3 & | world_position | |||
) | const [inline] |
Definition at line 296 of file targetable.h.
References m_target_lines, m_targets, and TargetingEntities_forEach().
Referenced by render().
void RenderableTargetingEntities::render | ( | Renderer & | renderer, | |
const VolumeTest & | volume, | |||
const Vector3 & | world_position | |||
) | const [inline] |
Definition at line 301 of file targetable.h.
References Renderer::addRenderable(), compile(), m_target_lines, and m_targets.
Referenced by TargetableInstance::render().
Shader* RenderableTargetingEntities::m_state [static] |
Definition at line 290 of file targetable.h.
RenderablePointVector RenderableTargetingEntities::m_target_lines [mutable, private] |
Definition at line 288 of file targetable.h.
const TargetingEntities& RenderableTargetingEntities::m_targets [private] |
Definition at line 287 of file targetable.h.