struct PrimitiveFillData { PrimitiveFillType Type; Color SolidColor; ImageFillMode FillModes[2]; Ptr<Texture> Textures[2]; const VertexFormat* pFormat; };
PrimitiveFillData holds initialization values for PrimitiveFill and is used to create that class. This data is separated so that it can be read-only within a PrimitveFill and to make sure that it isn't accidentally used without PrimitiveFillManager::CreateFill being used, which is required for sharing and proper batch sorting.
Data Member |
Description |
The fill mode of the primitive. | |
The vertex format applied to the contents within the buffer/applied to the primitive. | |
The solid color applied to the primitive. | |
Array of textures applied to the primitive. | |
The type of the fill style applied to the primitive. |
Method |
Description |
Verifies whether format has channels required for the fill. | |
Returns the hash value of the primitive fill data. | |
Returns the number of textures applied to the primitive fill. | |
Returns the number of texture matrices. | |
PrimitiveFillData constructor. | |
RequiresBlend disables blending when not required. |
Render_Primitive.h