3ds Max C++ API Reference
|
#include "maxheap.h"
#include <WTypes.h>
#include "maxtypes.h"
#include "coreexp.h"
#include "geom/color.h"
Classes | |
class | GammaMgr |
class | GamConvert16 |
class | GamConvert8 |
Macros | |
#define | WRDMAX 65535 |
#define | FWRDMAX 65535.0f |
#define | RCBITS 13 |
#define | RCOLN (1<<RCBITS) |
#define | RCMAX (RCOLN-1) |
#define | FRCMAX ((float)RCMAX) |
#define | RCHALF (RCOLN>>1) |
#define | RCSH (RCBITS-8) /* shift amount from 8 bit to RCBITS */ |
#define | RCSH16 (16-RCBITS) /* shift amount from 16 bit to RCBITS */ |
#define | RCFRACMASK ((ulong)((1<<RCSH)-1)) |
#define | RC_SCL (1<<RCSH) |
#define | RC_SCLHALF (1<<(RCSH-1)) |
#define | FRC_SCL ((float)RC_SCL) |
#define | RCSHMASK (0xffffffffL<<RCSH) |
#define | RCSHMAX (0xffL<<RCSH) |
#define | GAMMA_NTSC 2.2f |
#define | GAMMA_PAL 2.8f |
#define | GAMMA16to8(b) gammaMgr.disp_gamtabw[b>>RCSH16] |
Functions | |
CoreExport void | BuildGammaTab8 (UWORD gamtab[256], float gamma, int onoff=TRUE) |
CoreExport void | BuildGammaTab (UBYTE gamtab[RCOLN], float gamma, int onoff=TRUE) |
CoreExport void | BuildGammaTab (UWORD gamtab[RCOLN], float gamma, int onoff=TRUE) |
CoreExport float | gammaCorrect (float v, float gamma) |
CoreExport float | deGammaCorrect (float v, float gamma) |
CoreExport UWORD | gammaCorrect (UWORD c, float gamma) |
CoreExport UWORD | deGammaCorrect (UWORD c, float gamma) |
Variables | |
CoreExport GammaMgr | gammaMgr |
#define WRDMAX 65535 |
#define FWRDMAX 65535.0f |
#define RCBITS 13 |
#define RCOLN (1<<RCBITS) |
#define RCMAX (RCOLN-1) |
#define FRCMAX ((float)RCMAX) |
#define RCHALF (RCOLN>>1) |
#define RC_SCL (1<<RCSH) |
#define RC_SCLHALF (1<<(RCSH-1)) |
#define FRC_SCL ((float)RC_SCL) |
#define RCSHMASK (0xffffffffL<<RCSH) |
#define RCSHMAX (0xffL<<RCSH) |
#define GAMMA_NTSC 2.2f |
#define GAMMA_PAL 2.8f |
CoreExport void BuildGammaTab8 | ( | UWORD | gamtab[256], |
float | gamma, | ||
int | onoff = TRUE |
||
) |
CoreExport void BuildGammaTab | ( | UBYTE | gamtab[RCOLN], |
float | gamma, | ||
int | onoff = TRUE |
||
) |
CoreExport void BuildGammaTab | ( | UWORD | gamtab[RCOLN], |
float | gamma, | ||
int | onoff = TRUE |
||
) |
CoreExport float gammaCorrect | ( | float | v, |
float | gamma | ||
) |
CoreExport float deGammaCorrect | ( | float | v, |
float | gamma | ||
) |
CoreExport UWORD gammaCorrect | ( | UWORD | c, |
float | gamma | ||
) |
CoreExport UWORD deGammaCorrect | ( | UWORD | c, |
float | gamma | ||
) |
|
extern |