pTitSeb's glshim renamed to gl4es

This commit is contained in:
lubomyr
2016-11-06 15:18:18 +02:00
parent 21867b6ddc
commit b4cadd5955
146 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
void glPackedCall(const packed_call_t *packed) {
switch (packed->format) {
{% for f in formats %}
case FORMAT_{{ f.types }}: {
PACKED_{{ f.types }} *unpacked = (PACKED_{{ f.types }} *)packed;
{% if f.args %}
ARGS_{{ f.types }} args = unpacked->args;
{% endif %}
unpacked->func({% for arg in f.args -%}
args.a{{ loop.index }}{% if not arg.last %}, {% endif %}
{% endfor %});
break;
}
{% endfor %}
}
}