From 6ebc5cefdf6bfb625d20b57ddc67827f9288ceeb Mon Sep 17 00:00:00 2001 From: David Adam Date: Tue, 23 Oct 2007 11:30:55 +0200 Subject: [PATCH] d3dx8: Implement D3DXPlaneColorNegative. --- dlls/d3dx8/tests/math.c | 31 +++++++++++++++++++++++++++++++ include/d3dx8math.inl | 10 ++++++++++ 2 files changed, 41 insertions(+) diff --git a/dlls/d3dx8/tests/math.c b/dlls/d3dx8/tests/math.c index e73a6193d90..7c74b659025 100644 --- a/dlls/d3dx8/tests/math.c +++ b/dlls/d3dx8/tests/math.c @@ -24,12 +24,42 @@ #define admitted_error 0.00001f +#define expect_color(expectedcolor,gotcolor) ok((fabs(expectedcolor.r-gotcolor.r)r = 1.0f - pc->r; + pout->g = 1.0f - pc->g; + pout->b = 1.0f - pc->b; + pout->a = pc->a; + return pout; +} + /*_______________D3DXVECTOR2________________________*/ static inline D3DXVECTOR2* D3DXVec2Add(D3DXVECTOR2 *pout, CONST D3DXVECTOR2 *pv1, CONST D3DXVECTOR2 *pv2)