12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #pragma once
- #include "Critical.h"
- #include "Array.h"
- #include "Vec3.h"
- namespace Framework
- {
- class Zeichnung3D;
- class Render3D;
- struct MausEreignis3D;
- class Model3D;
- struct DiffuseLight;
- struct PointLight;
- class DXBuffer;
-
- class Welt3D
- {
- protected:
- DiffuseLight *diffuseLights;
- int diffuseLightCount;
- PointLight *pointLights;
- int pointLightCount;
- private:
- RCArray< Model3D > *members;
- bool rend;
- Critical cs;
- int ref;
- public:
-
- __declspec( dllexport ) Welt3D();
-
- __declspec( dllexport ) virtual ~Welt3D();
-
- __declspec( dllexport ) void lock();
-
- __declspec( dllexport ) void unlock();
-
-
- __declspec( dllexport ) void addZeichnung( Model3D *obj );
-
-
- __declspec( dllexport ) void removeZeichnung( Model3D *zObj );
-
-
- __declspec( dllexport ) void doMausEreignis( MausEreignis3D &me );
-
-
-
- __declspec( dllexport ) virtual bool tick( double tickval );
-
-
-
-
- __declspec( dllexport ) virtual int traceRay( Vec3< float > &point, Vec3< float > &dir );
-
- __declspec( dllexport ) Iterator< Model3D * > getMembers();
-
- __declspec( dllexport ) int getPointLightCount() const;
-
- __declspec( dllexport ) int getDiffuseLightCount() const;
-
-
-
- __declspec( dllexport ) void copyLight( DXBuffer *zDiffuse, DXBuffer *zPoints ) const;
-
-
- __declspec( dllexport ) Welt3D *getThis();
-
-
- __declspec( dllexport ) Welt3D *release();
- };
- }
|