frustum, ortho and perspective functions

This commit is contained in:
Recep Aslantas
2016-09-17 19:04:53 +03:00
parent 146dbe4656
commit 5a28f2ec60
2 changed files with 77 additions and 6 deletions

View File

@@ -32,16 +32,18 @@
*desti++ = *srci++; \
} while (0)
#define glm__memzero(dest, size) \
#define glm__memset(type, dest, size, val) \
do { \
int32_t *desti; \
int32_t *desti_end; \
type *desti; \
type *desti_end; \
\
desti = (int32_t *)dest; \
desti_end = (int32_t *)((char *)desti + size); \
desti = (type *)dest; \
desti_end = (type *)((char *)desti + size); \
\
while (desti != desti_end) \
*desti++ = 0; \
*desti++ = val; \
} while (0)
#define glm__memzero(type, dest, size) glm__memset(type, dest, size, 0)
#endif /* glm_common_h */