24 #ifndef GF_RENDER_TARGET_H 25 #define GF_RENDER_TARGET_H 29 #include "GraphicsHandle.h" 32 #include "Portability.h" 33 #include "PrimitiveType.h" 36 #include "RenderStates.h" 41 #ifndef DOXYGEN_SHOULD_SKIP_THIS 51 static void gen(
int n,
unsigned* resources);
52 static void del(
int n,
const unsigned* resources);
103 virtual Vector2i getSize()
const = 0;
115 Region getCanonicalScissorBox();
122 void setCanonicalScissorBox(
const Region& box);
129 RectI getScissorBox();
136 void setScissorBox(
const RectI& box);
146 void clear(
const Color4f& color);
165 RangeF getAliasedLineWidthRange()
const;
173 float getLineWidth()
const;
237 void setView(
const View& view);
262 Region getCanonicalViewport(
const View& view)
const;
276 RectI getViewport(
const View& view)
const;
386 Image captureFramebuffer(
unsigned name)
const;
393 void drawStart(
const RenderStates& states, Locations& locations);
394 void drawFinish(
const Locations& locations);
399 Shader m_defaultAlphaShader;
403 #ifndef DOXYGEN_SHOULD_SKIP_THIS 408 #endif // GF_RENDER_TARGET_H 2D camera that defines what region is shown on screen
Definition: View.h:94
A half-open range of values.
Definition: Range.h:43
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:73
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
PrimitiveType
Kind of primitives to render.
Definition: PrimitiveType.h:43
Data in the graphics memory.
Definition: VertexBuffer.h:77
Definition: GraphicsHandle.h:41
Abstract base class for objects that can be drawn to a render window.
Definition: Drawable.h:57
An OpenGL vertex and/or fragment shader.
Definition: Shader.h:120
A texture for colored images.
Definition: Texture.h:301
GraphicsTag
Definition: GraphicsHandle.h:34
Class for loading, manipulating and saving images.
Definition: Image.h:80
The namespace for gf classes.
Definition: Action.h:35
A 4D vector.
Definition: Vector.h:838
A region of a window.
Definition: Region.h:40
const View & getView() const
Get the view currently in use in the render target.
Definition: RenderTarget.h:246