[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Unsigned int conversion and OpenGL
From: |
Daniel Dewey |
Subject: |
Re: [Chicken-users] Unsigned int conversion and OpenGL |
Date: |
Sat, 7 Jun 2008 14:39:30 -0400 (EDT) |
User-agent: |
SquirrelMail/1.5.1 [CVS] |
> I assume the address returned is negative, right? This is actually a bug -
> "pointer->address" should return an unsigned number. Isn't the second
> argument to glBindTexture a non-pointer argument? If yes, just use the
> negated address (if I understand correctly, you just have to have a unique
> value for the texture name - but I'm not an OpenGL expert).
> glBindTexture lets you create or use a named texture. Calling
> glBindTexture with target set to GL_TEXTURE_1D, GL_TEXTURE_2D,
> GL_TEXTURE_3D and texture set to the name of the newtexture binds the
> texture name to the target. When a texture is bound to a target, the
> previous binding for that target is automatically broken.
You're right, I was confused about what I was passing to glBindTexture, and by
the fact that pointer->address was returning a negative number. It's fixed now,
thanks for the help guys!
~Daniel