0ad/source/dcdt/se/sr_sa_bbox.cpp
janwas 5bf9bca9ef fix/disable warnings.
there are too many W4 and "potentially uninitialized", so those are
disabled by 0ad_warning_disable.h.

the silly "int x = strlen" and very dangerous "int x = (void*)p" (and
vice versa) problems are fixed.

This was SVN commit r5526.
2007-12-23 12:18:57 +00:00

34 lines
788 B
C++

#include "precompiled.h"
#include "0ad_warning_disable.h"
//# include <stdlib.h>
# include "sr_sa_bbox.h"
# include "sr_sn_shape.h"
//# define SR_USE_TRACE1 // constructor / destructor
# include "sr_trace.h"
//================================== SrSaBBox ====================================
bool SrSaBBox::shape_apply ( SrSnShapeBase* s )
{
if ( !s->visible() ) return true;
SrBox b;
SrMat m;
s->get_bounding_box ( b );
get_top_matrix ( m );
_box.extend ( b * m );
return true;
}
/*
bool SrSaBBox::manipulator_apply ( SrSceneShapeBase* s )
{
SrBox b;
s->get_bounding_box ( b );
_box.extend ( b * top_matrix() );
return true;
}
*/
//======================================= EOF ====================================