summaryrefslogtreecommitdiff
path: root/inc/refresh/models.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2013-03-16 19:19:00 +0400
committerAndrey Nazarov <skuller@skuller.net>2013-03-20 22:04:53 +0400
commit579a26b4dfb7172bc29d9b853f335af310eb114c (patch)
treee839b21a3a3b1f7a1b0ad99e73c77d4c16b95d7e /inc/refresh/models.h
parentf53832714d549a908a83b3528ea385197306b522 (diff)
Clean up and sanitize alias model drawing.
Validate texture coordinates. Validate vertex normal indices. Check that skin upload width/height matches model. Draw alias models in solid white color when skin is missing or found to be invalid.
Diffstat (limited to 'inc/refresh/models.h')
-rw-r--r--inc/refresh/models.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/refresh/models.h b/inc/refresh/models.h
index a150bad..21b7a19 100644
--- a/inc/refresh/models.h
+++ b/inc/refresh/models.h
@@ -63,6 +63,8 @@ typedef struct model_s {
int numsts;
struct maliasst_s *sts;
int numverts;
+ int skinwidth;
+ int skinheight;
#endif
// sprite models