News for hackers. Stuff that matters.
Re:Space Invaders from Scratch by weeber on Sunday May 27, 2018 @11:53AM (#17167416)
Interresting, but the OpenGL setup is not necessary?
Re:Space Invaders from Scratch by MikkoFinell on Sunday May 27, 2018 @12:47PM (#17167754)
Why not?
Re:Space Invaders from Scratch by grenoire on Sunday May 27, 2018 @01:32PM (#17168008)
The author is handling sprite rendering entirely on the CPU, he's only using OpenGL to put a bitmap on the window. Little bit unnecessary.
Re:Space Invaders from Scratch by flohofwoe on Sunday May 27, 2018 @03:09PM (#17168546)
GLFW+GL provides a portable way to do this though. Otherwise you'd need to mess with platform-specific window systems.

(something like minifb would be a more minimal option though: https://github.com/emoon/minifb)

Re:Space Invaders from Scratch by Narishma on Sunday May 27, 2018 @03:58PM (#17168817)
SDL is more than enough for something simple like this. You don't need to mess with OpenGL.
Re:Space Invaders from Scratch by weeber on Sunday May 27, 2018 @05:14PM (#17169141)
Yes with SDL Surfaces.
Re:Space Invaders from Scratch by krapp on Sunday May 27, 2018 @09:18PM (#17170094)
Textures would be better. Surfaces are raw data, but textures are optimized for the individual hardware.
Re:Space Invaders from Scratch by newnewpdro on Sunday May 27, 2018 @03:40PM (#17168731)
SDL2 is pretty popular these days
Re:Space Invaders from Scratch by Grieverheart on Monday May 28, 2018 @01:52PM (#17173758)
One of my goals is to reuse parts of the engine for future projects where hardware acceleration might be used.
Re:Space Invaders from Scratch by weeber on Sunday May 27, 2018 @05:12PM (#17169135)
Exactly!