-
Notifications
You must be signed in to change notification settings - Fork 30
Home
Welcome to the JSFML wiki!
SFML is the Simple and Fast Multimedia Library by Laurent Gomila. As the name clearly suggests, SFML is a multimedia library that features high level OpenGL context management, OpenGL rendering, input handling and OpenAL sound playback.
JSFML is the official Java binding to SFML by Patrick Dinklage. It serves as an inter-communication layer between Java and SFML and enables a wide range of SFML features to be used in Java. Additionally, it adapts the C++ semantics of the SFML API to Java standards and strives to provide features that integrate SFML into Java better.
For a list of features and some demos, please visit the JSFML website.
This is the official documentation of JSFML. It will guide you from setting up a basic JSFML application to understanding its very details in order to build complex applications like scene graphs (games!).
Note that the documentation is currently a work in progress before the first actual release of JSFML.
- Setup — The preparations required to setup a JSFML application. Don't worry, it's not much!
- Windows — Creating a window and maintaining a basic refresh loop.
- Input — Handling user input via keyboard, mouse and gamepads.
- Vectors — Using JSFML's vector classes.
- Shapes — Displaying primitive shapes.
- Transformation — Moving, rotating and scaling objects.
- Timing — Using clocks to control actions and movement.
- Textures and Images — Loading and saving textures and images, making screenshots.
- Sprites — Displaying textures or parts of them.
- Fonts — Loading fonts and understanding their properties.
- Texts — Printing texts.
- VertexArrays — Using vertex arrays to draw custom 2D meshes and gradients.
- Views — Using views to scroll, zoom and rotate the whole scene.
- RenderTextures — Rendering to a texture.
- Drawables and RenderStates — Implementing your own drawables and understanding how render states work.
- Shaders — Using GLSL shaders for advanced effects.
- SoundBuffers and Sounds — Loading and playing sound effects.
- Music — Streaming music.
- SoundBufferRecorders — Recording and saving sounds.
- SoundStreams — Implementing your own sound stream.
This is a collection of useful tutorials for common tasks.
- MP3 Playback — Streaming MP3 audio files using a custom SoundStream and the MP3 SPI.