aboutsummaryrefslogtreecommitdiff
path: root/bindgen
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-07-19 20:36:36 +0200
committerAndre Weissflog <floooh@gmail.com>2022-07-19 20:36:36 +0200
commit02222079756e94b10a24474dfd2566c3eafed428 (patch)
treeea742b09c7effc3e62ea0f98420242b4c64a6630 /bindgen
parentc8c07b172236c97109659baef2fc627abc6574e1 (diff)
gen_nim.py: fix type mapping for sg_context_desc.pixel/depth_format
Diffstat (limited to 'bindgen')
-rw-r--r--bindgen/gen_nim.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bindgen/gen_nim.py b/bindgen/gen_nim.py
index 6d5ad851..823d43f7 100644
--- a/bindgen/gen_nim.py
+++ b/bindgen/gen_nim.py
@@ -39,6 +39,8 @@ overrides = {
'sgl_error': 'sgl_get_error',
'sgl_deg': 'sgl_as_degrees',
'sgl_rad': 'sgl_as_radians',
+ 'sg_context_desc.color_format': 'int',
+ 'sg_context_desc.depth_format': 'int',
'SG_BUFFERTYPE_VERTEXBUFFER': 'SG_BUFFERTYPE_VERTEX_BUFFER',
'SG_BUFFERTYPE_INDEXBUFFER': 'SG_BUFFERTYPE_INDEX_BUFFER',
'SG_ACTION_DONTCARE': 'SG_ACTION_DONT_CARE',
@@ -505,7 +507,7 @@ def gen_imports(inp, dep_prefixes):
for dep_prefix in dep_prefixes:
dep_module_name = module_names[dep_prefix]
l(f'import {dep_module_name}')
- l('')
+ l('')
def gen_extra(inp):
if inp['prefix'] in ['sg_']: