From 1e891f844aa02a59269d74d0dc0283e78a7ebda5 Mon Sep 17 00:00:00 2001 From: Willian Padovani Germano Date: Thu, 8 May 2003 03:06:46 +0000 Subject: * Added submodule Window, including FileSelector and ImageSelector: Most of the code comes from bpython/intern/opy_window.c, but two new functions were added, to access the file and image selector windows in Blender. * Added submodules Draw (gui) and BGL (OpenGL wrapper): The code comes from bpython/intern/opy_draw.c, with minor changes to integrate it in the new implementation. * Made changes to Camera, Lamp and Image submodules: The implementation was improved. These files should be good starting points for interested new coders to look at, now. * Renamed interface.[ch] to EXPP_interface.[ch] to avoid conflict: There is another interface.h file in source/blender/include. --- source/blender/python/api2_2x/Image.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'source/blender/python/api2_2x/Image.h') diff --git a/source/blender/python/api2_2x/Image.h b/source/blender/python/api2_2x/Image.h index e783a324796..c92a0f00b0a 100644 --- a/source/blender/python/api2_2x/Image.h +++ b/source/blender/python/api2_2x/Image.h @@ -55,7 +55,7 @@ /* Python API function prototypes for the Image module. */ /*****************************************************************************/ static PyObject *M_Image_New (PyObject *self, PyObject *args, - PyObject *keywords); + PyObject *keywords); static PyObject *M_Image_Get (PyObject *self, PyObject *args); static PyObject *M_Image_Load (PyObject *self, PyObject *args); @@ -96,8 +96,7 @@ struct PyMethodDef M_Image_methods[] = { /*****************************************************************************/ typedef struct { PyObject_HEAD - PyObject *dict; - Image *image; + Image *image; } C_Image; /*****************************************************************************/ @@ -115,15 +114,15 @@ static PyObject *Image_setYRep(C_Image *self, PyObject *args); static PyMethodDef C_Image_methods[] = { /* name, method, flags, doc */ {"getName", (PyCFunction)Image_getName, METH_NOARGS, - "() - Return Image Data name"}, + "() - Return Image Data name"}, {"getFilename", (PyCFunction)Image_getFilename, METH_VARARGS, - "() - Return Image Data filename"}, + "() - Return Image Data filename"}, {"rename", (PyCFunction)Image_rename, METH_VARARGS, - "(str) - Change Image Data name"}, + "(str) - Change Image Data name"}, {"setXRep", (PyCFunction)Image_setXRep, METH_VARARGS, - "(int) - Change Image Data x repetition value"}, + "(int) - Change Image Data x repetition value"}, {"setYRep", (PyCFunction)Image_setYRep, METH_VARARGS, - "(int) - Change Image Data y repetition value"}, + "(int) - Change Image Data y repetition value"}, {0} }; -- cgit v1.2.3