Class TArraysGenerator

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TArraysGenerator = class(TObject)

Description

Generate TGeometryArrays for a VRML/X3D shape. This is the basis of our renderer: generate a TGeometryArrays for a shape, then TGLRenderer will pass TGeometryArrays to OpenGL.

Geometry must be based on coordinates when using this, that is TAbstractGeometryNode.Coord must return True.

Hierarchy

  • TObject
  • TArraysGenerator

Overview

Fields

Public TexCoordsNeeded: Cardinal;
Public MaterialOpacity: Single;
Public FogVolumetric: boolean;
Public FogVolumetricDirection: TVector3Single;
Public FogVolumetricVisibilityStart: Single;
Public ShapeBumpMappingUsed: boolean;
Public OnRadianceTransfer: TRadianceTransferFunction;
Public OnVertexColor: TVertexColorFunction;
Public FacesNeeded: boolean;

Methods

Public constructor Create(AShape: TShape; AOverTriangulate: boolean); virtual;
Public function GenerateArrays: TGeometryArrays;
Public class function BumpMappingAllowed: boolean; virtual;

Description

Fields

Public TexCoordsNeeded: Cardinal;

Assign these before calling GenerateArrays.

Public MaterialOpacity: Single;
 
Public FogVolumetric: boolean;
 
Public FogVolumetricDirection: TVector3Single;
 
Public FogVolumetricVisibilityStart: Single;
 
Public ShapeBumpMappingUsed: boolean;
 
Public OnRadianceTransfer: TRadianceTransferFunction;
 
Public OnVertexColor: TVertexColorFunction;
 
Public FacesNeeded: boolean;

Do we need TGeometryArrays.Faces

Methods

Public constructor Create(AShape: TShape; AOverTriangulate: boolean); virtual;
 
Public function GenerateArrays: TGeometryArrays;

Create and generate Arrays contents.

Public class function BumpMappingAllowed: boolean; virtual;
 

Generated by PasDoc 0.13.0 on 2013-08-17 21:27:12