SFML - Simple and Fast Multimedia Library

SFML

Graphics module

2D graphics module: sprites, text, shapes, ... More...

Namespaces

 sf::Glsl
 Namespace with GLSL types.
 

Classes

class  sf::BlendMode
 Blending modes for drawing. More...
 
class  sf::CircleShape
 Specialized shape representing a circle. More...
 
class  sf::Color
 Utility class for manipulating RGBA colors. More...
 
class  sf::ConvexShape
 Specialized shape representing a convex polygon. More...
 
class  sf::Drawable
 Abstract base class for objects that can be drawn to a render target. More...
 
class  sf::Font
 Class for loading and manipulating character fonts. More...
 
class  sf::Glyph
 Structure describing a glyph. More...
 
class  sf::Image
 Class for loading, manipulating and saving images. More...
 
class  sf::Rect< T >
 Utility class for manipulating 2D axis aligned rectangles. More...
 
class  sf::RectangleShape
 Specialized shape representing a rectangle. More...
 
class  sf::RenderStates
 Define the states used for drawing to a RenderTarget. More...
 
class  sf::RenderTarget
 Base class for all render targets (window, texture, ...) More...
 
class  sf::RenderTexture
 Target for off-screen 2D rendering into a texture. More...
 
class  sf::RenderWindow
 Window that can serve as a target for 2D drawing. More...
 
class  sf::Shader
 Shader class (vertex, geometry and fragment) More...
 
class  sf::Shape
 Base class for textured shapes with outline. More...
 
class  sf::Sprite
 Drawable representation of a texture, with its own transformations, color, etc. More...
 
class  sf::Text
 Graphical text that can be drawn to a render target. More...
 
class  sf::Texture
 Image living on the graphics card that can be used for drawing. More...
 
class  sf::Transform
 Define a 3x3 transform matrix. More...
 
class  sf::Transformable
 Decomposed transform defined by a position, a rotation and a scale. More...
 
class  sf::Vertex
 Define a point with color and texture coordinates. More...
 
class  sf::VertexArray
 Define a set of one or more 2D primitives. More...
 
class  sf::View
 2D camera that defines what region is shown on screen More...
 

Enumerations

enum  sf::PrimitiveType {
  sf::Points, sf::Lines, sf::LineStrip, sf::Triangles,
  sf::TriangleStrip, sf::TriangleFan, sf::Quads, sf::LinesStrip = LineStrip,
  sf::TrianglesStrip = TriangleStrip, sf::TrianglesFan = TriangleFan
}
 Types of primitives that a sf::VertexArray can render. More...
 

Detailed Description

2D graphics module: sprites, text, shapes, ...

Enumeration Type Documentation

Types of primitives that a sf::VertexArray can render.

Points and lines have no area, therefore their thickness will always be 1 pixel, regardless the current transform and view.

Enumerator
Points 

List of individual points.

Lines 

List of individual lines.

LineStrip 

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

Triangles 

List of individual triangles.

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.

Quads 

List of individual quads (deprecated, don't work with OpenGL ES)

LinesStrip 
Deprecated:
Use LineStrip instead
TrianglesStrip 
Deprecated:
Use TriangleStrip instead
TrianglesFan 
Deprecated:
Use TriangleFan instead

Definition at line 39 of file PrimitiveType.hpp.