From 6998941b8f50c6f83a8f573c88660d997e09468d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 8 Jan 2015 22:58:20 -0800 Subject: [PATCH] Fixed C99 compile issue. --- include/bgfx.c99.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/include/bgfx.c99.h b/include/bgfx.c99.h index a026bcb1..aea82ba4 100644 --- a/include/bgfx.c99.h +++ b/include/bgfx.c99.h @@ -182,24 +182,27 @@ typedef struct bgfx_transform } bgfx_transform_t; /** + * Eye + */ +typedef struct bgfx_hmd_eye +{ + float rotation[4]; + float translation[3]; + float fov[4]; + float adjust[3]; + float pixelsPerTanAngle[2]; + +} bgfx_hmd_eye_t; + +/** + * HMD */ typedef struct bgfx_hmd { - /** - * Eye - */ - struct Eye - { - float rotation[4]; - float translation[3]; - float fov[4]; - float adjust[3]; - float pixelsPerTanAngle[2]; - }; - - Eye eye[2]; + bgfx_hmd_eye_t eye[2]; uint16_t width; uint16_t height; + } bgfx_hmd_t; /**