Added: 9 months ago
From: RedReaper132
Views: 4,744
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (19)

Sign In or Sign Up now to post a comment!
  • ok i solved my problem... I added -lSDL_image to the linker settings

  • I have tiny problem.... I tried writing everything by hand and it gave me an error

    ok, I went and copied the code from pastebin and still it gave me an error then i went and copied everything from pastebin and its still giving me an error

    --------> "undefined reference to *IMG_load* could someone help me?

  • oh and i used "r" from previous episodes and the pad seems to appear white in quade shape

  • @Susonamon Hmm did you use my image I uploaded? Also you maybe don't have full OpenGL support so you can't blend properly?

  • @RedReaper132 I´ve got OpenGL v1.4. 66% (Features) from 1.5 and 11% from 2.1

    So not sure where the problem can be. And yes i used your image.

  • @Susonamon Hmm I really don't know what the problem is. Drivers maybe?

  • Hey i have a little problem with image. When i do

    cout << pad_texture << endl;

    It is there (Says 1) but the image doesn´t seem to appear. I cannot see it. I do blended and stuff i checked all codes nothing is wrong typed or something. Please answer i´ve been stucked on this for 2 hours! Thanks

  • Whats the name of your desktop background, 0:00?

  • Comment removed

  • Wait, wait... at around 23 minutes of the video... What was the problem?? o_O

    It worked for me...

  • Great stuff dude!

    I dearly appreciate you tutorials, it's exactly what I want.

    Do u have any future plans on where u want to go with these tutorials? What may we see in the future?

  • are you going to be doing somethings like leveling and damage?

  • hey redreaper, nice tut! :)

    but my game doesn't run anymore, if i add this:

    "unsigned int pad_texture = 0;

    pad_texture = loadTexture("test.png");"

    - it opens, closes immediately and the compiler says:

    "Process terminated with status 3 (0 minutes, 1 seconds)"

  • @djmexxdofficial Make sure that you did everything correct and that the image is where it should be and in the right format. To make sure, copy my whole source and compile it to test it with an image. Because it could be that the image is the only problem.

  • @djmexxdofficial i know your comment was like 3 months ago, but i had the same problem and my sloution was that i was calling load_texture in a constructor that got called before opengl was initialized

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more