Unit fb_collision_types

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

fb_collision_type is an integrated part of the FireBlade project. It offers several type definitions for the collision detection.

FireBlade is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

Copyright (C) 2005, 2009 by Sebastian Wagner. Special thanks to the DelphiGL community!

Requirements: FireBlade, fb_effectmanager: http://sourceforge.net/projects/fireblade/

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TFB_Material  
Class TFB_CollisionPrimitive  

Types

TFB_CollidedEvent = procedure(AParticle: Pointer; APrimitive: TFB_CollisionPrimitive; AContext: TObject) of object;
TFB_MaterialSetCallback = function(AXIndex, AZIndex: Integer): TFB_Material of object;

Constants

FB_FACEMODE_TRIANGLES = 0;
FB_FACEMODE_TRIANGLE_STRIP = 1;
FB_FACEMODE_QUADS = 2;
FB_FACEMODE_TRIANGLE_FAN = 3;
FB_DATAFORM_SEQUENCE = 0;
FB_DATAFORM_POINTING = 1;

Description

Types

TFB_CollidedEvent = procedure(AParticle: Pointer; APrimitive: TFB_CollisionPrimitive; AContext: TObject) of object;

Collided Event, which is fired when a particle collided with an object.

Parameters
AParticle
The particle (as PFB_ParticleData) that fired the event.
APrimitive
The object the particle collided with.
AContext
The particle's context
TFB_MaterialSetCallback = function(AXIndex, AZIndex: Integer): TFB_Material of object;

Callback which makes it possible to set different materials of single fields an a heightmap.

Parameters
AXIndex
Column index of the field.
AZIndex
Row index of the field.

Constants

FB_FACEMODE_TRIANGLES = 0;

Interpretates the vertices as triangles (OpenGL compatible).

FB_FACEMODE_TRIANGLE_STRIP = 1;

Interpretates the vertices as connected triangles. Takes the new vertex and the last two vertices to generate a triangle (OpenGL compatible).

FB_FACEMODE_QUADS = 2;

Interpretates the vertices as quads (OpenGL compatible).

FB_FACEMODE_TRIANGLE_FAN = 3;

Interpretates the vertices as a triangle fan. Takes the first, the last and the new vertex to generate a triangle (OpenGL compatible).

FB_DATAFORM_SEQUENCE = 0;

The pointer points to a continiuous sequence of values

FB_DATAFORM_POINTING = 1;

The pointer points to a sequence of pointers, which point to a continiuous sequence of values

Author

Created

10.21.07

Last Modified

22.05.09


Generated by PasDoc 0.11.0 on 2009-06-29 23:12:35