Detailed Description
- See also:
- Class TexHandle,
Class Bitmap, Class
BitmapInfo.
- Description:
- This class provides several ways to create a texture handle.
The handle may be created from a 3ds Max bitmap or a Windows Device
Independent Bitmap. This
class also provides methods to determine the desired size of the
bitmap.
#include <imtl.h>
List of all
members.
Constructor & Destructor Documentation
Member Function Documentation
virtual TexHandle* CreateHandle |
( |
Bitmap * |
bm, |
|
|
int |
symflags = 0 , |
|
|
int |
extraFlags =
0 |
|
) |
|
[pure virtual] |
- Parameters:
- Bitmap
*bm
The bitmap to create a handle to.
int symflags=0
See Texture
Symmetry Flags.
int extraFlags=0;
One of the following values:
EX_MULT_ALPHA
Set this flag if alpha is not premultiplied in the Bitmap.
EX_RGB_FROM_ALPHA
Set this flag to make the map using the alpha channel of the bitmap
to define the gray level.
EX_OPAQUE_ALPHA
Specifies to make the map using opaque alpha.
EX_ALPHA_FROM_RGB
Specifies to make alpha from the intensity of the map.
- Returns:
- A pointer to the texture handle.
virtual TexHandle* CreateHandle |
( |
BITMAPINFO * |
bminf, |
|
|
int |
symflags = 0 , |
|
|
int |
extraFlags =
0 |
|
) |
|
[pure virtual] |
- Parameters:
- BITMAPINFO *bminf
The bitmap to create a handle to.
int symflags=0
See Texture
Symmetry Flags.
int extraFlags=0;
One of the following values:
EX_MULT_ALPHA
Set this flag if alpha is not premultiplied in the Bitmap.
EX_RGB_FROM_ALPHA
Set this flag to make the map using the alpha channel of the bitmap
to define the gray level.
EX_OPAQUE_ALPHA
Specifies to make the map using opaque alpha.
EX_ALPHA_FROM_RGB
Specifies to make alpha from the intensity of the map.
- Returns:
- A pointer to the texture handle.
virtual BITMAPINFO* BitmapToDIB |
( |
Bitmap * |
bm, |
|
|
int |
symflags, |
|
|
int |
extraFlags, |
|
|
BOOL |
forceW = 0 , |
|
|
BOOL |
forceH = 0 |
|
) |
|
[pure virtual] |
- Parameters:
- Bitmap
*bm
Points to the bitmap to create the handle to.
int symflags
See Texture
Symmetry Flags.
int extraFlags
One of the following values:
EX_MULT_ALPHA
Set this flag if alpha is not premultiplied in the Bitmap.
EX_RGB_FROM_ALPHA
Set this flag to make the map using the alpha channel of the bitmap
to define the gray level.
EX_OPAQUE_ALPHA
Specifies to make the map using opaque alpha.
EX_ALPHA_FROM_RGB
Specifies to make alpha from the intensity of the map.
BOOL forceW=0
If this parameter is non-zero it is used as the width of the final
DIB.
BOOL forceH=0
If this parameter is non-zero it is used as the height of the final
DIB
virtual TexHandle* MakeHandle |
( |
BITMAPINFO * |
bminf |
) |
[pure virtual] |
- Parameters:
- BITMAPINFO* bminf
Points to the BitmapInfo for the DIB.
virtual BOOL UseClosestPowerOf2 |
( |
|
) |
[pure virtual] |
virtual int Size |
( |
|
) |
[pure virtual] |
- Returns:
- The size of the desired bitmap.
TexHandleMaker TexHandleMaker
TexHandleMaker TexHandleMaker TexHandleMaker TexHandleMaker
TexHandleMaker TexHandleMaker TexHandleMaker TexHandleMaker
TexHandleMaker TexHandleMaker
TexHandleMaker TexHandleMaker TexHandleMaker TexHandleMaker
TexHandleMaker TexHandleMaker TexHandleMaker TexHandleMaker