PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

OpenGL|ES GL_CLAMP

(I asked this on the Khronos Group site as well)

Although stated in the 1.0 documentation GL_CLAMP does not seem to be defined in any header file I could find.

Can anyone tell me what’s going on here?
Structure wrote:(I asked this on the Khronos Group site as well)

Although stated in the 1.0 documentation GL_CLAMP does not seem to be defined in any header file I could find.

Can anyone tell me what’s going on here?

Do you mean
Code:
#define GL_CLAMP_TO_EDGE 0x812F


- HM
Correct me if im wrong but in http://www.khronos.org/opengles/documen ... meter.html


GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T both say:

Sets the wrap parameter for texture coordinate's to either GL_CLAMP, GL_CLAMP_TO_EDGE, or GL_REPEAT.


So GL_CLAMP should be defined separately?
Structure wrote:Correct me if im wrong but in http://www.khronos.org/opengles/documen ... meter.html
GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T both say:

Sets the wrap parameter for texture coordinate's to either GL_CLAMP, GL_CLAMP_TO_EDGE, or GL_REPEAT.


So GL_CLAMP should be defined separately?

No, it's a mistake in the man page. The spec says:
Wrap modes REPEAT and CLAMP TO EDGE are supported, but not CLAMP, CLAMP TO BORDER and
MIRRORED REPEAT.


- HM
Ahh, resolved..


Thanks hm, you know sometimes I don’t know what id do without you :)