Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

OpenGL textures

Name: Anonymous 2008-04-01 23:20

Is there a way to use bitmaps for textures without using the crazy classes? Everywhere i check the code always has a shitload of classes for simply importing a bmp/tga file.

Name: Anonymous 2008-04-01 23:39

OpenGL has nothing to do with loading the actual textures -- you just pass it a pointer to the byte stream containing the image data. What you're looking for is a good image loading library.

I'd recommend taking a look at SDL with SDL_Image -- together they can load just about any image format. You might also consider something like libpng, etc. Or, hell, since you're just dealing with bitmaps you could write your own loader (I've done it before, it's not really hard at all -- pain in the ass to get a good format specification though).

Name: Anonymous 2008-04-02 0:04

>>1
OpenGL has nothing to do with classes. It's all C, baby.

Name: Anonymous 2008-04-02 1:12

>>1
I refuse to be trolled

Name: Anonymous 2010-12-06 9:34

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2010-12-25 16:12

Name: Anonymous 2011-02-03 3:16

Name: Anonymous 2011-02-04 19:41

Name: Sgt.Kabukiman 2012-05-21 13:41

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List