mirror of
https://github.com/DrBeef/Quake2Quest.git
synced 2025-03-13 11:52:18 +00:00
17 lines
540 B
Text
17 lines
540 B
Text
|
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 %}
|
||
|
}
|
||
|
}
|