28 #ifndef WINTERMUTE_AD_SCENE_GEOMETRY_H 29 #define WINTERMUTE_AD_SCENE_GEOMETRY_H 31 #include "engines/wintermute/base/base_object.h" 32 #include "engines/wintermute/math/rect32.h" 33 #include "math/matrix4.h" 34 #include "math/vector3d.h" 46 class AdWaypointGroup3D;
52 bool _maxLightsWarning;
54 bool setLightColor(
const char *lightName, uint32 color);
55 uint32 getLightColor(
const char *lightName);
56 Math::Vector3d getLightPos(
const char *lightName);
57 bool enableNode(
const char *nodeName,
bool enable =
true);
58 bool isNodeEnabled(
const char *nodeName);
59 bool enableLight(
const char *lightName,
bool enable =
true);
60 bool isLightEnabled(
const char *lightName);
62 bool correctTargetPoint(
const Math::Vector3d &source, Math::Vector3d *target);
64 bool _lastValuesInitialized;
65 Math::Matrix4 _lastWorldMat;
66 Math::Matrix4 _lastViewMat;
67 Math::Matrix4 _lastProjMat;
78 float getPointsDist(Math::Vector3d p1, Math::Vector3d p2);
79 void pathFinderStep();
80 bool getPath(Math::Vector3d source, Math::Vector3d target,
AdPath3D *path,
bool rerun =
false);
81 bool convert2Dto3D(
int x,
int y, Math::Vector3d *pos);
82 bool convert2Dto3DTolerant(
int x,
int y, Math::Vector3d *pos);
83 bool convert3Dto2D(Math::Vector3d *pos, int32 *x, int32 *y);
85 float _waypointHeight;
86 bool directPathExists(Math::Vector3d *p1, Math::Vector3d *p2);
87 float getHeightAt(Math::Vector3d pos,
float Ttlerance = 0.0f,
bool *intFound = NULL);
89 bool storeDrawingParams();
90 bool render(
bool render);
91 bool renderShadowGeometry();
93 Math::Matrix4 *getViewMatrix();
94 Math::Matrix4 _viewMatrix;
95 bool setActiveCamera(
const char *camera,
float fov,
float nearClipPlane,
float farClipPlane);
96 bool setActiveCamera(
int camera,
float fow,
float nearClipPlane,
float farClipPlane);
102 bool setActiveLight(
char *light);
103 bool setActiveLight(
int light);
109 bool loadFile(
const char *filename);
119 AdGeomExt *getGeometryExtension(
char *filename);
120 Math::Vector3d getBlockIntersection(Math::Vector3d *p1, Math::Vector3d *p2);
122 Math::Vector3d _PFSource;
123 Math::Vector3d _PFTarget;
125 Math::Vector3d _PFAlternateTarget;
126 float _PFAlternateDist;
Definition: base_game.h:75
Definition: ad_path3d.h:39
Definition: display_client.h:58
Definition: ad_geom_ext.h:38
Definition: ad_scene_geometry.h:50
Definition: coll_templ.h:63
Definition: base_sprite.h:40
Definition: 3dcamera.h:40
Definition: coll_templ.h:89
Definition: base_object.h:57
Definition: achievements_tables.h:27