Results 1 to 3 of 3

Thread: getting started with Texturing.

  1. #1
    Member Contributor
    Join Date
    Oct 2002
    Location
    bangalore
    Posts
    56

    getting started with Texturing.

    Hi all,
    this will be my first code with texturing.
    please help me out with how to load a simple
    bmp file as a texture.( i am on Linux using MESA)
    i want to use this bmp as a background.

    thanks in advance,
    prashant
    thanks & regards
    Prashant G.P

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

    Re: getting started with Texturing.

    If you are using Linux, I suggest using TGA file format for your textures.

    There are a few utilities out there that will convert BMP to TGA format. I use Paint shop pro which is a very nice graphics editor.

    I have a TGA texture loading example on my website:
    http://www.angelfire.com/linux/nexusone/index.html


    Originally posted by prashantgp:
    Hi all,
    this will be my first code with texturing.
    please help me out with how to load a simple
    bmp file as a texture.( i am on Linux using MESA)
    i want to use this bmp as a background.

    thanks in advance,
    prashant

  3. #3
    Member Newbie
    Join Date
    Dec 2002
    Location
    Bucharest, Romania
    Posts
    41

    Re: getting started with Texturing.

    For handling images, I use the SDL_image library. I also use it for the window management. With SDL_image you can load textures as simple as IMG_Load(filename). Search the net to find the library.

Similar Threads

  1. Just Started
    By djhabana in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-25-2011, 06:28 AM
  2. Multi-Texturing and .... normal texturing?
    By Andy Gilbert in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-06-2010, 05:30 PM
  3. How do I get started?
    By Lickenbo in forum OpenGL: macOS
    Replies: 3
    Last Post: 02-16-2010, 02:13 PM
  4. Texturing and Texturing (newbie)
    By Sudeepa in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-17-2008, 05:47 AM
  5. Getting started
    By in forum OpenGL: Linux
    Replies: 0
    Last Post: 03-29-2004, 11:08 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