TGorillaSphere
Defines a simple sphere component, but differs by internal usage from FMX TSphere.
Remarks
The Gorilla3D sphere enables static buffering of vertices and indices. This allows also large number of vertices of spheres.This component uses by default static buffering to push vertices only once to GPU.
Ancestors
Members
Fields
Methods
- public constructor Create ( AOwner : TComponent ) ;
- protected procedure SetSubdivisionsAxes ( const Value : Integer ) ;
- protected procedure SetSubdivisionsHeight ( const Value : Integer ) ;
- protected procedure Resize3D ( ) ; override;
- protected procedure CreateStaticBuffer
(
)
;
Creates a new static buffer for this sphere mesh in the local mesh definition.
- public procedure RebuildMesh
(
AIsStatic :
Boolean
=
True
)
;
Rebuilds the sphere mesh depending on the configured SubdivisionsAxes and SubdivisionsHeight values.
Properties
- published SubdivisionsAxes : Integer
Number of subdivisions on axes. By default the value is set to 16.
read FSubdivisionsAxes
write SetSubdivisionsAxes - published SubdivisionsHeight : Integer
Number of subdivisions on height. By default the value is set to 12. The maximum value is 128.
read FSubdivisionsHeight
write SetSubdivisionsHeight - 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