• Advertisement
Sign in to follow this  

[SOLVED]Texture ''Cropping''?

This topic is 3311 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So I recently discovered my driver doesn't support non-square textures. Which is fine, and I know there is an easy work-around. Someone on this forum actually told me there was. So I am in the blue! I just don't know the proper terminology to research this topic. Essentially here's the "problem", I have an image 32 by 32 pixels. I load the whole image to my texture. Buttt - when I wanna texture I only wanna texture say 16 by 24 of those pixels to my quad. What is the term for this? If it's simple and you know the function off-hand please tell :). Thanks for reading! [Edited by - Cakey on January 25, 2009 6:51:34 PM]

Share this post


Link to post
Share on other sites
Advertisement
See that doesn't help me much... Because yeah that's what I want to do but what is that called?

is that done with :glTexImage2D( GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
const GLvoid *pixels )
????

Share this post


Link to post
Share on other sites
Wow okay thanks! I'm not the brightest. If I could I really would give you a cookie.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement