#include "wine/test.h"
#include "d3dx9.h"
Go to the source code of this file.
◆ admitted_error
◆ expect_mat
#define expect_mat |
( |
|
expectedmat, |
|
|
|
gotmat |
|
) |
| |
Value:do { \
ok(
compare_matrix(__m1, __m2),
"Expected matrix=\n(%f,%f,%f,%f\n %f,%f,%f,%f\n %f,%f,%f,%f\n %f,%f,%f,%f\n)\n\n" \
"Got matrix=\n(%f,%f,%f,%f\n %f,%f,%f,%f\n %f,%f,%f,%f\n %f,%f,%f,%f)\n", \
U(*__m1).m[0][0],
U(*__m1).m[0][1],
U(*__m1).m[0][2],
U(*__m1).m[0][3], \
U(*__m1).m[1][0],
U(*__m1).m[1][1],
U(*__m1).m[1][2],
U(*__m1).m[1][3], \
U(*__m1).m[2][0],
U(*__m1).m[2][1],
U(*__m1).m[2][2],
U(*__m1).m[2][3], \
U(*__m1).m[3][0],
U(*__m1).m[3][1],
U(*__m1).m[3][2],
U(*__m1).m[3][3], \
U(*__m2).m[0][0],
U(*__m2).m[0][1],
U(*__m2).m[0][2],
U(*__m2).m[0][3], \
U(*__m2).m[1][0],
U(*__m2).m[1][1],
U(*__m2).m[1][2],
U(*__m2).m[1][3], \
U(*__m2).m[2][0],
U(*__m2).m[2][1],
U(*__m2).m[2][2],
U(*__m2).m[2][3], \
U(*__m2).m[3][0],
U(*__m2).m[3][1],
U(*__m2).m[3][2],
U(*__m2).m[3][3]); \
} while(0)
static BOOL compare_matrix(const D3DXMATRIX *m1, const D3DXMATRIX *m2)
Definition at line 42 of file line.c.
◆ relative_error
◆ compare_matrix()
Definition at line 26 of file line.c.
27{
29
30 for (
i = 0;
i < 4; ++
i)
31 {
32 for (
j = 0;
j < 4; ++
j)
33 {
36 }
37 }
38
40}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
#define relative_error(exp, out)
◆ START_TEST()
Definition at line 118 of file line.c.
119{
121 IDirect3D9* d3d;
125
128 {
129 skip(
"Couldn't create application window\n");
130 return;
131 }
133 {
134 skip(
"Couldn't create IDirect3D9 object\n");
136 return;
137 }
138
144 skip(
"Failed to create IDirect3DDevice9 object %#x\n",
hr);
147 return;
148 }
149
151
155}
IDirect3D9 *WINAPI Direct3DCreate9(UINT SDKVersion)
#define IDirect3D9_CreateDevice(p, a, b, c, d, e, f)
#define IDirect3D9_Release(p)
#define IDirect3DDevice9_Release(p)
static void test_create_line(IDirect3DDevice9 *device)
#define WS_OVERLAPPEDWINDOW
#define D3DADAPTER_DEFAULT
#define D3DCREATE_SOFTWARE_VERTEXPROCESSING
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI DestroyWindow(_In_ HWND)
◆ test_create_line()
static void test_create_line |
( |
IDirect3DDevice9 * |
device | ) |
|
|
static |
Definition at line 58 of file line.c.
59{
62 struct IDirect3DDevice9 *return_device;
64 FLOAT r11, r12, r13, r14;
66
67
68 r11 = 0.1421; r12 = 0.2114; r13 = 0.8027; r14 = 0.4587;
69
72
75
77 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
78
80 {
81 return;
82 }
83
86
89 ok(return_device ==
device,
"Expected line device %p, got %p\n",
device, return_device);
90
91 D3DXMatrixIdentity(&world);
93 S(
U(world))._11 = r11;
S(
U(world))._12 = r12;
S(
U(world))._13 = r13;
S(
U(world))._14 = r14;
94
97
100
104
107
111
113
115 ok(
ref == 0,
"Got %x references to line %p, expected 0\n",
ref,
line);
116}
#define IDirect3DDevice9_SetTransform(p, a, b)
#define IDirect3DDevice9_GetTransform(p, a, b)
#define D3DERR_INVALIDCALL
#define ID3DXLine_Release(p)
#define ID3DXLine_Begin(p)
#define ID3DXLine_GetDevice(p, a)
HRESULT WINAPI D3DXCreateLine(struct IDirect3DDevice9 *device, struct ID3DXLine **line)
#define expect_mat(expectedmat, gotmat)
Referenced by START_TEST().