EMI: removed unnecessary comments, made getBoundingBox const
This commit is contained in:
parent
98e9b41010
commit
d06762ec52
5 changed files with 3 additions and 16 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue