#include <RenderImage.hpp>
Public Member Functions | |
RenderImage () | |
Default constructor. | |
virtual | ~RenderImage () |
Destructor. | |
bool | Create (unsigned int Width, unsigned int Height, bool DepthBuffer=false) |
Create the render image from its dimensions. | |
bool | SetActive (bool Active=true) const |
Activate of deactivate the render-image as the current target for rendering. | |
virtual unsigned int | GetWidth () const |
Get the width of the rendering region of the image. | |
virtual unsigned int | GetHeight () const |
Get the height of the rendering region of the image. | |
const Image & | GetImage () const |
Get the target image. | |
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. | |
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. | |
Static Public Member Functions | |
static bool | CanUseRenderImage () |
Check whether the system supports render images or not. | |
Protected Member Functions | |
void | Initialize () |
Called by the derived class when it's ready to be initialized. |
Definition at line 47 of file RenderImage.hpp.
sf::RenderImage::RenderImage | ( | ) |
sf::RenderImage::~RenderImage | ( | ) | [virtual] |
bool sf::RenderImage::CanUseRenderImage | ( | ) | [static] |
Check whether the system supports render images or not.
Definition at line 143 of file RenderImage.cpp.
Clear the entire target with a single color.
FillColor | : Color to use to clear the render target |
Definition at line 60 of file RenderTarget.cpp.
bool sf::RenderImage::Create | ( | unsigned int | Width, | |
unsigned int | Height, | |||
bool | DepthBuffer = false | |||
) |
Create the render image from its dimensions.
Width | : Width of the render image | |
Height | : Height of the render image | |
DepthBuffer | : Do you want a depth buffer attached ? (false by default) |
Definition at line 59 of file RenderImage.cpp.
void sf::RenderTarget::Draw | ( | const Drawable & | Object | ) | [virtual, inherited] |
Draw something into the target.
Draw something on the window.
Object | : Object to draw |
Definition at line 76 of file RenderTarget.cpp.
View & sf::RenderTarget::GetDefaultView | ( | ) | [inherited] |
Get the default view of the window for read / write.
Definition at line 147 of file RenderTarget.cpp.
unsigned int sf::RenderImage::GetHeight | ( | ) | const [virtual] |
Get the height of the rendering region of the image.
Implements sf::RenderTarget.
Definition at line 125 of file RenderImage.cpp.
const Image & sf::RenderImage::GetImage | ( | ) | const |
const View & sf::RenderTarget::GetView | ( | ) | const [inherited] |
Get the current view.
Definition at line 138 of file RenderTarget.cpp.
unsigned int sf::RenderImage::GetWidth | ( | ) | const [virtual] |
Get the width of the rendering region of the image.
Implements sf::RenderTarget.
Definition at line 116 of file RenderImage.cpp.
void sf::RenderTarget::Initialize | ( | ) | [protected, inherited] |
Called by the derived class when it's ready to be initialized.
Definition at line 169 of file RenderTarget.cpp.
void sf::RenderTarget::PreserveOpenGLStates | ( | bool | Preserve | ) | [inherited] |
Tell SFML to preserve external OpenGL states, at the expense of more CPU charge.
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
Preserve | : True to preserve OpenGL states, false to let SFML optimize |
Definition at line 160 of file RenderTarget.cpp.
bool sf::RenderImage::SetActive | ( | bool | Active = true |
) | const |
Activate of deactivate the render-image as the current target for rendering.
Activate of deactivate the render-image as the current target for rendering.
Active | : True to activate, false to deactivate (true by default) |
Definition at line 107 of file RenderImage.cpp.
void sf::RenderTarget::SetView | ( | const View & | NewView | ) | [inherited] |
Change the current active view.
NewView | : New view to use (pass GetDefaultView() to set the default view) |
Definition at line 129 of file RenderTarget.cpp.