diff options
author | hap <happppp@users.noreply.github.com> | 2018-09-28 22:42:29 +0200 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2018-09-28 22:42:29 +0200 |
commit | 049f9190b6e9645c094ac515b3fd675bde1d1439 (patch) | |
tree | f49b21fae7fa587678e400222e3fb3e90aadd761 /src/mame/includes/namcos22.h | |
parent | 55085a01d3701d3ed0092b0ff85f8505b2f2b0a1 (diff) |
namcos22: Added viewmatrix reflection. This fixes alpinr2b character selection screen, raveracw and ridgera2 rear-view mirrors, and secret mirror track in raveracw. [hap, Ryan Holtz]
Diffstat (limited to 'src/mame/includes/namcos22.h')
-rw-r--r-- | src/mame/includes/namcos22.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mame/includes/namcos22.h b/src/mame/includes/namcos22.h index f679d498399..ef93673b050 100644 --- a/src/mame/includes/namcos22.h +++ b/src/mame/includes/namcos22.h @@ -6,6 +6,11 @@ ***************************************************************************/ +#ifndef MAME_INCLUDES_NAMCOS22_H +#define MAME_INCLUDES_NAMCOS22_H + +#pragma once + #include "machine/eeprompar.h" #include "machine/timer.h" #include "video/rgbutil.h" @@ -382,6 +387,7 @@ private: void matrix3d_multiply(float a[4][4], float b[4][4]); void matrix3d_identity(float m[4][4]); + void matrix3d_apply_reflection(float m[4][4]); void transform_point(float *vx, float *vy, float *vz, float m[4][4]); void transform_normal(float *nx, float *ny, float *nz, float m[4][4]); void register_normals(int32_t addr, float m[4][4]); @@ -521,6 +527,7 @@ private: int32_t m_objectshift; uint16_t m_PrimitiveID; float m_viewmatrix[4][4]; + uint8_t m_reflection; uint8_t m_LitSurfaceInfo[NAMCOS22_MAX_LIT_SURFACES]; int32_t m_SurfaceNormalFormat; unsigned m_LitSurfaceCount; @@ -545,3 +552,5 @@ private: int m_camera_ambient; // 0.0..1.0 int m_camera_power; // 0.0..1.0 }; + +#endif // MAME_INCLUDES_NAMCOS22_H |