#include "apt_signs.hxx"
-ssgBranch *gen_taxi_sign( SGMaterialLib *matlib,
- const string path, const string content )
+ssgBranch *sgMakeTaxiSign( SGMaterialLib *matlib,
+ const string path, const string content )
{
// for demo purposes we assume each element (letter) is 1x1 meter.
// Sign is placed 0.25 meters above the ground
}
-ssgBranch *gen_runway_sign( SGMaterialLib *matlib,
- const string path, const string name )
+ssgBranch *sgMakeRunwaySign( SGMaterialLib *matlib,
+ const string path, const string name )
{
// for demo purposes we assume each element (letter) is 1x1 meter.
// Sign is placed 0.25 meters above the ground
// $Id$
-#ifndef _APT_SIGNS_HXX
-#define _APT_SIGNS_HXX
+#ifndef _SG_APT_SIGNS_HXX
+#define _SG_APT_SIGNS_HXX
#ifndef __cplusplus
// Generate a taxi sign
-ssgBranch *gen_taxi_sign( SGMaterialLib *matlib,
- const string path, const string content );
+ssgBranch *sgMakeTaxiSign( SGMaterialLib *matlib,
+ const string path, const string content );
// Generate a runway sign
-ssgBranch *gen_runway_sign( SGMaterialLib *matlib,
- const string path, const string name );
+ssgBranch *sgMakeRunwaySign( SGMaterialLib *matlib,
+ const string path, const string name );
-#endif // _APT_SIGNS_HXX
+#endif // _SG_APT_SIGNS_HXX
// Generate a directional light
-ssgLeaf *gen_directional_light( sgVec3 pt, sgVec3 dir, sgVec3 up,
- const SGMaterial *mat ) {
+ssgLeaf *sgMakeDirectionalLight( sgVec3 pt, sgVec3 dir, sgVec3 up,
+ const SGMaterial *mat ) {
// calculate a vector perpendicular to dir and up
sgVec3 perp;
#endif
-ssgBranch *gen_directional_lights( const point_list &nodes,
- const point_list &normals,
- const int_list &pnt_i,
- const int_list &nml_i,
- SGMaterialLib *matlib,
- const string &material,
- sgVec3 up )
+ssgBranch *sgMakeDirectionalLights( const point_list &nodes,
+ const point_list &normals,
+ const int_list &pnt_i,
+ const int_list &nml_i,
+ SGMaterialLib *matlib,
+ const string &material,
+ sgVec3 up )
{
sgVec3 nup;
sgNormalizeVec3( nup, up );
// $Id$
-#ifndef _PT_LIGHTS_HXX
-#define _PT_LIGHTS_HXX
+#ifndef _SG_PT_LIGHTS_HXX
+#define _SG_PT_LIGHTS_HXX
#ifndef __cplusplus
// Define the various supported light types
typedef enum {
- FG_RWYLIGHT_TAXI = 0,
- FG_RWYLIGHT_VASI,
- FG_RWYLIGHT_EDGE,
- FG_RWYLIGHT_TOUCHDOWN,
- FG_RWYLIGHT_THRESHOLD,
- FG_RWYLIGHT_WHITE,
- FG_RWYLIGHT_RED,
- FG_RWYLIGHT_GREEN,
- FG_RWYLIGHT_YELLOW
-} fgRunwayLightType;
+ SG_RWYLIGHT_TAXI = 0,
+ SG_RWYLIGHT_VASI,
+ SG_RWYLIGHT_EDGE,
+ SG_RWYLIGHT_TOUCHDOWN,
+ SG_RWYLIGHT_THRESHOLD,
+ SG_RWYLIGHT_WHITE,
+ SG_RWYLIGHT_RED,
+ SG_RWYLIGHT_GREEN,
+ SG_RWYLIGHT_YELLOW
+} sgPointLightType;
// Generate a directional light. This routines creates a
// Yes this get's to be long and convoluted. If you can suggest a
// simpler way, please do! :-)
-ssgLeaf *gen_directional_light( sgVec3 pt, sgVec3 dir, sgVec3 up );
+ssgLeaf *sgMakeDirectionalLight( sgVec3 pt, sgVec3 dir, sgVec3 up );
-ssgBranch *gen_directional_lights( const point_list &nodes,
- const point_list &normals,
- const int_list &pnt_i,
- const int_list &nml_i,
- SGMaterialLib *matlib,
- const string &material,
- sgVec3 up );
+ssgBranch *sgMakeDirectionalLights( const point_list &nodes,
+ const point_list &normals,
+ const int_list &pnt_i,
+ const int_list &nml_i,
+ SGMaterialLib *matlib,
+ const string &material,
+ sgVec3 up );
-#endif // _PT_LIGHTS_HXX
+#endif // _SG_PT_LIGHTS_HXX