DI-Guy SDK Documentation  13.8
diguyGraphicsTexture.h File Reference
#include <declspec_diguy.h>
#include <diguy_constants.h>

Go to the source code of this file.

Classes

class  diguyGraphicsTexture
 A class that represents a shared texture. More...
 

Macros

#define CPLUSPLUS_ONLY
  Link against: libdiguy_graphics_api More...
 

Enumerations

enum  diguyGraphicsTextureCompressionType {
  DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_NONE = 0, DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT1, DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT2, DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT3,
  DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT4, DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT5, DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT5_NM
}
 This enumeration lists the types of compression that texture map data may have. More...
 
enum  diguyTextureMapType {
  DIGUY_TEXTURE_MAP_TYPE_UNKNOWN = -1, DIGUY_TEXTURE_MAP_TYPE_DIFFUSE = 0, DIGUY_TEXTURE_MAP_TYPE_SHADOW, DIGUY_TEXTURE_MAP_TYPE_SPECULAR,
  DIGUY_TEXTURE_MAP_TYPE_BUMP, DIGUY_TEXTURE_MAP_TYPE_COMPONENTS, DIGUY_TEXTURE_MAP_TYPE_COMPONENT_RAMP, DIGUY_TEXTURE_MAP_TYPE_MISC_1,
  DIGUY_TEXTURE_MAP_TYPE_MISC_2, DIGUY_TEXTURE_MAP_TYPE_ANIMATION, DIGUY_TEXTURE_MAP_TYPE_DECAL, DIGUY_TEXTURE_MAP_TYPE_DECAL_SPECULAR,
  DIGUY_TEXTURE_MAP_TYPE_DECAL_BUMP, DIGUY_TEXTURE_MAP_TYPE_COUNT
}
 This enumeration lists the type of texture map a given image file is being used as. More...
 
enum  diguyTextureMapMasks {
  DIGUY_TEXTURE_MAP_MASK_DIFFUSE = 0x00000001, DIGUY_TEXTURE_MAP_MASK_SHADOW = 0x00000002, DIGUY_TEXTURE_MAP_MASK_SPECULAR = 0x00000004, DIGUY_TEXTURE_MAP_MASK_BUMP = 0x00000008,
  DIGUY_TEXTURE_MAP_MASK_COMPONENTS = 0x00000010, DIGUY_TEXTURE_MAP_MASK_MISC_1 = 0x00000020, DIGUY_TEXTURE_MAP_MASK_MISC_2 = 0x00000040, DIGUY_TEXTURES_MAP_MASK_ALL = 0xffffffff
}
 This enumeration lists how the state stores the available textures in the textures_available bitfield. More...
 

Functions

const char * diguy_texture_type_to_string (diguyTextureMapType texture_type)
 This function converts the passed texture type enumeration into a NULL-terminated C-style string. More...
 
diguyTextureMapType diguy_texture_type_from_string (const char *string)
 This function converts the passed C-style string into an enumerated value. More...
 

Variables

comment line count1comment line count1comment line count1
 

Macro Definition Documentation

#define CPLUSPLUS_ONLY

Link against: libdiguy_graphics_api

Enumeration Type Documentation

This enumeration lists the types of compression that texture map data may have.

Enumerator
DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_NONE 
DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT1 
DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT2 
DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT3 
DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT4 
DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT5 
DIGUY_GRAPHICS_TEXTURE_COMPRESSION_TYPE_DXT5_NM 

This enumeration lists the type of texture map a given image file is being used as.

Enumerator
DIGUY_TEXTURE_MAP_TYPE_UNKNOWN 
DIGUY_TEXTURE_MAP_TYPE_DIFFUSE 
DIGUY_TEXTURE_MAP_TYPE_SHADOW 
DIGUY_TEXTURE_MAP_TYPE_SPECULAR 
DIGUY_TEXTURE_MAP_TYPE_BUMP 
DIGUY_TEXTURE_MAP_TYPE_COMPONENTS 
DIGUY_TEXTURE_MAP_TYPE_COMPONENT_RAMP 
DIGUY_TEXTURE_MAP_TYPE_MISC_1 
DIGUY_TEXTURE_MAP_TYPE_MISC_2 
DIGUY_TEXTURE_MAP_TYPE_ANIMATION 
DIGUY_TEXTURE_MAP_TYPE_DECAL 
DIGUY_TEXTURE_MAP_TYPE_DECAL_SPECULAR 
DIGUY_TEXTURE_MAP_TYPE_DECAL_BUMP 
DIGUY_TEXTURE_MAP_TYPE_COUNT 

This enumeration lists how the state stores the available textures in the textures_available bitfield.

Also used by the shader programs.

Enumerator
DIGUY_TEXTURE_MAP_MASK_DIFFUSE 
DIGUY_TEXTURE_MAP_MASK_SHADOW 
DIGUY_TEXTURE_MAP_MASK_SPECULAR 
DIGUY_TEXTURE_MAP_MASK_BUMP 
DIGUY_TEXTURE_MAP_MASK_COMPONENTS 
DIGUY_TEXTURE_MAP_MASK_MISC_1 
DIGUY_TEXTURE_MAP_MASK_MISC_2 
DIGUY_TEXTURES_MAP_MASK_ALL 

Function Documentation

const char* diguy_texture_type_to_string ( diguyTextureMapType  texture_type)

This function converts the passed texture type enumeration into a NULL-terminated C-style string.

Returns:

C-style string identifying texture map type

diguyTextureMapType diguy_texture_type_from_string ( const char *  string)

This function converts the passed C-style string into an enumerated value.

Returns:

enumeration value of string

Variable Documentation

comment line count1comment line count1comment line count1