polarina / sdl2 Goto Github PK
View Code? Open in Web Editor NEWHaskell bindings to the SDL2 library
License: Other
Haskell bindings to the SDL2 library
License: Other
Hi there,
Couple points:
It seems in the best interest of everyone to just bring both under one package. In #haskell-game we were wondering whether it's possible to merge hsSDL2 into the sdl2
package. Then the budding Haskell game programmer doesn't have to hunt around or rely on community knowledge, she can just write:
$ cabal install sdl2
And away they go. And we can all focus our efforts on polishing one single high-quality package. We could possibly put everything under https://github.com/haskell-game and then add us all as members.
For a simple straw man to debate, I'll propose:
The low-level bindings become:
Graphics.UI.SDL.Base.*
The high-level bindings become
Graphics.UI.SDL
The high-level ones can depend upon the low-level ones by importing *.Base.*
.
What are your thoughts? If it would sway people's opinion, I'd be willing to put the initial work in one a merge of these two packages on some haskell-game/sdl2 or so.
Pinging also contributors to hsSDL2 for whom this will be of interest: @ocharles @lemmih @jdeseno @osa1 @pupeno @elliottt @Drezil @z0w0 @albertfong @codekitchen @cjay @simonmichael @tcsavage @rhymoid @ericnething @sshilovsky @joelburget @chrra @Peaker @cmears @ghorn @EdwardK
I just emailed you this, but I found this repo afterward so I'll just repost it here:
My executable using sdl2
crashes with the following message:
sdl-canvas: Unknown type 2304 for SDL_Event
I looked this up in the SDL v2.0.3 source, and on line 131 of SDL_events.h
I found the following:
/* Clipboard events */
SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */
0x900 is 2304, so this appears to be the missing event type.
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.