24 #ifndef GF_RENDER_TARGET_H    25 #define GF_RENDER_TARGET_H    40 #ifndef DOXYGEN_SHOULD_SKIP_THIS    94     virtual Vector2u 
getSize() 
const = 0;
   137     void clear(
const Color4f& color);
   413     void initializeViews();
   414     void initializeShader();
   415     void initializeTexture();
   423     void drawStart(
const Vertex *vertices, 
const RenderStates& states, Locations& locations);
   424     void drawFinish(
const Locations& locations);
   429     Shader m_defaultAlphaShader;
   433 #ifndef DOXYGEN_SHOULD_SKIP_THIS Region getCanonicalScissorBox()
Get the current canonical scissor box. 
 
void clear()
Clear the entire target. 
 
Vector2i mapCoordsToPixel(Vector2f point, const View &view) const
Convert a point from world coordinates to target coordinates. 
 
2D camera that defines what region is shown on screen 
Definition: View.h:94
 
Vector2f mapPixelToCoords(Vector2i point, const View &view) const
Convert a point from target coordinates to world coordinates. 
 
RectI getViewport(const View &view) const
Get the viewport of a view, applied to this render target. 
 
void setScissorBox(const RectI &box)
Define the scissor box. 
 
RangeF getAliasedLineWidthRange() const
Get the range for aliased line width. 
 
Base class for all render targets (window, texture, ...) 
Definition: RenderTarget.h:66
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
A point associated with a color and a texture coordinate. 
Definition: Vertex.h:75
 
RenderTarget()=default
Default constructor. 
 
PrimitiveType
Kind of primitives to render. 
Definition: PrimitiveType.h:43
 
Data in the graphics memory. 
Definition: VertexBuffer.h:70
 
virtual ~RenderTarget()
Destructor. 
 
void draw(Drawable &drawable, const RenderStates &states=RenderStates())
Draw a drawable object to the render target. 
 
Abstract base class for objects that can be drawn to a render window. 
Definition: Drawable.h:79
 
void clear(const Color4f &color)
Clear the entire target with a single color. 
 
virtual Vector2u getSize() const =0
Return the size of the rendering region of the target. 
 
An OpenGL vertex and/or fragment shader. 
Definition: Shader.h:120
 
void draw(const VertexBuffer &buffer, const RenderStates &states=RenderStates())
Draw a vertex buffer to the render target. 
 
void draw(const Vertex *vertices, const uint16_t *indices, std::size_t count, PrimitiveType type, const RenderStates &states=RenderStates())
Draw primitives defined by an array of vertices and their indices. 
 
void setView(const View &view)
Change the current active view. 
 
A texture for colored images. 
Definition: Texture.h:339
 
void setCanonicalScissorBox(const Region &box)
Define the canonical scissor box. 
 
void initialize()
Performs the common initialization step after creation. 
 
float getLineWidth() const
Get the line width. 
 
Class for loading, manipulating and saving images. 
Definition: Image.h:92
 
RenderTarget(const RenderTarget &)=delete
Deleted copy constructor. 
 
The namespace for gf classes. 
Definition: Action.h:34
 
Vector2f mapPixelToCoords(Vector2i point) const
Convert a point from target coordinates to world coordinates, using the current view. 
 
Region getCanonicalViewport(const View &view) const
Get the canonical viewport of a view, applied to this render target. 
 
Image captureFramebuffer(unsigned name) const
Capture the given framebuffer. 
 
A region of a window. 
Definition: Region.h:43
 
Vector2i mapCoordsToPixel(Vector2f point) const
Convert a point from world coordinates to target coordinates, using the current view. 
 
#define GF_API
Definition: Portability.h:35
 
void draw(const Vertex *vertices, const uint16_t **indices, const std::size_t *count, std::size_t primcount, PrimitiveType type, const RenderStates &states=RenderStates())
Draw primitives defined by an array of vertices and their indices. 
 
void draw(const Vertex *vertices, int *first, const std::size_t *count, std::size_t primcount, PrimitiveType type, const RenderStates &states=RenderStates())
Draw primitives defined by an array of vertices. 
 
void draw(const Vertex *vertices, std::size_t count, PrimitiveType type, const RenderStates &states=RenderStates())
Draw primitives defined by an array of vertices. 
 
RectI getScissorBox()
Get the current scissor box. 
 
RenderTarget & operator=(const RenderTarget &)=delete
Deleted copy assignment. 
 
const View & getView() const
Get the view currently in use in the render target. 
Definition: RenderTarget.h:261