Fix typo; Documentation; Expose layer for framebuffer attachament; Add framebuffer viewport setter; Remove framebuffer restore; Expose framebuffer push/pop stack API; Remove blend modes; Remove depth_range_set; Implement GPU_face_culling, GPU_front_facing, GPU_point_size, GPU_line_width, GPU_viewport, GPU_color_mask and GPU_depth_mask

This commit is contained in:
2020-12-11 01:18:24 -03:00
parent 1d3b92bdea
commit 9db3d1951d
14 changed files with 1353 additions and 7 deletions

View File

@@ -282,6 +282,16 @@ int PyC_ParseStringEnum(PyObject *o, void *p)
return 0;
}
const char *PyC_StringEnum_find_id(struct PyC_StringEnum *e, const int value)
{
for (int i = 0; e->items[i].id; i++) {
if (e->items[i].value == value) {
return e->items[i].id;
}
}
return NULL;
}
/* silly function, we dont use arg. just check its compatible with __deepcopy__ */
int PyC_CheckArgs_DeepCopy(PyObject *args)
{