mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 16:30:43 +00:00
[qfcc] Chain matrix and bool types
Ruamoko doesn't really use either yet, but GLSL needs them and this ironed out a lot of the issues related to adding the types.
This commit is contained in:
parent
86b3d0db7b
commit
c70da4fc76
16 changed files with 135 additions and 44 deletions
|
@ -239,8 +239,10 @@ pr_debug_type_size (const progs_t *pr, const qfot_type_t *type)
|
|||
pr_short_t size;
|
||||
qfot_type_t *aux_type;
|
||||
switch (type->meta) {
|
||||
case ty_bool:
|
||||
case ty_basic:
|
||||
return pr_type_size[type->type] * type->basic.width;
|
||||
return pr_type_size[type->type] * type->basic.width
|
||||
* type->basic.columns;
|
||||
case ty_handle:
|
||||
return pr_type_size[type->type];
|
||||
case ty_struct:
|
||||
|
@ -1070,6 +1072,8 @@ value_string (pr_debug_data_t *data, qfot_type_t *type, pr_type_t *value)
|
|||
case ty_handle:
|
||||
raw_type_view.handle_view (type, value, data);
|
||||
break;
|
||||
case ty_bool:
|
||||
//FIXME add bool view
|
||||
case ty_basic:
|
||||
switch (type->type) {
|
||||
#define EV_TYPE(t) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue