On Nov 13, 2004, at 3:44 PM, Asher Dunn wrote:
Here's a class adapted from my wrappers:
<http://www.fireyesoftware.com/opengl/GLTexture.rbo>
Example:
dim tex as new glTexture
tex.loadPicture(somePicture)
tex.create(GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR)
now you can call glBindTexture(tex.handle) to use the texture.
Two things: The bind glBindTExture in create should be right after
glGenTexture_RB not at the end of the method, and using both
glTexImage2d and gluBuild2DMipmaps is redundant. Using either of them
is just fine.
After moving the bind, the class worked great.
Thanks,
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
"Information is free. Intelligence is a gift."
------------------------------------------------------------------------
---
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|