SDL Surface

Why do you need to SDL_Surface* Surface, why can't you just use SDL_Surface. Isn't * a pointer? I just don't understand why you need the pointer and you can't just use SDL_Surface.
Because the functions that create the surface return pointers.
Thank you
closed account (3CXz8vqX)
Indeed it is much to do with the way things are passed around. Note SDL_Surface* is exactly the same as SDL_Surface * Surface and exactly the same as SDL_Surface *Surface

SDL_Surface is a class which ... you know what... Cplusplus explains this better than I do. (Mostly because I'm still trying to work out pointers myself). Check towards the bottom.
Topic archived. No new replies allowed.