TGorillaCone
Defines a simple cone component.
Remarks
The Gorilla3D cone enables static buffering of vertices and indices. This allows also large number of vertices of cone.This component uses by default static buffering to push vertices only once to GPU.
Ancestors
Members
Fields
- protected FSides :
Integer
- protected FHeightSegments :
Integer
- protected FBottomRadius :
Single
- protected FTopRadius :
Single
Methods
- public constructor Create ( AOwner : TComponent ) ;
- protected procedure SetSides ( const AValue : Integer ) ;
- protected procedure SetHeightSegments ( const AValue : Integer ) ;
- protected procedure SetBottomRadius ( const AValue : Single ) ;
- protected procedure SetTopRadius ( const AValue : Single ) ;
- protected procedure RebuildMesh
(
)
;
Rebuilds the cylinder mesh depending on the configured SubdivisionsAxes and SubdivisionsHeight values.
- protected procedure Resize3D ( ) ; override;
- protected procedure CreateStaticBuffer
(
)
;
Creates a new static buffer for this cylinder mesh in the local mesh definition.
Properties
- published Sides : Integer
- published HeightSegments : Integer
- published BottomRadius : Single
- published TopRadius : Single
- published MaterialSource : TMaterialSource
- published Cursor : TCursor
- published DragMode : TDragMode
- published Position : TPosition3D
- published Scale : TPosition3D
- published RotationAngle : TPosition3D
- published Locked : Boolean
- published Opacity : Single
- published Projection : TProjection
- published HitTest : Boolean
- published VisibleContextMenu : Boolean
- published TwoSide : Boolean
- published Visible : Boolean
- published ZWrite : Boolean