Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | List of all members
smlt::Viewport Class Reference
Inheritance diagram for smlt::Viewport:
smlt::RefCounted< Viewport > smlt::TwoPhaseConstructed

Public Member Functions

 Viewport (const Viewport &rhs)=default
 
Viewportoperator= (const Viewport &rhs)=default
 
 Viewport (ViewportType type, const Colour &colour=smlt::Colour::BLACK)
 
 Viewport (Ratio x, Ratio y, Ratio width, Ratio height, const Colour &colour=smlt::Colour::BLACK)
 
Ratio x () const
 
Ratio y () const
 
Ratio width () const
 
Ratio height () const
 
void clear (const RenderTarget &target, uint32_t clear_flags)
 
void apply (const RenderTarget &target)
 
uint32_t width_in_pixels (const RenderTarget &target) const
 
uint32_t height_in_pixels (const RenderTarget &target) const
 
ViewportType type () const
 
void set_colour (const smlt::Colour &colour)
 
- Public Member Functions inherited from smlt::TwoPhaseConstructed
virtual bool init ()
 
virtual void clean_up ()
 

Additional Inherited Members

- Public Types inherited from smlt::RefCounted< Viewport >
typedef std::shared_ptr< Viewportptr
 
typedef std::weak_ptr< Viewportwptr
 
- Static Public Member Functions inherited from smlt::RefCounted< Viewport >
static RefCounted< Viewport >::ptr create (Args &&... args)
 
static RefCounted< Viewport >::ptr create ()
 
- Protected Member Functions inherited from smlt::RefCounted< Viewport >
 RefCounted (Args &&...)
 

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