Documentation de SFML 2.0

Attention: cette page se réfère à une ancienne version de SFML. Cliquez ici pour passer à la dernière version.
Graphics module

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

Classes

class  sf::CircleShape
 Specialized shape representing a circle. More...
 
class  sf::Color
 Utility class for manpulating 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 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...
 
struct  sf::Shader::CurrentTextureType
 Special type/value that can be passed to setParameter, and that represents the texture of the object being drawn. More...
 

Enumerations

enum  sf::BlendMode {
  sf::BlendAlpha,
  sf::BlendAdd,
  sf::BlendMultiply,
  sf::BlendNone
}
 Available blending modes for drawing. More...
 
enum  sf::PrimitiveType {
  sf::Points,
  sf::Lines,
  sf::LinesStrip,
  sf::Triangles,
  sf::TrianglesStrip,
  sf::TrianglesFan,
  sf::Quads
}
 Types of primitives that a sf::VertexArray can render. More...
 

Detailed Description

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

Enumeration Type Documentation

Available blending modes for drawing.

Enumerator:
BlendAlpha 

Pixel = Source * Source.a + Dest * (1 - Source.a)

BlendAdd 

Pixel = Source + Dest.

BlendMultiply 

Pixel = Source * Dest.

BlendNone 

Pixel = Source.

Definition at line 35 of file BlendMode.hpp.

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

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

Enumerator:
Points 

List of individual points.

Lines 

List of individual lines.

LinesStrip 

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

Triangles 

List of individual triangles.

TrianglesStrip 

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

TrianglesFan 

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

Quads 

List of individual quads.

Definition at line 39 of file PrimitiveType.hpp.