view Renderer/Engine/Light.h @ 2069:26aa08c9a1de draft default tip

cuda example fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 12 Feb 2017 10:04:55 +0900
parents acfa426b277e
children
line wrap: on
line source


#ifndef INCLUDED_LIGHT
#define INCLUDED_LIGHT

#include "SceneGraphRoot.h"
#include "TaskManager.h"

class SceneGraphRoot;

class Light {
public:
    Light(float w, float h,int spe_num_, SceneGraphRoot *sgroot_, TaskManager *manager_) {
        spe_num = spe_num_; 
	sgroot = sgroot_;
	manager = manager_;
    }
    ~Light(void);    
    float *light_xyz;
    float *light_xyz_stock;
    int *light_switch;
    int *light_switch_stock;
    int *light_sysswitch;
    int light_sysswitch_stock;
    int spe_num;
    TaskManager *manager;
    SceneGraphRoot *sgroot;
    
    void init();
    bool exec(HTaskPtr task_next);
    HTaskPtr update(HTaskPtr task_next);

};

typedef Light *LightPtr;

#endif