Add a buffer method to hide ctypes array contruction.

This commit is contained in:
Roz K 2022-12-23 10:14:05 +01:00
parent 337d7b14f5
commit 709974412a
Signed by: roz
GPG Key ID: 51FBF4E483E1C822

View File

@ -85,6 +85,9 @@ INSTANCE_FLAG_VISIBLE = _flag(1)
BATCH_MAX_SIZE = 65536 BATCH_MAX_SIZE = 65536
def buffer(type, size):
return (type * size)()
_vec3p = ctypes.POINTER(vec3) _vec3p = ctypes.POINTER(vec3)
_vec4p = ctypes.POINTER(vec4) _vec4p = ctypes.POINTER(vec4)
_mat3p = ctypes.POINTER(mat3) _mat3p = ctypes.POINTER(mat3)