Made a model-func const...
This commit is contained in:
parent
07b852c718
commit
314b2602be
|
@ -127,7 +127,7 @@ bool Ray::onRay(Punkt3D p, int rnd) {
|
|||
else if(g3)
|
||||
return (r1 == r2);
|
||||
else
|
||||
return (r1 == r2 == r3);
|
||||
return ((r1 == r2) == r3);
|
||||
}
|
||||
|
||||
float Ray::dist(Punkt3D p) {
|
||||
|
@ -215,7 +215,7 @@ bool Plane::collision(const Plane &p) const {
|
|||
}
|
||||
|
||||
float Plane::dist(Punkt3D p) const {
|
||||
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
} // namespace segl
|
||||
|
|
|
@ -156,7 +156,7 @@ Model::~Model() {
|
|||
unload();
|
||||
}
|
||||
|
||||
const Punkt3D* Model::getMeshData(unsigned int *meshanz) {
|
||||
const Punkt3D* Model::getMeshData(unsigned int *meshanz) const {
|
||||
*meshanz = meshdataanz;
|
||||
return (const Punkt3D*)meshdata;
|
||||
}
|
||||
|
|
|
@ -84,10 +84,10 @@ class Model {
|
|||
void unload();
|
||||
void render();
|
||||
|
||||
Quader getBoundingBox() { return boundingbox; }
|
||||
float getBoundingRad() { return boundingrad; }
|
||||
Quader getBoundingBox() const { return boundingbox; }
|
||||
float getBoundingRad() const { return boundingrad; }
|
||||
|
||||
const Punkt3D* getMeshData(unsigned int *meshanz);
|
||||
const Punkt3D* getMeshData(unsigned int *meshanz) const;
|
||||
};
|
||||
|
||||
} // namespace segl
|
||||
|
|
Loading…
Reference in New Issue