diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-01-06 06:46:54 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-01-06 06:46:54 +0300 |
commit | 2e6d57618232b8b4ce8e5afe84fd278041cbbbfe (patch) | |
tree | c0f05e6b59aada420dd600f1138e9149b97d9e9d /source/gameengine/Ketsji/KX_Camera.h | |
parent | ef520a8cc9e863aa234be0ee60d1038e7ec8fc44 (diff) |
Sorry to break the cvs-closed status, so if you really need to make a new 2.40 build, just disable the game engine if it doesn't compile for a platform. Again, sorry if this breaks non-windows platforms, but I hope people help to get this amazing fix working for all platforms. Armature-fixing contribution from Snailrose. Also lots of cool things from Snailrose and Lagan.
Armatures are back
Split screen
Double sided lightning
Ambient lighting
Alpha test
Material IPO support (one per object atm)
Blender materials
GLSL shaders - Python access
Up to three texture samplers from the material panel ( 2D & Cube map )
Python access to a second set of uv coordinates
See http://www.elysiun.com/forum/viewtopic.php?t=58057
Diffstat (limited to 'source/gameengine/Ketsji/KX_Camera.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_Camera.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_Camera.h b/source/gameengine/Ketsji/KX_Camera.h index 52ae64efbfb..ed926f12123 100644 --- a/source/gameengine/Ketsji/KX_Camera.h +++ b/source/gameengine/Ketsji/KX_Camera.h @@ -203,6 +203,42 @@ public: * Gets this camera's culling status. */ bool GetFrustumCulling() const; + + /** + * Sets this camera's viewport status. + */ + void EnableViewport(bool viewport); + + /** + * Sets this camera's viewport. + */ + void SetViewport(int left, int bottom, int right, int top); + + /** + * Gets this camera's viewport status. + */ + bool GetViewport() const; + + /** + * Gets this camera's viewport left. + */ + int GetViewportLeft() const; + + /** + * Gets this camera's viewport bottom. + */ + int GetViewportBottom() const; + + /** + * Gets this camera's viewport right. + */ + int GetViewportRight() const; + + /** + * Gets this camera's viewport top. + */ + int GetViewportTop() const; + KX_PYMETHOD_DOC(KX_Camera, sphereInsideFrustum); KX_PYMETHOD_DOC(KX_Camera, boxInsideFrustum); @@ -213,6 +249,9 @@ public: KX_PYMETHOD_DOC(KX_Camera, getProjectionMatrix); KX_PYMETHOD_DOC(KX_Camera, setProjectionMatrix); + KX_PYMETHOD_DOC(KX_Camera, enableViewport); + KX_PYMETHOD_DOC(KX_Camera, setViewport); + virtual PyObject* _getattr(const STR_String& attr); /* lens, near, far, projection_matrix */ virtual int _setattr(const STR_String& attr, PyObject *pyvalue); |