diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2004-10-07 23:25:40 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2004-10-07 23:25:40 +0400 |
commit | 0fdc0ce297be5a9621e41eba6e785a1d9c9287e4 (patch) | |
tree | 88eadd40613bf72f2cbe1b8bfbd5a1418b627a1a /source/blender/python/api2_2x/Camera.h | |
parent | 14ae3362c5dce229e84ca9331879d99d44a13a50 (diff) |
Another step in the Big Bpy Cleanup.
- move static declarations and data definitions out of headers.
the BGL module still need cleaning.
- move declarations out of modules.h and into appropriate .h files.
modules.h still exists as a container for the few modules that
need to #include almost everything.
- all files now have a $Id tag and have been formatted by indent
there are no changes to executable code.
pre-commit versions are tagged with bpy-cleanup-pre-20041007
for the sake of paranoia.
Diffstat (limited to 'source/blender/python/api2_2x/Camera.h')
-rw-r--r-- | source/blender/python/api2_2x/Camera.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Camera.h b/source/blender/python/api2_2x/Camera.h index 4d69017122f..81457e12878 100644 --- a/source/blender/python/api2_2x/Camera.h +++ b/source/blender/python/api2_2x/Camera.h @@ -33,7 +33,20 @@ #ifndef EXPP_CAMERA_H #define EXPP_CAMERA_H -#include "bpy_types.h" /* where the BPy_Camera struct is declared */ +#include <Python.h> +#include <DNA_camera_types.h> + +extern PyTypeObject Camera_Type; + +#define BPy_Camera_Check(v) \ + ((v)->ob_type == &Camera_Type) /* for type checking */ + +/* Python BPy_Camera structure definition */ +typedef struct { + PyObject_HEAD /* required py macro */ + Camera * camera; + +} BPy_Camera; /*****************************************************************************/ /* Python BPy_Camera defaults: */ @@ -60,6 +73,9 @@ #define EXPP_CAM_DRAWSIZE_MIN 0.1 #define EXPP_CAM_DRAWSIZE_MAX 10.0 - +PyObject *Camera_Init( void ); +PyObject *Camera_CreatePyObject( Camera * cam ); +int Camera_CheckPyObject( PyObject * pyobj ); +Camera *Camera_FromPyObject( PyObject * pyobj ); #endif /* EXPP_CAMERA_H */ |