2.2.1 Resource Types
The following values specify the type of the resource to be created by a MILCMD_CHANNEL_CREATERESOURCE message. This enumeration is also referenced by the MILCMD_CHANNEL_DELETERESOURCE message.
|
Resource type |
Value |
Purpose |
|---|---|---|
|
TYPE_SCENE3D |
0x00000001 |
Represents a 3-D scene described by a set of models, a camera, and a viewport rectangle. |
|
TYPE_MATRIXCAMERA |
0x00000003 |
Represents a camera that specifies the view and projection transforms as 3-D matrix objects. |
|
TYPE_MODEL3DGROUP |
0x00000005 |
This resource represents a group of 3-D model resources that can be treated as a single, compound 3-D model. |
|
TYPE_AMBIENTLIGHT |
0x00000007 |
This resource represents a light object that applies light to objects uniformly, regardless of their shape. |
|
TYPE_GEOMETRYMODEL3D |
0x00000008 |
This resource represents a 3-D model comprised of a mesh geometry 3-D and a material. |
|
TYPE_MESHGEOMETRY3D |
0x0000000A |
This resource represents a triangle primitive for building a 3-D shape. |
|
TYPE_MESHGEOMETRY2D |
0x0000000C |
This resource represents a mesh that draws a 2-D shape by defining vertices and triangles. |
|
TYPE_GEOMETRY2DGROUP |
0x0000000D |
This resource represents a group of 2-D geometry resources, which can be treated as a single, compound 2-D geometry. |
|
TYPE_MATRIXTRANSFORM3D |
0x00000010 |
This resource creates a transformation specified by a 4x4 matrix, used to manipulate objects or coordinate systems in 3-D world space. |
|
TYPE_GLYPHCACHE |
0x00000011 |
The glyph cache is a resource used to cache glyph bitmaps used by glyph run resources to render text. |
|
TYPE_VISUAL |
0x00000012 |
Represents a grouping of related graphical objects. |
|
TYPE_WINDOWNODE |
0x00000013 |
Represents a visual with a sprite or a child scene graph as its content. |
|
TYPE_GLYPHRUN |
0x00000014 |
The GlypRun resource is used to render text as an array of glyph bitmaps. |
|
TYPE_RENDERDATA |
0x00000015 |
Represents a drawing instruction stream. |
|
TYPE_HWNDRENDERTARGET |
0x00000018 |
Represents a window rendering target destination. |
|
TYPE_DESKTOPRENDERTARGET |
0x00000019 |
Represents a desktop rendering target destination. |
|
TYPE_DOUBLERESOURCE |
0x0000001C |
Stores a single value of type 'double'. |
|
TYPE_COLORRESOURCE |
0x0000001D |
Stores a single value of type 'color'. |
|
TYPE_POINTRESOURCE |
0x0000001E |
Stores a single value of type 'point'. |
|
TYPE_RECTRESOURCE |
0x0000001F |
Stores a single value of type 'rect'. |
|
TYPE_SIZERESOURCE |
0x00000020 |
Stores a single value of type 'size'. |
|
TYPE_MATRIXRESOURCE |
0x00000021 |
Stores a single value of type 'matrix'. |
|
TYPE_COLORTRANSFORMRESOURCE |
0x00000022 |
Stores a single value of type 'color transform'. |
|
TYPE_METABITMAPRENDERTARGET |
0x00000023 |
Represents an offscreen render target. |
|
TYPE_CACHEDVISUALIMAGE |
0x00000025 |
This resource represents a bitmap that contains a rasterization of a visual tree. The rasterization is cached from frame to frame such that if the contained visual tree does not change, then traversing it is no longer necessary in subsequent frames. |
|
TYPE_TRANSFORMGROUP |
0x00000027 |
This resource represents a group of transform resources, which behave as a single, compound transform. |
|
TYPE_TRANSLATETRANSFORM |
0x00000028 |
This resource represents a translation transform of an object in 2-D space. |
|
TYPE_SCALETRANSFORM |
0x00000029 |
This resource represents a scale transform of an object in 2-D space. |
|
TYPE_MATRIXTRANSFORM |
0x0000002A |
This resource represents an arbitrary affine matrix transformation that is used to manipulate objects or coordinate systems in 2-D space. |
|
TYPE_RECTANGLEGEOMETRY |
0x0000002C |
This resource represents a rectangle-shaped geometry with optionally rounded corners. |
|
TYPE_COMBINEDGEOMETRY |
0x0000002D |
This resource represents the result of the combination of two geometry objects. |
|
TYPE_PATHGEOMETRY |
0x0000002E |
This resource represents a complex shape. The path is defined by a series of figures, each of which is defined by a series of segments. |
|
TYPE_SOLIDCOLORBRUSH |
0x00000030 |
This resource represents a brush that fills an area with a solid color. |
|
TYPE_LINEARGRADIENTBRUSH |
0x00000032 |
This resource represents a brush that fills an area with a linear gradient. |
|
TYPE_IMAGEBRUSH |
0x00000034 |
This resource represents a brush that fills an area by tiling an image. |
|
TYPE_VISUALGROUP |
0x00000035 |
Represents a group of visuals. |
|
TYPE_BITMAPSOURCE |
0x00000036 |
Represents a bitmap resource that can be rendered in a drawing context. |
|
TYPE_GDISPRITEBITMAP |
0x00000038 |
Represents a GDI sprite. |