clipka <ano### [at] anonymousorg> wrote:
> That said, the thing you are looking for is the class `SceneData`
> declared in `source/core/scene/scenedata.h`
All right. I watched this file.
~SceneData();
/// list of all shape objects
vector<ObjectPtr> objects;
/// list of all global light sources
vector<LightSource *> lightSources;
/**
* Create new scene specific data.
*/
SceneData(GenericFunctionContextFactory* fcf);
A pointer to the object is absent, the light pointer is present.
How to implement my.cpp?
SceneData::SceneData(){};
SceneData *scene = new SceneData();
for (ulong i = 0; i < numberBlenderObjects; i++){
ObjectPtr *object = new ObjectPtr();
object = BlenderObjects[i];
scene -> objects.push_back(object);}
Post a reply to this message
|