metaforce/Runtime/Graphics/CDrawablePlaneObject.hpp

25 lines
761 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-06-28 18:54:55 +00:00
#include "Runtime/Graphics/CDrawable.hpp"
#include <zeus/CPlane.hpp>
2016-06-28 18:54:55 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
class CDrawablePlaneObject : public CDrawable {
friend class Buckets;
u16 x24_targetBucket;
float x28_farDist;
zeus::CPlane x2c_plane;
bool x3c_24_invertTest : 1;
bool x3c_25_zOnly : 1;
2016-07-25 22:52:02 +00:00
public:
2018-12-08 05:30:43 +00:00
CDrawablePlaneObject(EDrawableType dtype, float closeDist, float farDist, const zeus::CAABox& aabb, bool invertTest,
const zeus::CPlane& plane, bool zOnly, void* data)
2018-12-08 05:30:43 +00:00
: CDrawable(dtype, 0, closeDist, aabb, data), x24_targetBucket(0), x28_farDist(farDist), 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
};
2018-12-08 05:30:43 +00:00
} // namespace urde