haskell-game / sdl2-ttf Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rongcuid/sdl2-ttf
All credit be to @osa1 and friends for their initial effort!
License: Other
This project forked from rongcuid/sdl2-ttf
All credit be to @osa1 and friends for their initial effort!
License: Other
The travis script is already there, but I guess somebody from @haskell-games travis user group has to plug it in.
I tried to build master (d98b475) by running stack install
but I get
path/to/haskell-game/sdl2-ttf/src/SDL/Font.hs:104:1: error:
Failed to load interface for ‘SDL.Internal.Exception’
@rongcuid: I'm just adding some other packages that I maintain to Stackage and I'd take over sdl2-ttf on Stackage as well, so that the stackage people don't bother you if something stops working, unless you'd like to keep being the responsible person on Stackage (I don't think they support multiple persons responsible for one package). Please let me know if you'd like to keep the package on Stackage and I will stop or revert the change. Thanks again!
I'm thinking short term, as a user: I need the best of both worlds.
I need the breadth of bindings coverage and the good character translation implementation of https://github.com/sbidin/sdl2-ttf (see my remarks and links at rongcuid#4 (comment))
But I also need the various fixes of this very repo (I've already contributed some as pull requests to https://github.com/sbidin/sdl2-ttf) and probably a feature or two as well (didn't look closely enough).
Finally, I need this package on Hackage so that people can build my game directly from Hackage and so that hydra.nixos.org can build it automatically just with cabal.
Lets move the discussion from rongcuid#4 to here.
Off the top of my head:
give the maintainer (@rongcuid) all kinds of permissions, e.g,. to edit the top repo description line, which should probably say something like "This is the official location of the repo"
it would be ideal if all the old repo forks (@mankyKitty, @osa1, @rongcuid) could change their repository description (the one at the top) to something like "The official repo location is now" and then edit the link to point to
also, ideally they'd block their issuse interfaces and wikis (I don't think one can block pull requests)
party!
As of this writing, they are not released yet, despite being ready for a year on http://hg.libsdl.org/SDL_ttf/, but we could already bind to them conditionally, for people using unreleased SDL_ttf from the repo.
As far as I've seen SDL_CreateTextureFromSurface
is not supported yet, is it?
(on windows 7 64 bit)
The following program works and briefly displays a window
{-# LANGUAGE OverloadedStrings #-}
module Lib
( someFunc
)
where
import qualified SDL
import qualified SDL.Font
someFunc :: IO ()
someFunc = do
SDL.initialize [SDL.InitVideo]
window <- SDL.createWindow "App" SDL.defaultWindow
SDL.showWindow window
SDL.delay 1000
SDL.destroyWindow window
SDL.quit
Adding
SDL.Font.initialize
underneath SDL.initialize
causes the program to compile and run but no longer show a window. No error message is shown in the output of the program.
I encountered this using stack with the following declared dependencies:
build-depends:
base >=4.7 && <5
, sdl2
, sdl2-ttf
I installed the sdl2 libraries using stack's bundled mysys.
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.