123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #pragma once
- #include "Mat4.h"
- #include "ReferenceCounter.h"
- namespace Framework
- {
- struct MausEreignis3D;
- struct TastaturEreignis;
- class Render3D;
-
- class Zeichnung3D : public virtual ReferenceCounter
- {
- protected:
- Vec3< float > pos;
- Vec3< float > angle;
- Mat4< float > welt;
- float radius;
- bool alpha;
- bool rend;
- float size;
- public:
-
- DLLEXPORT Zeichnung3D();
- DLLEXPORT virtual ~Zeichnung3D();
-
-
- DLLEXPORT void setPosition(Vec3< float >& p);
-
-
-
-
- DLLEXPORT void setPosition(float x, float y, float z);
-
-
- DLLEXPORT void setX(float x);
-
-
- DLLEXPORT void setY(float y);
-
-
- DLLEXPORT void setZ(float z);
-
-
- DLLEXPORT void setDrehung(Vec3< float >& d);
-
-
-
-
- DLLEXPORT void setDrehung(float xWinkel, float yWinkel, float zWinkel);
-
-
- DLLEXPORT void setDrehungX(float winkel);
-
-
- DLLEXPORT void setDrehungY(float winkel);
-
-
- DLLEXPORT void setDrehungZ(float winkel);
-
-
- DLLEXPORT void setAlpha(bool a);
-
- DLLEXPORT void setSize(float size);
-
-
-
-
- DLLEXPORT virtual int errechneMatrizen(Mat4< float >& viewProj, Mat4< float >* matBuffer);
-
-
- DLLEXPORT virtual void doMausEreignis(MausEreignis3D& me);
-
-
- DLLEXPORT virtual void doTastaturEreignis(TastaturEreignis& te);
-
-
-
- DLLEXPORT virtual bool tick(double tickval);
-
- DLLEXPORT bool hatAlpha() const;
-
- DLLEXPORT float getRadius() const;
-
- DLLEXPORT const Vec3< float >& getPos() const;
-
- DLLEXPORT float getX() const;
-
- DLLEXPORT float getY() const;
-
- DLLEXPORT float getZ() const;
-
- DLLEXPORT const Vec3< float >& getDrehung() const;
-
- DLLEXPORT float getXDrehung() const;
-
- DLLEXPORT float getYDrehung() const;
-
- DLLEXPORT float getZDrehung() const;
-
- DLLEXPORT const Mat4< float >& getMatrix() const;
-
- DLLEXPORT Vec3<float> applyWorldTransformation(Vec3<float> modelPos) const;
- };
- }
|