ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

device.c File Reference
#include "config.h"
#include <math.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "wingdi.h"
#include "wine/debug.h"
#include "d3d8_private.h"

Go to the source code of this file.

Data Structures

struct  tss_lookup

Defines

#define NONAMELESSUNION
#define NONAMELESSSTRUCT

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (d3d8)
D3DFORMAT d3dformat_from_wined3dformat (enum wined3d_format_id format)
enum wined3d_format_id wined3dformat_from_d3dformat (D3DFORMAT format)
static UINT vertex_count_from_primitive_count (D3DPRIMITIVETYPE primitive_type, UINT primitive_count)
static DWORD d3d8_allocate_handle (struct d3d8_handle_table *t, void *object, enum d3d8_handle_type type)
static voidd3d8_free_handle (struct d3d8_handle_table *t, DWORD handle, enum d3d8_handle_type type)
static voidd3d8_get_object (struct d3d8_handle_table *t, DWORD handle, enum d3d8_handle_type type)
static IDirect3DDevice8Implimpl_from_IDirect3DDevice8 (IDirect3DDevice8 *iface)
static HRESULT WINAPI IDirect3DDevice8Impl_QueryInterface (IDirect3DDevice8 *iface, REFIID riid, void **ppobj)
static ULONG WINAPI IDirect3DDevice8Impl_AddRef (IDirect3DDevice8 *iface)
static ULONG WINAPI IDirect3DDevice8Impl_Release (IDirect3DDevice8 *iface)
static HRESULT WINAPI IDirect3DDevice8Impl_TestCooperativeLevel (IDirect3DDevice8 *iface)
static UINT WINAPI IDirect3DDevice8Impl_GetAvailableTextureMem (IDirect3DDevice8 *iface)
static HRESULT WINAPI IDirect3DDevice8Impl_ResourceManagerDiscardBytes (IDirect3DDevice8 *iface, DWORD Bytes)
static HRESULT WINAPI IDirect3DDevice8Impl_GetDirect3D (IDirect3DDevice8 *iface, IDirect3D8 **ppD3D8)
static HRESULT WINAPI IDirect3DDevice8Impl_GetDeviceCaps (IDirect3DDevice8 *iface, D3DCAPS8 *pCaps)
static HRESULT WINAPI IDirect3DDevice8Impl_GetDisplayMode (IDirect3DDevice8 *iface, D3DDISPLAYMODE *pMode)
static HRESULT WINAPI IDirect3DDevice8Impl_GetCreationParameters (IDirect3DDevice8 *iface, D3DDEVICE_CREATION_PARAMETERS *pParameters)
static HRESULT WINAPI IDirect3DDevice8Impl_SetCursorProperties (IDirect3DDevice8 *iface, UINT XHotSpot, UINT YHotSpot, IDirect3DSurface8 *pCursorBitmap)
static void WINAPI IDirect3DDevice8Impl_SetCursorPosition (IDirect3DDevice8 *iface, UINT XScreenSpace, UINT YScreenSpace, DWORD Flags)
static BOOL WINAPI IDirect3DDevice8Impl_ShowCursor (IDirect3DDevice8 *iface, BOOL bShow)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateAdditionalSwapChain (IDirect3DDevice8 *iface, D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain8 **swapchain)
static HRESULT CDECL reset_enum_callback (struct wined3d_resource *resource)
static HRESULT WINAPI IDirect3DDevice8Impl_Reset (IDirect3DDevice8 *iface, D3DPRESENT_PARAMETERS *pPresentationParameters)
static HRESULT WINAPI IDirect3DDevice8Impl_Present (IDirect3DDevice8 *iface, const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion)
static HRESULT WINAPI IDirect3DDevice8Impl_GetBackBuffer (IDirect3DDevice8 *iface, UINT BackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface8 **ppBackBuffer)
static HRESULT WINAPI IDirect3DDevice8Impl_GetRasterStatus (IDirect3DDevice8 *iface, D3DRASTER_STATUS *pRasterStatus)
static void WINAPI IDirect3DDevice8Impl_SetGammaRamp (IDirect3DDevice8 *iface, DWORD Flags, const D3DGAMMARAMP *pRamp)
static void WINAPI IDirect3DDevice8Impl_GetGammaRamp (IDirect3DDevice8 *iface, D3DGAMMARAMP *pRamp)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateTexture (IDirect3DDevice8 *iface, UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, IDirect3DTexture8 **texture)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateVolumeTexture (IDirect3DDevice8 *iface, UINT width, UINT height, UINT depth, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, IDirect3DVolumeTexture8 **texture)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateCubeTexture (IDirect3DDevice8 *iface, UINT edge_length, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, IDirect3DCubeTexture8 **texture)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexBuffer (IDirect3DDevice8 *iface, UINT size, DWORD usage, DWORD fvf, D3DPOOL pool, IDirect3DVertexBuffer8 **buffer)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateIndexBuffer (IDirect3DDevice8 *iface, UINT size, DWORD usage, D3DFORMAT format, D3DPOOL pool, IDirect3DIndexBuffer8 **buffer)
static HRESULT IDirect3DDevice8Impl_CreateSurface (IDirect3DDevice8Impl *device, UINT Width, UINT Height, D3DFORMAT Format, BOOL Lockable, BOOL Discard, UINT Level, IDirect3DSurface8 **ppSurface, UINT Usage, D3DPOOL Pool, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateRenderTarget (IDirect3DDevice8 *iface, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, BOOL Lockable, IDirect3DSurface8 **ppSurface)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateDepthStencilSurface (IDirect3DDevice8 *iface, UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, IDirect3DSurface8 **ppSurface)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateImageSurface (IDirect3DDevice8 *iface, UINT Width, UINT Height, D3DFORMAT Format, IDirect3DSurface8 **ppSurface)
static HRESULT WINAPI IDirect3DDevice8Impl_CopyRects (IDirect3DDevice8 *iface, IDirect3DSurface8 *pSourceSurface, const RECT *pSourceRects, UINT cRects, IDirect3DSurface8 *pDestinationSurface, const POINT *pDestPoints)
static HRESULT WINAPI IDirect3DDevice8Impl_UpdateTexture (IDirect3DDevice8 *iface, IDirect3DBaseTexture8 *src_texture, IDirect3DBaseTexture8 *dst_texture)
static HRESULT WINAPI IDirect3DDevice8Impl_GetFrontBuffer (IDirect3DDevice8 *iface, IDirect3DSurface8 *pDestSurface)
static HRESULT WINAPI IDirect3DDevice8Impl_SetRenderTarget (IDirect3DDevice8 *iface, IDirect3DSurface8 *pRenderTarget, IDirect3DSurface8 *pNewZStencil)
static HRESULT WINAPI IDirect3DDevice8Impl_GetRenderTarget (IDirect3DDevice8 *iface, IDirect3DSurface8 **ppRenderTarget)
static HRESULT WINAPI IDirect3DDevice8Impl_GetDepthStencilSurface (IDirect3DDevice8 *iface, IDirect3DSurface8 **ppZStencilSurface)
static HRESULT WINAPI IDirect3DDevice8Impl_BeginScene (IDirect3DDevice8 *iface)
static HRESULT WINAPI
DECLSPEC_HOTPATCH 
IDirect3DDevice8Impl_EndScene (IDirect3DDevice8 *iface)
static HRESULT WINAPI IDirect3DDevice8Impl_Clear (IDirect3DDevice8 *iface, DWORD rect_count, const D3DRECT *rects, DWORD flags, D3DCOLOR color, float z, DWORD stencil)
static HRESULT WINAPI IDirect3DDevice8Impl_SetTransform (IDirect3DDevice8 *iface, D3DTRANSFORMSTATETYPE State, const D3DMATRIX *lpMatrix)
static HRESULT WINAPI IDirect3DDevice8Impl_GetTransform (IDirect3DDevice8 *iface, D3DTRANSFORMSTATETYPE State, D3DMATRIX *pMatrix)
static HRESULT WINAPI IDirect3DDevice8Impl_MultiplyTransform (IDirect3DDevice8 *iface, D3DTRANSFORMSTATETYPE State, const D3DMATRIX *pMatrix)
static HRESULT WINAPI IDirect3DDevice8Impl_SetViewport (IDirect3DDevice8 *iface, const D3DVIEWPORT8 *pViewport)
static HRESULT WINAPI IDirect3DDevice8Impl_GetViewport (IDirect3DDevice8 *iface, D3DVIEWPORT8 *pViewport)
static HRESULT WINAPI IDirect3DDevice8Impl_SetMaterial (IDirect3DDevice8 *iface, const D3DMATERIAL8 *pMaterial)
static HRESULT WINAPI IDirect3DDevice8Impl_GetMaterial (IDirect3DDevice8 *iface, D3DMATERIAL8 *pMaterial)
static HRESULT WINAPI IDirect3DDevice8Impl_SetLight (IDirect3DDevice8 *iface, DWORD Index, const D3DLIGHT8 *pLight)
static HRESULT WINAPI IDirect3DDevice8Impl_GetLight (IDirect3DDevice8 *iface, DWORD Index, D3DLIGHT8 *pLight)
static HRESULT WINAPI IDirect3DDevice8Impl_LightEnable (IDirect3DDevice8 *iface, DWORD Index, BOOL Enable)
static HRESULT WINAPI IDirect3DDevice8Impl_GetLightEnable (IDirect3DDevice8 *iface, DWORD Index, BOOL *pEnable)
static HRESULT WINAPI IDirect3DDevice8Impl_SetClipPlane (IDirect3DDevice8 *iface, DWORD Index, const float *pPlane)
static HRESULT WINAPI IDirect3DDevice8Impl_GetClipPlane (IDirect3DDevice8 *iface, DWORD Index, float *pPlane)
static HRESULT WINAPI IDirect3DDevice8Impl_SetRenderState (IDirect3DDevice8 *iface, D3DRENDERSTATETYPE State, DWORD Value)
static HRESULT WINAPI IDirect3DDevice8Impl_GetRenderState (IDirect3DDevice8 *iface, D3DRENDERSTATETYPE State, DWORD *pValue)
static HRESULT WINAPI IDirect3DDevice8Impl_BeginStateBlock (IDirect3DDevice8 *iface)
static HRESULT WINAPI IDirect3DDevice8Impl_EndStateBlock (IDirect3DDevice8 *iface, DWORD *pToken)
static HRESULT WINAPI IDirect3DDevice8Impl_ApplyStateBlock (IDirect3DDevice8 *iface, DWORD Token)
static HRESULT WINAPI IDirect3DDevice8Impl_CaptureStateBlock (IDirect3DDevice8 *iface, DWORD Token)
static HRESULT WINAPI IDirect3DDevice8Impl_DeleteStateBlock (IDirect3DDevice8 *iface, DWORD Token)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateStateBlock (IDirect3DDevice8 *iface, D3DSTATEBLOCKTYPE Type, DWORD *handle)
static HRESULT WINAPI IDirect3DDevice8Impl_SetClipStatus (IDirect3DDevice8 *iface, const D3DCLIPSTATUS8 *pClipStatus)
static HRESULT WINAPI IDirect3DDevice8Impl_GetClipStatus (IDirect3DDevice8 *iface, D3DCLIPSTATUS8 *pClipStatus)
static HRESULT WINAPI IDirect3DDevice8Impl_GetTexture (IDirect3DDevice8 *iface, DWORD Stage, IDirect3DBaseTexture8 **ppTexture)
static HRESULT WINAPI IDirect3DDevice8Impl_SetTexture (IDirect3DDevice8 *iface, DWORD Stage, IDirect3DBaseTexture8 *pTexture)
static HRESULT WINAPI IDirect3DDevice8Impl_GetTextureStageState (IDirect3DDevice8 *iface, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD *pValue)
static HRESULT WINAPI IDirect3DDevice8Impl_SetTextureStageState (IDirect3DDevice8 *iface, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value)
static HRESULT WINAPI IDirect3DDevice8Impl_ValidateDevice (IDirect3DDevice8 *iface, DWORD *pNumPasses)
static HRESULT WINAPI IDirect3DDevice8Impl_GetInfo (IDirect3DDevice8 *iface, DWORD info_id, void *info, DWORD info_size)
static HRESULT WINAPI IDirect3DDevice8Impl_SetPaletteEntries (IDirect3DDevice8 *iface, UINT PaletteNumber, const PALETTEENTRY *pEntries)
static HRESULT WINAPI IDirect3DDevice8Impl_GetPaletteEntries (IDirect3DDevice8 *iface, UINT PaletteNumber, PALETTEENTRY *pEntries)
static HRESULT WINAPI IDirect3DDevice8Impl_SetCurrentTexturePalette (IDirect3DDevice8 *iface, UINT PaletteNumber)
static HRESULT WINAPI IDirect3DDevice8Impl_GetCurrentTexturePalette (IDirect3DDevice8 *iface, UINT *PaletteNumber)
static HRESULT WINAPI IDirect3DDevice8Impl_DrawPrimitive (IDirect3DDevice8 *iface, D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount)
static HRESULT WINAPI IDirect3DDevice8Impl_DrawIndexedPrimitive (IDirect3DDevice8 *iface, D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
static HRESULT WINAPI IDirect3DDevice8Impl_DrawPrimitiveUP (IDirect3DDevice8 *iface, D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, const void *pVertexStreamZeroData, UINT VertexStreamZeroStride)
static HRESULT WINAPI IDirect3DDevice8Impl_DrawIndexedPrimitiveUP (IDirect3DDevice8 *iface, D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertexIndices, UINT PrimitiveCount, const void *pIndexData, D3DFORMAT IndexDataFormat, const void *pVertexStreamZeroData, UINT VertexStreamZeroStride)
static HRESULT WINAPI IDirect3DDevice8Impl_ProcessVertices (IDirect3DDevice8 *iface, UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer8 *pDestBuffer, DWORD Flags)
static HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexShader (IDirect3DDevice8 *iface, const DWORD *declaration, const DWORD *byte_code, DWORD *shader, DWORD usage)
static
IDirect3DVertexDeclaration8Impl
IDirect3DDevice8Impl_FindDecl (IDirect3DDevice8Impl *This, DWORD fvf)
static HRESULT WINAPI IDirect3DDevice8Impl_SetVertexShader (IDirect3DDevice8 *iface, DWORD pShader)
static HRESULT WINAPI IDirect3DDevice8Impl_GetVertexShader (IDirect3DDevice8 *iface, DWORD *ppShader)
static HRESULT WINAPI IDirect3DDevice8Impl_DeleteVertexShader (IDirect3DDevice8 *iface, DWORD pShader)
static HRESULT WINAPI IDirect3DDevice8Impl_SetVertexShaderConstant (IDirect3DDevice8 *iface, DWORD Register, const void *pConstantData, DWORD ConstantCount)
static HRESULT WINAPI IDirect3DDevice8Impl_GetVertexShaderConstant (IDirect3DDevice8 *iface, DWORD Register, void *pConstantData, DWORD ConstantCount)
static HRESULT WINAPI IDirect3DDevice8Impl_GetVertexShaderDeclaration (IDirect3DDevice8 *iface, DWORD pVertexShader, void *pData, DWORD *pSizeOfData)
static HRESULT WINAPI IDirect3DDevice8Impl_GetVertexShaderFunction (IDirect3DDevice8 *iface, DWORD pVertexShader, void *pData, DWORD *pSizeOfData)
static HRESULT WINAPI IDirect3DDevice8Impl_SetIndices (IDirect3DDevice8 *iface, IDirect3DIndexBuffer8 *pIndexData, UINT baseVertexIndex)
static HRESULT WINAPI IDirect3DDevice8Impl_GetIndices (IDirect3DDevice8 *iface, IDirect3DIndexBuffer8 **ppIndexData, UINT *pBaseVertexIndex)
static HRESULT WINAPI IDirect3DDevice8Impl_CreatePixelShader (IDirect3DDevice8 *iface, const DWORD *byte_code, DWORD *shader)
static HRESULT WINAPI IDirect3DDevice8Impl_SetPixelShader (IDirect3DDevice8 *iface, DWORD pShader)
static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShader (IDirect3DDevice8 *iface, DWORD *ppShader)
static HRESULT WINAPI IDirect3DDevice8Impl_DeletePixelShader (IDirect3DDevice8 *iface, DWORD pShader)
static HRESULT WINAPI IDirect3DDevice8Impl_SetPixelShaderConstant (IDirect3DDevice8 *iface, DWORD Register, const void *pConstantData, DWORD ConstantCount)
static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShaderConstant (IDirect3DDevice8 *iface, DWORD Register, void *pConstantData, DWORD ConstantCount)
static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShaderFunction (IDirect3DDevice8 *iface, DWORD pPixelShader, void *pData, DWORD *pSizeOfData)
static HRESULT WINAPI IDirect3DDevice8Impl_DrawRectPatch (IDirect3DDevice8 *iface, UINT Handle, const float *pNumSegs, const D3DRECTPATCH_INFO *pRectPatchInfo)
static HRESULT WINAPI IDirect3DDevice8Impl_DrawTriPatch (IDirect3DDevice8 *iface, UINT Handle, const float *pNumSegs, const D3DTRIPATCH_INFO *pTriPatchInfo)
static HRESULT WINAPI IDirect3DDevice8Impl_DeletePatch (IDirect3DDevice8 *iface, UINT Handle)
static HRESULT WINAPI IDirect3DDevice8Impl_SetStreamSource (IDirect3DDevice8 *iface, UINT StreamNumber, IDirect3DVertexBuffer8 *pStreamData, UINT Stride)
static HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource (IDirect3DDevice8 *iface, UINT StreamNumber, IDirect3DVertexBuffer8 **pStream, UINT *pStride)
static IDirect3DDevice8Impldevice_from_device_parent (struct wined3d_device_parent *device_parent)
static void CDECL device_parent_wined3d_device_created (struct wined3d_device_parent *device_parent, struct wined3d_device *device)
static void CDECL device_parent_mode_changed (struct wined3d_device_parent *device_parent)
static HRESULT CDECL device_parent_create_surface (struct wined3d_device_parent *device_parent, void *container_parent, UINT width, UINT height, enum wined3d_format_id format, DWORD usage, enum wined3d_pool pool, UINT level, enum wined3d_cubemap_face face, struct wined3d_surface **surface)
static HRESULT CDECL device_parent_create_rendertarget (struct wined3d_device_parent *device_parent, void *container_parent, UINT width, UINT height, enum wined3d_format_id format, enum wined3d_multisample_type multisample_type, DWORD multisample_quality, BOOL lockable, struct wined3d_surface **surface)
static HRESULT CDECL device_parent_create_depth_stencil (struct wined3d_device_parent *device_parent, UINT width, UINT height, enum wined3d_format_id format, enum wined3d_multisample_type multisample_type, DWORD multisample_quality, BOOL discard, struct wined3d_surface **surface)
static HRESULT CDECL device_parent_create_volume (struct wined3d_device_parent *device_parent, void *container_parent, UINT width, UINT height, UINT depth, enum wined3d_format_id format, enum wined3d_pool pool, DWORD usage, struct wined3d_volume **volume)
static HRESULT CDECL device_parent_create_swapchain (struct wined3d_device_parent *device_parent, struct wined3d_swapchain_desc *desc, struct wined3d_swapchain **swapchain)
static void setup_fpu (void)
HRESULT device_init (IDirect3DDevice8Impl *device, IDirect3D8Impl *parent, struct wined3d *wined3d, UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags, D3DPRESENT_PARAMETERS *parameters)

Variables

static struct tss_lookup tss_lookup []
static const IDirect3DDevice8Vtbl Direct3DDevice8_Vtbl
static struct
wined3d_device_parent_ops 
d3d8_wined3d_device_parent_ops

Generated on Fri May 25 2012 04:59:40 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.