Unit a3dge.Prims3D
Uses Classes, Interfaces, Objects and Records Types Constants Variables
Description
Some functions to create 3D primitives.
Overview
Functions and Procedures
Description
Functions and Procedures
FUNCTION CreateCube (CONST aSize: GLfloat): TTexturedPolyhedron; |
Create a cube.
All facets will use material 0 and will map the whole texture.
Note you must assign the material to the returned model.
Parameters
- aSize
- The cube size.
Returns
A cube model. See also
- CreateBox
- Create a box.
- RemapBox3Texture
- Map box texture to a 3 texture strip.
|
function CreateBox (const aWidth, aHeight, aDepth: GLfloat) : TTexturedPolyhedron; |
Create a box.
All facets will use material 0 and will map the whole texture.
Note you must assign the material to the returned model.
Parameters
- aWidth
- Box size in the
X axis.
- aHeight
- Box size in the
Y axis.
- aDepth
- Box size in the
Z axis.
Returns
A box model. See also
- CreateCube
- Create a cube.
- RemapBox3Texture
- Map box texture to a 3 texture strip.
|
procedure RemapBox3Texture (aBox: TTexturedPolyhedron); |
Map box texture to a 3 texture strip.
The top and bottom of the box are mapped to the left third of the texture, the front and back sides are mapped to the central third of the texture, and the left and right sides will be mapped to the right third of the texture.
Parameters
- aBox
- The model to be remapped.
See also
- CreateBox
- Create a box.
|
Generated by PasDoc 0.15.0. Generated on 2025-07-31 11:41:01.
|