SDL view for BaseContainer.
More...
#include <SdlBaseContainerView.h>
SDL view for BaseContainer.
- Author
- Michael Imamura
HoverRace::Display::SDL::SdlBaseContainerView::~SdlBaseContainerView |
( |
| ) |
|
|
virtual |
Vec2 HoverRace::Display::SDL::SdlBaseContainerView::GetScreenPos |
( |
| ) |
const |
|
inlineoverridevirtual |
Retrieve the screen-space position, if available.
The availability of this information varies from view to view.
- Returns
- The screen position, or (0, 0) if unavailable..
Reimplemented from HoverRace::Display::View.
Vec2 HoverRace::Display::SDL::SdlBaseContainerView::GetScreenSize |
( |
| ) |
const |
|
inlineoverridevirtual |
Retrieve the screen-space size, if available.
The availability of this information varies from view to view.
- Returns
- The screen size, or (0, 0) if unavailable.
Reimplemented from HoverRace::Display::View.
Vec3 HoverRace::Display::SDL::SdlBaseContainerView::Measure |
( |
| ) |
|
|
overridevirtual |
void HoverRace::Display::SDL::SdlBaseContainerView::OnModelUpdate |
( |
int |
prop | ) |
|
|
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.
- Parameters
-
prop | The model-specific ID of the property that changed. |
Reimplemented from HoverRace::Display::View.
void HoverRace::Display::SDL::SdlBaseContainerView::PrepareRender |
( |
| ) |
|
|
overridevirtual |
void HoverRace::Display::SDL::SdlBaseContainerView::Render |
( |
| ) |
|
|
overridevirtual |
boost::signals2::scoped_connection HoverRace::Display::SDL::SdlBaseContainerView::displayConfigChangedConn |
|
private |
bool HoverRace::Display::SDL::SdlBaseContainerView::rttChanged |
|
private |
Render-to-texture may need to be re-evaluated.
bool HoverRace::Display::SDL::SdlBaseContainerView::rttSizeChanged |
|
private |
std::unique_ptr<SdlTexture> HoverRace::Display::SDL::SdlBaseContainerView::rttTarget |
|
private |
Vec2 HoverRace::Display::SDL::SdlBaseContainerView::screenPos |
|
private |
Vec2 HoverRace::Display::SDL::SdlBaseContainerView::screenSize |
|
private |
The documentation for this class was generated from the following files: