class grTexture: public grNode

Texture Image specification

Inheritance:


Public Fields

[more]GLint minfilter
Sub-pixel filter mode, values: GL_NEAREST, GL_LINEAR, GL_NEAREST_MIPMAP_NEAREST, GL_LINEAR_MIPMAP_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_LINEAR
[more]GLint magfilter
Multi-pixel filter mode, values: GL_NEAREST or GL_LINEAR.
[more]GLint wraps
Image wrapping mode for s coordinate, values: GL_CLAMP or GL_REPEAT
[more]GLint wrapt
Image wrapping mode for t coordinate, values: GL_CLAMP or GL_REPEAT
[more]grColor4f bordercolor
Color of the image border
[more]GLint components
Number of component of the image: 1,2,3,4, (ie rgb=3, rgba=4)
[more]GLsizei width
Width of the texture image, must be a power of 2 (+1 if border is present).
[more]GLsizei height
Height of the texture image, must be a power of 2 (+1 if border is present).
[more]GLsizei border
Must be either 0 (no border) or 1.
[more]GLenum format
Image pixel format, values: GL_COLOR_INDEX,GL_RED,GL_GREEN,GL_BLUE,GL_ALPHA,GL_RGB, GL_RGBA,GL_LUMINANCE
[more]GLenum type
Image pixel type, values: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, and GL_FLOAT
[more]void* memory
Pointer of picture data.

Public Methods

[more] grTexture()
Default Constructor
[more]void Get()
Retrieve the texture settings from the opengl internal status
[more]char* Name() const
see grNode


Inherited from grNode:

Public Methods

ovoid Render( grStatus & status )
ovoid Select( grStatus & status )
ogrNode* FindByName( const GLuint name )


Documentation

Texture Image specification. This node specifies the current texture image.
o grTexture()
Default Constructor

ovoid Get()
Retrieve the texture settings from the opengl internal status

ochar* Name() const
see grNode

oGLint minfilter
Sub-pixel filter mode, values: GL_NEAREST, GL_LINEAR, GL_NEAREST_MIPMAP_NEAREST, GL_LINEAR_MIPMAP_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_LINEAR

oGLint magfilter
Multi-pixel filter mode, values: GL_NEAREST or GL_LINEAR.

oGLint wraps
Image wrapping mode for s coordinate, values: GL_CLAMP or GL_REPEAT

oGLint wrapt
Image wrapping mode for t coordinate, values: GL_CLAMP or GL_REPEAT

ogrColor4f bordercolor
Color of the image border

oGLint components
Number of component of the image: 1,2,3,4, (ie rgb=3, rgba=4)

oGLsizei width
Width of the texture image, must be a power of 2 (+1 if border is present).

oGLsizei height
Height of the texture image, must be a power of 2 (+1 if border is present).

oGLsizei border
Must be either 0 (no border) or 1.

oGLenum format
Image pixel format, values: GL_COLOR_INDEX,GL_RED,GL_GREEN,GL_BLUE,GL_ALPHA,GL_RGB, GL_RGBA,GL_LUMINANCE

oGLenum type
Image pixel type, values: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, and GL_FLOAT

ovoid* memory
Pointer of picture data.


This class has no child classes.
See Also:
opengl, grTexCoord.

Alphabetic index HTML hierarchy of classes or Java


GCR, Graphics Library, VCG, IEI-CNR.