PrdglSqrl
11-01-2008 21:42:09
For my project, I decided to wrap up the GrassLoader in a nice, even easier to use class. One that would reduce the configuration down to 2 to 3 function calls.
Here's the layout for the class as is in my .h file for it:
Simple...
Here's where it crashes:
The crash dialog says:
File: /blah/blah/blah/.../ogresharedptr.h
Line: 134
Expression: pRep
I have no clue what this really means, but I'm assuming since the file is ogresharedptr.h, that it has something to do with the layer variable in addLayer().
Any thoughts?
Here's the layout for the class as is in my .h file for it:
class BillboardSeeder{
private:
PagedGeometry* seeder;
GrassLoader* loader;
public:
BillboardSeeder();
BillboardSeeder(YEI3D* app, float pageSize, float cullDist);
~BillboardSeeder();
void init(YEI3D* app, float pageSize, float cullDist);
void destroy();
void update();
void reload();
GrassLayer* addLayer(string mname);
GrassLayer* addLayer(string mname, float minw, float minh, float maxw, float maxh, float density,
FadeTechnique fadeTech, bool animated=true, float swaydist=1.0, float swaylen=1.0, float swayspd=1.0);
void configureLayer(GrassLayer* layer, float minw, float minh, float maxw, float maxh, float density,
FadeTechnique fadeTech, bool animated=true, float swaydist=1.0, float swaylen=1.0, float swayspd=1.0);
Simple...
Here's where it crashes:
GrassLayer* BillboardSeeder::addLayer(string mname){
GrassLayer* layer = loader->addLayer(mname); // This is line it crashes on!
return layer;
}
The crash dialog says:
File: /blah/blah/blah/.../ogresharedptr.h
Line: 134
Expression: pRep
I have no clue what this really means, but I'm assuming since the file is ogresharedptr.h, that it has something to do with the layer variable in addLayer().
Any thoughts?