This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Mackan90096's profile picture

[Non-LUA] C++ Graphics

Started by Mackan90096, 03 June 2013 - 12:22 AM
Mackan90096 #1
Posted 03 June 2013 - 02:22 AM
Hi! As you might know I'm currently derping around with C++ . Well. I'm trying to make a game but I need a 2D graphics engine.

I want it to be welldocumented as well. I only need it for 2D graphics.
GravityScore #2
Posted 03 June 2013 - 02:35 AM
SMFL is generally the most recognised (I think). Very widely used and well documented.

You could always just use OpenGL, but that's probably a bit more difficult.

SDL is another one. Never used it but looks Ok.

Or you could do something really silly and run a JavaVM using JNI and use Swing and Java for the GUI :P/> (jks… don't actually do this).
Mackan90096 #3
Posted 03 June 2013 - 02:39 AM
Or you could do something really silly and run a JavaVM using JNI and use Swing and Java for the GUI :P/> (jks… don't actually do this).

That seems very um… overcomplicated
oeed #4
Posted 03 June 2013 - 02:43 AM
SDL is probably the most common and therefore probably has the most tutorials.
Mads #5
Posted 03 June 2013 - 07:08 AM
OpenGL 3.2 is the way to go! It is very very very very very very very very very fast, and not too hard to use(try using Xlib o_0)
Tiin57 #6
Posted 03 June 2013 - 07:23 AM
OpenGL 3.2 is the way to go! It is very very very very very very very very very fast, and not too hard to use(try using Xlib o_0)
2D? Isn't OpenGL 3D?
Mads #7
Posted 03 June 2013 - 07:32 AM
OpenGL 3.2 is the way to go! It is very very very very very very very very very fast, and not too hard to use(try using Xlib o_0)
2D? Isn't OpenGL 3D?
Yes, but you can easily use it for 2D. If you then later on want to add fancy lights and shit, you can easily add that.