Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
resources
README.md
flippy_bird.nim
gl.nim
nim.cfg
pong.nim
shader.nim
shapes.nim
simple.nim
snakes.nim
sound_capture.nim
test_graphics.nim
test_system.nim
typing.nim

README.md

Examples

simple

  • Show a Window
  • React to close event

flippy_bird

  • Show a RenderWindow
  • Unicode window title
  • React to close and keyboard events
  • Use a Texture and a Sprite
    • Move, scale, rotate, draw

pong

Pong example from SFML

  • Sound and SoundBuffer
  • RectangleShape and CircleShape
  • Text and Font
  • Clock
  • Keyboard querying
  • Math

snakes

  • Setup antialiasing
  • Object-oriented
  • Custom drawables
  • RenderStates
  • Keyboard events

sound_capture

Sound Capture example from SFML

  • Record sound
  • Play sound
  • Save sound

shapes

  • VertexArray
  • drawPrimitives
  • ConvexShape
  • Custom Shape

gl

  • Basic OpenGL

shader

Parts of the Shader example from SFML

  • Fragment and vertex shaders
    • Load from file
    • Set arguments
    • Apply

typing

  • Keyboard events, TextEntered
  • Unicode (Rune) string

Acknowledgements

You can’t perform that action at this time.