[Bf-blender-cvs] [f3591e5] framebuffer: From review: Pydocs ints
Dalai Felinto
noreply at git.blender.org
Mon Oct 19 15:38:15 CEST 2015
Commit: f3591e5ff3a1cfb250f59d7f38654cfba27088bd
Author: Dalai Felinto
Date: Mon Oct 19 10:16:49 2015 -0200
Branches: framebuffer
https://developer.blender.org/rBf3591e5ff3a1cfb250f59d7f38654cfba27088bd
>From review: Pydocs ints
===================================================================
M source/blender/python/intern/gpu_offscreen.c
===================================================================
diff --git a/source/blender/python/intern/gpu_offscreen.c b/source/blender/python/intern/gpu_offscreen.c
index 4fc6949..a92ac42 100644
--- a/source/blender/python/intern/gpu_offscreen.c
+++ b/source/blender/python/intern/gpu_offscreen.c
@@ -88,28 +88,28 @@ static int bpy_gpu_offscreen_valid_check(PyGPUOffScreen *pygpu, const char *erro
/* annoying since arg parsing won't check overflow */
#define UINT_IS_NEG(n) ((n) > INT_MAX)
-PyDoc_STRVAR(pygpu_offscreen_width_doc, "Texture width.\n\n:type: GLsizei");
+PyDoc_STRVAR(pygpu_offscreen_width_doc, "Texture width.\n\n:type: i");
static PyObject *pygpu_offscreen_width_get(PyGPUOffScreen *self, void *UNUSED(type))
{
BPY_GPU_OFFSCREEN_CHECK_OBJ(self, "width");
return PyLong_FromLong(GPU_offscreen_width(self->ofs));
}
-PyDoc_STRVAR(pygpu_offscreen_height_doc, "Texture height.\n\n:type: GLsizei");
+PyDoc_STRVAR(pygpu_offscreen_height_doc, "Texture height.\n\n:type: int");
static PyObject *pygpu_offscreen_height_get(PyGPUOffScreen *self, void *UNUSED(type))
{
BPY_GPU_OFFSCREEN_CHECK_OBJ(self, "height");
return PyLong_FromLong(GPU_offscreen_height(self->ofs));
}
-PyDoc_STRVAR(pygpu_offscreen_framebuffer_object_doc, "Framebuffer object.\n\n:type: GLuint");
+PyDoc_STRVAR(pygpu_offscreen_framebuffer_object_doc, "Framebuffer object.\n\n:type: int");
static PyObject *pygpu_offscreen_framebuffer_object_get(PyGPUOffScreen *self, void *UNUSED(type))
{
BPY_GPU_OFFSCREEN_CHECK_OBJ(self, "framebuffer object");
return PyLong_FromLong(GPU_offscreen_fb_object(self->ofs));
}
-PyDoc_STRVAR(pygpu_offscreen_color_object_doc, "Color object.\n\n:type: GLuint");
+PyDoc_STRVAR(pygpu_offscreen_color_object_doc, "Color object.\n\n:type: int");
static PyObject *pygpu_offscreen_color_object_get(PyGPUOffScreen *self, void *UNUSED(type))
{
BPY_GPU_OFFSCREEN_CHECK_OBJ(self, "color object");
More information about the Bf-blender-cvs
mailing list