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>
59 void Clear(
const Color& FillColor =
Color(0, 0, 0));
67 virtual void Draw(
const Drawable& Object);
91 void SetView(
const View& NewView);
99 const View& GetView()
const;
107 View& GetDefaultView();
120 void PreserveOpenGLStates(
bool Preserve);
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.
Base class for all render targets (window, image, ...)
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.
This class defines a view (position, size, etc.) ; you can consider it as a 2D camera.