Thread: Graphics in Windows Console

  1. #1
    Registered User
    Join Date
    Jul 2017
    Posts
    9

    Graphics in Windows Console

    Hello guys!
    I decided to publish my new creation here in this forum.
    Ok. What i've created is an application that loads TGA(Targa) files
    and the renders onto the Windows Console.

    You can load and render any image you want in TGA format.

    Heres a video showing this application in action:



    Thank you for your time. Enjoy and don't forget to get the source code from the video description.

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    May I suggest github for posting your source code.

    Your UnloadTGA function is a huge memory leak. You should free the memory, not just set the pointers to NULL.

    Also, don't use goto unless it's absolutely necessary, which in your case isn't.

    Lastly, errors should be printed on stderr because that is its purpose.

    I'm not trying to discourage you, you understand, I'm just trying to help you make it better.
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Jul 2017
    Posts
    9

    Post

    Quote Originally Posted by GReaper View Post
    May I suggest github for posting your source code.

    Your UnloadTGA function is a huge memory leak. You should free the memory, not just set the pointers to NULL.

    Also, don't use goto unless it's absolutely necessary, which in your case isn't.

    Lastly, errors should be printed on stderr because that is its purpose.

    I'm not trying to discourage you, you understand, I'm just trying to help you make it better.
    No problem...I really appreciate your comments about my code...yeah well you're right i think i'll be more careful next time.

    Thank you

    PS: Now you can edit the source code and make it better that'll be cool.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. graphics in the console
    By YunHarla3000 in forum C Programming
    Replies: 2
    Last Post: 11-09-2009, 12:14 PM
  2. console graphics
    By vaibhav in forum C++ Programming
    Replies: 12
    Last Post: 01-11-2006, 02:13 AM
  3. Console Graphics
    By tetradtech in forum Linux Programming
    Replies: 0
    Last Post: 10-27-2002, 11:12 AM
  4. graphics in c/c++ console apps
    By anthonye in forum C Programming
    Replies: 2
    Last Post: 06-20-2002, 05:39 AM
  5. console graphics??
    By kormofi in forum C++ Programming
    Replies: 1
    Last Post: 06-13-2002, 04:37 AM

Tags for this Thread