Hi, I was wondering, how can I get the width and length of a surface?
An example:
SDL_Surface* s;
//You alloc your surface, with loadImage or something elseā¦
s->w is the width
s->h is the height
(SDL 1.2)From: theweirdn8
Sent: Saturday, March 19, 2011 10:58 PM
To: sdl at lists.libsdl.org
Subject: [SDL] How do I get dimensions of a surfaces?
Hi, I was wondering, how can I get the width and length of a surface?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org