HoverRace
2.0
|
Base class for views that use SDL for rendering. More...
#include <SdlView.h>
Public Member Functions | |
SdlView (SdlDisplay &display, T &model) | |
virtual | ~SdlView () |
Public Member Functions inherited from HoverRace::Display::View | |
virtual | ~View () |
virtual Vec2 | GetScreenPos () const |
Retrieve the screen-space position, if available. More... | |
virtual Vec2 | GetScreenSize () const |
Retrieve the screen-space size, if available. More... | |
virtual Vec3 | Measure ()=0 |
virtual void | OnModelUpdate (int prop) |
Called by the view model to indicate that a property has changed. More... | |
View & | operator= (const View &)=delete |
virtual void | PrepareRender ()=0 |
virtual void | Render ()=0 |
Protected Attributes | |
SdlDisplay & | display |
T & | model |
Private Types | |
using | SUPER = View |
Base class for views that use SDL for rendering.
T | The ViewModel used by this view. |
|
private |
|
inline |
|
inlinevirtual |
|
protected |
|
protected |