#include <ckviewable.h>
Public Member Functions | |
CkFixedViewable (CkView *v_) | |
Create a new CkFixedViewable showing this texture. | |
~CkFixedViewable () | |
virtual bool | shouldRender (const CkViewpoint &univ2screen, const CkView &oldView) |
Return true if this object needs to be redrawn, false if oldView is acceptable from the new viewpoint. | |
virtual CkView * | renderView (const CkViewpoint &univ2screen) |
Draw this object from this point of view, and return the resulting image (or NULL if none is appropriate). | |
Private Attributes | |
CkView * | v |
Definition at line 278 of file ckviewable.h.
CkFixedViewable::CkFixedViewable | ( | CkView * | v_ | ) | [inline] |
Create a new CkFixedViewable showing this texture.
Definition at line 284 of file ckviewable.h.
References v.
CkFixedViewable::~CkFixedViewable | ( | ) | [inline] |
virtual bool CkFixedViewable::shouldRender | ( | const CkViewpoint & | univ2screen, | |
const CkView & | oldView | |||
) | [inline, virtual] |
Return true if this object needs to be redrawn, false if oldView is acceptable from the new viewpoint.
oldView is always a CkView returned from a previous call to "render".
Implements CkViewable.
Definition at line 288 of file ckviewable.h.
virtual CkView* CkFixedViewable::renderView | ( | const CkViewpoint & | univ2screen | ) | [inline, virtual] |
Draw this object from this point of view, and return the resulting image (or NULL if none is appropriate).
The output CkView will be unref()'d exactly once after each call to render.
Implements CkViewable.
Definition at line 293 of file ckviewable.h.
References v.
CkView* CkFixedViewable::v [private] |
Definition at line 279 of file ckviewable.h.
Referenced by CkFixedViewable(), renderView(), and ~CkFixedViewable().