Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
grenoire
on May 27, 2018
|
parent
|
context
|
favorite
| on:
Space Invaders from Scratch
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.
flohofwoe
on May 27, 2018
|
next
[–]
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
)
Narishma
on May 27, 2018
|
parent
|
next
[–]
SDL is more than enough for something simple like this. You don't need to mess with OpenGL.
weeber
on May 27, 2018
|
root
|
parent
|
next
[–]
Yes with SDL Surfaces.
krapp
on May 28, 2018
|
root
|
parent
|
next
[–]
Textures would be better. Surfaces are raw data, but textures are optimized for the individual hardware.
newnewpdro
on May 27, 2018
|
parent
|
prev
|
next
[–]
SDL2 is pretty popular these days
Grieverheart
on May 28, 2018
|
prev
|
next
[–]
One of my goals is to reuse parts of the engine for future projects where hardware acceleration might be used.
weeber
on May 27, 2018
|
prev
[–]
Exactly!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: