More interesting examples can be found in a different repository.
- Show a
Window
- React to close event
- Show a
RenderWindow
- Unicode window title
- React to close and keyboard events
- Use a
Texture
and aSprite
- Move, scale, rotate, draw
- Elapsed time for physics, using
Clock
- Setup antialiasing
- Object-oriented
- Custom drawables
RenderStates
- Keyboard events
- Custom transformable drawable
- Absolute time measurement with
Clock
- Unicode keyboard input
- Text metric measurements
- Periodic events with
Clock
BlendMode
(draw with inverted color)- Detecting features by SFML version
- Listing controllers, screen modes, audio devices
- Mouse state and events
- Keyboard state and events
- Controller state and events
- Drawing with shapes
- Simple GUI (just buttons)
- Switching between views
- Window coordinates vs view coordinates
Sound Capture example from SFML
- Record sound
- Play sound
- Save sound
Parts of the Shader example from SFML
- Fragment and vertex shaders
- Load from file
- Set arguments
- Apply
- HTTP GET request
VertexArray
draw
primitivesConvexShape
- Custom
Shape
- Basic OpenGL
- Record and play back the same stream
SoundRecorder
SoundStream
- sound_capture.cr was adapted from SFML's Sound Capture example
- shader.cr was adapted from SFML's Shader example
- resources: background.jpg, pixelate.frag, wave.vert, blur.frag were taken from SFML's repository
- Ubuntu Regular font is used
- All the other files in this examples folder may be used without any limitations