TGorillaCube
Defines a simple cub component, but differs by internal usage from FMX TCube.
Remarks
The Gorilla3D cube enables static buffering of vertices and indices. This allows also large number of vertices of cubes.This component uses by default static buffering to push vertices only once to GPU.
Ancestors
Members
Fields
- protected FSubdivisionsWidth :
Integer
- protected FSubdivisionsHeight :
Integer
- protected FSubdivisionsDepth :
Integer
Methods
- public constructor Create ( AOwner : TComponent ) ;
- protected procedure SetSubdivisionsDepth ( const Value : Integer ) ;
- protected procedure SetSubdivisionsHeight ( const Value : Integer ) ;
- protected procedure SetSubdivisionsWidth ( const Value : Integer ) ;
- protected procedure Render ( ) ; override;
- protected procedure RebuildMesh
(
)
;
Rebuilds the cube mesh depending on the configured SubdivisionsAxes and SubdivisionsHeight values.
- protected procedure Resize3D ( ) ; override;
- protected procedure CreateStaticBuffer
(
)
;
Creates a new static buffer for this cube mesh in the local mesh definition.
Properties
- published SubdivisionsDepth : Integer
- published SubdivisionsHeight : Integer
- published SubdivisionsWidth : Integer
- 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