diff --git a/__init__.py b/__init__.py index 758d012..e40b861 100644 --- a/__init__.py +++ b/__init__.py @@ -85,6 +85,9 @@ INSTANCE_FLAG_VISIBLE = _flag(1) BATCH_MAX_SIZE = 65536 +def buffer(type, size): + return (type * size)() + _vec3p = ctypes.POINTER(vec3) _vec4p = ctypes.POINTER(vec4) _mat3p = ctypes.POINTER(mat3)