OpenGL help

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by BalrogSoft.

Hi

Im was trying to aply a texture to one face of the spinning cube example, but i dont know anything about opengl, i think that is GLbindtexture_(#GL_TEXTURE_2D,ID), and i dont know how to load an image and assign with open gl, if something know how reply this post...

Thanks, and bye.

Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by traumatic.

well, glBindTexture() is just the final step.

you have to generate a texture first (ie uploading to video-card-mem) then apply texture coordinates to your cube.

please have a look at http://nehe.gamedev.net and go through all the tutorials you can find there. they're awesome and will teach you almost everything you need to know.

you should be able to translate the code there with ease if you're kind of comfortable with c/c++.

if you really want to know what you're doing, i recommend you to buy the following book: "OpenGL Game Programming". Simply search for it on Amazon. It's a really great book!

feel free to contact me for further help.
Post Reply