#include <targetable.h>
Public Member Functions | |
RenderableTargetingEntity (TargetingEntity &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 | |
TargetingEntity & | m_targets |
RenderablePointVector | m_target_lines |
Definition at line 257 of file targetable.h.
RenderableTargetingEntity::RenderableTargetingEntity | ( | TargetingEntity & | targets | ) | [inline] |
Definition at line 264 of file targetable.h.
void RenderableTargetingEntity::compile | ( | const VolumeTest & | volume, | |
const Vector3 & | world_position | |||
) | const [inline] |
Definition at line 268 of file targetable.h.
References m_target_lines, m_targets, TargetingEntity::size(), and TargetingEntity_forEach().
Referenced by render().
void RenderableTargetingEntity::render | ( | Renderer & | renderer, | |
const VolumeTest & | volume, | |||
const Vector3 & | world_position | |||
) | const [inline] |
Definition at line 274 of file targetable.h.
References Renderer::addRenderable(), compile(), TargetingEntity::empty(), m_target_lines, and m_targets.
Shader* RenderableTargetingEntity::m_state [static] |
Definition at line 262 of file targetable.h.
RenderablePointVector RenderableTargetingEntity::m_target_lines [mutable, private] |
Definition at line 260 of file targetable.h.
Definition at line 259 of file targetable.h.