https://github.com/fowlmouth/nimrod-sfml
Nimrod binding of SFML 2.0 (legacy software)
https://github.com/fowlmouth/nimrod-sfml
Last synced: 3 months ago
JSON representation
Nimrod binding of SFML 2.0 (legacy software)
- Host: GitHub
- URL: https://github.com/fowlmouth/nimrod-sfml
- Owner: fowlmouth
- Created: 2012-07-30T21:44:30.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-03-09T08:21:06.000Z (over 10 years ago)
- Last Synced: 2025-01-20T17:16:14.513Z (5 months ago)
- Language: Nimrod
- Homepage:
- Size: 531 KB
- Stars: 12
- Watchers: 5
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sfml-nimrod
===========*This wrapper is outdated.* Please use this newer CSFML wrapper: https://github.com/BlaXpirit/nim-csfml
Nimrod binding of SFML 2.0
This is only tested for Linux at the moment
### What is needed for Windows / OS X?
* The library names need filling in
* TWindowHandle is handled differently on those platformsI believe that is it
### C++ caveats
At this point in time Nimrod needs a little work to support C++ constructors. If
you do `var window = Window(args)` this will not work, because sf::Window overrides
the `=` operator. Instead, you should declare the window and then call the #create
method on it: `var window: TRenderWindow; window.create(args)`. Most of the SFML
interface is like this: `var font: TFont; font.loadFromFile("somefont.ttf")`