Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Classes | Enumerations
Renderers

Renderers. More...

Classes

class  gf::Coordinates
 Helper to compute coordinates in HUD. More...
 
struct  gf::Region
 A region of a window. More...
 
class  gf::RenderPipeline
 A render pipeline. More...
 
struct  gf::RenderStates
 Define the states used for drawing to a RenderTarget. More...
 
struct  gf::RenderAttributeInfo
 Attribute info. 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...
 
struct  gf::Vertex
 A point associated with a color and a texture coordinate. More...
 

Enumerations

enum class  gf::PrimitiveType {
  gf::PrimitiveType::Points ,
  gf::PrimitiveType::LineStrip ,
  gf::PrimitiveType::LineLoop ,
  gf::PrimitiveType::Lines ,
  gf::PrimitiveType::TriangleStrip ,
  gf::PrimitiveType::TriangleFan ,
  gf::PrimitiveType::Triangles
}
 Kind of primitives to render. More...
 
enum class  gf::RenderAttributeType {
  gf::RenderAttributeType::Byte = 0x1400 ,
  gf::RenderAttributeType::UByte = 0x1401 ,
  gf::RenderAttributeType::Short = 0x1402 ,
  gf::RenderAttributeType::UShort = 0x1403 ,
  gf::RenderAttributeType::Float = 0x1406
}
 The type of an attribute. More...
 

Detailed Description

Renderers.

Enumeration Type Documentation

◆ PrimitiveType

enum class gf::PrimitiveType
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.

See also
gf::RenderTarget::draw
Enumerator
Points 

List of individual points.

LineStrip 

List of connected lines, a point uses the previous point to form a line.

LineLoop 

List of connected lines, a point uses the previous point to form a line, the last point is connected to the first.

Lines 

List of individual lines.

TriangleStrip 

List of connected triangles, a point uses the two previous points to form a triangle.

TriangleFan 

List of connected triangles, a point uses the common center and the previous point to form a triangle.

Triangles 

List of individual triangles.

◆ RenderAttributeType

enum class gf::RenderAttributeType
strong

The type of an attribute.

Enumerator
Byte 
UByte 
Short 
UShort 
Float