Click or drag to resize
AB4D logo

RenderablePrimitiveBase Class

RenderablePrimitiveBase is a base abstract class that represents a low level geometry object that is prepared to be rendered with DirectX. It contains all required DirectX buffers and required data to prepare the rendering states. RenderablePrimitiveBase objects are rendered in the RenderObjectsRenderingStep rendering step and can be added to any RenderingQueue.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXRenderablePrimitiveBase
    Ab3d.DirectXCustomRenderablePrimitive
    Ab3d.DirectXRenderablePrimitive

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public abstract class RenderablePrimitiveBase

The RenderablePrimitiveBase type exposes the following members.

Properties
 NameDescription
Public propertyIsBackFaceMaterial IsBackFaceMaterial specifies if the material is used to render front (IsBackFaceMaterial == false) or back (IsBackFaceMaterial == true) faces. This property gets or set the flag from RenderingFlags field.
Public propertyIsCastingShadow IsCastingShadow specifies if this object casts shadow. This property gets or set the flag from RenderingFlags field.
Public propertyIsFrontCounterClockwise IsFrontCounterClockwise specifies the orientation of the positions in the 3D geometry - if true than the positions are oriented in a counter clockwise manner. This property gets or set the flag from RenderingFlags field.
Public propertyIsReceivingShadow IsReceivingShadow specifies if this object receives shadow. This property gets or set the flag from RenderingFlags field.
Public propertyIsVisible When IsVisible property is false this prevents rendering the RenderablePrimitiveBase. This property gets or set the flag from RenderingFlags field.
Public propertyIsWorldMatrixIdentity Boolean that specifies if WorldMatrix is identity. This property gets or set the flag from RenderingFlags field.
Top
Methods
 NameDescription
Public methodCalculateWorldInverseTransposeMatrix Calculates the WorldInverseTransposeMatrix from the World matrix
Public methodRenderGeometry RenderGeometry renders the geometry (executes draw calls but does not apply material settings)
Top
Fields
 NameDescription
Public fieldMaterial Material
Public fieldMaterialFlags MaterialFlags can be used by Materials to add some values that could be used to improve performance. Currently they are used by StandardEffect (DirectionalLightShader and SuperShader) to mark which constant buffer values are the same as in the previous RenderablePrimitiveBase.
Public fieldOriginalObject The original object that was used to create this RenderablePrimitiveBase.
Public fieldOverrideMaterial OverrideMaterial can be set to override the Material when rendering but still preserve the original Material. It can be set by some other object that wanted to change the rendering behavior of this RenderablePrimitiveBase.
Public fieldRelatedRenderablePrimitive RenderablePrimitive objects that is related to this RenderablePrimitive. Usually this is link to back-face RenderablePrimitive or to front-face RenderablePrimitive (for RenderablePrimitive that renders back-face). This field is used in CameraDistanceSortedRenderingQueue to put back-face RenderablePrimitive before front-face RenderablePrimitive.
Public fieldRenderingFlags Flags that provide information on how this RenderablePrimitive is rendered.
Public fieldWorldInverseTransposeMatrix The world matrix that is inversed and transposed (normals are multiplied with this matrix)
Public fieldWorldMatrix The world matrix
Top
See Also