Skip to content
Hapaxia edited this page Nov 24, 2023 · 101 revisions

Source Codes

Welcome to the section dedicated to external source codes for SFML.

Game Engines

Drawables

  • [C++] AnimatedGif: Enjoy animated GIFs in SFML!
  • [C++] AnimatedSprite: A class that provides an easy interface to Animations and follow the design of sf::Sprite (by Foaly)
  • [C#] CurvedText class: Draws circularly arranged text and implements most of SFML.Graphics.Text's interface.
  • [C++] Higher Performance Sprite Container: Both a faster way to use many sprites with the same texture and a shortcut container to make life easier. (by masskiller)
  • [C++] Drawable Line Shape: A drawable-derived fast-rendering class for shapes made of lines
  • [C++] Drawing Color Gradient: Draw and manage color gradient easily with this class
  • [C++] Draw Rounded Rectangle: A class that renders rounded rectangles
  • [C++] Line segment with thickness: Two simple classes for drawing a line segment with thickness.
  • [C#] Line with Thickness: Lines or LinesStrip VertexArrays always draw 1 pixel lines. This is a method to generate a TrianglesStrip representing a line along a set of points (e.g a Polygon).
  • [C++] Round Ended Lines: A class that renders round ended Lines (by Foaly)
  • [C++] Tile Map with VertexArrays: Load, cull, texture and display quads as tiles
  • [C#/C++] TileMap renderer: efficient tilemap drawing
  • [C++] Shader Tile Map: tile map drawing using one texture as data and other as graphics and swapping data pixels for graphic pixels using glsl fragment shader
  • [C++11] Vertex Vector: drawable alternative to VertexArray that supports emplacement and foreach loops
  • [C++] Simple bouncing ball example: Simple example showing how you can bounce a ball around a window.
  • [C++] Sprite3d: A class similar to SFML's standard sprite that also includes ability to rotate around all three axes (by Hapax)
  • [C++] Simple Sprite Batcher Small, simple class that automatically batches normal sprites and draws them all together with one draw call. (by Hapaxia)

Shaders

Network

GUI

  • [C++] RichText: Class to handle rich text. (by Panithadrum)
  • [C++] Fader: Class to facilitate fading. (by cire)
  • [C#] GTK Integration: Using a Gtk# socket to render SFML inside GTK.
  • [C++] ImGui Loading Custom Font: An example on how to load and display a custom font in ImGui.

Miscellaneous

Audio

  • [C++] MP3 Player: Class inspired sf::Music for playing mp3 file using the library mpg123
  • [C++] Audio Player: Class inspired sf::Music for playing audio file using the library ffmpeg
  • [C++] Simple Jukebox: A simple class to create, modify and play playlists from audio files in a given directory.
  • [C++] Looping Music: A class that enables music to loop between 2 specific time points
  • [C++] Mp3 Soundfile Reader: A class that allows the read of mp3 file using the mpg123 library
  • [C++] Mp3 Soundfile Reader: Implements a SoundFileReader for reading MP3 files with minimp3
Clone this wiki locally