GPU Python: optionally init the vertexformat in the vertexbuffer itself.

This commit is contained in:
2018-10-05 17:21:10 -03:00
parent 8882b3d7b6
commit 9bd65528e3
3 changed files with 55 additions and 25 deletions

View File

@@ -37,5 +37,7 @@ typedef struct BPyGPUVertFormat {
} BPyGPUVertFormat;
PyObject *BPyGPUVertFormat_CreatePyObject(struct GPUVertFormat *fmt);
bool bpygpu_vertformat_from_PyList(
const PyListObject *list, const char *error_prefix, GPUVertFormat *r_fmt);
#endif /* __GPU_PY_VERTEX_FORMAT_H__ */