maxtypes.h File Reference

maxtypes.h File Reference
+ Related help topics:
#include "maxheap.h"
#include "WindowsDefines.h"

Classes

struct  Color24
 8 bits for each of the Red, Green and Blue components. More...
 
struct  Color48
 16 bits for each of the Red, Green and Blue components. More...
 
struct  Color64
 16 bits for each of the Red, Green, Blue, and Alpha components. More...
 
struct  BMM_Color_24
 24 bit color: 8 bits each for Red, Green, and Blue. More...
 
struct  BMM_Color_32
 32 bit color: 8 bits each for Red, Green, Blue, and Alpha. More...
 
struct  BMM_Color_48
 48 bit color: 16 bits each for Red, Green, and Blue. More...
 
struct  BMM_Color_64
 64 bit color: 16 bits each for Red, Green, Blue, and Alpha. More...
 
struct  BMM_Color_fl
 High Dynamic Range bitmaps make use of this class to store color information using floating point values. More...
 
class  Class_ID
 
class  Interface_ID
 

Macros

#define TIME_TICKSPERSEC   4800
 Number of ticks in a second. More...
 
#define TicksToSec(ticks)   ((float)(ticks)/(float)TIME_TICKSPERSEC)
 Converts from ticks to seconds. More...
 
#define SecToTicks(secs)   ((TimeValue)(secs*TIME_TICKSPERSEC))
 Converts from seconds to ticks. More...
 
#define TicksSecToTime(ticks, secs)   ( (TimeValue)(ticks)+SecToTicks(secs) )
 Converts a number of seconds plus a number of ticks to a TimeValue. More...
 
#define TimeToTicksSec(time, ticks, secs)   { (ticks) = (time)%TIME_TICKSPERSEC; (secs) = (time)/TIME_TICKSPERSEC ; }
 Converts a TimeValue to a number of seconds plus a number of ticks. More...
 
#define TIME_PosInfinity   TimeValue(0x7fffffff)
 Returns a time value that represents positive infinity. More...
 
#define TIME_NegInfinity   TimeValue(0x80000000)
 Returns a time value that represents negative infinity. More...
 

Typedefs

typedef unsigned long ulong
 
typedef unsigned char uchar
 
typedef uchar UBYTE
 
typedef unsigned short UWORD
 
typedef unsigned short MtlID
 
typedef int TimeValue
 
typedef ULONG SClass_ID
 

Enumerations

enum  IOResult { IO_OK = 0, IO_END = 1, IO_ERROR = 2, IO_INTERRUPT = 3 }
 
enum  ChunkType { NEW_CHUNK = 0, CONTAINER_CHUNK = 1, DATA_CHUNK = 2 }
 
enum  FileIOType { IOTYPE_MAX = 0, IOTYPE_MATLIB = 1, IOTYPE_RENDER_PRESETS = 2 }
 

Macro Definition Documentation

#define TIME_TICKSPERSEC   4800

Number of ticks in a second.

#define TicksToSec (   ticks)    ((float)(ticks)/(float)TIME_TICKSPERSEC)

Converts from ticks to seconds.

#define SecToTicks (   secs)    ((TimeValue)(secs*TIME_TICKSPERSEC))

Converts from seconds to ticks.

#define TicksSecToTime (   ticks,
  secs 
)    ( (TimeValue)(ticks)+SecToTicks(secs) )

Converts a number of seconds plus a number of ticks to a TimeValue.

#define TimeToTicksSec (   time,
  ticks,
  secs 
)    { (ticks) = (time)%TIME_TICKSPERSEC; (secs) = (time)/TIME_TICKSPERSEC ; }

Converts a TimeValue to a number of seconds plus a number of ticks.

#define TIME_PosInfinity   TimeValue(0x7fffffff)

Returns a time value that represents positive infinity.

#define TIME_NegInfinity   TimeValue(0x80000000)

Returns a time value that represents negative infinity.

Typedef Documentation

typedef unsigned long ulong
typedef unsigned char uchar
typedef uchar UBYTE
typedef unsigned short UWORD
typedef unsigned short MtlID
typedef int TimeValue
typedef ULONG SClass_ID

Enumeration Type Documentation

enum ChunkType
Enumerator
NEW_CHUNK 
CONTAINER_CHUNK 
DATA_CHUNK 
289 {
290  NEW_CHUNK = 0,
291  CONTAINER_CHUNK = 1,
292  DATA_CHUNK = 2
293 };
Definition: maxtypes.h:292
Definition: maxtypes.h:291
Definition: maxtypes.h:290
enum FileIOType
Enumerator
IOTYPE_MAX 

File IO concerns a scene file (.max, .viz).

See NOTIFY_FILE_PRE_OPEN, NOTIFY_FILE_POST_OPEN

IOTYPE_MATLIB 

File IO concerns a material library file (.mat).

See NOTIFY_FILE_PRE_OPEN, NOTIFY_FILE_POST_OPEN

IOTYPE_RENDER_PRESETS 

File IO concerns a render preset file (.rps).

See NOTIFY_FILE_PRE_OPEN, NOTIFY_FILE_POST_OPEN

296 {
299  IOTYPE_MAX = 0,
302  IOTYPE_MATLIB = 1,
306 };
File IO concerns a render preset file (.rps).
Definition: maxtypes.h:305
File IO concerns a material library file (.mat).
Definition: maxtypes.h:302
File IO concerns a scene file (.max, .viz).
Definition: maxtypes.h:299