Results 1 to 2 of 2

Thread: Problem Loading Part Of Texture

  1. #1
    Newbie Newbie
    Join Date
    Jan 2013
    Posts
    2

    Question Problem Loading Part Of Texture

    Hello There,

    I am currently creating a game in OpenGl and GLUT on xCode. At the moment, I have gotten the game to load whole textures and display them perfectly. However, I wish to only display part of the texture.

    I have various sprite sheets that vary in size and I want to load a sprite from one, how would i do this?

    Thanks In Advance,
    Matt

    P.S - Sorry if the question was not too detailed, if you need more information then please ask. The jist of the question is: how do i load only part of a texture?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    Most texture formats do not readly lend themselves to partial loads. The most partical is probably to load the whole image, copy the bit you want and discard the original image. If you don't want to do this you will need to write a customised loader.

Similar Threads

  1. Problem loading the texture
    By Sapphire in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-09-2015, 03:43 PM
  2. Texture loading problem
    By gui24a in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 08-21-2008, 09:38 AM
  3. I have a problem with loading TGA-texture
    By Liberty_2000 in forum OpenGL ES
    Replies: 1
    Last Post: 12-28-2004, 11:14 AM
  4. Texture loading problem.
    By Questions Burner in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-07-2001, 05:58 AM
  5. JPG TEXTURE LOADING PROBLEM =(
    By TPManiac2001 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-01-2001, 06:59 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