Base class for all render targets (window, image, ...)
More...
#include <RenderTarget.hpp>
|
virtual | ~RenderTarget () |
| Destructor.
|
|
void | Clear (const Color &FillColor=Color(0, 0, 0)) |
| Clear the entire target with a single color.
|
|
virtual void | Draw (const Drawable &Object) |
| Draw something into the target.
|
|
virtual unsigned int | GetWidth () const =0 |
| Get the width of the rendering region of the target.
|
|
virtual unsigned int | GetHeight () const =0 |
| Get the height of the rendering region of the target.
|
|
void | SetView (const View &NewView) |
| Change the current active view.
|
|
const View & | GetView () const |
| Get the current view.
|
|
View & | GetDefaultView () |
| Get the default view of the window for read / write.
|
|
void | PreserveOpenGLStates (bool Preserve) |
| Tell SFML to preserve external OpenGL states, at the expense of more CPU charge.
|
|
|
| RenderTarget () |
| Default constructor.
|
|
void | Initialize () |
| Called by the derived class when it's ready to be initialized.
|
|
Base class for all render targets (window, image, ...)
Definition at line 43 of file RenderTarget.hpp.
virtual sf::RenderTarget::~RenderTarget |
( |
| ) |
|
|
virtual |
sf::RenderTarget::RenderTarget |
( |
| ) |
|
|
protected |
void sf::RenderTarget::Clear |
( |
const Color & |
FillColor = Color(0, 0, 0) | ) |
|
Clear the entire target with a single color.
- Parameters
-
FillColor | : Color to use to clear the render target |
virtual void sf::RenderTarget::Draw |
( |
const Drawable & |
Object | ) |
|
|
virtual |
Draw something into the target.
- Parameters
-
View& sf::RenderTarget::GetDefaultView |
( |
| ) |
|
Get the default view of the window for read / write.
- Returns
- Default view
virtual unsigned int sf::RenderTarget::GetHeight |
( |
| ) |
const |
|
pure virtual |
Get the height of the rendering region of the target.
- Returns
- Height in pixels
Implemented in sf::RenderWindow.
const View& sf::RenderTarget::GetView |
( |
| ) |
const |
Get the current view.
- Returns
- Current view active in the window
virtual unsigned int sf::RenderTarget::GetWidth |
( |
| ) |
const |
|
pure virtual |
Get the width of the rendering region of the target.
- Returns
- Width in pixels
Implemented in sf::RenderWindow.
void sf::RenderTarget::Initialize |
( |
| ) |
|
|
protected |
Called by the derived class when it's ready to be initialized.
void sf::RenderTarget::PreserveOpenGLStates |
( |
bool |
Preserve | ) |
|
Tell SFML to preserve external OpenGL states, at the expense of more CPU charge.
Use this function if you don't want SFML to mess up your own OpenGL states (if any). Don't enable state preservation if not needed, as it will allow SFML to do internal optimizations and improve performances. This parameter is false by default
- Parameters
-
Preserve | : True to preserve OpenGL states, false to let SFML optimize |
void sf::RenderTarget::SetView |
( |
const View & |
NewView | ) |
|
Change the current active view.
- Parameters
-
The documentation for this class was generated from the following file: