ReactOS 0.4.16-dev-87-g3dfbe52
|
#include <assert.h>
#include <limits.h>
#include "wine/debug.h"
#include "wine/heap.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "d3d.h"
#include "ddraw.h"
#include "wine/list.h"
#include "wine/wined3d.h"
Go to the source code of this file.
Classes | |
struct | FvfToDecl |
struct | ddraw |
struct | ddraw_surface |
struct | ddraw_texture |
struct | ddraw_handle_entry |
struct | ddraw_handle_table |
struct | d3d_device |
struct | ddraw_clipper |
struct | ddraw_palette |
struct | object_creation_info |
struct | d3d_light |
struct | d3d_material |
struct | d3d_viewport |
struct | d3d_execute_buffer |
struct | d3d_vertex_buffer |
struct | flag_info |
struct | member_info |
Variables | |
const struct wined3d_parent_ops ddraw_null_wined3d_parent_ops | DECLSPEC_HIDDEN |
#define COBJMACROS |
Definition at line 24 of file ddraw_private.h.
#define DD_STRUCT_COPY_BYSIZE | ( | to, | |
from | |||
) | DD_STRUCT_COPY_BYSIZE_(to,from,(to)->dwSize,(from)->dwSize) |
Definition at line 647 of file ddraw_private.h.
Definition at line 636 of file ddraw_private.h.
#define DDRAW_D3D_INITIALIZED 0x00000002 |
Definition at line 55 of file ddraw_private.h.
#define DDRAW_GDI_FLIP 0x00000040 |
Definition at line 60 of file ddraw_private.h.
#define DDRAW_INITIALIZED 0x00000001 |
Definition at line 54 of file ddraw_private.h.
#define DDRAW_INVALID_HANDLE ~0U |
Definition at line 265 of file ddraw_private.h.
#define DDRAW_NO3D 0x00000008 |
Definition at line 57 of file ddraw_private.h.
#define DDRAW_RESTORE_MODE 0x00000004 |
Definition at line 56 of file ddraw_private.h.
#define DDRAW_SCL_DDRAW1 0x00000010 |
Definition at line 58 of file ddraw_private.h.
#define DDRAW_SCL_RECURSIVE 0x00000020 |
Definition at line 59 of file ddraw_private.h.
#define DDRAW_STRIDE_ALIGNMENT 8 |
Definition at line 62 of file ddraw_private.h.
#define DDRAW_WINDOW_CLASS_NAME "DirectDrawDeviceWnd" |
Definition at line 128 of file ddraw_private.h.
#define DDRAW_WINED3D_FLAGS |
Definition at line 64 of file ddraw_private.h.
#define GET_TEXCOORD_SIZE_FROM_FVF | ( | d3dvtVertexType, | |
tex_num | |||
) | (((((d3dvtVertexType) >> (16 + (2 * (tex_num)))) + 1) & 0x03) + 1) |
Definition at line 582 of file ddraw_private.h.
#define GET_TEXCOUNT_FROM_FVF | ( | d3dvtVertexType | ) | (((d3dvtVertexType) & D3DFVF_TEXCOUNT_MASK) >> D3DFVF_TEXCOUNT_SHIFT) |
Definition at line 579 of file ddraw_private.h.
#define MAX_COMPLEX_ATTACHED 6 |
Definition at line 183 of file ddraw_private.h.
Definition at line 634 of file ddraw_private.h.
#define NONAMELESSSTRUCT |
Definition at line 25 of file ddraw_private.h.
#define NONAMELESSUNION |
Definition at line 26 of file ddraw_private.h.
Enumerator | |
---|---|
DDRAW_DEVICE_STATE_OK | |
DDRAW_DEVICE_STATE_LOST | |
DDRAW_DEVICE_STATE_NOT_RESTORED |
Definition at line 69 of file ddraw_private.h.
Enumerator | |
---|---|
DDRAW_HANDLE_FREE | |
DDRAW_HANDLE_MATERIAL | |
DDRAW_HANDLE_MATRIX | |
DDRAW_HANDLE_STATEBLOCK | |
DDRAW_HANDLE_SURFACE |
Definition at line 267 of file ddraw_private.h.
HRESULT d3d_device_create | ( | struct ddraw * | ddraw, |
const GUID * | guid, | ||
struct ddraw_surface * | target, | ||
IUnknown * | rt_iface, | ||
UINT | version, | ||
struct d3d_device ** | device, | ||
IUnknown * | outer_unknown | ||
) |
Definition at line 6980 of file device.c.
Referenced by d3d2_CreateDevice(), d3d3_CreateDevice(), d3d7_CreateDevice(), and ddraw_surface7_QueryInterface().
enum wined3d_depth_buffer_type d3d_device_update_depth_stencil | ( | struct d3d_device * | device | ) |
Definition at line 6878 of file device.c.
Referenced by d3d_device_init(), d3d_device_set_render_target(), and ddraw_surface_attach_surface().
HRESULT d3d_execute_buffer_execute | ( | struct d3d_execute_buffer * | execute_buffer, |
struct d3d_device * | device, | ||
struct d3d_viewport * | viewport | ||
) |
Definition at line 51 of file executebuffer.c.
Referenced by d3d_device1_Execute().
HRESULT d3d_execute_buffer_init | ( | struct d3d_execute_buffer * | execute_buffer, |
struct d3d_device * | device, | ||
D3DEXECUTEBUFFERDESC * | desc | ||
) |
Definition at line 775 of file executebuffer.c.
Referenced by d3d_device1_CreateExecuteBuffer().
Definition at line 247 of file light.c.
Referenced by d3d3_CreateLight().
struct d3d_material * d3d_material_create | ( | struct ddraw * | ddraw | ) |
Definition at line 501 of file material.c.
Referenced by d3d1_CreateMaterial(), d3d2_CreateMaterial(), and d3d3_CreateMaterial().
HRESULT d3d_vertex_buffer_create | ( | struct d3d_vertex_buffer ** | buffer, |
struct ddraw * | ddraw, | ||
D3DVERTEXBUFFERDESC * | desc | ||
) |
Definition at line 432 of file vertexbuffer.c.
Referenced by d3d3_CreateVertexBuffer(), and d3d7_CreateVertexBuffer().
void d3d_viewport_init | ( | struct d3d_viewport * | viewport, |
struct ddraw * | ddraw | ||
) |
Definition at line 1146 of file viewport.c.
Referenced by d3d3_CreateViewport().
DWORD ddraw_allocate_handle | ( | struct ddraw_handle_table * | t, |
void * | object, | ||
enum ddraw_handle_type | type | ||
) |
Definition at line 113 of file main.c.
Referenced by d3d_device1_CreateMatrix(), d3d_device7_CreateStateBlock(), d3d_device7_EndStateBlock(), d3d_material3_GetHandle(), and d3d_texture2_GetHandle().
HRESULT ddraw_clipper_init | ( | struct ddraw_clipper * | clipper | ) |
Definition at line 321 of file clipper.c.
Referenced by DirectDrawCreateClipper().
void DDRAW_Convert_DDDEVICEIDENTIFIER_2_To_1 | ( | const DDDEVICEIDENTIFIER2 * | pIn, |
DDDEVICEIDENTIFIER * | pOut | ||
) |
Definition at line 961 of file utils.c.
Referenced by ddraw4_GetDeviceIdentifier().
void ddraw_d3dcaps1_from_7 | ( | D3DDEVICEDESC * | caps1, |
D3DDEVICEDESC7 * | caps7 | ||
) |
Definition at line 1192 of file ddraw.c.
Referenced by d3d3_EnumDevices(), d3d3_FindDevice(), and d3d_device3_GetCaps().
Definition at line 968 of file utils.c.
Referenced by ddraw_set_cooperative_level().
Definition at line 990 of file utils.c.
Referenced by ddraw7_GetCaps().
Definition at line 713 of file utils.c.
Referenced by ddraw7_GetAvailableVidMem(), DDRAW_dump_DDCAPS(), DDRAW_dump_DDSCAPS(), and DDRAW_dump_surface_desc().
void DDRAW_dump_surface_desc | ( | const DDSURFACEDESC2 * | lpddsd | ) |
Definition at line 864 of file utils.c.
Referenced by ddraw2_CreateSurface(), ddraw4_CreateSurface(), ddraw7_CreateSurface(), ddraw7_GetDisplayMode(), ddraw_surface3_GetSurfaceDesc(), ddraw_surface7_GetSurfaceDesc(), ddraw_surface_create(), and surface_lock().
struct wined3d_vertex_declaration * ddraw_find_decl | ( | struct ddraw * | ddraw, |
DWORD | fvf | ||
) |
Definition at line 4797 of file ddraw.c.
Referenced by d3d_device7_DrawIndexedPrimitive(), d3d_device7_DrawIndexedPrimitiveStrided(), d3d_device7_DrawPrimitive(), d3d_device7_DrawPrimitiveStrided(), and d3d_vertex_buffer_create().
void * ddraw_free_handle | ( | struct ddraw_handle_table * | t, |
DWORD | handle, | ||
enum ddraw_handle_type | type | ||
) |
Definition at line 156 of file main.c.
Referenced by d3d_device1_DeleteMatrix(), d3d_device7_DeleteStateBlock(), d3d_material3_Release(), and ddraw_surface_wined3d_object_destroyed().
HRESULT ddraw_get_d3dcaps | ( | const struct ddraw * | ddraw, |
D3DDEVICEDESC7 * | caps | ||
) |
Definition at line 1248 of file ddraw.c.
Referenced by d3d3_EnumDevices(), d3d3_FindDevice(), d3d7_EnumDevices(), d3d_device3_GetCaps(), and d3d_device7_GetCaps().
void * ddraw_get_object | ( | struct ddraw_handle_table * | t, |
DWORD | handle, | ||
enum ddraw_handle_type | type | ||
) |
Definition at line 182 of file main.c.
Referenced by d3d_device1_GetMatrix(), d3d_device1_SetMatrix(), d3d_device3_SetLightState(), d3d_device3_SetRenderState(), d3d_device7_ApplyStateBlock(), d3d_device7_CaptureStateBlock(), and d3d_viewport_SetBackground().
void ddraw_handle_table_destroy | ( | struct ddraw_handle_table * | t | ) |
Definition at line 107 of file main.c.
Referenced by d3d_device_init(), and d3d_device_inner_Release().
BOOL ddraw_handle_table_init | ( | struct ddraw_handle_table * | t, |
UINT | initial_size | ||
) |
Definition at line 93 of file main.c.
Referenced by d3d_device_init().
Definition at line 5048 of file ddraw.c.
Referenced by DDRAW_Create().
HRESULT ddraw_palette_init | ( | struct ddraw_palette * | palette, |
struct ddraw * | ddraw, | ||
DWORD | flags, | ||
PALETTEENTRY * | entries | ||
) |
Definition at line 258 of file palette.c.
Referenced by ddraw7_CreatePalette().
Definition at line 135 of file ddraw_private.h.
Referenced by ddraw_create_swapchain(), ddraw_destroy_swapchain(), and ddraw_surface7_SetClipper().
HRESULT ddraw_surface_create | ( | struct ddraw * | ddraw, |
const DDSURFACEDESC2 * | surface_desc, | ||
struct ddraw_surface ** | surface, | ||
IUnknown * | outer_unknown, | ||
unsigned int | version | ||
) |
Definition at line 5791 of file surface.c.