Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
MaterialMap.h File Reference

Detailed Description

CMaterialMap class is the implementation for a texture map associated to a C3DMaterial.

#include "3DAnimatable.h"
#include "4x4Matrix.h"
#include "3DVector.h"

Go to the source code of this file.

Classes

class  CMaterialMap
 CMaterialMap handles material texture map. More...
 

Macros

#define KEYFRAME_MAP_TILE   KEYFRAMEID(C3DKeyframe::KEYFRAME_TYPE_VECTOR, MAKE_CUSTOM_ID('M', 'P', 'T', 'L'))
 
#define KEYFRAME_MAP_SWAPMATRIX   KEYFRAMEID(C3DKeyframe::KEYFRAME_TYPE_MATRIX, MAKE_CUSTOM_ID('M', 'P', 'S', 'W'))
 

Typedefs

typedef enum MapType MapType
 
typedef enum MAP_PROPERTIES MAP_PROPERTIES
 

Enumerations

enum  MapType {
  MAPTYPE_UNDEFINED = 0 , MAPTYPE_FIRST = 1 , MAPTYPE_DIFFUSE = 1 , MAPTYPE_AMBIENT ,
  MAPTYPE_SPECULAR , MAPTYPE_TRANSPARENCY , MAPTYPE_BUMP , MAPTYPE_NORMALMAP ,
  MAPTYPE_EMISSIVE , MAPTYPE_OCCLUSION , MAPTYPE_SPECULAR_COLOR , MAPTYPE_SPECULAR_ALPHA ,
  MAPTYPE_ROUGHNESS , MAPTYPE_METALLIC , MAPTYPE_GLOSS , MAPTYPE_LAST ,
  MAPTYPE_MIXED = MAPTYPE_LAST+10
}
 This enum allows to know the kind of texture map.
 
enum  MapProjection {
  MAPPROJ_UNDEFINED = 0 , MAPPROJ_UVW , MAPPROJ_PLANAR , MAPPROJ_CYLINDRICAL ,
  MAPPROJ_SPHERICAL , MAPPROJ_CUBIC , MAPPROJ_CUBIC2 , MAPPROJ_FRONT
}
 Projection type of the texture map.
More...
 
enum  MapAxis { MAPAXIS_X = 0 , MAPAXIS_Y , MAPAXIS_Z }
 Axis direction of the mapping projection.
 
enum  MAP_PROPERTIES {
  MAPPROP_UNKNOWN = 0 , MAPPROP_NO_REPEAT_ON_U = 0x01 , MAPPROP_NO_REPEAT_ON_V = 0x02 , MAPPROP_DISABLE_ALPHA = 0x04 ,
  MAPPROP_INVALIDATE = 0x01000000
}
 Different flags for the map. More...
 

Enumeration Type Documentation

◆ MAP_PROPERTIES

Different flags for the map.

Enumerator
MAPPROP_DISABLE_ALPHA 

Don't use alpha channel if there is any.

MAPPROP_INVALIDATE 

Something changed for the map. Try to load again the bitmap.

◆ MapProjection

Projection type of the texture map.

Enumerator
MAPPROJ_UVW 

A CUVWChannel is required for the map.

MAPPROJ_PLANAR 

The following projection means that the mapping mode requires UVW to be generated as it is a mapping projection.

MAPPROJ_CUBIC 

Lightwave cubic mode (front/top/right normal - back/bottom/left inverted projection)

MAPPROJ_CUBIC2 

C4D cubic mode (no inverted projection)