The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL fails to load textures
William
Guest

So I was following this set of tutorials
http://lazyfoo.net/tutorials/SDL/index.php until I hit a dead end- SDL
didn't want to load textures. When I got to the part where you can load
textures, whenever I tried running the program, it instantly closes with no
console messages. Even though I copied the code here almost exactly
http://lazyfoo.net/tutorials/SDL/07_texture_loading_and_rendering/index.php
SDL still wanted to be disagreeable.

Any advice?

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL fails to load textures
William
Guest

William <williamowenfowlk <at> gmail.com> writes:

Quote:

So I was following this set of tutorials
http://lazyfoo.net/tutorials/SDL/index.php until I hit a dead end- SDL
didn't want to load textures. When I got to the part where you can load
textures, whenever I tried running the program, it instantly closes with no
console messages. Even though I copied the code here almost exactly
http://lazyfoo.net/tutorials/SDL/07_texture_loading_and_rendering/index.php
SDL still wanted to be disagreeable.

Any advice?

Shoot, forgot to mention, I'm currently using the command line version of
MinGW and the g++ compiler. I'm using mingw32-make to compile the files.




_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL fails to load textures
Christian Leger
Guest

Thought it might seem painful, I'd say you should try to describe your setup in more detail. For example, what system are you working with? What version of SDL are you using? I recommend you be as detailed as possible, while staying as concise as possible.


Also, have you observed any error or log messages that could provide hints? The Lazy Foo code does have some minimal error checking.


Also, did you make an attempt to debug this program using GDB or something else, possibly Visual Studio? Doing this, you could try to figure out how much of the program is working as intended, ie verify that texture data is getting loaded and pixel values are what you expect them to be (try loading all-black and all-white textures for instance).


Good luck.

On Sat, Jul 2, 2016 at 1:30 PM, William wrote:
Quote:
William <williamowenfowlk <at> gmail.com> writes:

Quote:

So I was following this set of tutorials
http://lazyfoo.net/tutorials/SDL/index.php until I hit a dead end- SDL
didn't want to load textures. When I got to the part where you can load
textures, whenever I tried running the program, it instantly closes with no
console messages. Even though I copied the code here almost exactly
http://lazyfoo.net/tutorials/SDL/07_texture_loading_and_rendering/index.php
SDL still wanted to be disagreeable.

Any advice?

Shoot, forgot to mention, I'm currently using the command line version of
MinGW and the g++ compiler. I'm using mingw32-make to compile the files.




_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org