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 24, 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 for time measurement, timers and procedural animation.
- Textures and Sprites — Loading and displaying textures, and frame animation.
- Fonts and Texts — Loading fonts and printing texts using them.
- 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.
- Images — Loading, manipulating and saving images.
- 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 that do not really fit into the basic documentation. These range from beginner to advanced experience levels.
- MP3 — Streaming MP3 audio files using a custom SoundStream and the [MP3 SPI]
- Screenshots — Taking screenshots using Textures and Images. (http://www.javazoom.net/mp3spi/mp3spi.html).