metaforce/Runtime/Graphics/CDrawablePlaneObject.hpp

27 lines
846 B
C++
Raw Normal View History

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