POV-Ray : Newsgroups : povray.binaries.programming : My idea: Developers need tips! Help me, please! : Re: My idea: Developers need tips! Help me, please! Server Time
18 May 2024 15:43:42 EDT (-0400)
  Re: My idea: Developers need tips! Help me, please!  
From: LanuHum
Date: 2 Oct 2016 13:30:00
Message: <web.57f14303397eea9f7a3e03fe0@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.