25#ifndef SFML_RENDERTARGET_HPP
26#define SFML_RENDERTARGET_HPP
31#include <SFML/Graphics/Color.hpp>
32#include <SFML/Graphics/View.hpp>
33#include <SFML/Graphics/Rect.hpp>
146 virtual bool Activate(
bool Active) = 0;
152 void SetRenderStates();
158 const View* myCurrentView;
159 bool myPreserveStates;
Color is an utility class for manipulating 32-bits RGBA colors.
Abstract base class for every object that can be drawn into a render window.
void Clear(const Color &FillColor=Color(0, 0, 0))
Clear the entire target with a single color.
View & GetDefaultView()
Get the default view of the window for read / write.
virtual void Draw(const Drawable &Object)
Draw something into the target.
const View & GetView() const
Get the current view.
RenderTarget()
Default constructor.
void Initialize()
Called by the derived class when it's ready to be initialized.
virtual unsigned int GetWidth() const =0
Get the width of the rendering region of the target.
void SetView(const View &NewView)
Change the current active view.
virtual unsigned int GetHeight() const =0
Get the height of the rendering region of the target.
void PreserveOpenGLStates(bool Preserve)
Tell SFML to preserve external OpenGL states, at the expense of more CPU charge.
This class defines a view (position, size, etc.) ; you can consider it as a 2D camera.