X-Git-Url: https://git.hcoop.net/clinton/guile-figl.git/blobdiff_plain/13027b2dbc5b77e5906584aefc2fc9f16047e471..f37e7e3da00d7a96241aae763b8835eef0fd232c:/upstream-doc/man4/xhtml/glTexImage2D.xml diff --git a/upstream-doc/man4/xhtml/glTexImage2D.xml b/upstream-doc/man4/xhtml/glTexImage2D.xml index c9e445a..6729629 100644 --- a/upstream-doc/man4/xhtml/glTexImage2D.xml +++ b/upstream-doc/man4/xhtml/glTexImage2D.xml @@ -121,23 +121,33 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is clamped to the range [0,1]. + Each component is then multiplied by the signed scale factor GL_c_SCALE, + added to the signed bias GL_c_BIAS, + and clamped to the range [0,1].

GL_RG

Each element is a red/green double. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is clamped to the range [0,1]. + Each component is then multiplied by the signed scale factor GL_c_SCALE, + added to the signed bias GL_c_BIAS, + and clamped to the range [0,1].

GL_RGB
GL_BGR

Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is clamped to the range [0,1]. + Each component is then multiplied by the signed scale factor GL_c_SCALE, + added to the signed bias GL_c_BIAS, + and clamped to the range [0,1].

GL_RGBA
GL_BGRA

Each element contains all four components. - Each component is clamped to the range [0,1]. + Each component is multiplied by the signed scale factor GL_c_SCALE, + added to the signed bias GL_c_BIAS, + and clamped to the range [0,1].

GL_DEPTH_COMPONENT

Each element is a single depth value. - The GL converts it to floating point and clamps to the range [0,1]. + The GL converts it to floating point, multiplies by the signed scale factor + GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, + and clamps to the range [0,1].

GL_DEPTH_STENCIL

Each element is a pair of depth and stencil values. The depth component of the pair is interpreted as in GL_DEPTH_COMPONENT. The stencil @@ -155,7 +165,7 @@ internalFormat may be one of the base internal formats shown in Table 1, below

-

Table 1. Base Internal Formats

+

Table 1. Base Internal Formats

Base Internal Format RGBA, Depth and Stencil Values @@ -166,7 +176,7 @@ internalFormat may also be one of the sized internal formats shown in Table 2, below

-

Table 2. Sized Internal Formats

+

Table 2. Sized Internal Formats

Sized Internal Format Base Internal Format @@ -185,7 +195,7 @@ Finally, internalFormat may also be one of the generic or compressed compressed texture formats shown in Table 3 below

-

Table 3. Compressed Internal Formats

+

Table 3. Compressed Internal Formats

Compressed Internal Format Base Internal Format @@ -379,6 +389,26 @@

GL_INVALID_VALUE is generated if width or height is less than 0 or greater than GL_MAX_TEXTURE_SIZE. +

+ GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width or height cannot be represented as + + + + 2 + k + + + + + 2 + ⁡ + + border + + + + + for some + integer value of k.

GL_INVALID_VALUE is generated if border is not 0.

@@ -452,7 +482,7 @@ glTexParameter

Copyright

Copyright © 1991-2006 Silicon Graphics, Inc. - Copyright © 2011-2013 Khronos Group. + Copyright © 2011 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.