summaryrefslogtreecommitdiffstats
path: root/sdk/rwsdk/include/d3d8/rtworld.h
blob: fef3e17c48143e02a2f34349a7dcee7779fb0b0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
 * World toolkit.
 */
/***************************************************************************
 *                                                                         *
 * Module  : rtworld.h                                                     *
 *                                                                         *
 * Purpose : World tool helper functions header                            *
 *                                                                         *
 **************************************************************************/

#ifndef RTWORLD_H
#define RTWORLD_H

/**
 * \defgroup rtworld RtWorld
 * \ingroup rttool
 *
 * World Import Toolkit for RenderWare.
 */

/****************************************************************************
 Includes
 */

#include "rpworld.h"

#include "rtworld.rpe"    /* automatically generated header file */

/****************************************************************************
 Defines
 */

/* RWPUBLIC */
/****************************************************************************
 Global Types
 */

/* RWPUBLICEND */

/****************************************************************************
 Exported globals
 */

/* RWPUBLIC */
/****************************************************************************
 Function prototypes
 */

#ifdef    __cplusplus
extern "C"
{
#endif                          /* __cplusplus */

/* Get the number of various things in the world */
extern RwInt32 RtWorldGetNumWorldSectors(RpWorld *world);
extern RwInt32 RtWorldGetNumVertices(RpWorld *world);
extern RwInt32 RtWorldGetNumPolygons(RpWorld *world);

/* Find things out about materials in the world */
extern RwInt32 RtWorldFindMaterialNum(RpWorld *world, RpMaterial *material);
extern RpMaterial *RtWorldFindMaterialWithTextureName(RpWorld *world, RwChar *name);

/* Optimisation functions in optimise.c */
extern RpClump *RtClumpOptimize(RpClump *clump, RwReal dist);
extern RpAtomic *RtAtomicOptimize(RpAtomic *atomic, RwReal dist);

/*
 * This function has been removed, however it still exists as a stealth
 * function, _rtGeometryOptimize.
 */
#define RtGeometryOptimize(geometry, dist) (geometry)

extern RpGeometry *_rtGeometryOptimize(RpGeometry *geometry, RwReal dist);

/* Import utility functions from imputil.c */
extern RpGeometry *RtGeometryCalculateVertexNormals(RpGeometry *geometry);

#ifdef    __cplusplus
}
#endif                          /* __cplusplus */

/* RWPUBLICEND */

#endif /* RWTLWRLD_H */