EMI: removed unnecessary comments, made getBoundingBox const

This commit is contained in:
sietschie 2013-12-12 14:46:53 +01:00
parent 98e9b41010
commit d06762ec52
5 changed files with 3 additions and 16 deletions

View file

@ -439,7 +439,6 @@ void Costume::getBoundingBox(int *x1, int *y1, int *x2, int *y2) {
c->getBoundingBox(x1, y1, x2, y2);
}
//TODO: why is it lowercase 'mesh'?
if (_components[i] &&(_components[i]->isComponentType('m','e','s','h'))) {
EMIMeshComponent *c = static_cast<EMIMeshComponent *>(_components[i]);
c->getBoundingBox(x1, y1, x2, y2);

View file

@ -87,7 +87,7 @@ void EMIMeshComponent::draw() {
//translateObject(true);
}
void EMIMeshComponent::getBoundingBox(int *x1, int *y1, int *x2, int *y2) {
void EMIMeshComponent::getBoundingBox(int *x1, int *y1, int *x2, int *y2) const {
// If the object was drawn by being a component
// of it's parent then don't draw it

View file

@ -37,7 +37,7 @@ public:
int update(uint time);
void reset();
void draw();
void getBoundingBox(int *x1, int *y1, int *x2, int *y2);
void getBoundingBox(int *x1, int *y1, int *x2, int *y2) const;
public:
bool _hierShared;

View file

@ -442,12 +442,6 @@ void GfxOpenGL::getBoundingBoxPos(const EMIModel *model, int *x1, int *y1, int *
return;
}
//*x1 = (int)left;
//*y1 = (int)top;
//*x2 = (int)right;
//*y2 = (int)bottom;
//TODO: For some reasons the x axis needs to be flipped to get the correct positioned texts?
*x1 = (int)left;
*y1 = (int)(_gameHeight - bottom);
*x2 = (int)right;

View file

@ -575,12 +575,6 @@ void GfxTinyGL::getBoundingBoxPos(const EMIModel *model, int *x1, int *y1, int *
return;
}
//*x1 = (int)left;
//*y1 = (int)top;
//*x2 = (int)right;
//*y2 = (int)bottom;
//TODO: For some reasons the x axis needs to be flipped to get the correct positioned texts?
*x1 = (int)left;
*y1 = (int)(_gameHeight - bottom);
*x2 = (int)right;