Advertisement

I'm a little fuzzy on how to draw directly to the display...[SDL]

Started by December 05, 2004 04:27 PM
10 comments, last by GameDev.net 20 years, 2 months ago
Quote:
Original post by Khaosifix
In the SDL documentations SDL_Surface::pixels is defined as a void*. How is it possible to perform arithmetics on a void*? C++ is a weird language...


void* simply means "some pointer", alone it means nothing, but if you type cast it, you can actually use it. Using void* is an advance topic that takes some time to understand, so don't worry if you dont get it, you wont use it in your own code.

This topic is closed to new replies.

Advertisement