TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
solid.h File Reference

Go to the source code of this file.

Classes

struct  DtCollData

Typedefs

typedef double DtScalar
typedef DtScalar DtVector[3]
typedef unsigned int DtIndex
typedef unsigned int DtCount
typedef void * DtObjectRef
typedef void * DtShapeRef
typedef enum DtPolyType DtPolyType
typedef enum DtResponseType DtResponseType
typedef struct DtCollData DtCollData
typedef void(* DtResponse) (void *client_data, DtObjectRef object1, DtObjectRef object2, const DtCollData *coll_data)

Enumerations

enum  DtPolyType { DT_SIMPLEX , DT_POLYGON , DT_POLYHEDRON }
enum  DtResponseType { DT_NO_RESPONSE , DT_SIMPLE_RESPONSE , DT_SMART_RESPONSE , DT_WITNESSED_RESPONSE }

Functions

DtShapeRef dtBox (DtScalar x, DtScalar y, DtScalar z)
DtShapeRef dtCone (DtScalar radius, DtScalar height)
DtShapeRef dtCylinder (DtScalar radius, DtScalar height)
DtShapeRef dtSphere (DtScalar radius)
DtShapeRef dtNewComplexShape ()
void dtEndComplexShape ()
void dtBegin (DtPolyType type)
void dtEnd ()
void dtVertex (DtScalar x, DtScalar y, DtScalar z)
void dtVertexBase (const void *base)
void dtVertexIndex (DtIndex index)
void dtVertexIndices (DtPolyType type, DtCount count, const DtIndex *indices)
void dtVertexRange (DtPolyType type, DtIndex first, DtCount count)
void dtChangeVertexBase (DtShapeRef shape, const void *base)
void dtDeleteShape (DtShapeRef shape)
void dtCreateObject (DtObjectRef object, DtShapeRef shape)
void dtDeleteObject (DtObjectRef object)
void dtSelectObject (DtObjectRef object)
void dtLoadIdentity ()
void dtLoadMatrixf (const float *m)
void dtLoadMatrixd (const double *m)
void dtMultMatrixf (const float *m)
void dtMultMatrixd (const double *m)
void dtTranslate (DtScalar x, DtScalar y, DtScalar z)
void dtRotate (DtScalar x, DtScalar y, DtScalar z, DtScalar w)
void dtScale (DtScalar x, DtScalar y, DtScalar z)
void dtSetDefaultResponse (DtResponse response, DtResponseType type, void *client_data)
void dtClearDefaultResponse ()
void dtSetObjectResponse (DtObjectRef object, DtResponse response, DtResponseType type, void *client_data)
void dtClearObjectResponse (DtObjectRef object)
void dtResetObjectResponse (DtObjectRef object)
void dtSetPairResponse (DtObjectRef object1, DtObjectRef object2, DtResponse response, DtResponseType type, void *client_data)
void dtClearPairResponse (DtObjectRef object1, DtObjectRef object2)
void dtResetPairResponse (DtObjectRef object1, DtObjectRef object2)
DtCount dtTest ()
void dtProceed ()
void dtEnableCaching ()
void dtDisableCaching ()
void dtSetTolerance (DtScalar tol)

Typedef Documentation

◆ DtCollData

typedef struct DtCollData DtCollData

◆ DtCount

typedef unsigned int DtCount

Definition at line 37 of file solid.h.

◆ DtIndex

typedef unsigned int DtIndex

Definition at line 36 of file solid.h.

◆ DtObjectRef

typedef void* DtObjectRef

Definition at line 39 of file solid.h.

◆ DtPolyType

typedef enum DtPolyType DtPolyType

◆ DtResponse

typedef void(* DtResponse) (void *client_data, DtObjectRef object1, DtObjectRef object2, const DtCollData *coll_data)

Definition at line 61 of file solid.h.

◆ DtResponseType

◆ DtScalar

typedef double DtScalar

Definition at line 34 of file solid.h.

◆ DtShapeRef

typedef void* DtShapeRef

Definition at line 40 of file solid.h.

◆ DtVector

typedef DtScalar DtVector[3]

Definition at line 35 of file solid.h.

Enumeration Type Documentation

◆ DtPolyType

enum DtPolyType
Enumerator
DT_SIMPLEX 
DT_POLYGON 
DT_POLYHEDRON 

Definition at line 42 of file solid.h.

◆ DtResponseType

Enumerator
DT_NO_RESPONSE 
DT_SIMPLE_RESPONSE 
DT_SMART_RESPONSE 
DT_WITNESSED_RESPONSE 

Definition at line 48 of file solid.h.

Function Documentation

◆ dtBegin()

void dtBegin ( DtPolyType type)
extern

Definition at line 118 of file C-api.cpp.

◆ dtBox()

DtShapeRef dtBox ( DtScalar x,
DtScalar y,
DtScalar z )
extern

Definition at line 84 of file C-api.cpp.

◆ dtChangeVertexBase()

void dtChangeVertexBase ( DtShapeRef shape,
const void * base )
extern

◆ dtClearDefaultResponse()

void dtClearDefaultResponse ( )
extern

Definition at line 257 of file C-api.cpp.

◆ dtClearObjectResponse()

void dtClearObjectResponse ( DtObjectRef object)
extern

Definition at line 266 of file C-api.cpp.

◆ dtClearPairResponse()

void dtClearPairResponse ( DtObjectRef object1,
DtObjectRef object2 )
extern

Definition at line 280 of file C-api.cpp.

◆ dtCone()

DtShapeRef dtCone ( DtScalar radius,
DtScalar height )
extern

Definition at line 88 of file C-api.cpp.

◆ dtCreateObject()

void dtCreateObject ( DtObjectRef object,
DtShapeRef shape )
extern

Definition at line 195 of file C-api.cpp.

Here is the call graph for this function:

◆ dtCylinder()

DtShapeRef dtCylinder ( DtScalar radius,
DtScalar height )
extern

Definition at line 92 of file C-api.cpp.

◆ dtDeleteObject()

void dtDeleteObject ( DtObjectRef object)
extern

Definition at line 208 of file C-api.cpp.

◆ dtDeleteShape()

void dtDeleteShape ( DtShapeRef shape)
extern

Definition at line 172 of file C-api.cpp.

◆ dtDisableCaching()

void dtDisableCaching ( )
extern

Definition at line 306 of file C-api.cpp.

◆ dtEnableCaching()

void dtEnableCaching ( )
extern

Definition at line 299 of file C-api.cpp.

◆ dtEnd()

void dtEnd ( )
extern

Definition at line 119 of file C-api.cpp.

Here is the call graph for this function:

◆ dtEndComplexShape()

void dtEndComplexShape ( )
extern

Definition at line 105 of file C-api.cpp.

◆ dtLoadIdentity()

void dtLoadIdentity ( )
extern

Definition at line 230 of file C-api.cpp.

◆ dtLoadMatrixd()

void dtLoadMatrixd ( const double * m)
extern

Definition at line 238 of file C-api.cpp.

◆ dtLoadMatrixf()

void dtLoadMatrixf ( const float * m)
extern

Definition at line 234 of file C-api.cpp.

◆ dtMultMatrixd()

void dtMultMatrixd ( const double * m)
extern

Definition at line 246 of file C-api.cpp.

◆ dtMultMatrixf()

void dtMultMatrixf ( const float * m)
extern

Definition at line 242 of file C-api.cpp.

◆ dtNewComplexShape()

DtShapeRef dtNewComplexShape ( )
extern

Definition at line 100 of file C-api.cpp.

◆ dtProceed()

void dtProceed ( )
extern

Definition at line 290 of file C-api.cpp.

◆ dtResetObjectResponse()

void dtResetObjectResponse ( DtObjectRef object)
extern

Definition at line 270 of file C-api.cpp.

◆ dtResetPairResponse()

void dtResetPairResponse ( DtObjectRef object1,
DtObjectRef object2 )
extern

Definition at line 284 of file C-api.cpp.

◆ dtRotate()

void dtRotate ( DtScalar x,
DtScalar y,
DtScalar z,
DtScalar w )
extern

Definition at line 222 of file C-api.cpp.

◆ dtScale()

void dtScale ( DtScalar x,
DtScalar y,
DtScalar z )
extern

Definition at line 226 of file C-api.cpp.

◆ dtSelectObject()

void dtSelectObject ( DtObjectRef object)
extern

Definition at line 200 of file C-api.cpp.

Here is the call graph for this function:

◆ dtSetDefaultResponse()

void dtSetDefaultResponse ( DtResponse response,
DtResponseType type,
void * client_data )
extern

Definition at line 252 of file C-api.cpp.

◆ dtSetObjectResponse()

void dtSetObjectResponse ( DtObjectRef object,
DtResponse response,
DtResponseType type,
void * client_data )
extern

Definition at line 261 of file C-api.cpp.

◆ dtSetPairResponse()

void dtSetPairResponse ( DtObjectRef object1,
DtObjectRef object2,
DtResponse response,
DtResponseType type,
void * client_data )
extern

Definition at line 274 of file C-api.cpp.

◆ dtSetTolerance()

void dtSetTolerance ( DtScalar tol)
extern

Definition at line 308 of file C-api.cpp.

◆ dtSphere()

DtShapeRef dtSphere ( DtScalar radius)
extern

Definition at line 96 of file C-api.cpp.

◆ dtTest()

DtCount dtTest ( )
extern

Definition at line 348 of file C-api.cpp.

Here is the call graph for this function:

◆ dtTranslate()

void dtTranslate ( DtScalar x,
DtScalar y,
DtScalar z )
extern

Definition at line 218 of file C-api.cpp.

◆ dtVertex()

void dtVertex ( DtScalar x,
DtScalar y,
DtScalar z )
extern

Definition at line 124 of file C-api.cpp.

◆ dtVertexBase()

void dtVertexBase ( const void * base)
extern

◆ dtVertexIndex()

void dtVertexIndex ( DtIndex index)
extern

Definition at line 137 of file C-api.cpp.

◆ dtVertexIndices()

void dtVertexIndices ( DtPolyType type,
DtCount count,
const DtIndex * indices )
extern

Definition at line 139 of file C-api.cpp.

◆ dtVertexRange()

void dtVertexRange ( DtPolyType type,
DtIndex first,
DtCount count )
extern

Definition at line 165 of file C-api.cpp.

Here is the call graph for this function: