Add a buffer method to hide ctypes array contruction.
This commit is contained in:
parent
337d7b14f5
commit
709974412a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user