Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: Image

  1. #1
    Guest

    Image

    Hi,
    Cane we import a picture(designed in some program)
    to our code to be the background

  2. #2
    Intern Contributor
    Join Date
    Feb 2004
    Location
    Dallas/ Nottingham
    Posts
    96

    Re: Image

    yes you can

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2005
    Location
    Portugal
    Posts
    11

    Re: Image

    Take a look at the NeHe site. There's a lot of info on how to load image files that can be created from applications like Gimp or even "Paint" from Windows...

  4. #4
    Junior Member Newbie
    Join Date
    May 2005
    Location
    Syria
    Posts
    8

    Re: Image

    Originally posted by UrbanLegend:
    yes you can
    You said yes but you did not say how,so if you do know please tell me because i'm working in project to design simple Tennis game
    regards
    Fady
    Fadyjo

  5. #5
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,527

    Re: Image

    He was just making fun because you didn't ask "how".
    The fastest way is normally to load the image from whatever file format you like (TGA uncompressed is one of the simplest), download as texture and render a textured quad as background.

  6. #6
    Junior Member Newbie
    Join Date
    May 2005
    Location
    Syria
    Posts
    8

    Re: Image

    Originally posted by Relic:
    He was just making fun because you didn't ask "how".
    The fastest way is normally to load the image from whatever file format you like (TGA uncompressed is one of the simplest), download as texture and render a textured quad as background.
    please mor much clean because I'm newer to openGL,so if you please give me the steps by code
    Fadyjo

  7. #7
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,527

    Re: Image

    If you are a beginner, you are on the correct site to find all sorts of documentations and tutorials about OpenGL. Take a look on www.opengl.org

    Then search the forum and the internet!
    This topic has been dealt with a lot of times.

    http://www.wotsit.org/ contains descriptions of various file formats.

    The third Google hit for >"TGA" load code< found this nice link http://gpwiki.org/index.php/LoadTGACpp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •