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);
75 virtual unsigned int GetWidth()
const = 0;
83 virtual unsigned int GetHeight()
const = 0;
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;
166 #endif // SFML_RENDERTARGET_HPP