![]() |
Gamedev Framework (gf)
0.16.0
A C++14 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... | |
class | gf::BasicSprite |
A basic sprite. More... | |
class | gf::BasicText |
A basic text. More... | |
struct | gf::BlendMode |
Blending modes for drawing. More... | |
class | gf::BufferedGeometry |
A drawable for buffers. More... | |
struct | gf::ColorBase< T > |
Predefined colors and utilities. More... | |
struct | gf::ColorRampBase< T > |
A color ramp. More... | |
class | gf::Coordinates |
Helper to compute coordinates in HUD. 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::GraphicsHandle< Tag > |
A GL handle. More... | |
struct | gf::GraphicsInfo::Format |
An OpenGL format. More... | |
class | gf::GraphicsInfo |
A class for graphics info. More... | |
class | gf::SquareGrid |
A square grid. More... | |
class | gf::HexagonGrid |
A hexagonal grid. More... | |
class | gf::Image |
Class for loading, manipulating and saving images. More... | |
class | gf::Logo |
The gf logo. More... | |
class | gf::NinePatch |
A nine-patch. More... | |
class | gf::PointParticles |
A class to display a high number of points. More... | |
class | gf::ShapeParticles |
A class to display a high number of small simple shapes. More... | |
class | gf::SpriteParticles |
A class to display a high number of sprites. 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::Scene |
A scene in the game. More... | |
class | gf::SceneManager |
A scene manager. More... | |
class | gf::Segue |
A transition between two scenes. More... | |
class | gf::SegueEffect |
A segue effect. More... | |
class | gf::FadeSegueEffect |
A fade segue effect. More... | |
class | gf::SlideSegueEffect |
A slide segue effect. More... | |
class | gf::GlitchSegueEffect |
A glitch segue effect. More... | |
class | gf::CheckerboardSegueEffect |
A checkerboard segue effect. More... | |
class | gf::CircleSegueEffect |
A circle segue effect. More... | |
class | gf::PixelateSegueEffect |
A pixelate segue effect. More... | |
class | gf::RadialSegueEffect |
A radial segue effect. More... | |
class | gf::ZoomBlurSegueEffect |
A zoom blur segue effect. 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::Text |
Graphical text that can be drawn to a render target. 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::UIEditType |
Predefined flags for edit. More... | |
struct | gf::UIBrowser |
Data for file selector. More... | |
class | gf::UICharBuffer |
A character buffer for edition. More... | |
class | gf::UI |
Context for an immediate mode graphical interface. 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 framebuffer More... | |
class | gf::AdaptativeView |
Adaptative view. More... | |
class | gf::ZoomingViewAdaptor |
A view adaptor for zooming/moving with the mouse. 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::LockedView |
Locked view. More... | |
class | gf::ScreenView |
Screen view. More... | |
class | gf::Widget |
The widgets abstract class. More... | |
class | gf::WidgetContainer |
A collection of widgets. More... | |
class | gf::TextWidget |
A simple text widget. More... | |
class | gf::TextButtonWidget |
A text within a rounded rectangle widget. More... | |
class | gf::SpriteWidget |
A widget with a set of sprites. More... | |
class | gf::ChoiceSpriteWidget |
A choice sprite widget. More... | |
Typedefs | |
using | gf::ColorF = ColorBase< float > |
Instantiation of ColoBase for float More... | |
using | gf::ColorD = ColorBase< double > |
Instantiation of ColoBase for double More... | |
using | gf::Color = ColorF |
Instantiation of ColorBase for float More... | |
using | gf::ColorRampF = ColorRampBase< float > |
Instantiation of ColoRampBase for float More... | |
using | gf::ColorRampD = ColorRampBase< double > |
Instantiation of ColoRampBase for double More... | |
using | gf::ColorRamp = ColorRampF |
Instantiation of ColoRampBase for float More... | |
using | gf::UIScroll = Vector2u |
State for scrollbar in groups. 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.
Instantiation of ColorBase for float
This name is used for compatibility with SFML.
using gf::ColorD = typedef ColorBase<double> |
Instantiation of ColoBase for double
using gf::ColorF = typedef ColorBase<float> |
Instantiation of ColoBase for float
using gf::ColorRamp = typedef ColorRampF |
Instantiation of ColoRampBase for float
using gf::ColorRampD = typedef ColorRampBase<double> |
Instantiation of ColoRampBase for double
using gf::ColorRampF = typedef ColorRampBase<float> |
Instantiation of ColoRampBase for float
using gf::UIScroll = typedef Vector2u |
State for scrollbar in groups.
|
strong |
|
strong |
An anchor of a box.
It is used to define the origin in transformable objects. It is also used to compute coordinates for HUD.
|
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 |
A flag to indicate how to flip a tile.
Enumerator | |
---|---|
Horizontally | The tile is flipped horizontally. |
Vertically | The tile is flipped vertically. |
Diagonally | The tile is flipped anti-diagonally. |
|
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.
|
strong |
The orientation of the tile.
Enumerator | |
---|---|
Unknown | An unknown orientation. |
Orthogonal | An orthogonal orientation. |
Isometric | An isometric orientation. |
Staggered | A staggered orientation. |
Hexagonal | A hexagonal orientation. |
|
strong |
The alignment of the text.
Enumerator | |
---|---|
Left | Left alignment. |
Center | Centered alignment. |
Right | Right alignment. |
|
strong |
|
strong |
|
strong |
|
strong |
Properties for edit events.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
A representative symbol.
|
strong |
|
strong |
Properties for windows and window-like elements.
|
strong |
State of a widget.
Enumerator | |
---|---|
Disabled | The widget is disabled. |
Default | The default widget state. |
Selected | The widget is selected. |
|
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 |