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 18:55:35 EDT (-0400)
  Re: My idea: Developers need tips! Help me, please!  
From: LanuHum
Date: 1 Oct 2016 14:35:01
Message: <web.57f000f3397eea9f7a3e03fe0@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:
> Now I will try to create classes! Thank you. Your support has helped me.

No, I will not understand your code. Very confusing.
What would be said Gerbert Shildt, if you saw your code?
Macros - evil. It is neither for you.

Where similar to this?

//Scene.h
#include <vector>
#include "Camera.h"
#include "Light.h"
#include "Object.h"
#include "Pigment.h"
#include "Normal.h"
#include "Finish.h"
#include "Texture.h"

using namespace std;

class Scene {
public:
    Camera              camera;
    vector<Light*>      lights;
    vector<Object*>     static_objects;
    vector<Object*>     animate_objects;
    vector<Pigment*>    pigments;
    vector<Normal*>     normals;
    vector<Finish*>     finishes;
    vector<Texture*>    textures;

                        Scene();
                        ~Scene();
};

In vain I try to.  :((((((((((((((


Post a reply to this message

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