Results 1 to 6 of 6

Thread: does opengl provide some functions to load tga ?

  1. #1
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    does opengl provide some functions to load tga ?

    does opengl provide some functions to load tga pictures ?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    California, USA
    Posts
    167

    Re: does opengl provide some functions to load tga ?

    No, but there are image libraries out there that you can use, or you could write your own loader. The .tga format is very simple to parse, and its not much more difficult to handle compressed images. If you go to www.wotsit.org you can find the .tga specification.

    Old GLman

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: does opengl provide some functions to load tga ?

    No, you have to use your own routine of someone elses.
    I have a TGA loader that I use on my website.
    http://www.angelfire.com/linux/nexusone/index.html


    Originally posted by jirkamelich:
    does opengl provide some functions to load tga pictures ?

  4. #4
    Guest

    Re: does opengl provide some functions to load tga ?

    Originally posted by jirkamelich:
    does opengl provide some functions to load tga pictures ?
    Yeah, they are called fopen() and fread(). Funny thing though--they moved the documentation for these functions from the "OpenGL" section over to the "C runtime library" section of the help file, for some odd reason.

  5. #5
    Senior Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    764

    Re: does opengl provide some functions to load tga ?

    If you use GLFW instead of GLUT, win32 API, MFC, glX or whatever, you can load TGA files (either to local memory or directly to texture memory) with a simple function call.

  6. #6
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    macedon, ny
    Posts
    288

    Re: does opengl provide some functions to load tga ?

    www.imagelib.org devIL, by far the BEST image loader, with native opengl style syntax i have found yet.

Similar Threads

  1. Replies: 9
    Last Post: 10-18-2014, 02:00 PM
  2. OpenGL should provide direct font support
    By LuisAK in forum OpenGL: General
    Replies: 44
    Last Post: 09-25-2013, 04:01 AM
  3. could add some functions to load image?
    By beginnertom in forum OpenGL: General
    Replies: 2
    Last Post: 03-30-2010, 09:41 PM
  4. Provide typedefs for OpenCL functions
    By ebfe in forum OpenCL
    Replies: 0
    Last Post: 02-24-2010, 02:01 AM
  5. Has openGL provide matrix checking fuction?
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-02-2000, 02:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean