Help with C++ Programming

  • Niven
    21st Nov 2012 Member 0 Permalink
    I'm trying to load an image using SDL and then converting it to an Opengl texture that will then be displayed on a square (I'm askin about this here because I didn't know where else to ask). Anyways, I wrote the program but when I compile it, the only ouput I get is a plain white square; no texture. I'm using code::blocks as my IDE and I have both the opengl and SDL libraries linked to my program (I did that manually) The code for it is at: http://pastebin.com/xA7FXrzZ
  • coenmcj
    21st Nov 2012 Member 1 Permalink

    I have no idea what to say about this...

     

    although shouldn't it be in Dev. assistance or help or something?..

     

    Also Just going to bump it, see if you can get some help for this.

  • Niven
    21st Nov 2012 Member 0 Permalink
    Well, I put it here since it has nothing to do with tpt. Honestly, I figured most members wouldn't know about how to help and just posted because I thought that maybe a Dev or someone like mniip or boxmein would see it and be able to help.
  • mniip
    21st Nov 2012 Developer 0 Permalink
    @Niven (View Post)
    Nah im not really good at SDL, nor is boxmein
  • Niven
    21st Nov 2012 Member 0 Permalink
    @mniip (View Post)
    That's fine. It turned out the the problem wasn't the program, but the image that I was using (not sure what was wrong with the image though) since It worked fine when I used a different image.
  • boxmein
    21st Nov 2012 Former Staff 0 Permalink
    @Niven (View Post)
    I have but the default things to say - I have personally avoided OpenGL for as long as possible because of its steep learning curve (Though Processing seems like a good way to step up to it!) - try using examples (from searching the web) with your code and see if some of them work, after that see what they did and then compare it to what your code lacked. :O



  • NF
    21st Nov 2012 Member 0 Permalink
    This post has been removed by jacob1: this is windows c++