LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: cfmdobbie on January 22, 2004, 21:46:43

Title: glTexParameter[if]v?
Post by: cfmdobbie on January 22, 2004, 21:46:43
Are the Buffer versions of glTexParameter missing, or am I looking in the wrong place? :?:
Title: glTexParameter[if]v?
Post by: elias on January 23, 2004, 06:46:23
They seem to be missing. Show me a parameter that needs the pointer version and I'll add it right away to cvs.

- elias
Title: glTexParameter[if]v?
Post by: cfmdobbie on January 23, 2004, 11:07:48
The only parameter I can see that needs it is GL_TEXTURE_BORDER_COLOR:

GL_TEXTURE_BORDER_COLOR
Sets a border color. params contains four values that comprise the RGBA color of the texture border. Integer color components are interpreted linearly such that the most positive integer maps to 1.0, and the most negative integer maps to -1.0. The values are clamped to the range [0,1] when they are specified. Initially, the border color is (0, 0, 0, 0).

I guess we only need the FloatBuffer version - if indeed you decide it's worth adding at all.  I'm converting some code that uses border colours, although I'd never use them myself! :roll:
Title: glTexParameter[if]v?
Post by: elias on January 23, 2004, 11:24:24
Sounds reasonable - I will add it as soon as possible.

- elias
Title: glTexParameter[if]v?
Post by: elias on January 23, 2004, 12:38:07
Blah, that will have to wait - it seems that sourceforge has lost a cvs server...

- elias
Title: glTexParameter[if]v?
Post by: cfmdobbie on January 23, 2004, 15:55:32
:lol:

Excellent, thanks.