Y
Hacker News
new
|
ask
|
show
|
jobs
by
MikkoFinell
3108 days ago
Why not?
1 comments
grenoire
3108 days ago
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.
link
flohofwoe
3108 days ago
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
)
link
Narishma
3108 days ago
SDL is more than enough for something simple like this. You don't need to mess with OpenGL.
link
weeber
3108 days ago
Yes with SDL Surfaces.
link
krapp
3108 days ago
Textures would be better. Surfaces are raw data, but textures are optimized for the individual hardware.
link
newnewpdro
3108 days ago
SDL2 is pretty popular these days
link
Grieverheart
3107 days ago
One of my goals is to reuse parts of the engine for future projects where hardware acceleration might be used.
link
weeber
3108 days ago
Exactly!
link