FMX.Mobile.LowLevel3D Sample (C++)

From Appmethod Code Examples
Jump to: navigation, search

This sample illustrates basic usage of low level 3D objects in mobile applications, using FireMonkey.

Location

You can find the FireMonkeyMobile LowLevel3D sample project at:

Description

This application defines a new Material using two predefined bitmaps and a random color. The new material is used to render a rotating rectangular shape within the 3D context of the application form.

How to Use the Sample

  1. Navigate to the location given above and open LowLevel3D.cbproj.
  2. Press F9 or choose Run > Run.

Notice the animated rectangular shape with the customized material.

Classes

  • TForm1 represents the main window of the sample. It contains the following:
    • two TBitmapObject objects used to set the two bitmaps used to create the new material.
    • a TTimer used to create the animated rotation.
  • TMyMaterial class defines the new material.

Implementation

Uses

See Also