UNUSED() macro so -Wunused-parameter can be used with GCC without so many warnings.
applied to python api and exotic.c, removed some args being passed down which were not needed. keyword args for new mathutils types were being ignored when they should raise an error.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_utildefines.h"
|
||||
#include "IDProp.h"
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
@@ -177,12 +178,12 @@ int BPy_IDGroup_SetData(BPy_IDProperty *self, IDProperty *prop, PyObject *value)
|
||||
return 0;
|
||||
}
|
||||
|
||||
PyObject *BPy_IDGroup_GetName(BPy_IDProperty *self, void *bleh)
|
||||
PyObject *BPy_IDGroup_GetName(BPy_IDProperty *self, void *UNUSED(closure))
|
||||
{
|
||||
return PyUnicode_FromString(self->prop->name);
|
||||
}
|
||||
|
||||
static int BPy_IDGroup_SetName(BPy_IDProperty *self, PyObject *value, void *bleh)
|
||||
static int BPy_IDGroup_SetName(BPy_IDProperty *self, PyObject *value, void *UNUSED(closure))
|
||||
{
|
||||
char *st;
|
||||
if (!PyUnicode_Check(value)) {
|
||||
@@ -860,7 +861,7 @@ PyObject *BPy_Wrap_IDProperty(ID *id, IDProperty *prop, IDProperty *parent)
|
||||
|
||||
static PyObject *IDArray_repr(BPy_IDArray *self)
|
||||
{
|
||||
return PyUnicode_FromString("(ID Array)");
|
||||
return PyUnicode_FromFormat("(ID Array [%d])", self->prop->len);
|
||||
}
|
||||
|
||||
|
||||
@@ -1071,7 +1072,7 @@ static PyObject *IDGroup_Iter_iterself(PyObject *self)
|
||||
|
||||
static PyObject *IDGroup_Iter_repr(BPy_IDGroup_Iter *self)
|
||||
{
|
||||
return PyUnicode_FromString("(ID Property Group)");
|
||||
return PyUnicode_FromFormat("(ID Property Group Iter \"%s\")", self->group->prop->name);
|
||||
}
|
||||
|
||||
static PyObject *BPy_Group_Iter_Next(BPy_IDGroup_Iter *self)
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
#include <GL/glew.h>
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "BKE_utildefines.h"
|
||||
|
||||
static char Method_Buffer_doc[] =
|
||||
"(type, dimensions, [template]) - Create a new Buffer object\n\n\
|
||||
(type) - The format to store data in\n\
|
||||
@@ -51,7 +53,7 @@ For example, passing [100, 100] will create a 2 dimensional\n\
|
||||
square buffer. Passing [16, 16, 32] will create a 3 dimensional\n\
|
||||
buffer which is twice as deep as it is wide or high.";
|
||||
|
||||
static PyObject *Method_Buffer( PyObject * self, PyObject * args );
|
||||
static PyObject *Method_Buffer( PyObject * self, PyObject *args );
|
||||
|
||||
/* Buffer sequence methods */
|
||||
|
||||
@@ -99,7 +101,7 @@ PyTypeObject BGL_bufferType = {
|
||||
/* #ifndef __APPLE__ */
|
||||
|
||||
#define BGL_Wrap(nargs, funcname, ret, arg_list) \
|
||||
static PyObject *Method_##funcname (PyObject *self, PyObject *args) {\
|
||||
static PyObject *Method_##funcname (PyObject *UNUSED(self), PyObject *args) {\
|
||||
arg_def##nargs arg_list; \
|
||||
ret_def_##ret; \
|
||||
if(!PyArg_ParseTuple(args, arg_str##nargs arg_list, arg_ref##nargs arg_list)) return NULL;\
|
||||
@@ -108,7 +110,7 @@ static PyObject *Method_##funcname (PyObject *self, PyObject *args) {\
|
||||
}
|
||||
|
||||
#define BGLU_Wrap(nargs, funcname, ret, arg_list) \
|
||||
static PyObject *Method_##funcname (PyObject *self, PyObject *args) {\
|
||||
static PyObject *Method_##funcname (PyObject *UNUSED(self), PyObject *args) {\
|
||||
arg_def##nargs arg_list; \
|
||||
ret_def_##ret; \
|
||||
if(!PyArg_ParseTuple(args, arg_str##nargs arg_list, arg_ref##nargs arg_list)) return NULL;\
|
||||
@@ -181,7 +183,7 @@ Buffer *BGL_MakeBuffer(int type, int ndimensions, int *dimensions, void *initbuf
|
||||
}
|
||||
|
||||
#define MAX_DIMENSIONS 256
|
||||
static PyObject *Method_Buffer (PyObject *self, PyObject *args)
|
||||
static PyObject *Method_Buffer (PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
PyObject *length_ob= NULL, *template= NULL;
|
||||
Buffer *buffer;
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "blf_api.h"
|
||||
|
||||
#include "../../blenfont/BLF_api.h"
|
||||
#include "BKE_utildefines.h"
|
||||
|
||||
static char py_blf_position_doc[] =
|
||||
".. function:: position(fontid, x, y, z)\n"
|
||||
@@ -41,7 +42,7 @@ static char py_blf_position_doc[] =
|
||||
" :arg z: Z axis position to draw the text.\n"
|
||||
" :type z: float\n";
|
||||
|
||||
static PyObject *py_blf_position(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_position(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
int fontid;
|
||||
float x, y, z;
|
||||
@@ -67,7 +68,7 @@ static char py_blf_size_doc[] =
|
||||
" :arg dpi: dots per inch value to use for drawing.\n"
|
||||
" :type dpi: int\n";
|
||||
|
||||
static PyObject *py_blf_size(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_size(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
int fontid, size, dpi;
|
||||
|
||||
@@ -90,7 +91,7 @@ static char py_blf_aspect_doc[] =
|
||||
" :arg aspect: The aspect ratio for text drawing to use.\n"
|
||||
" :type aspect: float\n";
|
||||
|
||||
static PyObject *py_blf_aspect(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_aspect(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float aspect;
|
||||
int fontid;
|
||||
@@ -114,7 +115,7 @@ static char py_blf_blur_doc[] =
|
||||
" :arg radius: The radius for blurring text (in pixels).\n"
|
||||
" :type radius: int\n";
|
||||
|
||||
static PyObject *py_blf_blur(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_blur(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
int blur, fontid;
|
||||
|
||||
@@ -137,7 +138,7 @@ static char py_blf_draw_doc[] =
|
||||
" :arg text: the text to draw.\n"
|
||||
" :type text: string\n";
|
||||
|
||||
static PyObject *py_blf_draw(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_draw(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
char *text;
|
||||
int fontid;
|
||||
@@ -162,7 +163,7 @@ static char py_blf_dimensions_doc[] =
|
||||
" :return: the width and height of the text.\n"
|
||||
" :rtype: tuple of 2 floats\n";
|
||||
|
||||
static PyObject *py_blf_dimensions(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_dimensions(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
char *text;
|
||||
float r_width, r_height;
|
||||
@@ -196,7 +197,7 @@ static char py_blf_clipping_doc[] =
|
||||
" :arg ymax: Clip the drawing area by these bounds.\n"
|
||||
" :type ymax: float\n";
|
||||
|
||||
static PyObject *py_blf_clipping(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_clipping(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float xmin, ymin, xmax, ymax;
|
||||
int fontid;
|
||||
@@ -219,7 +220,7 @@ static char py_blf_disable_doc[] =
|
||||
" :arg option: One of ROTATION, CLIPPING, SHADOW or KERNING_DEFAULT.\n"
|
||||
" :type option: int\n";
|
||||
|
||||
static PyObject *py_blf_disable(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_disable(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
int option, fontid;
|
||||
|
||||
@@ -241,7 +242,7 @@ static char py_blf_enable_doc[] =
|
||||
" :arg option: One of ROTATION, CLIPPING, SHADOW or KERNING_DEFAULT.\n"
|
||||
" :type option: int\n";
|
||||
|
||||
static PyObject *py_blf_enable(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_enable(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
int option, fontid;
|
||||
|
||||
@@ -263,7 +264,7 @@ static char py_blf_rotation_doc[] =
|
||||
" :arg angle: The angle for text drawing to use.\n"
|
||||
" :type angle: float\n";
|
||||
|
||||
static PyObject *py_blf_rotation(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_rotation(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float angle;
|
||||
int fontid;
|
||||
@@ -294,7 +295,7 @@ static char py_blf_shadow_doc[] =
|
||||
" :arg a: Shadow color (alpha channel 0.0 - 1.0).\n"
|
||||
" :type a: float\n";
|
||||
|
||||
static PyObject *py_blf_shadow(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_shadow(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
int level, fontid;
|
||||
float r, g, b, a;
|
||||
@@ -324,7 +325,7 @@ static char py_blf_shadow_offset_doc[] =
|
||||
" :arg y: Horizontal shadow offset value in pixels.\n"
|
||||
" :type y: float\n";
|
||||
|
||||
static PyObject *py_blf_shadow_offset(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_shadow_offset(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
int x, y, fontid;
|
||||
|
||||
@@ -346,7 +347,7 @@ static char py_blf_load_doc[] =
|
||||
" :return: the new font's fontid or -1 if there was an error.\n"
|
||||
" :rtype: integer\n";
|
||||
|
||||
static PyObject *py_blf_load(PyObject *self, PyObject *args)
|
||||
static PyObject *py_blf_load(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
char* filename;
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "DNA_text_types.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
#include "BKE_utildefines.h" /* UNUSED */
|
||||
#include "BKE_text.h" /* txt_to_buf */
|
||||
#include "BKE_main.h"
|
||||
#include "BKE_global.h" /* grr, only for G.sce */
|
||||
@@ -191,7 +192,7 @@ PyObject *bpy_text_reimport( PyObject *module, int *found )
|
||||
}
|
||||
|
||||
|
||||
static PyObject *blender_import( PyObject * self, PyObject * args, PyObject * kw)
|
||||
static PyObject *blender_import(PyObject *UNUSED(self), PyObject *args, PyObject * kw)
|
||||
{
|
||||
PyObject *exception, *err, *tb;
|
||||
char *name;
|
||||
@@ -244,7 +245,7 @@ static PyObject *blender_import( PyObject * self, PyObject * args, PyObject * k
|
||||
* our reload() module, to handle reloading in-memory scripts
|
||||
*/
|
||||
|
||||
static PyObject *blender_reload( PyObject * self, PyObject * module )
|
||||
static PyObject *blender_reload(PyObject *UNUSED(self), PyObject * module)
|
||||
{
|
||||
PyObject *exception, *err, *tb;
|
||||
PyObject *newmodule = NULL;
|
||||
|
||||
@@ -60,7 +60,7 @@ static char M_Geometry_BezierInterp_doc[] = "";
|
||||
|
||||
//---------------------------------INTERSECTION FUNCTIONS--------------------
|
||||
//----------------------------------geometry.Intersect() -------------------
|
||||
static PyObject *M_Geometry_Intersect( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_Intersect(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *ray, *ray_off, *vec1, *vec2, *vec3;
|
||||
float dir[3], orig[3], v1[3], v2[3], v3[3], e1[3], e2[3], pvec[3], tvec[3], qvec[3];
|
||||
@@ -133,7 +133,7 @@ static PyObject *M_Geometry_Intersect( PyObject * self, PyObject * args )
|
||||
}
|
||||
//----------------------------------geometry.LineIntersect() -------------------
|
||||
/* Line-Line intersection using algorithm from mathworld.wolfram.com */
|
||||
static PyObject *M_Geometry_LineIntersect( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_LineIntersect(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
PyObject * tuple;
|
||||
VectorObject *vec1, *vec2, *vec3, *vec4;
|
||||
@@ -201,7 +201,7 @@ static PyObject *M_Geometry_LineIntersect( PyObject * self, PyObject * args )
|
||||
|
||||
//---------------------------------NORMALS FUNCTIONS--------------------
|
||||
//----------------------------------geometry.QuadNormal() -------------------
|
||||
static PyObject *M_Geometry_QuadNormal( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_QuadNormal(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *vec1;
|
||||
VectorObject *vec2;
|
||||
@@ -252,7 +252,7 @@ static PyObject *M_Geometry_QuadNormal( PyObject * self, PyObject * args )
|
||||
}
|
||||
|
||||
//----------------------------geometry.TriangleNormal() -------------------
|
||||
static PyObject *M_Geometry_TriangleNormal( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_TriangleNormal(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *vec1, *vec2, *vec3;
|
||||
float v1[3], v2[3], v3[3], e1[3], e2[3], n[3];
|
||||
@@ -289,7 +289,7 @@ static PyObject *M_Geometry_TriangleNormal( PyObject * self, PyObject * args )
|
||||
|
||||
//--------------------------------- AREA FUNCTIONS--------------------
|
||||
//----------------------------------geometry.TriangleArea() -------------------
|
||||
static PyObject *M_Geometry_TriangleArea( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_TriangleArea(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *vec1, *vec2, *vec3;
|
||||
float v1[3], v2[3], v3[3];
|
||||
@@ -335,7 +335,7 @@ static PyObject *M_Geometry_TriangleArea( PyObject * self, PyObject * args )
|
||||
|
||||
/*----------------------------------geometry.PolyFill() -------------------*/
|
||||
/* PolyFill function, uses Blenders scanfill to fill multiple poly lines */
|
||||
static PyObject *M_Geometry_PolyFill( PyObject * self, PyObject * polyLineSeq )
|
||||
static PyObject *M_Geometry_PolyFill(PyObject *UNUSED(self), PyObject * polyLineSeq )
|
||||
{
|
||||
PyObject *tri_list; /*return this list of tri's */
|
||||
PyObject *polyLine, *polyVec;
|
||||
@@ -450,7 +450,7 @@ static PyObject *M_Geometry_PolyFill( PyObject * self, PyObject * polyLineSeq )
|
||||
}
|
||||
|
||||
|
||||
static PyObject *M_Geometry_LineIntersect2D( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_LineIntersect2D(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *line_a1, *line_a2, *line_b1, *line_b2;
|
||||
float a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y, xi, yi, a1,a2,b1,b2, newvec[2];
|
||||
@@ -548,7 +548,7 @@ static PyObject *M_Geometry_LineIntersect2D( PyObject * self, PyObject * args )
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyObject *M_Geometry_ClosestPointOnLine( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_ClosestPointOnLine(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *pt, *line_1, *line_2;
|
||||
float pt_in[3], pt_out[3], l1[3], l2[3];
|
||||
@@ -586,7 +586,7 @@ static PyObject *M_Geometry_ClosestPointOnLine( PyObject * self, PyObject * args
|
||||
return ret;
|
||||
}
|
||||
|
||||
static PyObject *M_Geometry_PointInTriangle2D( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_PointInTriangle2D(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *pt_vec, *tri_p1, *tri_p2, *tri_p3;
|
||||
|
||||
@@ -606,7 +606,7 @@ static PyObject *M_Geometry_PointInTriangle2D( PyObject * self, PyObject * args
|
||||
return PyLong_FromLong(isect_point_tri_v2(pt_vec->vec, tri_p1->vec, tri_p2->vec, tri_p3->vec));
|
||||
}
|
||||
|
||||
static PyObject *M_Geometry_PointInQuad2D( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_PointInQuad2D(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *pt_vec, *quad_p1, *quad_p2, *quad_p3, *quad_p4;
|
||||
|
||||
@@ -690,7 +690,7 @@ static void boxPack_ToPyObject(PyObject * value, boxPack **boxarray)
|
||||
}
|
||||
|
||||
|
||||
static PyObject *M_Geometry_BoxPack2D( PyObject * self, PyObject * boxlist )
|
||||
static PyObject *M_Geometry_BoxPack2D(PyObject *UNUSED(self), PyObject * boxlist )
|
||||
{
|
||||
boxPack *boxarray = NULL;
|
||||
float tot_width, tot_height;
|
||||
@@ -718,7 +718,7 @@ static PyObject *M_Geometry_BoxPack2D( PyObject * self, PyObject * boxlist )
|
||||
return Py_BuildValue( "ff", tot_width, tot_height);
|
||||
}
|
||||
|
||||
static PyObject *M_Geometry_BezierInterp( PyObject * self, PyObject * args )
|
||||
static PyObject *M_Geometry_BezierInterp(PyObject *UNUSED(self), PyObject* args)
|
||||
{
|
||||
VectorObject *vec_k1, *vec_h1, *vec_k2, *vec_h2;
|
||||
int resolu;
|
||||
@@ -767,7 +767,7 @@ static PyObject *M_Geometry_BezierInterp( PyObject * self, PyObject * args )
|
||||
return list;
|
||||
}
|
||||
|
||||
static PyObject *M_Geometry_BarycentricTransform(PyObject * self, PyObject * args)
|
||||
static PyObject *M_Geometry_BarycentricTransform(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
VectorObject *vec_pt;
|
||||
VectorObject *vec_t1_tar, *vec_t2_tar, *vec_t3_tar;
|
||||
|
||||
@@ -61,6 +61,8 @@
|
||||
|
||||
#include "BLI_math.h"
|
||||
|
||||
#include "BKE_utildefines.h"
|
||||
|
||||
//-------------------------DOC STRINGS ---------------------------
|
||||
static char M_Mathutils_doc[] =
|
||||
"This module provides access to matrices, eulers, quaternions and vectors.";
|
||||
@@ -203,7 +205,7 @@ int _BaseMathObject_WriteIndexCallback(BaseMathObject *self, int index)
|
||||
|
||||
/* BaseMathObject generic functions for all mathutils types */
|
||||
char BaseMathObject_Owner_doc[] = "The item this is wrapping or None (readonly).";
|
||||
PyObject *BaseMathObject_getOwner( BaseMathObject * self, void *type )
|
||||
PyObject *BaseMathObject_getOwner(BaseMathObject *UNUSED(self), void *UNUSED(type))
|
||||
{
|
||||
PyObject *ret= self->cb_user ? self->cb_user : Py_None;
|
||||
Py_INCREF(ret);
|
||||
@@ -211,7 +213,7 @@ PyObject *BaseMathObject_getOwner( BaseMathObject * self, void *type )
|
||||
}
|
||||
|
||||
char BaseMathObject_Wrapped_doc[] = "True when this object wraps external data (readonly).\n\n:type: boolean";
|
||||
PyObject *BaseMathObject_getWrapped( BaseMathObject *self, void *type )
|
||||
PyObject *BaseMathObject_getWrapped(BaseMathObject *UNUSED(self), void *UNUSED(type))
|
||||
{
|
||||
return PyBool_FromLong((self->wrapped == Py_WRAP) ? 1:0);
|
||||
}
|
||||
|
||||
@@ -31,10 +31,15 @@
|
||||
|
||||
//----------------------------------mathutils.Color() -------------------
|
||||
//makes a new color for you to play with
|
||||
static PyObject *Color_new(PyTypeObject * type, PyObject * args, PyObject * kwargs)
|
||||
static PyObject *Color_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds)
|
||||
{
|
||||
float col[3]= {0.0f, 0.0f, 0.0f};
|
||||
|
||||
if(kwds && PyDict_Size(kwds)) {
|
||||
PyErr_SetString(PyExc_TypeError, "mathutils.Color(): takes no keyword args");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
switch(PyTuple_GET_SIZE(args)) {
|
||||
case 0:
|
||||
break;
|
||||
@@ -83,7 +88,7 @@ static char Color_copy_doc[] =
|
||||
"\n"
|
||||
" .. note:: use this to get a copy of a wrapped color with no reference to the original data.\n";
|
||||
|
||||
static PyObject *Color_copy(ColorObject * self, PyObject *args)
|
||||
static PyObject *Color_copy(ColorObject *self)
|
||||
{
|
||||
if(!BaseMath_ReadCallback(self))
|
||||
return NULL;
|
||||
@@ -158,7 +163,7 @@ static PyObject* Color_richcmpr(PyObject *objectA, PyObject *objectB, int compar
|
||||
//---------------------SEQUENCE PROTOCOLS------------------------
|
||||
//----------------------------len(object)------------------------
|
||||
//sequence length
|
||||
static int Color_len(ColorObject * self)
|
||||
static int Color_len(ColorObject *UNUSED(self))
|
||||
{
|
||||
return COLOR_SIZE;
|
||||
}
|
||||
@@ -394,7 +399,7 @@ static int Color_setChannelHSV(ColorObject * self, PyObject * value, void * type
|
||||
}
|
||||
|
||||
/* color channel (HSV), color.h/s/v */
|
||||
static PyObject *Color_getHSV(ColorObject * self, void *type)
|
||||
static PyObject *Color_getHSV(ColorObject * self, void *UNUSED(closure))
|
||||
{
|
||||
float hsv[3];
|
||||
PyObject *ret;
|
||||
@@ -411,7 +416,7 @@ static PyObject *Color_getHSV(ColorObject * self, void *type)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int Color_setHSV(ColorObject * self, PyObject * value, void * type)
|
||||
static int Color_setHSV(ColorObject * self, PyObject * value, void *UNUSED(closure))
|
||||
{
|
||||
float hsv[3];
|
||||
|
||||
@@ -452,8 +457,8 @@ static PyGetSetDef Color_getseters[] = {
|
||||
|
||||
//-----------------------METHOD DEFINITIONS ----------------------
|
||||
static struct PyMethodDef Color_methods[] = {
|
||||
{"__copy__", (PyCFunction) Color_copy, METH_VARARGS, Color_copy_doc},
|
||||
{"copy", (PyCFunction) Color_copy, METH_VARARGS, Color_copy_doc},
|
||||
{"__copy__", (PyCFunction) Color_copy, METH_NOARGS, Color_copy_doc},
|
||||
{"copy", (PyCFunction) Color_copy, METH_NOARGS, Color_copy_doc},
|
||||
{NULL, NULL, 0, NULL}
|
||||
};
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
//----------------------------------mathutils.Euler() -------------------
|
||||
//makes a new euler for you to play with
|
||||
static PyObject *Euler_new(PyTypeObject * type, PyObject * args, PyObject * kwargs)
|
||||
static PyObject *Euler_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds)
|
||||
{
|
||||
PyObject *seq= NULL;
|
||||
char *order_str= NULL;
|
||||
@@ -47,6 +47,11 @@ static PyObject *Euler_new(PyTypeObject * type, PyObject * args, PyObject * kwar
|
||||
float eul[EULER_SIZE]= {0.0f, 0.0f, 0.0f};
|
||||
short order= EULER_ORDER_XYZ;
|
||||
|
||||
if(kwds && PyDict_Size(kwds)) {
|
||||
PyErr_SetString(PyExc_TypeError, "mathutils.Euler(): takes no keyword args");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(!PyArg_ParseTuple(args, "|Os:mathutils.Euler", &seq, &order_str))
|
||||
return NULL;
|
||||
|
||||
@@ -313,7 +318,7 @@ static char Euler_copy_doc[] =
|
||||
"\n"
|
||||
" .. note:: use this to get a copy of a wrapped euler with no reference to the original data.\n";
|
||||
|
||||
static PyObject *Euler_copy(EulerObject * self, PyObject *args)
|
||||
static PyObject *Euler_copy(EulerObject *self)
|
||||
{
|
||||
if(!BaseMath_ReadCallback(self))
|
||||
return NULL;
|
||||
@@ -388,7 +393,7 @@ static PyObject* Euler_richcmpr(PyObject *objectA, PyObject *objectB, int compar
|
||||
//---------------------SEQUENCE PROTOCOLS------------------------
|
||||
//----------------------------len(object)------------------------
|
||||
//sequence length
|
||||
static int Euler_len(EulerObject * self)
|
||||
static int Euler_len(EulerObject *UNUSED(self))
|
||||
{
|
||||
return EULER_SIZE;
|
||||
}
|
||||
@@ -411,7 +416,7 @@ static PyObject *Euler_item(EulerObject * self, int i)
|
||||
}
|
||||
//----------------------------object[]-------------------------
|
||||
//sequence accessor (set)
|
||||
static int Euler_ass_item(EulerObject * self, int i, PyObject * value)
|
||||
static int Euler_ass_item(EulerObject * self, int i, PyObject *value)
|
||||
{
|
||||
float f = PyFloat_AsDouble(value);
|
||||
|
||||
@@ -577,18 +582,18 @@ static PyMappingMethods Euler_AsMapping = {
|
||||
/*
|
||||
* euler axis, euler.x/y/z
|
||||
*/
|
||||
static PyObject *Euler_getAxis( EulerObject * self, void *type )
|
||||
static PyObject *Euler_getAxis(EulerObject *self, void *type )
|
||||
{
|
||||
return Euler_item(self, GET_INT_FROM_POINTER(type));
|
||||
}
|
||||
|
||||
static int Euler_setAxis( EulerObject * self, PyObject * value, void * type )
|
||||
static int Euler_setAxis(EulerObject *self, PyObject *value, void *type)
|
||||
{
|
||||
return Euler_ass_item(self, GET_INT_FROM_POINTER(type), value);
|
||||
}
|
||||
|
||||
/* rotation order */
|
||||
static PyObject *Euler_getOrder(EulerObject *self, void *type)
|
||||
static PyObject *Euler_getOrder(EulerObject *self, void *UNUSED(closure))
|
||||
{
|
||||
const char order[][4] = {"XYZ", "XZY", "YXZ", "YZX", "ZXY", "ZYX"};
|
||||
|
||||
@@ -598,7 +603,7 @@ static PyObject *Euler_getOrder(EulerObject *self, void *type)
|
||||
return PyUnicode_FromString(order[self->order-EULER_ORDER_XYZ]);
|
||||
}
|
||||
|
||||
static int Euler_setOrder( EulerObject * self, PyObject * value, void * type )
|
||||
static int Euler_setOrder(EulerObject *self, PyObject *value, void *UNUSED(closure))
|
||||
{
|
||||
char *order_str= _PyUnicode_AsString(value);
|
||||
short order= euler_order_from_string(order_str, "euler.order");
|
||||
@@ -634,8 +639,8 @@ static struct PyMethodDef Euler_methods[] = {
|
||||
{"to_quat", (PyCFunction) Euler_ToQuat, METH_NOARGS, Euler_ToQuat_doc},
|
||||
{"rotate_axis", (PyCFunction) Euler_rotate_axis, METH_VARARGS, Euler_rotate_axis_doc},
|
||||
{"make_compatible", (PyCFunction) Euler_MakeCompatible, METH_O, Euler_MakeCompatible_doc},
|
||||
{"__copy__", (PyCFunction) Euler_copy, METH_VARARGS, Euler_copy_doc},
|
||||
{"copy", (PyCFunction) Euler_copy, METH_VARARGS, Euler_copy_doc},
|
||||
{"__copy__", (PyCFunction) Euler_copy, METH_NOARGS, Euler_copy_doc},
|
||||
{"copy", (PyCFunction) Euler_copy, METH_NOARGS, Euler_copy_doc},
|
||||
{NULL, NULL, 0, NULL}
|
||||
};
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ Mathutils_Callback mathutils_matrix_vector_cb = {
|
||||
//----------------------------------mathutils.Matrix() -----------------
|
||||
//mat is a 1D array of floats - row[0][0],row[0][1], row[1][0], etc.
|
||||
//create a new matrix type
|
||||
static PyObject *Matrix_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||
static PyObject *Matrix_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds)
|
||||
{
|
||||
PyObject *argObject, *m, *s;
|
||||
MatrixObject *mat;
|
||||
@@ -117,6 +117,11 @@ static PyObject *Matrix_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||
0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
|
||||
float scalar;
|
||||
|
||||
if(kwds && PyDict_Size(kwds)) {
|
||||
PyErr_SetString(PyExc_TypeError, "mathutils.Matrix(): takes no keyword args");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
argSize = PyTuple_GET_SIZE(args);
|
||||
if(argSize > MATRIX_MAX_DIM) { //bad arg nums
|
||||
PyErr_SetString(PyExc_AttributeError, "mathutils.Matrix(): expects 0-4 numeric sequences of the same size\n");
|
||||
@@ -1142,7 +1147,7 @@ static char Matrix_copy_doc[] =
|
||||
" :return: an instance of itself\n"
|
||||
" :rtype: :class:`Matrix`\n";
|
||||
|
||||
PyObject *Matrix_copy(MatrixObject * self)
|
||||
PyObject *Matrix_copy(MatrixObject *self)
|
||||
{
|
||||
if(!BaseMath_ReadCallback(self))
|
||||
return NULL;
|
||||
@@ -1680,17 +1685,17 @@ static PyNumberMethods Matrix_NumMethods = {
|
||||
0, /* nb_index */
|
||||
};
|
||||
|
||||
static PyObject *Matrix_getRowSize( MatrixObject * self, void *type )
|
||||
static PyObject *Matrix_getRowSize(MatrixObject *self, void *UNUSED(closure))
|
||||
{
|
||||
return PyLong_FromLong((long) self->rowSize);
|
||||
}
|
||||
|
||||
static PyObject *Matrix_getColSize( MatrixObject * self, void *type )
|
||||
static PyObject *Matrix_getColSize(MatrixObject *self, void *UNUSED(closure))
|
||||
{
|
||||
return PyLong_FromLong((long) self->colSize);
|
||||
}
|
||||
|
||||
static PyObject *Matrix_getMedianScale( MatrixObject * self, void *type )
|
||||
static PyObject *Matrix_getMedianScale(MatrixObject *self, void *UNUSED(closure))
|
||||
{
|
||||
float mat[3][3];
|
||||
|
||||
@@ -1710,7 +1715,7 @@ static PyObject *Matrix_getMedianScale( MatrixObject * self, void *type )
|
||||
return PyFloat_FromDouble(mat3_to_scale(mat));
|
||||
}
|
||||
|
||||
static PyObject *Matrix_getIsNegative( MatrixObject * self, void *type )
|
||||
static PyObject *Matrix_getIsNegative(MatrixObject *self, void *UNUSED(closure))
|
||||
{
|
||||
if(!BaseMath_ReadCallback(self))
|
||||
return NULL;
|
||||
|
||||
@@ -352,7 +352,7 @@ static char Quaternion_copy_doc[] =
|
||||
"\n"
|
||||
" .. note:: use this to get a copy of a wrapped quaternion with no reference to the original data.\n";
|
||||
|
||||
static PyObject *Quaternion_copy(QuaternionObject * self)
|
||||
static PyObject *Quaternion_copy(QuaternionObject *self)
|
||||
{
|
||||
if(!BaseMath_ReadCallback(self))
|
||||
return NULL;
|
||||
@@ -429,7 +429,7 @@ static PyObject* Quaternion_richcmpr(PyObject *objectA, PyObject *objectB, int c
|
||||
//---------------------SEQUENCE PROTOCOLS------------------------
|
||||
//----------------------------len(object)------------------------
|
||||
//sequence length
|
||||
static int Quaternion_len(QuaternionObject * self)
|
||||
static int Quaternion_len(QuaternionObject *UNUSED(self))
|
||||
{
|
||||
return QUAT_SIZE;
|
||||
}
|
||||
@@ -772,7 +772,7 @@ static int Quaternion_setAxis( QuaternionObject * self, PyObject * value, void *
|
||||
return Quaternion_ass_item(self, GET_INT_FROM_POINTER(type), value);
|
||||
}
|
||||
|
||||
static PyObject *Quaternion_getMagnitude( QuaternionObject * self, void *type )
|
||||
static PyObject *Quaternion_getMagnitude(QuaternionObject * self, void *UNUSED(closure))
|
||||
{
|
||||
if(!BaseMath_ReadCallback(self))
|
||||
return NULL;
|
||||
@@ -780,7 +780,7 @@ static PyObject *Quaternion_getMagnitude( QuaternionObject * self, void *type )
|
||||
return PyFloat_FromDouble(sqrt(dot_qtqt(self->quat, self->quat)));
|
||||
}
|
||||
|
||||
static PyObject *Quaternion_getAngle( QuaternionObject * self, void *type )
|
||||
static PyObject *Quaternion_getAngle(QuaternionObject * self, void *UNUSED(closure))
|
||||
{
|
||||
if(!BaseMath_ReadCallback(self))
|
||||
return NULL;
|
||||
@@ -788,7 +788,7 @@ static PyObject *Quaternion_getAngle( QuaternionObject * self, void *type )
|
||||
return PyFloat_FromDouble(2.0 * (saacos(self->quat[0])));
|
||||
}
|
||||
|
||||
static int Quaternion_setAngle(QuaternionObject * self, PyObject * value, void * type)
|
||||
static int Quaternion_setAngle(QuaternionObject * self, PyObject * value, void *UNUSED(closure))
|
||||
{
|
||||
float axis[3];
|
||||
float angle;
|
||||
@@ -821,7 +821,7 @@ static int Quaternion_setAngle(QuaternionObject * self, PyObject * value, void *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static PyObject *Quaternion_getAxisVec(QuaternionObject *self, void *type)
|
||||
static PyObject *Quaternion_getAxisVec(QuaternionObject *self, void *UNUSED(closure))
|
||||
{
|
||||
float axis[3];
|
||||
float angle;
|
||||
@@ -842,7 +842,7 @@ static PyObject *Quaternion_getAxisVec(QuaternionObject *self, void *type)
|
||||
return (PyObject *) newVectorObject(axis, 3, Py_NEW, NULL);
|
||||
}
|
||||
|
||||
static int Quaternion_setAxisVec(QuaternionObject *self, PyObject *value, void *type)
|
||||
static int Quaternion_setAxisVec(QuaternionObject *self, PyObject *value, void *UNUSED(closure))
|
||||
{
|
||||
float axis[3];
|
||||
float angle;
|
||||
@@ -872,12 +872,17 @@ static int Quaternion_setAxisVec(QuaternionObject *self, PyObject *value, void *
|
||||
}
|
||||
|
||||
//----------------------------------mathutils.Quaternion() --------------
|
||||
static PyObject *Quaternion_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||
static PyObject *Quaternion_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds)
|
||||
{
|
||||
PyObject *seq= NULL;
|
||||
float angle = 0.0f;
|
||||
float quat[QUAT_SIZE]= {0.0f, 0.0f, 0.0f, 0.0f};
|
||||
|
||||
if(kwds && PyDict_Size(kwds)) {
|
||||
PyErr_SetString(PyExc_TypeError, "mathutils.Quaternion(): takes no keyword args");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(!PyArg_ParseTuple(args, "|Of:mathutils.Quaternion", &seq, &angle))
|
||||
return NULL;
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ static PyObject *Vector_ToTupleExt(VectorObject *self, int ndigits);
|
||||
//----------------------------------mathutils.Vector() ------------------
|
||||
// Supports 2D, 3D, and 4D vector objects both int and float values
|
||||
// accepted. Mixed float and int values accepted. Ints are parsed to float
|
||||
static PyObject *Vector_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||
static PyObject *Vector_new(PyTypeObject *type, PyObject *args, PyObject *UNUSED(kwds))
|
||||
{
|
||||
float vec[4]= {0.0f, 0.0f, 0.0f, 0.0f};
|
||||
int size= 3; /* default to a 3D vector */
|
||||
@@ -1445,7 +1445,7 @@ static int Vector_setAxis(VectorObject *self, PyObject * value, void * type )
|
||||
}
|
||||
|
||||
/* vector.length */
|
||||
static PyObject *Vector_getLength(VectorObject *self, void *type )
|
||||
static PyObject *Vector_getLength(VectorObject *self, void *UNUSED(closure))
|
||||
{
|
||||
double dot = 0.0f;
|
||||
int i;
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
|
||||
#include "BLI_blenlib.h"
|
||||
#include "DNA_texture_types.h"
|
||||
|
||||
#include "BKE_utildefines.h"
|
||||
/*-----------------------------------------*/
|
||||
/* 'mersenne twister' random number generator */
|
||||
|
||||
@@ -207,12 +209,12 @@ static void randuvec(float v[3])
|
||||
v[2] = 1.f;
|
||||
}
|
||||
|
||||
static PyObject *Noise_random(PyObject * self)
|
||||
static PyObject *Noise_random(PyObject *UNUSED(self))
|
||||
{
|
||||
return PyFloat_FromDouble(frand());
|
||||
}
|
||||
|
||||
static PyObject *Noise_random_unit_vector(PyObject * self)
|
||||
static PyObject *Noise_random_unit_vector(PyObject *UNUSED(self))
|
||||
{
|
||||
float v[3] = {0.0f, 0.0f, 0.0f};
|
||||
randuvec(v);
|
||||
@@ -223,7 +225,7 @@ static PyObject *Noise_random_unit_vector(PyObject * self)
|
||||
|
||||
/* Random seed init. Only used for MT random() & randuvec() */
|
||||
|
||||
static PyObject *Noise_seed_set(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_seed_set(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
int s;
|
||||
if(!PyArg_ParseTuple(args, "i:seed_set", &s))
|
||||
@@ -236,7 +238,7 @@ static PyObject *Noise_seed_set(PyObject * self, PyObject * args)
|
||||
|
||||
/* General noise */
|
||||
|
||||
static PyObject *Noise_noise(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_noise(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z;
|
||||
int nb = 1;
|
||||
@@ -260,7 +262,7 @@ static void noise_vector(float x, float y, float z, int nb, float v[3])
|
||||
nb) - 1.0);
|
||||
}
|
||||
|
||||
static PyObject *Noise_vector(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_vector(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, v[3];
|
||||
int nb = 1;
|
||||
@@ -296,7 +298,7 @@ static float turb(float x, float y, float z, int oct, int hard, int nb,
|
||||
return out;
|
||||
}
|
||||
|
||||
static PyObject *Noise_turbulence(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_turbulence(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z;
|
||||
int oct, hd, nb = 1;
|
||||
@@ -340,7 +342,7 @@ static void vTurb(float x, float y, float z, int oct, int hard, int nb,
|
||||
}
|
||||
}
|
||||
|
||||
static PyObject *Noise_turbulence_vector(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_turbulence_vector(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, v[3];
|
||||
int oct, hd, nb = 1;
|
||||
@@ -355,7 +357,7 @@ static PyObject *Noise_turbulence_vector(PyObject * self, PyObject * args)
|
||||
|
||||
/* F. Kenton Musgrave's fractal functions */
|
||||
|
||||
static PyObject *Noise_fractal(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_fractal(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, H, lac, oct;
|
||||
int nb = 1;
|
||||
@@ -366,7 +368,7 @@ static PyObject *Noise_fractal(PyObject * self, PyObject * args)
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
static PyObject *Noise_multi_fractal(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_multi_fractal(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, H, lac, oct;
|
||||
int nb = 1;
|
||||
@@ -378,7 +380,7 @@ static PyObject *Noise_multi_fractal(PyObject * self, PyObject * args)
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
static PyObject *Noise_vl_vector(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_vl_vector(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, d;
|
||||
int nt1 = 1, nt2 = 1;
|
||||
@@ -389,7 +391,7 @@ static PyObject *Noise_vl_vector(PyObject * self, PyObject * args)
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
static PyObject *Noise_hetero_terrain(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_hetero_terrain(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, H, lac, oct, ofs;
|
||||
int nb = 1;
|
||||
@@ -401,7 +403,7 @@ static PyObject *Noise_hetero_terrain(PyObject * self, PyObject * args)
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
static PyObject *Noise_hybrid_multi_fractal(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_hybrid_multi_fractal(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, H, lac, oct, ofs, gn;
|
||||
int nb = 1;
|
||||
@@ -413,7 +415,7 @@ static PyObject *Noise_hybrid_multi_fractal(PyObject * self, PyObject * args)
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
static PyObject *Noise_ridged_multi_fractal(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_ridged_multi_fractal(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, H, lac, oct, ofs, gn;
|
||||
int nb = 1;
|
||||
@@ -424,7 +426,7 @@ static PyObject *Noise_ridged_multi_fractal(PyObject * self, PyObject * args)
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
static PyObject *Noise_voronoi(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_voronoi(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, da[4], pa[12];
|
||||
int dtype = 0;
|
||||
@@ -441,7 +443,7 @@ static PyObject *Noise_voronoi(PyObject * self, PyObject * args)
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
static PyObject *Noise_cell(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_cell(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z;
|
||||
if(!PyArg_ParseTuple(args, "(fff):cell", &x, &y, &z))
|
||||
@@ -452,7 +454,7 @@ static PyObject *Noise_cell(PyObject * self, PyObject * args)
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
static PyObject *Noise_cell_vector(PyObject * self, PyObject * args)
|
||||
static PyObject *Noise_cell_vector(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
float x, y, z, ca[3];
|
||||
if(!PyArg_ParseTuple(args, "(fff):cell_vector", &x, &y, &z))
|
||||
@@ -603,22 +605,22 @@ look like anything from an earthquake to a very nervous or maybe even drunk came
|
||||
|
||||
/* Just in case, declarations for a header file */
|
||||
/*
|
||||
static PyObject *Noise_random(PyObject *self);
|
||||
static PyObject *Noise_random_unit_vector(PyObject *self);
|
||||
static PyObject *Noise_seed_set(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_noise(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_vector(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_turbulence(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_turbulence_vector(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_fractal(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_multi_fractal(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_vl_vector(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_hetero_terrain(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_hybrid_multi_fractal(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_ridged_multi_fractal(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_voronoi(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_cell(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_cell_vector(PyObject *self, PyObject *args);
|
||||
static PyObject *Noise_random(PyObject *UNUSED(self));
|
||||
static PyObject *Noise_random_unit_vector(PyObject *UNUSED(self));
|
||||
static PyObject *Noise_seed_set(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_noise(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_vector(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_turbulence(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_turbulence_vector(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_fractal(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_multi_fractal(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_vl_vector(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_hetero_terrain(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_hybrid_multi_fractal(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_ridged_multi_fractal(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_voronoi(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_cell(PyObject *UNUSED(self), PyObject *args);
|
||||
static PyObject *Noise_cell_vector(PyObject *UNUSED(self), PyObject *args);
|
||||
*/
|
||||
|
||||
static PyMethodDef NoiseMethods[] = {
|
||||
|
||||
Reference in New Issue
Block a user