HoverRace  2.0
Public Member Functions | Protected Attributes | Private Types | List of all members
HoverRace::Display::SDL::SdlView< T > Class Template Reference

Base class for views that use SDL for rendering. More...

#include <SdlView.h>

+ Inheritance diagram for HoverRace::Display::SDL::SdlView< T >:

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...
 
Viewoperator= (const View &)=delete
 
virtual void PrepareRender ()=0
 
virtual void Render ()=0
 

Protected Attributes

SdlDisplaydisplay
 
T & model
 

Private Types

using SUPER = View
 

Detailed Description

template<class T>
class HoverRace::Display::SDL::SdlView< T >

Base class for views that use SDL for rendering.

Template Parameters
TThe ViewModel used by this view.
Author
Michael Imamura

Member Typedef Documentation

template<class T>
using HoverRace::Display::SDL::SdlView< T >::SUPER = View
private

Constructor & Destructor Documentation

template<class T>
HoverRace::Display::SDL::SdlView< T >::SdlView ( SdlDisplay display,
T &  model 
)
inline
template<class T>
virtual HoverRace::Display::SDL::SdlView< T >::~SdlView ( )
inlinevirtual

Member Data Documentation

template<class T>
SdlDisplay& HoverRace::Display::SDL::SdlView< T >::display
protected
template<class T>
T& HoverRace::Display::SDL::SdlView< T >::model
protected

The documentation for this class was generated from the following file: