This repository has been archived by the owner on Jun 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Home
pdinklag edited this page Aug 23, 2012
·
21 revisions
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 and Rectangles — About JSFML's vector and rectangle classes.
- Shapes — Displaying primitive shapes.
- Transformation and Bounds — Moving, rotating and scaling objects and retrieving their AABB.
- 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.