Files
BlitzNext/Runtime/blitz3d/planemodel.hpp
T
Michael Fabian 'Xaymar' Dirks 3afa84df85 runtime/blitz3d: Fixup C++ification
2019-01-18 21:26:42 +01:00

33 lines
531 B
C++

#pragma once
#include "brush.hpp"
#include "model.hpp"
class PlaneModel : public Model {
public:
PlaneModel(int sub_divs);
PlaneModel(const PlaneModel& t);
~PlaneModel();
Entity* clone()
{
return new PlaneModel(*this);
}
//model interface
bool render(const RenderContext& rc);
//object interface
bool collide(const Line& line, float radius, Collision* curr_coll, const Transform& tf);
Plane getRenderPlane() const;
private:
struct Rep;
Rep* rep;
virtual PlaneModel* getPlaneModel()
{
return this;
}
};