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

36 lines
614 B
C++

#pragma once
#include "model.hpp"
class Q3BSPModel : public Model {
public:
Q3BSPModel(const std::string& f, float gamma_adj);
Q3BSPModel(const Q3BSPModel& m);
~Q3BSPModel();
//Entity interface
Entity* clone()
{
return new Q3BSPModel(*this);
}
//Object interface
virtual bool collide(const Line& line, float radius, Collision* curr_coll, const Transform& t);
//Model interface
Q3BSPModel* getBSPModel()
{
return this;
}
bool render(const RenderContext& rc);
void setAmbient(const Vector& t);
void setLighting(bool use_lmap);
bool isValid() const;
private:
struct Rep;
Rep* rep;
};