Gizmo3D

gzTexture.h File Reference

Base definitions for object textures. More...

#include "gzObject.h"
#include "gzMatrix.h"
#include "gzImage.h"

Go to the source code of this file.

Classes

class  gzBindTextureInfo
class  gzTexture

Enumerations

enum  gzTextureMagFilter { GZ_TEXTURE_MAG_NEAREST = GZ_NEAREST, GZ_TEXTURE_MAG_LINEAR = GZ_LINEAR }
 The available magnification filters. More...
enum  gzTextureMinFilter {
  GZ_TEXTURE_MIN_NEAREST = GZ_NEAREST, GZ_TEXTURE_MIN_LINEAR = GZ_LINEAR, GZ_TEXTURE_MIN_NEAREST_MIPMAP_NEAREST = GZ_NEAREST_MIPMAP_NEAREST, GZ_TEXTURE_MIN_NEAREST_MIPMAP_LINEAR = GZ_NEAREST_MIPMAP_LINEAR,
  GZ_TEXTURE_MIN_LINEAR_MIPMAP_NEAREST = GZ_LINEAR_MIPMAP_NEAREST, GZ_TEXTURE_MIN_LINEAR_MIPMAP_LINEAR = GZ_LINEAR_MIPMAP_LINEAR
}
 The available minification filters. More...
enum  gzTextureWrapMode {
  GZ_TEXTURE_WRAP_CLAMP = GZ_CLAMP, GZ_TEXTURE_WRAP_REPEAT = GZ_REPEAT, GZ_TEXTURE_WRAP_CLAMP_TO_EDGE = GZ_CLAMP_TO_EDGE, GZ_TEXTURE_WRAP_CLAMP_TO_BORDER = GZ_CLAMP_TO_BORDER,
  GZ_TEXTURE_WRAP_MIRRORED_REPEAT = GZ_MIRRORED_REPEAT
}
 Specifies the available texture wrapping methods. More...
enum  gzGfxInternalTextureFormat {
  GZ_TEX_FORMAT_LUMINANCE = GZ_LUMINANCE, GZ_TEX_FORMAT_LUMINANCE_ALPHA = GZ_LUMINANCE_ALPHA, GZ_TEX_FORMAT_RGB = GZ_RGB, GZ_TEX_FORMAT_RGBA = GZ_RGBA,
  GZ_TEX_FORMAT_ALPHA = GZ_ALPHA, GZ_TEX_FORMAT_ALPHA4 = GZ_ALPHA4, GZ_TEX_FORMAT_ALPHA8 = GZ_ALPHA8, GZ_TEX_FORMAT_ALPHA12 = GZ_ALPHA12,
  GZ_TEX_FORMAT_ALPHA16 = GZ_ALPHA16, GZ_TEX_FORMAT_COMPRESSED_ALPHA = GZ_COMPRESSED_ALPHA, GZ_TEX_FORMAT_COMPRESSED_LUMINANCE = GZ_COMPRESSED_LUMINANCE, GZ_TEX_FORMAT_COMPRESSED_LUMINANCE_ALPHA = GZ_COMPRESSED_LUMINANCE_ALPHA,
  GZ_TEX_FORMAT_COMPRESSED_INTENSITY = GZ_COMPRESSED_INTENSITY, GZ_TEX_FORMAT_COMPRESSED_RGB = GZ_COMPRESSED_RGB, GZ_TEX_FORMAT_COMPRESSED_RGBA = GZ_COMPRESSED_RGBA, GZ_TEX_FORMAT_DEPTH_COMPONENT = GZ_DEPTH_COMPONENT
}
 Internal texture format. Used as a hint for GFX hw. More...

Functions

 GZ_DECLARE_REFPTR (gzTexture)


Detailed Description

Base definitions for object textures.

Definition in file gzTexture.h.


Enumeration Type Documentation

enum gzGfxInternalTextureFormat
 

Internal texture format. Used as a hint for GFX hw.

Enumerator:
GZ_TEX_FORMAT_LUMINANCE 
GZ_TEX_FORMAT_LUMINANCE_ALPHA  equiv to setComponents(1)
GZ_TEX_FORMAT_RGB  equiv to setComponents(2)
GZ_TEX_FORMAT_RGBA  equiv to setComponents(3)
GZ_TEX_FORMAT_ALPHA  equiv to setComponents(4)
GZ_TEX_FORMAT_ALPHA4 
GZ_TEX_FORMAT_ALPHA8 
GZ_TEX_FORMAT_ALPHA12 
GZ_TEX_FORMAT_ALPHA16 
GZ_TEX_FORMAT_COMPRESSED_ALPHA 
GZ_TEX_FORMAT_COMPRESSED_LUMINANCE 
GZ_TEX_FORMAT_COMPRESSED_LUMINANCE_ALPHA 
GZ_TEX_FORMAT_COMPRESSED_INTENSITY 
GZ_TEX_FORMAT_COMPRESSED_RGB 
GZ_TEX_FORMAT_COMPRESSED_RGBA 
GZ_TEX_FORMAT_DEPTH_COMPONENT 

Definition at line 96 of file gzTexture.h.

enum gzTextureMagFilter
 

The available magnification filters.

Enumerator:
GZ_TEXTURE_MAG_NEAREST  The texel with coordinates nearest the center of the pixel is used for magnification.
GZ_TEXTURE_MAG_LINEAR  A weighted average of the texels nearest to the center of the pixel is used for magnification.

Definition at line 36 of file gzTexture.h.

enum gzTextureMinFilter
 

The available minification filters.

Enumerator:
GZ_TEXTURE_MIN_NEAREST  The texel with coordinates nearest the center of the pixel is used for minification.
GZ_TEXTURE_MIN_LINEAR  A weighted average of the texels nearest to the center of the pixel is used for minification.
GZ_TEXTURE_MIN_NEAREST_MIPMAP_NEAREST  The nearest pixel in an individual mipmap is used.
GZ_TEXTURE_MIN_NEAREST_MIPMAP_LINEAR  The values of nearest texel in each of the two mipmaps are selected and linear interpolated.
GZ_TEXTURE_MIN_LINEAR_MIPMAP_NEAREST  Linear interpolation is used within an individual mipmap.
GZ_TEXTURE_MIN_LINEAR_MIPMAP_LINEAR  Linear interpolates the value in each of two maps and then linear interpolates these two resulting values.

Definition at line 43 of file gzTexture.h.

enum gzTextureWrapMode
 

Specifies the available texture wrapping methods.

Note that if a texture has a border of a specified texture border color is used the visibel result is influenced by both the wrapping mode and the filtering method.

Enumerator:
GZ_TEXTURE_WRAP_CLAMP  Texture coordinates larger than 1.0 is set to 1.0 and coordinate values less than 0.0 is set to 0.0.
GZ_TEXTURE_WRAP_REPEAT  The texture is repeated when texture coordinates outside the range [0, 1] is used.
GZ_TEXTURE_WRAP_CLAMP_TO_EDGE  The border is ignored. Texels near the edge is used for texturing.
GZ_TEXTURE_WRAP_CLAMP_TO_BORDER  Texture coordinates outside the range [0, 1] uses only the border texels for texture application.
GZ_TEXTURE_WRAP_MIRRORED_REPEAT  Repeats the texture but flips the orientation of the texture at every integer texture coordinate.

Definition at line 58 of file gzTexture.h.


Function Documentation

GZ_DECLARE_REFPTR gzTexture   ) 
 


Documentation for Gizmo3D generated at Wed Feb 20 11:54:14 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond