3ds Max C++ API Reference
|
These flag bits describe properties of the bitmap. More...
Macros | |
#define | MAP_NOFLAGS ((DWORD)0) |
The bitmap has none of the characteristics below. | |
#define | MAP_LOADING ((DWORD)(1<<0)) |
This bitmap / storage is currently being loaded, not finalized yet. | |
#define | MAP_HAS_ALPHA ((DWORD)(1<<1)) |
This flag can be checked from a BitmapInfo instance (bi.Flags()&MAP_HAS_ALPHA)), but not from a Bitmap instance (bmap->Flags() & MAP_HAS_ALPHA). | |
#define | MAP_ALPHA_PREMULTIPLIED ((DWORD)(1<<2)) |
The bitmap has pre-multiplied alpha. | |
#define | MAP_PALETTED ((DWORD)(1<<3)) |
The bitmap uses a palette (not true color). | |
#define | MAP_FRAME_SYSTEM_LOCKED ((DWORD)(1<<4)) |
This flag is no longer used. | |
#define | MAP_DITHERED ((DWORD)(1<<5)) |
The bitmap is dithered. | |
#define | MAP_FLIPPED ((DWORD)(1<<6)) |
The bitmap is flipped horizontally. | |
#define | MAP_INVERTED ((DWORD)(1<<7)) |
The bitmap is flipped vertically. | |
#define | MAP_USE_SCALE_COLORS ((DWORD)(1<<10)) |
Scale colors when high dynamic range values are out of gamut. | |
#define | MAP_PROXY ((DWORD)(1<<11)) |
When the proxy flag is set, the BitmapInfo is called a proxy info. | |
#define | MAP_PROXYREQUEST ((DWORD)(1<<12)) |
When the proxy request flag is set, the BitmapInfo is called a request info. | |
#define | MAP_USE_STORAGE_FILTER ((DWORD)(1 << 13)) |
Experimental: storage with this flag wants to handle texture filtering itself (bypassing filter plugins). | |
#define | MAP_STORAGE_CAN_SCALE ((DWORD)(1 << 14)) |
Experimental: storage with this flag can fill a passed buffer with the scaled image. | |
#define | MAP_WAS_UPDATED ((DWORD)(1<<28)) |
This flag indicates that PutPixels() was called and the Bitmap has been updated with new data. | |
#define | MAP_HAS_BGIMAGE ((DWORD)(1<<29)) |
internal use only | |
#define | MAP_LEGAL_DELETE ((DWORD)(1<<30)) |
internal use only | |
#define | MAP_VIEW_FILTERED ((DWORD)(1<<31)) |
Test stuff. | |
#define | MAP_ALL_FLAGS 0xFFFFFFFF |
These flag bits describe properties of the bitmap.
#define MAP_NOFLAGS ((DWORD)0) |
The bitmap has none of the characteristics below.
#define MAP_LOADING ((DWORD)(1<<0)) |
This bitmap / storage is currently being loaded, not finalized yet.
#define MAP_HAS_ALPHA ((DWORD)(1<<1)) |
This flag can be checked from a BitmapInfo instance (bi.Flags()&MAP_HAS_ALPHA)), but not from a Bitmap instance (bmap->Flags() & MAP_HAS_ALPHA).
Therefore if you have a Bitmap, use the Bitmap's HasAlpha() method to see if the map has an alpha channel. The bitmap has an alpha channel.
#define MAP_ALPHA_PREMULTIPLIED ((DWORD)(1<<2)) |
The bitmap has pre-multiplied alpha.
#define MAP_PALETTED ((DWORD)(1<<3)) |
The bitmap uses a palette (not true color).
#define MAP_FRAME_SYSTEM_LOCKED ((DWORD)(1<<4)) |
This flag is no longer used.
#define MAP_DITHERED ((DWORD)(1<<5)) |
The bitmap is dithered.
#define MAP_FLIPPED ((DWORD)(1<<6)) |
The bitmap is flipped horizontally.
#define MAP_INVERTED ((DWORD)(1<<7)) |
The bitmap is flipped vertically.
#define MAP_USE_SCALE_COLORS ((DWORD)(1<<10)) |
Scale colors when high dynamic range values are out of gamut.
#define MAP_PROXY ((DWORD)(1<<11)) |
When the proxy flag is set, the BitmapInfo is called a proxy info.
The info for the proxy's original subject bitmap is called the subject info. The subject info is available from the proxy info via BitmapInfo::GetProxySubject().
#define MAP_PROXYREQUEST ((DWORD)(1<<12)) |
When the proxy request flag is set, the BitmapInfo is called a request info.
A request info should contain settings for the original bitmap, without any subject info allocated. A request info passed to BitmapManager::Load() serves as a request to load proxy version of the original bitmap. The bitmap manager converts the request info to a proxy info with the complete proxy and subject settings. Indicates a request to load proxy bitmap, reduced from original size / bit depth
#define MAP_USE_STORAGE_FILTER ((DWORD)(1 << 13)) |
Experimental: storage with this flag wants to handle texture filtering itself (bypassing filter plugins).
#define MAP_STORAGE_CAN_SCALE ((DWORD)(1 << 14)) |
Experimental: storage with this flag can fill a passed buffer with the scaled image.
#define MAP_WAS_UPDATED ((DWORD)(1<<28)) |
This flag indicates that PutPixels() was called and the Bitmap has been updated with new data.
As an example of use, this flag is cleared by an active shade fragment because we have taken the changes from active shade in that bitmap. So we want to know when we need to update the fragment based on actual changes to the bitmap in order to avoid simply copying unchanged Bitmap data into the fragment buffer. If the flag MAP_WAS_UPDATED is set, we know there are changes since the last time we cleared that flag.
#define MAP_HAS_BGIMAGE ((DWORD)(1<<29)) |
internal use only
#define MAP_LEGAL_DELETE ((DWORD)(1<<30)) |
internal use only
#define MAP_VIEW_FILTERED ((DWORD)(1<<31)) |
Test stuff.
#define MAP_ALL_FLAGS 0xFFFFFFFF |