Results 1 to 3 of 3

Thread: Loading Textures by glTexImage2D

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    17

    Loading Textures by glTexImage2D

    Hi, ALL!

    Anyone now that glTexImage2D support different input and output data types, even GL_BGR_EXT and GL_BGRA_EXT for windows bitmap. But, does anyone know how use input data stored in 16 bits per pixel (555 or 565) without manually converting into supported type.

    Thanks.

  2. #2
    Member Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    77

    Re: Loading Textures by glTexImage2D

    Yes, you do it this way: check for the extension EXT_packed_pixel.
    If it's found use an internal_format of GL_RGB5_A1, or GL_RGBA4. Look the specs for more info/formats.
    Note that drivers without that ext, won't work with the mentioned formats.
    --
    Paolo M.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    17

    Re: Loading Textures by glTexImage2D

    Thanks, paolom!

    [This message has been edited by Mad Max (edited 02-17-2000).]

Similar Threads

  1. glTexImage2D not loading all textures (JOGL)
    By JackHack96 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 09-02-2015, 05:45 AM
  2. Problem when using multiple textures (With glTexImage2D)
    By ZeroSum in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-13-2015, 03:23 PM
  3. where glTexImage2D loading the image
    By XaBerr in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-12-2013, 01:14 PM
  4. loading GL_RGBA16F to glTexImage2D
    By welford in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 07-03-2013, 10:57 PM
  5. glTexImage2D with 16F textures?
    By Leadwerks in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 03-14-2009, 08:48 PM

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