src_c/bufferproxy.c¶
此扩展模块定义了Python类型 pygame.BufferProxy
pygame object to export a surface buffer through an array protocol 。
头文件:src_c/Include/pyGame_Bufferproxy.h
-
PyTypeObject *pgBufproxy_Type¶
PyGame缓冲区代理对象类型pygame.BufferProxy。
-
int pgBufproxy_Check(PyObject *x)¶
如果是Python对象,则返回True x 是一种
pygame.BufferProxy
实例,否则为False。这将在上返回FALSEpygame.BufferProxy
子类实例。
-
PyObject *pgBufproxy_New(PyObject *obj, getbufferproc get_buffer)¶
返回一个新的
pygame.BufferProxy
举个例子。论据 obj 是公开其数据的Python对象。可能是因为NULL
。论据 get_buffer 是不是pg_buffer
找人回电。它不能是NULL
。如果失败,则引发一个Python错误并返回NULL
。
-
PyObject *pgBufproxy_GetParent(PyObject *obj)¶
返回缓冲区代理包装的Python对象 obj 。论据 obj 一定不能是
NULL
。如果失败,则引发一个Python错误并返回NULL
。
Edit on GitHub