HoverRace
2.0
|
#include <SdlPictureView.h>
Public Member Functions | |
SdlPictureView (SdlDisplay &disp, Picture &model) | |
virtual | ~SdlPictureView () |
Vec3 | Measure () override |
void | OnModelUpdate (int prop) override |
Called by the view model to indicate that a property has changed. More... | |
void | PrepareRender () override |
void | Render () override |
Public Member Functions inherited from HoverRace::Display::SDL::SdlBoxView< Picture > | |
SdlBoxView (SdlDisplay &disp, Picture &model) | |
virtual | ~SdlBoxView () |
Vec2 | GetScreenPos () const override |
Retrieve the screen-space position, if available. More... | |
Vec2 | GetScreenSize () const override |
Retrieve the screen-space size, if available. More... | |
Public Member Functions inherited from HoverRace::Display::SDL::SdlView< Picture > | |
SdlView (SdlDisplay &display, Picture &model) | |
virtual | ~SdlView () |
Public Member Functions inherited from HoverRace::Display::View | |
virtual | ~View () |
View & | operator= (const View &)=delete |
Private Types | |
using | SUPER = SdlBoxView< Picture > |
Private Attributes | |
std::shared_ptr< SdlTexture > | texture |
bool | textureChanged |
Additional Inherited Members | |
Protected Member Functions inherited from HoverRace::Display::SDL::SdlBoxView< Picture > | |
void | CalcScreenBounds () |
Update the screen-space bounds from the UI-space bounds. More... | |
Protected Attributes inherited from HoverRace::Display::SDL::SdlBoxView< Picture > | |
Vec2 | screenPos |
Vec2 | screenSize |
Protected Attributes inherited from HoverRace::Display::SDL::SdlView< Picture > | |
SdlDisplay & | display |
Picture & | model |
|
private |
HoverRace::Display::SDL::SdlPictureView::SdlPictureView | ( | SdlDisplay & | disp, |
Picture & | model | ||
) |
|
inlinevirtual |
|
overridevirtual |
Implements HoverRace::Display::View.
|
overridevirtual |
Called by the view model to indicate that a property has changed.
The view can use this to decide if view-specific resources need to be reloaded.
prop | The model-specific ID of the property that changed. |
Reimplemented from HoverRace::Display::View.
|
overridevirtual |
Implements HoverRace::Display::View.
|
overridevirtual |
Implements HoverRace::Display::View.
|
private |
|
private |