2016-06-28 18:54:55 +00:00
|
|
|
#ifndef __URDE_CDRAWABLEOBJECT_HPP__
|
|
|
|
#define __URDE_CDRAWABLEOBJECT_HPP__
|
|
|
|
|
|
|
|
#include "CDrawable.hpp"
|
|
|
|
#include "zeus/CPlane.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2016-07-25 22:52:02 +00:00
|
|
|
class CDrawablePlaneObject : public CDrawable
|
2016-06-28 18:54:55 +00:00
|
|
|
{
|
2016-07-26 02:43:55 +00:00
|
|
|
friend class Buckets;
|
|
|
|
u16 x24_targetBucket;
|
2018-06-03 06:11:39 +00:00
|
|
|
float x28_farDist;
|
2016-07-25 22:52:02 +00:00
|
|
|
zeus::CPlane x2c_plane;
|
2017-11-12 05:14:57 +00:00
|
|
|
bool x3c_24_invertTest : 1;
|
|
|
|
bool x3c_25_zOnly : 1;
|
2016-07-25 22:52:02 +00:00
|
|
|
public:
|
2018-06-03 06:11:39 +00:00
|
|
|
CDrawablePlaneObject(EDrawableType dtype, float closeDist, float farDist, const zeus::CAABox& aabb,
|
2017-11-12 05:14:57 +00:00
|
|
|
bool invertTest, const zeus::CPlane& plane, bool zOnly, const void* data)
|
2018-06-03 06:11:39 +00:00
|
|
|
: CDrawable(dtype, 0, closeDist, aabb, data), x24_targetBucket(0), x28_farDist(farDist),
|
2017-11-12 05:14:57 +00:00
|
|
|
x2c_plane(plane) {x3c_24_invertTest = invertTest; x3c_25_zOnly = zOnly;}
|
|
|
|
const zeus::CPlane& GetPlane() const { return x2c_plane; }
|
2016-06-28 18:54:55 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CDRAWABLEOBJECT_HPP__
|