Skip to main content
gamedev.net
🔒 Locked

SDL Image Question

Started by probing Aug 23, 2008 at 2:39 AM 1 replies 1.1k views
Original Post
probing
probing
Hi! In SDL, Is there any way to get the dimensions(width, height) of an image file instead of inputting it manually?
Lazy Foo
Lazy Foo
The w member
surfaceName->w;

You should really make sure to have the SDL documentation handy.
Learn to make games with my SDL 2 Tutorials
probing
probing
Thanks! Coincidentally, I'm reading one of your tutorials at the moment.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.