8000 Sources · SFML/SFML Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Lukas Dürrenberger edited this page Apr 29, 2025 · 109 revisions
10000

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

SFML 3

Drawables

  • [C++] Simple Sprite Batcher Small, simple class that automatically batches normal sprites and draws them all together with one draw call. (by Hapaxia)

Views

  • [C++] Zoom View At Free functions that zoom a view at a specified pixel rather the centre of the window/view.

Miscellaneous

  • [C++] Get Character At Coord Free function that calculates which character of a text object is at a specific co-ordinate. (by Hapaxia)
  • [C++] Rectangular Boundary Collision Templated free function that tests collision of any two objects using their local boundary box; this is not simply AABB collision. (by Hapax)
  • [C++] Triangles Extractor Free function(s) that extract triangles from one primitive type to create independent triangles. (by Hapaxia)

SFML 2

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++] Drawable Line Shape: A drawable-derived fast-rendering class for shapes made of lines
  • [C++] Draw Rounded Rectangle: A class that renders rounded rectangles
  • [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++] Line segment with thickness: Two simple classes for drawing a line segment with thickness.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++] 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++] 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++] Tile Map with VertexArrays: Load, cull, texture and display quads as tiles
  • [C++/C#] TileMap renderer: efficient tilemap drawing
  • [C++] Vertex Vector: drawable alternative to VertexArray that supports emplacement and foreach loops
  • [C#] CurvedText class: Draws circularly arranged text and implements most of SFML.Graphics.Text's interface.
  • [C#] Line with Thickness: Lines or LinesStrip VertexArrays always draw 1 pixel lines. This is a method to generate

Shaders

Network

GUI

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

Views

  • [C++] Convert Point Of View Free function that directly converts a co-ordinate from one view's co-ordinate system to another. Can either take viewports into account or ignore them.
  • [C++] Letterbox effect: A small example to achieve a letterbox effect when resizing the window, having black bars appear either horizontally or vertically to keep the view's aspect ratio.
  • [C++] Rotate View At Free function that rotates a view at any specified co-ordinate rather the center of the view/window.

Miscellaneous

Audio

  • [C++] Looping Music: A class that enables music to loop between 2 specific time points
  • [C++] MP3 Player: Class inspired sf::Music for playing mp3 file using the library mpg123
  • [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
  • [C++] Simple Jukebox: A simple class to create, modify and play playlists from audio files in a given directory
  • [C++] Synthesizer: Synthesizer is a simple tool to enable creating sound effects programmatically

SFML 1

Game Engines

Drawables

Miscellaneous

  • [C++] Loading Images in a Thread: An example of how to load images in a background thread. (with boost)
  • [C++] PhysFS: A class that adapts PhysFS to SFML with a custom sf::InputStream
  • [C++] Smart Resource Manager: Generic resource manager which keeps track of it's references. (by Groogy)

Audio

  • [C++] Audio Player: Class inspired sf::Music for playing audio file using the library ffmpeg
Clone this wiki locally
0