// $Id$
-// #ifdef HAVE_CONFIG_H
-// # include <config.h>
-// #endif
+#ifdef HAVE_CONFIG_H
+# include <simgear_config.h>
+#endif
#include <simgear/compiler.h>
geod_nodes.push_back( geod[i] );
rectangle.push_back( i );
}
- point_list texs = calc_tex_coords( b, geod_nodes, rectangle,
+ point_list texs = sgCalcTexCoords( b, geod_nodes, rectangle,
1000.0 / tex_width );
// Allocate ssg structure
static int
leaf_in_range_callback (ssgEntity * entity, int mask)
{
- sgLeafUserData * data = (sgLeafUserData *)entity->getUserData();
+ SGLeafUserData * data = (SGLeafUserData *)entity->getUserData();
if (!data->is_filled_in) {
// Iterate through all the triangles
static int
leaf_out_of_range_callback (ssgEntity * entity, int mask)
{
- sgLeafUserData * data = (sgLeafUserData *)entity->getUserData();
+ SGLeafUserData * data = (SGLeafUserData *)entity->getUserData();
if (data->is_filled_in) {
data->branch->removeAllKids();
data->is_filled_in = false;
lod->addKid(in_range);
lod->addKid(out_of_range);
- sgLeafUserData * data = new sgLeafUserData;
+ SGLeafUserData * data = new SGLeafUserData;
data->is_filled_in = false;
data->leaf = leaf;
data->mat = mat;
out_of_range->setTravCallback(SSG_CALLBACK_PRETRAV,
leaf_out_of_range_callback);
out_of_range
- ->addKid(new sgDummyBSphereEntity(leaf->getBSphere()->getRadius()));
+ ->addKid(new SGDummyBSphereEntity(leaf->getBSphere()->getRadius()));
}