timo / sdl2_raw-p6 Goto Github PK
View Code? Open in Web Editor NEWLow-level NativeCall binding to SDL2
License: Artistic License 2.0
Low-level NativeCall binding to SDL2
License: Artistic License 2.0
I'm not entirely sure if it should go into SDL2::Raw at all, but it'd surely be better to have a little module than to have it spread out over all the examples.
Currently in the "main loop" of the examples there's a native num array where frame times (taken using nqp::time_n
, though surely a higher-level function ought to be okay, too, nowadays) are pushed, then at the end they are sorted and a few percentiles are printed out. However, if there's not enough values, sometimes it'll output Any or Nil or so.
It'd be nice to analyze it more thoroughly, like giving information about framerate stability (for example, how often do GC pauses increase frame times?)
As far as I can tell, this module does not have a license attached to it. It would be nice to get a license for this module :) (e.g.: Artistic License v2.0, which Perl6 uses)
It'd be cool to do this in an automated way. Either pull functions from the sdl wiki, or pull it from sdl's hg repository (both on libsdl.net)
http://wiki.libsdl.org/CategoryAPI — this has all the symbols in it, i.e. functions, constants, structs. Would be necessary to differentiate them by type, but it could be a good starting point.
http://wiki.libsdl.org/APIByCategory — this is the page i use most often to figure stuff out, for example when i want to build an example or program, rather than just to add to the bindings
https://hg.libsdl.org/SDL/file/default — this lets you browse the files of SDL's mercurial ("hg") repo
Please add sub SDL_DestroyWindow(SDL_Window $win) is native($lib) is export {*}
and return value to existing functions like SDL_Init etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.