Unable to load a image to a surface in an constructor

Started by
10 comments, last by walle 18 years, 8 months ago

This might work for ya

"data//paddle.png" <- plus, you are using png I dont ... I use bmp
http://lazyfooproductions.com/SDL_tutorials/lesson03/index.php

Advertisement
No...I didn't call SDL_init() before the constructor...because it's a global variable and the init is in main...
Thanks everyone...I feel stupid!

This topic is closed to new replies.

Advertisement