~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to source/gameengine/Ketsji/KX_Light.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: KX_Light.h 16366 2008-09-04 20:51:28Z blendix $
 
2
 * $Id: KX_Light.h 20756 2009-06-09 13:51:32Z blendix $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
47
47
        class RAS_IRenderTools* m_rendertools;  //needed for registering and replication of lightobj
48
48
        bool                            m_glsl;
49
49
        Scene*                          m_blenderscene;
50
 
        static char                     doc[];
51
50
 
52
51
public:
53
52
        KX_LightObject(void* sgReplicationInfo,SG_Callbacks callbacks,class RAS_IRenderTools* rendertools,const struct RAS_LightObject& lightobj, bool glsl, PyTypeObject *T = &Type);
55
54
        virtual CValue*         GetReplica();
56
55
        RAS_LightObject*        GetLightData() { return &m_lightobj;}
57
56
 
58
 
        /* GLSL shadow */
 
57
        /* OpenGL Light */
 
58
        bool ApplyLight(KX_Scene *kxscene, int oblayer, int slot);
 
59
 
 
60
        /* GLSL Light */
59
61
        struct GPULamp *GetGPULamp();
60
62
        bool HasShadowBuffer();
61
63
        int GetShadowLayer();
63
65
        void UnbindShadowBuffer(class RAS_IRasterizer *ras);
64
66
        void Update();
65
67
        
66
 
        virtual PyObject* _getattr(const STR_String& attr); /* lens, near, far, projection_matrix */
67
 
        virtual int       _setattr(const STR_String& attr, PyObject *pyvalue);
 
68
        virtual PyObject* py_getattro(PyObject *attr); /* lens, near, far, projection_matrix */
 
69
        virtual PyObject* py_getattro_dict();
 
70
        virtual int       py_setattro(PyObject *attr, PyObject *pyvalue);
 
71
 
 
72
        /* attributes */
 
73
        static PyObject*        pyattr_get_color(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
 
74
        static int                      pyattr_set_color(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject* value);
 
75
        static PyObject*        pyattr_get_typeconst(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
 
76
        static PyObject*        pyattr_get_type(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
 
77
        static int                      pyattr_set_type(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject* value);
68
78
 
69
79
        virtual bool IsLight(void) { return true; }
70
80
};