~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/vector.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: vector.h,v 1.5 2004/02/29 13:20:34 ascotan Exp $
 
1
/* $Id: vector.h,v 1.10 2005/05/22 17:40:00 stiv Exp $
2
2
 *
3
3
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
4
 *
50
50
#define VectorObject_Check(v) ((v)->ob_type == &vector_Type)
51
51
 
52
52
typedef struct {
53
 
        PyObject_VAR_HEAD
54
 
        float * vec;
 
53
        PyObject_VAR_HEAD float *vec;
55
54
        int size;
56
55
        int flag;
57
 
                //0 - no coercion
58
 
                //1 - coerced from int
59
 
                //2 - coerced from float
 
56
        //0 - no coercion
 
57
        //1 - coerced from int
 
58
        //2 - coerced from float
 
59
        int delete_pymem;       /* flag to delete the memory vec points at */
60
60
} VectorObject;
61
61
 
62
62
//prototypes
63
 
PyObject *newVectorObject(float *vec, int size);
64
 
PyObject *Vector_Zero(VectorObject *self);
65
 
PyObject *Vector_Normalize(VectorObject *self);
66
 
PyObject *Vector_Negate(VectorObject *self);
67
 
PyObject *Vector_Resize2D(VectorObject *self);
68
 
PyObject *Vector_Resize3D(VectorObject *self);
69
 
PyObject *Vector_Resize4D(VectorObject *self);
70
 
 
71
 
#endif /* EXPP_vector_h */
72
 
 
 
63
PyObject *newVectorObject( float *vec, int size );
 
64
PyObject *newVectorProxy( float *vec, int size );
 
65
PyObject *Vector_Zero( VectorObject * self );
 
66
PyObject *Vector_Normalize( VectorObject * self );
 
67
PyObject *Vector_Negate( VectorObject * self );
 
68
PyObject *Vector_Resize2D( VectorObject * self );
 
69
PyObject *Vector_Resize3D( VectorObject * self );
 
70
PyObject *Vector_Resize4D( VectorObject * self );
 
71
 
 
72
#endif                          /* EXPP_vector_h */