glTexStorage1D man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]

GLTEXSTORAGE1D(3G)		 OpenGL Manual		    GLTEXSTORAGE1D(3G)

NAME
       glTexStorage1D - simultaneously specify storage for all levels of a
       one-dimensional texture

C SPECIFICATION
       void glTexStorage1D(GLenum target, GLsizei levels,
			   GLenum internalformat, GLsizei width);

PARAMETERS
       target
	   Specify the target of the operation.	 target must be either
	   GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D.

       levels
	   Specify the number of texture levels.

       internalformat
	   Specifies the sized internal format to be used to store texture
	   image data.

       width
	   Specifies the width of the texture, in texels.

DESCRIPTION
       glTexStorage1D specifies the storage requirements for all levels of a
       one-dimensional texture simultaneously. Once a texture is specified
       with this command, the format and dimensions of all levels become
       immutable unless it is a proxy texture. The contents of the image may
       still be modified, however, its storage requirements may not change.
       Such a texture is referred to as an immutable-format texture.

       Calling glTexStorage1D is equivalent, assuming no errors are generated,
       to executing the following pseudo-code:

	       for (i = 0; i < levels; i++)
	       {
		   glTexImage1D(target, i, internalformat, width, 0, format, type, NULL);
		   width = max(1, (width / 2));
	       }

       Since no texture data is actually provided, the values used in the
       pseudo-code for format and type are irrelevant and may be considered to
       be any values that are legal for the chosen internalformat enumerant.
       internalformat must be one of the sized internal formats given in Table
       1 below, one of the sized depth-component formats
       GL_DEPTH_COMPONENT32F, GL_DEPTH_COMPONENT24, or GL_DEPTH_COMPONENT16,
       or one of the combined depth-stencil formats, GL_DEPTH32F_STENCIL8, or
       GL_DEPTH24_STENCIL8. Upon success, the value of
       GL_TEXTURE_IMMUTABLE_FORMAT becomes GL_TRUE. The value of
       GL_TEXTURE_IMMUTABLE_FORMAT may be discovered by calling
       glGetTexParameter() with pname set to GL_TEXTURE_IMMUTABLE_FORMAT. No
       further changes to the dimensions or format of the texture object may
       be made. Using any command that might alter the dimensions or format of
       the texture object (such as glTexImage1D() or another call to
       glTexStorage1D) will result in the generation of a GL_INVALID_OPERATION
       error, even if it would not, in fact, alter the dimensions or format of
       the object.

       <xi:include></xi:include>

ERRORS
       GL_INVALID_ENUM is generated if internalformat is not a valid sized
       internal format.

       GL_INVALID_ENUM is generated if target is not GL_TEXTURE_1D or
       GL_TEXTURE_2D.

       GL_INVALID_VALUE is generated if width or levels are less than 1.

       GL_INVALID_OPERATION is generated if levels is greater than log 2 width
       + 1.

SEE ALSO
       glTexImage1D(), glTexStorage2D(), glTexStorage3D().

COPYRIGHT
       Copyright © 2011 Khronos Group. This material may be distributed
       subject to the terms and conditions set forth in the Open Publication
       License, v 1.0, 8 June 1999.  http://opencontent.org/openpub/.

AUTHORS
       opengl.org

opengl.org			  04/29/2014		    GLTEXSTORAGE1D(3G)
[top]

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net