X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Ftgdb%2Fuserdata.hxx;h=b487ddad329a7c8f8f0c0fb97e551608fbe1149e;hb=9dc1b5f6f56c6fecdcfefc2a0a75695a89f323a2;hp=d60d54a4d821251bbb1c08cb63ffa746bb8630d6;hpb=605125c0e7589ab027561227dcc2bb8e0a51f1ab;p=simgear.git diff --git a/simgear/scene/tgdb/userdata.hxx b/simgear/scene/tgdb/userdata.hxx index d60d54a4..b487ddad 100644 --- a/simgear/scene/tgdb/userdata.hxx +++ b/simgear/scene/tgdb/userdata.hxx @@ -49,58 +49,11 @@ class SGPropertyNode; * following values (needed by the model loader callback at draw time) * before drawing any scenery. */ -void sgUserDataInit( SGModelLib *m, const string &r, - SGPropertyNode *p, double t ); +void sgUserDataInit(SGPropertyNode *p); /** * Get a random model. */ osg::Node* sgGetRandomModel(SGMatModel *obj); -/** - * Get a specific model. - */ -osg::Node* sgGetModel(int i, SGMatModel *obj); - -/** - * User data for populating leaves when they come in range. - */ -class SGLeafUserData : public osg::Referenced -{ -public: - bool is_filled_in; - osg::Geometry *leaf; - SGMaterial *mat; - osg::Group *branch; - float sin_lat; - float cos_lat; - float sin_lon; - float cos_lon; - - void setup_triangle( int i ); -}; - - -/** - * User data for populating triangles when they come in range. - */ -class SGTriUserData : public osg::Referenced -{ -public: - bool is_filled_in; - float * p1; - float * p2; - float * p3; - osg::Vec3 center; - double area; - SGMatModelGroup * object_group; - osg::Group * branch; - SGLeafUserData * leafData; - unsigned int seed; - - void fill_in_triangle(); - void add_object_to_triangle(SGMatModel * object); - void makeWorldMatrix (sgMat4 ROT, double hdg_deg ); -}; - #endif // _SG_USERDATA_HXX