ReactOS 0.4.16-dev-306-g647d351
|
#include <limits.h>
#include <d3d.h>
#include <initguid.h>
#include <d3drm.h>
#include <d3drmwin.h>
#include <math.h>
#include "wine/test.h"
Go to the source code of this file.
Classes | |
struct | destroy_context |
struct | callback_order |
struct | qi_test |
Macros | |
#define | COBJMACROS |
#define | _USE_MATH_DEFINES |
#define | CHECK_REFCOUNT(obj, rc) |
#define | expect_matrix(m, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44, u) expect_matrix_(__LINE__, m, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44, u) |
#define | expect_vector(v, x, y, z, u) expect_vector_(__LINE__, v, x, y, z, u) |
#define | vector_eq(a, b) vector_eq_(__LINE__, a, b) |
#define | test_class_name(a, b) test_class_name_(__LINE__, a, b) |
#define | test_object_name(a) test_object_name_(__LINE__, a) |
Variables | |
static D3DRMMATRIX4D | identity |
static char | data_bad_version [] |
static char | data_no_mesh [] |
static char | data_ok [] |
static char | data_full [] |
static char | data_d3drm_load [] |
static char | data_frame_mesh_materials [] |
struct callback_order | corder [3] |
struct callback_order | d3drm_corder [3] |
static int | nb_objects = 0 |
static const GUID * | refiids [] |
IDirect3DRMMeshBuilder * | mesh_builder = NULL |
struct { | |
int vertex_count | |
int face_count | |
int vertex_per_face | |
int face_data_size | |
DWORD color | |
float power | |
float specular [3] | |
float emissive [3] | |
} | groups [3] |
#define test_object_name | ( | a | ) | test_object_name_(__LINE__, a) |
Definition at line 6708 of file d3drm.c.
Referenced by test_viewport_clear1(), and test_viewport_clear2().
Definition at line 6696 of file d3drm.c.
Referenced by test_viewport_clear1(), and test_viewport_clear2().
Definition at line 5995 of file d3drm.c.
|
static |
Definition at line 4975 of file d3drm.c.
Referenced by test_create_device_from_d3d1().
|
static |
Definition at line 5300 of file d3drm.c.
Referenced by test_create_device_from_d3d2(), and test_create_device_from_d3d3().
|
static |
Definition at line 6659 of file d3drm.c.
Referenced by test_viewport_clear2().
Definition at line 149 of file d3drm.c.
Referenced by test_create_device_from_clipper1(), test_create_device_from_clipper2(), test_create_device_from_clipper3(), test_create_device_from_d3d1(), test_create_device_from_d3d2(), test_create_device_from_d3d3(), test_create_device_from_surface1(), test_create_device_from_surface2(), test_create_device_from_surface3(), test_create_texture_from_surface(), test_Device(), test_device_qi(), test_Viewport(), test_viewport_clear1(), and test_viewport_clear2().
|
static |
Definition at line 6818 of file d3drm.c.
Referenced by test_viewport_clear1().
|
static |
Definition at line 1455 of file d3drm.c.
Definition at line 1464 of file d3drm.c.
Referenced by destroy_callback1(), and test_destroy_callback().
|
static |
Definition at line 7053 of file d3drm.c.
Referenced by test_viewport_clear2().
Definition at line 6807 of file d3drm.c.
Referenced by d3d_draw_quad1().
|
static |
Definition at line 6765 of file d3drm.c.
Referenced by d3d_draw_quad1().
|
static |
Definition at line 6750 of file d3drm.c.
Referenced by d3d_draw_quad1().
|
static |
Definition at line 6735 of file d3drm.c.
Referenced by d3d_draw_quad1().
Definition at line 6783 of file d3drm.c.
Referenced by d3d_draw_quad1().
|
static |
Definition at line 65 of file d3drm.c.
|
static |
|
static |
Definition at line 113 of file d3drm.c.
Referenced by test_frame_transform().
Definition at line 41 of file d3drm.c.
Referenced by test_create_device_from_clipper1(), test_create_device_from_clipper2(), test_create_device_from_clipper3(), test_create_device_from_d3d1(), test_create_device_from_d3d2(), test_create_device_from_d3d3(), test_create_device_from_surface1(), test_create_device_from_surface2(), test_create_device_from_surface3(), test_create_texture_from_surface(), test_Frame(), test_load_texture(), test_object(), test_Texture(), and test_Viewport().
Definition at line 6636 of file d3drm.c.
Referenced by test_viewport_clear1(), and test_viewport_clear2().
|
static |
|
static |
Definition at line 3302 of file d3drm.c.
Referenced by test_d3drm_load().
|
static |
Definition at line 3332 of file d3drm.c.
Referenced by test_frame_mesh_materials().
|
static |
Definition at line 6721 of file d3drm.c.
Referenced by d3d_draw_quad1().
START_TEST | ( | d3drm | ) |
Definition at line 8033 of file d3drm.c.
|
static |
Definition at line 3845 of file d3drm.c.
Referenced by test_create_device_from_clipper1(), test_create_device_from_clipper2(), test_create_device_from_clipper3(), test_create_device_from_d3d1(), test_create_device_from_d3d2(), test_create_device_from_d3d3(), test_create_device_from_surface1(), test_create_device_from_surface2(), and test_create_device_from_surface3().
Definition at line 7479 of file d3drm.c.
Referenced by START_TEST().
Definition at line 7822 of file d3drm.c.
Referenced by START_TEST().
|
static |
Definition at line 6069 of file d3drm.c.
Referenced by test_load_texture().
|
static |
Definition at line 160 of file d3drm.c.
Definition at line 5933 of file d3drm.c.
Referenced by START_TEST().
Definition at line 5951 of file d3drm.c.
Referenced by START_TEST().
Definition at line 5973 of file d3drm.c.
Referenced by START_TEST().
Definition at line 3859 of file d3drm.c.
Referenced by START_TEST().
Definition at line 4029 of file d3drm.c.
Referenced by START_TEST().
Definition at line 4207 of file d3drm.c.
Referenced by START_TEST().
Definition at line 5034 of file d3drm.c.
Referenced by START_TEST().
Definition at line 5369 of file d3drm.c.
Referenced by START_TEST().
Definition at line 5652 of file d3drm.c.
Referenced by START_TEST().
Definition at line 4385 of file d3drm.c.
Referenced by START_TEST().
Definition at line 4556 of file d3drm.c.
Referenced by START_TEST().
Definition at line 4738 of file d3drm.c.
Referenced by START_TEST().
Definition at line 7313 of file d3drm.c.
Referenced by START_TEST().
Definition at line 3310 of file d3drm.c.
Referenced by START_TEST().
Definition at line 3512 of file d3drm.c.
Referenced by START_TEST().
Definition at line 1473 of file d3drm.c.
Referenced by test_object().
Definition at line 2982 of file d3drm.c.
Referenced by START_TEST().
Definition at line 3713 of file d3drm.c.
Referenced by START_TEST().
Definition at line 834 of file d3drm.c.
Referenced by START_TEST().
Definition at line 1049 of file d3drm.c.
Referenced by START_TEST().
Definition at line 3381 of file d3drm.c.
Referenced by START_TEST().
Definition at line 3596 of file d3drm.c.
Referenced by START_TEST().
Definition at line 3031 of file d3drm.c.
Referenced by START_TEST().
Definition at line 2518 of file d3drm.c.
Referenced by START_TEST().
Definition at line 6185 of file d3drm.c.
Referenced by START_TEST().
Definition at line 2566 of file d3drm.c.
Referenced by START_TEST().
Definition at line 805 of file d3drm.c.
Referenced by START_TEST().
Definition at line 422 of file d3drm.c.
Referenced by START_TEST().
Definition at line 706 of file d3drm.c.
Referenced by START_TEST().
Definition at line 1575 of file d3drm.c.
Referenced by START_TEST(), and test_CoGetCallContext().
|
static |
Definition at line 3463 of file d3drm.c.
Referenced by test_animation_qi(), test_d3drm_qi(), test_device_qi(), test_frame_qi(), test_texture_qi(), test_viewport_qi(), and test_wrap_qi().
Definition at line 2634 of file d3drm.c.
Referenced by START_TEST().
Definition at line 6365 of file d3drm.c.
Referenced by START_TEST().
Definition at line 1713 of file d3drm.c.
Referenced by START_TEST().
Definition at line 6897 of file d3drm.c.
Referenced by START_TEST().
Definition at line 7098 of file d3drm.c.
Referenced by START_TEST().
Definition at line 6490 of file d3drm.c.
Referenced by START_TEST().
Definition at line 7927 of file d3drm.c.
Referenced by START_TEST().
Definition at line 7945 of file d3drm.c.
Referenced by START_TEST().
|
static |
Definition at line 101 of file d3drm.c.
Definition at line 3371 of file d3drm.c.
Referenced by get_surface_color(), test_Face(), test_Frame(), test_frame_mesh_materials(), test_Light(), and test_MeshBuilder().
struct callback_order corder[3] |
Referenced by test_destroy_callback().
struct callback_order d3drm_corder[3] |
Referenced by destroy_callback(), destroy_callback1(), and test_destroy_callback().
|
static |
Definition at line 276 of file d3drm.c.
Referenced by test_MeshBuilder(), and test_MeshBuilder3().
|
static |
Definition at line 347 of file d3drm.c.
Referenced by test_d3drm_load().
|
static |
Definition at line 380 of file d3drm.c.
Referenced by test_frame_mesh_materials().
|
static |
Definition at line 309 of file d3drm.c.
Referenced by test_MeshBuilder().
|
static |
Definition at line 283 of file d3drm.c.
Referenced by test_MeshBuilder(), and test_MeshBuilder3().
|
static |
Definition at line 290 of file d3drm.c.
Referenced by test_Face(), test_MeshBuilder(), and test_MeshBuilder3().
float emissive[3] |
Definition at line 3374 of file d3drm.c.
Referenced by shader_glsl_ffp_vertex_lighting(), and test_frame_mesh_materials().
int face_count |
Definition at line 3368 of file d3drm.c.
Referenced by d3drm_mesh_AddGroup(), d3drm_mesh_builder2_ReserveSpace(), d3drm_mesh_builder3_ReserveSpace(), d3drm_mesh_GetGroup(), DECLARE_INTERFACE_(), and test_frame_mesh_materials().
int face_data_size |
Definition at line 3370 of file d3drm.c.
Referenced by d3drm_mesh_builder2_GetVertices(), d3drm_mesh_builder3_GetGeometry(), d3drm_mesh_GetGroup(), DECLARE_INTERFACE_(), and test_frame_mesh_materials().
struct { ... } groups[3] |
|
static |
IDirect3DRMMeshBuilder* mesh_builder = NULL |
Definition at line 3330 of file d3drm.c.
Referenced by clean_mesh_builder_data(), d3drm1_CreateMeshBuilder(), d3drm2_CreateMeshBuilder(), d3drm3_CreateMeshBuilder(), d3drm_create_mesh_builder_object(), d3drm_mesh_builder2_AddDestroyCallback(), d3drm_mesh_builder2_AddMeshBuilder(), d3drm_mesh_builder2_AddNormal(), d3drm_mesh_builder2_AddRef(), d3drm_mesh_builder2_AddVertex(), d3drm_mesh_builder2_CreateMesh(), d3drm_mesh_builder2_DeleteDestroyCallback(), d3drm_mesh_builder2_GetAppData(), d3drm_mesh_builder2_GetClassName(), d3drm_mesh_builder2_GetFaceCount(), d3drm_mesh_builder2_GetName(), d3drm_mesh_builder2_GetTextureCoordinates(), d3drm_mesh_builder2_GetVertexCount(), d3drm_mesh_builder2_GetVertices(), d3drm_mesh_builder2_Load(), d3drm_mesh_builder2_QueryInterface(), d3drm_mesh_builder2_Release(), d3drm_mesh_builder2_Scale(), d3drm_mesh_builder2_SetAppData(), d3drm_mesh_builder2_SetColor(), d3drm_mesh_builder2_SetColorRGB(), d3drm_mesh_builder2_SetMaterial(), d3drm_mesh_builder2_SetName(), d3drm_mesh_builder2_SetTexture(), d3drm_mesh_builder2_SetTextureCoordinates(), d3drm_mesh_builder3_AddDestroyCallback(), d3drm_mesh_builder3_AddMeshBuilder(), d3drm_mesh_builder3_AddNormal(), d3drm_mesh_builder3_AddRef(), d3drm_mesh_builder3_AddVertex(), d3drm_mesh_builder3_CreateMesh(), d3drm_mesh_builder3_DeleteDestroyCallback(), d3drm_mesh_builder3_GetAppData(), d3drm_mesh_builder3_GetFaceCount(), d3drm_mesh_builder3_GetName(), d3drm_mesh_builder3_GetNormalCount(), d3drm_mesh_builder3_GetNormals(), d3drm_mesh_builder3_GetTextureCoordinates(), d3drm_mesh_builder3_GetVertexCount(), d3drm_mesh_builder3_GetVertices(), d3drm_mesh_builder3_Load(), d3drm_mesh_builder3_QueryInterface(), d3drm_mesh_builder3_Release(), d3drm_mesh_builder3_Scale(), d3drm_mesh_builder3_SetAppData(), d3drm_mesh_builder3_SetColor(), d3drm_mesh_builder3_SetColorRGB(), d3drm_mesh_builder3_SetMaterial(), d3drm_mesh_builder3_SetName(), d3drm_mesh_builder3_SetTexture(), d3drm_mesh_builder3_SetTextureCoordinates(), d3drm_mesh_builder_create(), DECLARE_INTERFACE_(), load_mesh_data(), object_load_callback_frame(), test_Frame(), and test_frame_mesh_materials().
|
static |
Definition at line 3293 of file d3drm.c.
Referenced by object_load_callback(), and test_d3drm_load().
float power |
Definition at line 3372 of file d3drm.c.
Referenced by acpi_bus_set_power(), d3drm1_CreateMaterial(), d3drm2_CreateMaterial(), d3drm3_CreateMaterial(), d3drm_material_SetPower(), DECLARE_INTERFACE_(), pfr_face_get_kerning(), and test_frame_mesh_materials().
Definition at line 3294 of file d3drm.c.
Referenced by object_load_callback().
float specular[3] |
Definition at line 3373 of file d3drm.c.
Referenced by draw_primitive_immediate_mode(), gl_index_shade_vertices(), shader_glsl_ffp_vertex_lighting(), and test_frame_mesh_materials().
int vertex_count |
Definition at line 3367 of file d3drm.c.
Referenced by buffer_conversion_upload(), d3d8_device_DrawIndexedPrimitive(), d3d8_device_DrawIndexedPrimitiveUP(), d3d8_device_ProcessVertices(), d3d9_device_DrawIndexedPrimitive(), d3d9_device_DrawIndexedPrimitiveUP(), d3d9_device_ProcessVertices(), d3d_device2_BeginIndexed(), d3d_device2_DrawIndexedPrimitive(), d3d_device2_DrawPrimitive(), d3d_device3_BeginIndexed(), d3d_device3_DrawIndexedPrimitive(), d3d_device3_DrawPrimitive(), d3d_device7_DrawIndexedPrimitive(), d3d_device7_DrawIndexedPrimitive_FPUPreserve(), d3d_device7_DrawIndexedPrimitive_FPUSetup(), d3d_device7_DrawIndexedPrimitiveStrided(), d3d_device7_DrawIndexedPrimitiveVB(), d3d_device7_DrawPrimitive(), d3d_device7_DrawPrimitive_FPUPreserve(), d3d_device7_DrawPrimitive_FPUSetup(), d3d_device7_DrawPrimitiveStrided(), d3d_device7_DrawPrimitiveVB(), d3drm_face1_GetVertices(), d3drm_face2_GetVertices(), d3drm_mesh_AddGroup(), d3drm_mesh_builder2_AddFaces(), d3drm_mesh_builder2_GetVertices(), d3drm_mesh_builder2_ReserveSpace(), d3drm_mesh_builder3_AddFaces(), d3drm_mesh_builder3_AddTriangles(), d3drm_mesh_builder3_GetGeometry(), d3drm_mesh_builder3_GetVertices(), d3drm_mesh_builder3_ReserveSpace(), d3drm_mesh_GetGroup(), DECLARE_INTERFACE_(), draw_primitive_immediate_mode(), emit_process_vertices(), set_execute_data(), test_frame_mesh_materials(), wined3d_device_draw_primitive(), wined3d_device_draw_primitive_instanced(), and wined3d_device_process_vertices().
int vertex_per_face |
Definition at line 3369 of file d3drm.c.
Referenced by d3drm_mesh_AddGroup(), d3drm_mesh_builder3_CreateMesh(), d3drm_mesh_GetGroup(), and test_frame_mesh_materials().