Loading...
Searching...
No Matches
RenderTarget.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
331 void draw(const VertexBuffer& vertexBuffer, const RenderStates& states = RenderStates::Default);
507 void applyTexture(const Texture* texture, CoordinateType coordinateType = CoordinateType::Pixels);
Abstract base class for objects that can be drawn to a render target.
Definition Drawable.hpp:44
void draw(const Drawable &drawable, const RenderStates &states=RenderStates::Default)
Draw a drawable object to the render target.
IntRect getScissor(const View &view) const
Get the scissor rectangle of a view, applied to this render target.
virtual Vector2u getSize() const =0
Return the size of the rendering region of the target.
void clearStencil(StencilValue stencilValue)
Clear the stencil buffer to a specific value.
Vector2f mapPixelToCoords(Vector2i point) const
Convert a point from target coordinates to world coordinates, using the current view.
const View & getDefaultView() const
Get the default view of the render target.
IntRect getViewport(const View &view) const
Get the viewport of a view, applied to this render target.
void pushGLStates()
Save the current OpenGL render states and matrices.
void resetGLStates()
Reset the internal OpenGL states so that the target is ready for drawing.
RenderTarget & operator=(const RenderTarget &)=delete
Deleted copy assignment.
Vector2i mapCoordsToPixel(Vector2f point) const
Convert a point from world coordinates to target coordinates, using the current view.
void popGLStates()
Restore the previously saved OpenGL render states and matrices.
const View & getView() const
Get the view currently in use in the render target.
virtual bool setActive(bool active=true)
Activate or deactivate the render target for rendering.
virtual bool isSrgb() const
Tell if the render target will use sRGB encoding when drawing on it.
void clear(Color color=Color::Black)
Clear the entire target with a single color.
void initialize()
Performs the common initialization step after creation.
CoordinateType
Types of texture coordinates that can be used for rendering.
Definition CoordinateType.hpp:38
Definition AudioResource.hpp:36