News for hackers. Stuff that matters.
Re:Skia: an open source 2D graphics library by PeCaN on Sunday January 14, 2018 @05:27PM (#16146869)
Skia is probably the most popular 2D graphics library at the moment. I don't really know why this got on HN now. It's already extremely popular.

I use it in a little WIP game engine. It's very pleasant, excellent little library. There's an online jsfiddle-esque demo here https://fiddle.skia.org/ if you want to try it out.

Re:Skia: an open source 2D graphics library by puzzle on Sunday January 14, 2018 @08:16PM (#16147723)
The funny thing is that Skia is a startup in NC that was acquired more than a decade ago and turned into one of the smallest and most elusive Google engineering offices, basically just to keep Mike Reed (TrueType and TrueType GX) and his people.
Re:Skia: an open source 2D graphics library by osteele on Sunday January 14, 2018 @09:59PM (#16148185)
The original “Skia” was the development name for QuickDraw GX[1]. (I don’t know why the Wikipedia page doesn’t say that any more.) Cary Clark, who now works at said “elusive Google engineering office”, was the mastermind behind that Skia. TrueType was a sibling project; we (QuickDraw GX team) collaborated closely with them.

Mike’s AlphaMask (sold to OpenWave) didn’t share code with the original Skia but was kind of a Skia 2, with more flexible and clearer architecture than the original. This Skia—which, again, doesn’t share code with either of its predecessors—is a kind of version 3, with a tribute name back to that original Skia.

[1]: https://en.wikipedia.org/wiki/QuickDraw_GX

Re:Skia: an open source 2D graphics library by TeMPOraL on Monday January 15, 2018 @12:54AM (#16148784)
Been one feet in the gamedev space for pretty much my whole teenage and adult life, and it's the first time I've heard about it. It might be me just not paying attention, or maybe it's not that popular for end-users.
Re:Skia: an open source 2D graphics library by veli_joza on Monday January 15, 2018 @11:33AM (#16151479)
You could use it inside your custom game engine, but it wouldn't make much sense. Most 2D games work with bitmaps and sprite-sheets and Skia gives you full vector graphics. It's huge dependency, inflates your executable by few tens of megabytes and still doesn't give you window management and input handling and so on. SDL is still the king here - it provides just enough to build upon in reliable and cross-platform fashion.

Skia would be more useful for graphical applications focused on vector graphics (diagrams, plots, layout editors, CAD...). And for general purpose 2D graphic platforms like browsers have.

Re:Skia: an open source 2D graphics library by percentcer on Sunday January 14, 2018 @05:53PM (#16147008)
I have a little 2d game that I'd like to port over to Skia. What did you end up using to handle input and audio and other gamey things?
Re:Skia: an open source 2D graphics library by megaman22 on Sunday January 14, 2018 @06:14PM (#16147119)
I would think SDL would be an easy cross-platform choice there.
Re:Skia: an open source 2D graphics library by emmelaich on Sunday January 14, 2018 @11:46PM (#16148538)
You might look at https://sciter.com/ Which apparently uses Cairo, Direct2D or Skia depending on the platform.
Re:Skia: an open source 2D graphics library by PeCaN on Monday January 15, 2018 @02:31AM (#16149130)
I used https://github.com/jkuhlmann/gainput for input. I never did get around to handling audio.

For the UI I used imgui. Skia actually comes with an imgui backend (it's used for the Viewer tool) that is easy enough to hack into whatever you need.

Re:Skia: an open source 2D graphics library by emmelaich on Sunday January 14, 2018 @11:48PM (#16148546)
Nice but got "Failed to run, possibly violated security container"
Re:Skia: an open source 2D graphics library by hwc on Monday January 15, 2018 @01:09PM (#16152225)
The little server that runs fiddle.skia.org is probably overloaded.
Re:Skia: an open source 2D graphics library by pjmlp on Monday January 15, 2018 @06:52AM (#16149953)
Not sure where it is popular.

Even I rather use SDL, written in C, than having to deal with getting to compile Skia across my platforms.

Then there is Cocos2d-x, SFML and OpenFrameworks as well.

Re:Skia: an open source 2D graphics library by joezydeco on Sunday January 14, 2018 @08:50PM (#16147852)
How many Android devices are out there right now? They've all been using Skia since day one.
Re:Skia: an open source 2D graphics library by pjmlp on Monday January 15, 2018 @02:46AM (#16149180)
It is not exposed to native code.
Re:Skia: an open source 2D graphics library by acron0 on Monday January 15, 2018 @04:49AM (#16149566)
What's realtime perf like?