Skip to content

Latest commit

 

History

History

examples

More interesting examples can be found in a different repository.

Examples

  • Show a Window
  • React to close event
  • Show a RenderWindow
  • Unicode window title
  • React to close and keyboard events
  • Use a Texture and a Sprite
    • Move, scale, rotate, draw
  • Elapsed time for physics, using Clock
  • Setup antialiasing
  • Object-oriented
  • Custom drawables
  • RenderStates
  • Keyboard events
  • Custom transformable drawable
  • Absolute time measurement with Clock
  • Unicode keyboard input
  • Text metric measurements
  • Periodic events with Clock
  • BlendMode (draw with inverted color)
  • Detecting features by SFML version
  • Listing controllers, screen modes, audio devices
  • Mouse state and events
  • Keyboard state and events
  • Controller state and events
  • Drawing with shapes
  • Simple GUI (just buttons)
  • Switching between views
  • Window coordinates vs view coordinates

Sound Capture example from SFML

  • Record sound
  • Play sound
  • Save sound

Parts of the Shader example from SFML

  • Fragment and vertex shaders
    • Load from file
    • Set arguments
    • Apply
  • HTTP GET request
  • VertexArray
  • draw primitives
  • ConvexShape
  • Custom Shape
  • Basic OpenGL
  • Record and play back the same stream
    • SoundRecorder
    • SoundStream

Acknowledgements