![]() |
Gamedev Framework (gf)
0.2.0
A C++11 framework for 2D games
|
All the classes related to graphics. More...
Classes | |
class | gf::AnimatedSprite |
An animated sprite. More... | |
class | gf::Animation |
An animation. More... | |
struct | gf::BlendMode |
Blending modes for drawing. More... | |
class | gf::BufferedGeometry |
A drawable for buffers. More... | |
struct | gf::Color |
Predefined colors. More... | |
struct | gf::ColorRamp |
A color ramp. More... | |
class | gf::Curve |
A curve is a one dimension object. More... | |
class | gf::Drawable |
Abstract base class for objects that can be drawn to a render window. More... | |
class | gf::Effect |
A post-processing effect. More... | |
class | gf::DefaultEffect |
Default effect. More... | |
class | gf::AntiAliasingEffect |
Anti-aliasing effect. More... | |
class | gf::ColorMatrixEffect |
Generic color matrix effect. More... | |
class | gf::ColorEffect |
Simple color effects. More... | |
class | gf::ColorBlindEffect |
Simulation of color blindness. More... | |
class | gf::EdgeEffect |
Edge detector. More... | |
struct | gf::Glyph |
A glyph. More... | |
class | gf::Font |
A character font. More... | |
class | gf::Image |
Class for loading, manipulating and saving images. More... | |
class | gf::NinePatch |
A nine-patch. More... | |
class | gf::PostProcessing |
A post-processing drawable. More... | |
class | gf::RenderPipeline |
A render pipeline. More... | |
struct | gf::RenderStates |
Define the states used for drawing to a RenderTarget. More... | |
class | gf::RenderTarget |
Base class for all render targets (window, texture, ...) More... | |
class | gf::RenderTexture |
Target for off-screen 2D rendering into a texture. More... | |
class | gf::RenderWindow |
A window that can serve as a target for 2D drawing. More... | |
class | gf::Shader |
An OpenGL vertex and/or fragment shader. More... | |
class | gf::Shape |
Base class for textured shapes with outline. More... | |
class | gf::RectangleShape |
Specialized shape representing a rectangle. More... | |
class | gf::CircleShape |
Specialized shape representing a circle. More... | |
class | gf::ConvexShape |
Specialized shape representing a convex polygon. More... | |
class | gf::StarShape |
Specialized shape representing a star. More... | |
class | gf::RoundedRectangleShape |
Specialized shape representing a rounded rectangle. More... | |
class | gf::Sprite |
A drawable representation of a texture, with its own transformations, color, etc. More... | |
class | gf::SpriteBatch |
A sprite batch. More... | |
class | gf::BareTexture |
An image that lives in the graphic memory that can be used for drawing. More... | |
class | gf::Texture |
A texture for colored images. More... | |
class | gf::AlphaTexture |
A texture with a single alpha channel. More... | |
class | gf::TileLayer |
A tile layer. More... | |
class | gf::Transformable |
Decomposed transform defined by a position, a rotation and a scale. More... | |
struct | gf::UILayout |
Layout of a user interface. More... | |
class | gf::UIRenderer |
A renderer for a user interface. More... | |
class | gf::DefaultUIRenderer |
The default renderer for user interface. More... | |
class | gf::UI |
An immediate mode user interface class. More... | |
struct | gf::Vertex |
A point associated with a color and a texture coordinate. More... | |
class | gf::VertexArray |
A set of primitives. More... | |
class | gf::VertexBuffer |
Data in the graphics memory. More... | |
class | gf::View |
2D camera that defines what region is shown on screen More... | |
class | gf::AdaptativeView |
Adaptative view. More... | |
class | gf::ViewContainer |
A container of views. More... | |
class | gf::StretchView |
Stretch view. More... | |
class | gf::FitView |
Fit view. More... | |
class | gf::FillView |
Fill view. More... | |
class | gf::ExtendView |
Extend view. More... | |
class | gf::ScreenView |
Screen view. More... | |
Typedefs | |
using | gf::UIFlags = Flags< UIProperties > |
The flags corresponding to user interface properties. More... | |
Functions | |
bool | operator== (const RenderStates &lhs, const RenderStates &rhs) |
Check render states equality. More... | |
Variables | |
constexpr BlendMode | gf::BlendAlpha |
Alpha blend mode. More... | |
constexpr BlendMode | gf::BlendAdd |
Additive blend mode. More... | |
constexpr BlendMode | gf::BlendMultiply |
Multiplicative blend mode. More... | |
constexpr BlendMode | gf::BlendNone |
No blend mode. More... | |
All the classes related to graphics.
using gf::UIFlags = typedef Flags<UIProperties> |
The flags corresponding to user interface properties.
|
strong |
The origin anchor of the transformable object.
Enumerator | |
---|---|
Center |
Center. |
TopLeft |
Top-left. |
TopRight |
Top-right. |
BottomLeft |
Bottom-left. |
BottomRight |
Bottom-right. |
|
strong |
Enumeration of the blending equations.
The equations are mapped directly to their OpenGL equivalents, specified by glBlendEquation() or glBlendEquationSeparate().
Enumerator | |
---|---|
Add |
Pixel = Src * SrcFactor + Dst * DstFactor. |
Substract |
Pixel = Src * SrcFactor - Dst * DstFactor. |
ReverseSubstract |
Pixel = Dst * DstFactor - Src * SrcFactor. |
|
strong |
Enumeration of the blending factors.
The factors are mapped directly to their OpenGL equivalents, specified by glBlendFunc() or glBlendFuncSeparate().
|
strong |
|
strong |
Kind of primitives to render.
gf::PrimitiveType represents a kind of primitive to render. The primitives are mapped to their OpenGL equivalents, specified by glDrawArrays or glDrawElements.
enum gf::Curve::Type |
enum gf::Shader::Type |
Type of color blindness.
|
strong |
An icon of a user interface.
|
strong |
Properties of a user interface.
|
related |
Check render states equality.
Two render states are equals if their blend mode, their transform matrix, their texture and their shader are the same.
constexpr BlendMode gf::BlendAdd |
constexpr BlendMode gf::BlendAlpha |
Alpha blend mode.
Blend source and dest according to dest alpha. Also known as alpha blending.
constexpr BlendMode gf::BlendMultiply |
constexpr BlendMode gf::BlendNone |