24 #ifndef GF_RENDER_TARGET_H 25 #define GF_RENDER_TARGET_H 30 #include "GraphicsHandle.h" 33 #include "Portability.h" 34 #include "PrimitiveType.h" 37 #include "RenderStates.h" 42 #ifndef DOXYGEN_SHOULD_SKIP_THIS 68 static void gen(
int n,
unsigned* resources);
69 static void del(
int n,
const unsigned* resources);
120 virtual Vector2i getSize()
const = 0;
132 Region getCanonicalScissorBox();
139 void setCanonicalScissorBox(
const Region& box);
146 RectI getScissorBox();
153 void setScissorBox(
const RectI& box);
163 void clear(
const Color4f& color);
182 RangeF getAliasedLineWidthRange()
const;
190 float getLineWidth()
const;
288 void setView(
const View& view);
313 Region getCanonicalViewport(
const View& view)
const;
327 RectI getViewport(
const View& view)
const;
437 Image captureFramebuffer(
unsigned name)
const;
441 static constexpr std::size_t CountMax = 5;
443 std::size_t count = 0;
447 void drawFinish(
const Locations& locations);
452 Shader m_defaultAlphaShader;
456 #ifndef DOXYGEN_SHOULD_SKIP_THIS 461 #endif // GF_RENDER_TARGET_H RenderAttributeType
Definition: RenderTarget.h:50
2D camera that defines what region is shown on framebuffer
Definition: View.h:94
A half-open range of values.
Definition: Range.h:43
const char * name
Definition: RenderTarget.h:59
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:90
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
constexpr BufferRef< T > buffer(T *data, std::size_t size)
Create a reference to a buffer.
Definition: BufferRef.h:211
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
bool normalized
Definition: RenderTarget.h:62
RenderAttributeType type
Definition: RenderTarget.h:61
A texture for colored images.
Definition: Texture.h:309
Definition: RenderTarget.h:58
std::size_t offset
Definition: RenderTarget.h:63
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 constant reference to an array and its size.
Definition: ArrayRef.h:43
A 4D vector.
Definition: Vector.h:852
A region of a window.
Definition: Region.h:40
int size
Definition: RenderTarget.h:60
const View & getView() const
Get the view currently in use in the render target.
Definition: RenderTarget.h:297