mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 13:20:52 +00:00
Start adding D3D8 headers
This commit is contained in:
parent
fd14986368
commit
fb5744318a
@ -41,8 +41,10 @@
|
||||
#define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0
|
||||
#endif
|
||||
|
||||
#elif defined(_XBOX1)
|
||||
#elif defined(HAVE_D3D8)
|
||||
#ifdef _XBOX
|
||||
#include <xtl.h>
|
||||
#endif
|
||||
|
||||
/* Direct3D 8 */
|
||||
#define LPDIRECT3D LPDIRECT3D8
|
||||
@ -67,7 +69,7 @@
|
||||
|
||||
#if defined(_XBOX360)
|
||||
#define D3DFVF_CUSTOMVERTEX 0
|
||||
#elif defined(_XBOX1)
|
||||
#elif defined(HAVE_D3D8)
|
||||
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW | D3DFVF_TEX1)
|
||||
#endif
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
||||
#include "../drivers/d3d.h"
|
||||
#include "../common/d3d_common.h"
|
||||
|
||||
#include "../include/d3d8/d3dx8math.h"
|
||||
|
||||
#include "../video_driver.h"
|
||||
|
||||
#include "../../configuration.h"
|
||||
|
1279
gfx/include/d3d8/d3d8.h
Normal file
1279
gfx/include/d3d8/d3d8.h
Normal file
File diff suppressed because it is too large
Load Diff
44
gfx/include/d3d8/d3dx8.h
Normal file
44
gfx/include/d3d8/d3dx8.h
Normal file
@ -0,0 +1,44 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) Microsoft Corporation. All Rights Reserved.
|
||||
//
|
||||
// File: d3dx8.h
|
||||
// Content: D3DX utility library
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __D3DX8_H__
|
||||
#define __D3DX8_H__
|
||||
|
||||
#include "d3d8.h"
|
||||
#include <limits.h>
|
||||
|
||||
#ifndef D3DXINLINE
|
||||
#ifdef _MSC_VER
|
||||
#if (_MSC_VER >= 1200)
|
||||
#define D3DXINLINE __forceinline
|
||||
#else
|
||||
#define D3DXINLINE __inline
|
||||
#endif
|
||||
#else
|
||||
#ifdef __cplusplus
|
||||
#define D3DXINLINE inline
|
||||
#else
|
||||
#define D3DXINLINE
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#define D3DX_DEFAULT ULONG_MAX
|
||||
#define D3DX_DEFAULT_FLOAT FLT_MAX
|
||||
|
||||
#include "d3dx8math.h"
|
||||
#include "d3dx8core.h"
|
||||
#include "d3dx8tex.h"
|
||||
#include "d3dx8mesh.h"
|
||||
#include "d3dx8shape.h"
|
||||
#include "d3dx8effect.h"
|
||||
|
||||
|
||||
#endif //__D3DX8_H__
|
563
gfx/include/d3d8/d3dx8core.h
Normal file
563
gfx/include/d3d8/d3dx8core.h
Normal file
@ -0,0 +1,563 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) Microsoft Corporation. All Rights Reserved.
|
||||
//
|
||||
// File: d3dx8core.h
|
||||
// Content: D3DX core types and functions
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "d3dx8.h"
|
||||
|
||||
#ifndef __D3DX8CORE_H__
|
||||
#define __D3DX8CORE_H__
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// ID3DXBuffer:
|
||||
// ------------
|
||||
// The buffer object is used by D3DX to return arbitrary size data.
|
||||
//
|
||||
// GetBufferPointer -
|
||||
// Returns a pointer to the beginning of the buffer.
|
||||
//
|
||||
// GetBufferSize -
|
||||
// Returns the size of the buffer, in bytes.
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef interface ID3DXBuffer ID3DXBuffer;
|
||||
typedef interface ID3DXBuffer *LPD3DXBUFFER;
|
||||
|
||||
// {932E6A7E-C68E-45dd-A7BF-53D19C86DB1F}
|
||||
DEFINE_GUID(IID_ID3DXBuffer,
|
||||
0x932e6a7e, 0xc68e, 0x45dd, 0xa7, 0xbf, 0x53, 0xd1, 0x9c, 0x86, 0xdb, 0x1f);
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXBuffer
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXBuffer, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXBuffer
|
||||
STDMETHOD_(LPVOID, GetBufferPointer)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetBufferSize)(THIS) PURE;
|
||||
};
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// ID3DXFont:
|
||||
// ----------
|
||||
// Font objects contain the textures and resources needed to render
|
||||
// a specific font on a specific device.
|
||||
//
|
||||
// Begin -
|
||||
// Prepartes device for drawing text. This is optional.. if DrawText
|
||||
// is called outside of Begin/End, it will call Begin and End for you.
|
||||
//
|
||||
// DrawText -
|
||||
// Draws formatted text on a D3D device. Some parameters are
|
||||
// surprisingly similar to those of GDI's DrawText function. See GDI
|
||||
// documentation for a detailed description of these parameters.
|
||||
//
|
||||
// End -
|
||||
// Restores device state to how it was when Begin was called.
|
||||
//
|
||||
// OnLostDevice, OnResetDevice -
|
||||
// Call OnLostDevice() on this object before calling Reset() on the
|
||||
// device, so that this object can release any stateblocks and video
|
||||
// memory resources. After Reset(), the call OnResetDevice().
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef interface ID3DXFont ID3DXFont;
|
||||
typedef interface ID3DXFont *LPD3DXFONT;
|
||||
|
||||
|
||||
// {89FAD6A5-024D-49af-8FE7-F51123B85E25}
|
||||
DEFINE_GUID( IID_ID3DXFont,
|
||||
0x89fad6a5, 0x24d, 0x49af, 0x8f, 0xe7, 0xf5, 0x11, 0x23, 0xb8, 0x5e, 0x25);
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXFont
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXFont, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXFont
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(GetLogFont)(THIS_ LOGFONT* pLogFont) PURE;
|
||||
|
||||
STDMETHOD(Begin)(THIS) PURE;
|
||||
STDMETHOD_(INT, DrawTextA)(THIS_ LPCSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color) PURE;
|
||||
STDMETHOD_(INT, DrawTextW)(THIS_ LPCWSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color) PURE;
|
||||
STDMETHOD(End)(THIS) PURE;
|
||||
|
||||
STDMETHOD(OnLostDevice)(THIS) PURE;
|
||||
STDMETHOD(OnResetDevice)(THIS) PURE;
|
||||
};
|
||||
|
||||
#ifndef DrawText
|
||||
#ifdef UNICODE
|
||||
#define DrawText DrawTextW
|
||||
#else
|
||||
#define DrawText DrawTextA
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateFont(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
HFONT hFont,
|
||||
LPD3DXFONT* ppFont);
|
||||
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateFontIndirect(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
CONST LOGFONT* pLogFont,
|
||||
LPD3DXFONT* ppFont);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// ID3DXSprite:
|
||||
// ------------
|
||||
// This object intends to provide an easy way to drawing sprites using D3D.
|
||||
//
|
||||
// Begin -
|
||||
// Prepares device for drawing sprites
|
||||
//
|
||||
// Draw, DrawAffine, DrawTransform -
|
||||
// Draws a sprite in screen-space. Before transformation, the sprite is
|
||||
// the size of SrcRect, with its top-left corner at the origin (0,0).
|
||||
// The color and alpha channels are modulated by Color.
|
||||
//
|
||||
// End -
|
||||
// Restores device state to how it was when Begin was called.
|
||||
//
|
||||
// OnLostDevice, OnResetDevice -
|
||||
// Call OnLostDevice() on this object before calling Reset() on the
|
||||
// device, so that this object can release any stateblocks and video
|
||||
// memory resources. After Reset(), the call OnResetDevice().
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef interface ID3DXSprite ID3DXSprite;
|
||||
typedef interface ID3DXSprite *LPD3DXSPRITE;
|
||||
|
||||
|
||||
// {13D69D15-F9B0-4e0f-B39E-C91EB33F6CE7}
|
||||
DEFINE_GUID( IID_ID3DXSprite,
|
||||
0x13d69d15, 0xf9b0, 0x4e0f, 0xb3, 0x9e, 0xc9, 0x1e, 0xb3, 0x3f, 0x6c, 0xe7);
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXSprite
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXSprite, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXSprite
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
|
||||
STDMETHOD(Begin)(THIS) PURE;
|
||||
|
||||
STDMETHOD(Draw)(THIS_ LPDIRECT3DTEXTURE8 pSrcTexture,
|
||||
CONST RECT* pSrcRect, CONST D3DXVECTOR2* pScaling,
|
||||
CONST D3DXVECTOR2* pRotationCenter, FLOAT Rotation,
|
||||
CONST D3DXVECTOR2* pTranslation, D3DCOLOR Color) PURE;
|
||||
|
||||
STDMETHOD(DrawTransform)(THIS_ LPDIRECT3DTEXTURE8 pSrcTexture,
|
||||
CONST RECT* pSrcRect, CONST D3DXMATRIX* pTransform,
|
||||
D3DCOLOR Color) PURE;
|
||||
|
||||
STDMETHOD(End)(THIS) PURE;
|
||||
|
||||
STDMETHOD(OnLostDevice)(THIS) PURE;
|
||||
STDMETHOD(OnResetDevice)(THIS) PURE;
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateSprite(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
LPD3DXSPRITE* ppSprite);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// ID3DXRenderToSurface:
|
||||
// ---------------------
|
||||
// This object abstracts rendering to surfaces. These surfaces do not
|
||||
// necessarily need to be render targets. If they are not, a compatible
|
||||
// render target is used, and the result copied into surface at end scene.
|
||||
//
|
||||
// BeginScene, EndScene -
|
||||
// Call BeginScene() and EndScene() at the beginning and ending of your
|
||||
// scene. These calls will setup and restore render targets, viewports,
|
||||
// etc..
|
||||
//
|
||||
// OnLostDevice, OnResetDevice -
|
||||
// Call OnLostDevice() on this object before calling Reset() on the
|
||||
// device, so that this object can release any stateblocks and video
|
||||
// memory resources. After Reset(), the call OnResetDevice().
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef struct _D3DXRTS_DESC
|
||||
{
|
||||
UINT Width;
|
||||
UINT Height;
|
||||
D3DFORMAT Format;
|
||||
BOOL DepthStencil;
|
||||
D3DFORMAT DepthStencilFormat;
|
||||
|
||||
} D3DXRTS_DESC;
|
||||
|
||||
|
||||
typedef interface ID3DXRenderToSurface ID3DXRenderToSurface;
|
||||
typedef interface ID3DXRenderToSurface *LPD3DXRENDERTOSURFACE;
|
||||
|
||||
|
||||
// {82DF5B90-E34E-496e-AC1C-62117A6A5913}
|
||||
DEFINE_GUID( IID_ID3DXRenderToSurface,
|
||||
0x82df5b90, 0xe34e, 0x496e, 0xac, 0x1c, 0x62, 0x11, 0x7a, 0x6a, 0x59, 0x13);
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXRenderToSurface
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXRenderToSurface, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXRenderToSurface
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(GetDesc)(THIS_ D3DXRTS_DESC* pDesc) PURE;
|
||||
|
||||
STDMETHOD(BeginScene)(THIS_ LPDIRECT3DSURFACE8 pSurface, CONST D3DVIEWPORT8* pViewport) PURE;
|
||||
STDMETHOD(EndScene)(THIS) PURE;
|
||||
|
||||
STDMETHOD(OnLostDevice)(THIS) PURE;
|
||||
STDMETHOD(OnResetDevice)(THIS) PURE;
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateRenderToSurface(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
UINT Width,
|
||||
UINT Height,
|
||||
D3DFORMAT Format,
|
||||
BOOL DepthStencil,
|
||||
D3DFORMAT DepthStencilFormat,
|
||||
LPD3DXRENDERTOSURFACE* ppRenderToSurface);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// ID3DXRenderToEnvMap:
|
||||
// --------------------
|
||||
// This object abstracts rendering to environment maps. These surfaces
|
||||
// do not necessarily need to be render targets. If they are not, a
|
||||
// compatible render target is used, and the result copied into the
|
||||
// environment map at end scene.
|
||||
//
|
||||
// BeginCube, BeginSphere, BeginHemisphere, BeginParabolic -
|
||||
// This function initiates the rendering of the environment map. As
|
||||
// parameters, you pass the textures in which will get filled in with
|
||||
// the resulting environment map.
|
||||
//
|
||||
// Face -
|
||||
// Call this function to initiate the drawing of each face. For each
|
||||
// environment map, you will call this six times.. once for each face
|
||||
// in D3DCUBEMAP_FACES.
|
||||
//
|
||||
// End -
|
||||
// This will restore all render targets, and if needed compose all the
|
||||
// rendered faces into the environment map surfaces.
|
||||
//
|
||||
// OnLostDevice, OnResetDevice -
|
||||
// Call OnLostDevice() on this object before calling Reset() on the
|
||||
// device, so that this object can release any stateblocks and video
|
||||
// memory resources. After Reset(), the call OnResetDevice().
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef struct _D3DXRTE_DESC
|
||||
{
|
||||
UINT Size;
|
||||
D3DFORMAT Format;
|
||||
BOOL DepthStencil;
|
||||
D3DFORMAT DepthStencilFormat;
|
||||
} D3DXRTE_DESC;
|
||||
|
||||
|
||||
typedef interface ID3DXRenderToEnvMap ID3DXRenderToEnvMap;
|
||||
typedef interface ID3DXRenderToEnvMap *LPD3DXRenderToEnvMap;
|
||||
|
||||
// {4E42C623-9451-44b7-8C86-ABCCDE5D52C8}
|
||||
DEFINE_GUID( IID_ID3DXRenderToEnvMap,
|
||||
0x4e42c623, 0x9451, 0x44b7, 0x8c, 0x86, 0xab, 0xcc, 0xde, 0x5d, 0x52, 0xc8);
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXRenderToEnvMap
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXRenderToEnvMap, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXRenderToEnvMap
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(GetDesc)(THIS_ D3DXRTE_DESC* pDesc) PURE;
|
||||
|
||||
STDMETHOD(BeginCube)(THIS_
|
||||
LPDIRECT3DCUBETEXTURE8 pCubeTex) PURE;
|
||||
|
||||
STDMETHOD(BeginSphere)(THIS_
|
||||
LPDIRECT3DTEXTURE8 pTex) PURE;
|
||||
|
||||
STDMETHOD(BeginHemisphere)(THIS_
|
||||
LPDIRECT3DTEXTURE8 pTexZPos,
|
||||
LPDIRECT3DTEXTURE8 pTexZNeg) PURE;
|
||||
|
||||
STDMETHOD(BeginParabolic)(THIS_
|
||||
LPDIRECT3DTEXTURE8 pTexZPos,
|
||||
LPDIRECT3DTEXTURE8 pTexZNeg) PURE;
|
||||
|
||||
STDMETHOD(Face)(THIS_ D3DCUBEMAP_FACES Face) PURE;
|
||||
STDMETHOD(End)(THIS) PURE;
|
||||
|
||||
STDMETHOD(OnLostDevice)(THIS) PURE;
|
||||
STDMETHOD(OnResetDevice)(THIS) PURE;
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateRenderToEnvMap(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
UINT Size,
|
||||
D3DFORMAT Format,
|
||||
BOOL DepthStencil,
|
||||
D3DFORMAT DepthStencilFormat,
|
||||
LPD3DXRenderToEnvMap* ppRenderToEnvMap);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Shader assemblers:
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXASM flags:
|
||||
// --------------
|
||||
//
|
||||
// D3DXASM_DEBUG
|
||||
// Generate debug info.
|
||||
//
|
||||
// D3DXASM_SKIPVALIDATION
|
||||
// Do not validate the generated code against known capabilities and
|
||||
// constraints. This option is only recommended when assembling shaders
|
||||
// you KNOW will work. (ie. have assembled before without this option.)
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
#define D3DXASM_DEBUG (1 << 0)
|
||||
#define D3DXASM_SKIPVALIDATION (1 << 1)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXAssembleShader:
|
||||
// -------------------
|
||||
// Assembles an ascii description of a vertex or pixel shader into
|
||||
// binary form.
|
||||
//
|
||||
// Parameters:
|
||||
// pSrcFile
|
||||
// Source file name
|
||||
// hSrcModule
|
||||
// Module handle. if NULL, current module will be used.
|
||||
// pSrcResource
|
||||
// Resource name in module
|
||||
// pSrcData
|
||||
// Pointer to source code
|
||||
// SrcDataLen
|
||||
// Size of source code, in bytes
|
||||
// Flags
|
||||
// D3DXASM_xxx flags
|
||||
// ppConstants
|
||||
// Returns an ID3DXBuffer object containing constant declarations.
|
||||
// ppCompiledShader
|
||||
// Returns an ID3DXBuffer object containing the object code.
|
||||
// ppCompilationErrors
|
||||
// Returns an ID3DXBuffer object containing ascii error messages
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXAssembleShaderFromFileA(
|
||||
LPCSTR pSrcFile,
|
||||
DWORD Flags,
|
||||
LPD3DXBUFFER* ppConstants,
|
||||
LPD3DXBUFFER* ppCompiledShader,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXAssembleShaderFromFileW(
|
||||
LPCWSTR pSrcFile,
|
||||
DWORD Flags,
|
||||
LPD3DXBUFFER* ppConstants,
|
||||
LPD3DXBUFFER* ppCompiledShader,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
#ifdef UNICODE
|
||||
#define D3DXAssembleShaderFromFile D3DXAssembleShaderFromFileW
|
||||
#else
|
||||
#define D3DXAssembleShaderFromFile D3DXAssembleShaderFromFileA
|
||||
#endif
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXAssembleShaderFromResourceA(
|
||||
HMODULE hSrcModule,
|
||||
LPCSTR pSrcResource,
|
||||
DWORD Flags,
|
||||
LPD3DXBUFFER* ppConstants,
|
||||
LPD3DXBUFFER* ppCompiledShader,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXAssembleShaderFromResourceW(
|
||||
HMODULE hSrcModule,
|
||||
LPCWSTR pSrcResource,
|
||||
DWORD Flags,
|
||||
LPD3DXBUFFER* ppConstants,
|
||||
LPD3DXBUFFER* ppCompiledShader,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
#ifdef UNICODE
|
||||
#define D3DXAssembleShaderFromResource D3DXAssembleShaderFromResourceW
|
||||
#else
|
||||
#define D3DXAssembleShaderFromResource D3DXAssembleShaderFromResourceA
|
||||
#endif
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXAssembleShader(
|
||||
LPCVOID pSrcData,
|
||||
UINT SrcDataLen,
|
||||
DWORD Flags,
|
||||
LPD3DXBUFFER* ppConstants,
|
||||
LPD3DXBUFFER* ppCompiledShader,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Misc APIs:
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXGetErrorString:
|
||||
// ------------------
|
||||
// Returns the error string for given an hresult. Interprets all D3DX and
|
||||
// D3D hresults.
|
||||
//
|
||||
// Parameters:
|
||||
// hr
|
||||
// The error code to be deciphered.
|
||||
// pBuffer
|
||||
// Pointer to the buffer to be filled in.
|
||||
// BufferLen
|
||||
// Count of characters in buffer. Any error message longer than this
|
||||
// length will be truncated to fit.
|
||||
//-------------------------------------------------------------------------
|
||||
HRESULT WINAPI
|
||||
D3DXGetErrorStringA(
|
||||
HRESULT hr,
|
||||
LPSTR pBuffer,
|
||||
UINT BufferLen);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXGetErrorStringW(
|
||||
HRESULT hr,
|
||||
LPWSTR pBuffer,
|
||||
UINT BufferLen);
|
||||
|
||||
#ifdef UNICODE
|
||||
#define D3DXGetErrorString D3DXGetErrorStringW
|
||||
#else
|
||||
#define D3DXGetErrorString D3DXGetErrorStringA
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
#endif //__D3DX8CORE_H__
|
226
gfx/include/d3d8/d3dx8effect.h
Normal file
226
gfx/include/d3d8/d3dx8effect.h
Normal file
@ -0,0 +1,226 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) Microsoft Corporation. All Rights Reserved.
|
||||
//
|
||||
// File: d3dx8effect.h
|
||||
// Content: D3DX effect types and functions
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "d3dx8.h"
|
||||
|
||||
#ifndef __D3DX8EFFECT_H__
|
||||
#define __D3DX8EFFECT_H__
|
||||
|
||||
|
||||
#define D3DXFX_DONOTSAVESTATE (1 << 0)
|
||||
|
||||
|
||||
typedef enum _D3DXPARAMETERTYPE
|
||||
{
|
||||
D3DXPT_DWORD = 0,
|
||||
D3DXPT_FLOAT = 1,
|
||||
D3DXPT_VECTOR = 2,
|
||||
D3DXPT_MATRIX = 3,
|
||||
D3DXPT_TEXTURE = 4,
|
||||
D3DXPT_VERTEXSHADER = 5,
|
||||
D3DXPT_PIXELSHADER = 6,
|
||||
D3DXPT_CONSTANT = 7,
|
||||
D3DXPT_STRING = 8,
|
||||
D3DXPT_FORCE_DWORD = 0x7fffffff /* force 32-bit size enum */
|
||||
|
||||
} D3DXPARAMETERTYPE;
|
||||
|
||||
|
||||
typedef struct _D3DXEFFECT_DESC
|
||||
{
|
||||
UINT Parameters;
|
||||
UINT Techniques;
|
||||
|
||||
} D3DXEFFECT_DESC;
|
||||
|
||||
|
||||
typedef struct _D3DXPARAMETER_DESC
|
||||
{
|
||||
LPCSTR Name;
|
||||
LPCSTR Index;
|
||||
D3DXPARAMETERTYPE Type;
|
||||
|
||||
} D3DXPARAMETER_DESC;
|
||||
|
||||
|
||||
typedef struct _D3DXTECHNIQUE_DESC
|
||||
{
|
||||
LPCSTR Name;
|
||||
LPCSTR Index;
|
||||
UINT Passes;
|
||||
|
||||
} D3DXTECHNIQUE_DESC;
|
||||
|
||||
|
||||
typedef struct _D3DXPASS_DESC
|
||||
{
|
||||
LPCSTR Name;
|
||||
LPCSTR Index;
|
||||
|
||||
} D3DXPASS_DESC;
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// ID3DXEffect ///////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef interface ID3DXEffect ID3DXEffect;
|
||||
typedef interface ID3DXEffect *LPD3DXEFFECT;
|
||||
|
||||
// {648B1CEB-8D4E-4d66-B6FA-E44969E82E89}
|
||||
DEFINE_GUID( IID_ID3DXEffect,
|
||||
0x648b1ceb, 0x8d4e, 0x4d66, 0xb6, 0xfa, 0xe4, 0x49, 0x69, 0xe8, 0x2e, 0x89);
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXEffect
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXEffect, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXEffect
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(GetDesc)(THIS_ D3DXEFFECT_DESC* pDesc) PURE;
|
||||
STDMETHOD(GetParameterDesc)(THIS_ LPCSTR pParameter, D3DXPARAMETER_DESC* pDesc) PURE;
|
||||
STDMETHOD(GetTechniqueDesc)(THIS_ LPCSTR pTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE;
|
||||
STDMETHOD(GetPassDesc)(THIS_ LPCSTR pTechnique, LPCSTR pPass, D3DXPASS_DESC* pDesc) PURE;
|
||||
STDMETHOD(FindNextValidTechnique)(THIS_ LPCSTR pTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE;
|
||||
STDMETHOD(CloneEffect)(THIS_ LPDIRECT3DDEVICE8 pDevice, LPD3DXEFFECT* ppEffect) PURE;
|
||||
STDMETHOD(GetCompiledEffect)(THIS_ LPD3DXBUFFER* ppCompiledEffect) PURE;
|
||||
|
||||
STDMETHOD(SetTechnique)(THIS_ LPCSTR pTechnique) PURE;
|
||||
STDMETHOD(GetTechnique)(THIS_ LPCSTR* ppTechnique) PURE;
|
||||
|
||||
STDMETHOD(SetDword)(THIS_ LPCSTR pParameter, DWORD dw) PURE;
|
||||
STDMETHOD(GetDword)(THIS_ LPCSTR pParameter, DWORD* pdw) PURE;
|
||||
STDMETHOD(SetFloat)(THIS_ LPCSTR pParameter, FLOAT f) PURE;
|
||||
STDMETHOD(GetFloat)(THIS_ LPCSTR pParameter, FLOAT* pf) PURE;
|
||||
STDMETHOD(SetVector)(THIS_ LPCSTR pParameter, CONST D3DXVECTOR4* pVector) PURE;
|
||||
STDMETHOD(GetVector)(THIS_ LPCSTR pParameter, D3DXVECTOR4* pVector) PURE;
|
||||
STDMETHOD(SetMatrix)(THIS_ LPCSTR pParameter, CONST D3DXMATRIX* pMatrix) PURE;
|
||||
STDMETHOD(GetMatrix)(THIS_ LPCSTR pParameter, D3DXMATRIX* pMatrix) PURE;
|
||||
STDMETHOD(SetTexture)(THIS_ LPCSTR pParameter, LPDIRECT3DBASETEXTURE8 pTexture) PURE;
|
||||
STDMETHOD(GetTexture)(THIS_ LPCSTR pParameter, LPDIRECT3DBASETEXTURE8 *ppTexture) PURE;
|
||||
STDMETHOD(SetVertexShader)(THIS_ LPCSTR pParameter, DWORD Handle) PURE;
|
||||
STDMETHOD(GetVertexShader)(THIS_ LPCSTR pParameter, DWORD* pHandle) PURE;
|
||||
STDMETHOD(SetPixelShader)(THIS_ LPCSTR pParameter, DWORD Handle) PURE;
|
||||
STDMETHOD(GetPixelShader)(THIS_ LPCSTR pParameter, DWORD* pHandle) PURE;
|
||||
STDMETHOD(SetString)(THIS_ LPCSTR pParameter, LPCSTR pString) PURE;
|
||||
STDMETHOD(GetString)(THIS_ LPCSTR pParameter, LPCSTR* ppString) PURE;
|
||||
STDMETHOD_(BOOL, IsParameterUsed)(THIS_ LPCSTR pParameter) PURE;
|
||||
|
||||
STDMETHOD(Validate)(THIS) PURE;
|
||||
STDMETHOD(Begin)(THIS_ UINT *pPasses, DWORD Flags) PURE;
|
||||
STDMETHOD(Pass)(THIS_ UINT Pass) PURE;
|
||||
STDMETHOD(End)(THIS) PURE;
|
||||
STDMETHOD(OnLostDevice)(THIS) PURE;
|
||||
STDMETHOD(OnResetDevice)(THIS) PURE;
|
||||
};
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// APIs //////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// D3DXCreateEffect:
|
||||
// -----------------
|
||||
// Creates an effect from an ascii or binaray effect description.
|
||||
//
|
||||
// Parameters:
|
||||
// pDevice
|
||||
// Pointer of the device on which to create the effect
|
||||
// pSrcFile
|
||||
// Name of the file containing the effect description
|
||||
// hSrcModule
|
||||
// Module handle. if NULL, current module will be used.
|
||||
// pSrcResource
|
||||
// Resource name in module
|
||||
// pSrcData
|
||||
// Pointer to effect description
|
||||
// SrcDataSize
|
||||
// Size of the effect description in bytes
|
||||
// ppEffect
|
||||
// Returns a buffer containing created effect.
|
||||
// ppCompilationErrors
|
||||
// Returns a buffer containing any error messages which occurred during
|
||||
// compile. Or NULL if you do not care about the error messages.
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateEffectFromFileA(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
LPCSTR pSrcFile,
|
||||
LPD3DXEFFECT* ppEffect,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateEffectFromFileW(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
LPCWSTR pSrcFile,
|
||||
LPD3DXEFFECT* ppEffect,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
#ifdef UNICODE
|
||||
#define D3DXCreateEffectFromFile D3DXCreateEffectFromFileW
|
||||
#else
|
||||
#define D3DXCreateEffectFromFile D3DXCreateEffectFromFileA
|
||||
#endif
|
||||
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateEffectFromResourceA(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
HMODULE hSrcModule,
|
||||
LPCSTR pSrcResource,
|
||||
LPD3DXEFFECT* ppEffect,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateEffectFromResourceW(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
HMODULE hSrcModule,
|
||||
LPCWSTR pSrcResource,
|
||||
LPD3DXEFFECT* ppEffect,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
#ifdef UNICODE
|
||||
#define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceW
|
||||
#else
|
||||
#define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceA
|
||||
#endif
|
||||
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateEffect(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
LPCVOID pSrcData,
|
||||
UINT SrcDataSize,
|
||||
LPD3DXEFFECT* ppEffect,
|
||||
LPD3DXBUFFER* ppCompilationErrors);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
#endif //__D3DX8EFFECT_H__
|
1213
gfx/include/d3d8/d3dx8math.h
Normal file
1213
gfx/include/d3d8/d3dx8math.h
Normal file
File diff suppressed because it is too large
Load Diff
760
gfx/include/d3d8/d3dx8mesh.h
Normal file
760
gfx/include/d3d8/d3dx8mesh.h
Normal file
@ -0,0 +1,760 @@
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) Microsoft Corporation. All Rights Reserved.
|
||||
//
|
||||
// File: d3dx8mesh.h
|
||||
// Content: D3DX mesh types and functions
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "d3dx8.h"
|
||||
|
||||
#ifndef __D3DX8MESH_H__
|
||||
#define __D3DX8MESH_H__
|
||||
|
||||
#include "dxfile.h" // defines LPDIRECTXFILEDATA
|
||||
|
||||
// {2A835771-BF4D-43f4-8E14-82A809F17D8A}
|
||||
DEFINE_GUID(IID_ID3DXBaseMesh,
|
||||
0x2a835771, 0xbf4d, 0x43f4, 0x8e, 0x14, 0x82, 0xa8, 0x9, 0xf1, 0x7d, 0x8a);
|
||||
|
||||
// {CCAE5C3B-4DD1-4d0f-997E-4684CA64557F}
|
||||
DEFINE_GUID(IID_ID3DXMesh,
|
||||
0xccae5c3b, 0x4dd1, 0x4d0f, 0x99, 0x7e, 0x46, 0x84, 0xca, 0x64, 0x55, 0x7f);
|
||||
|
||||
// {19FBE386-C282-4659-97BD-CB869B084A6C}
|
||||
DEFINE_GUID(IID_ID3DXPMesh,
|
||||
0x19fbe386, 0xc282, 0x4659, 0x97, 0xbd, 0xcb, 0x86, 0x9b, 0x8, 0x4a, 0x6c);
|
||||
|
||||
// {4E3CA05C-D4FF-4d11-8A02-16459E08F6F4}
|
||||
DEFINE_GUID(IID_ID3DXSPMesh,
|
||||
0x4e3ca05c, 0xd4ff, 0x4d11, 0x8a, 0x2, 0x16, 0x45, 0x9e, 0x8, 0xf6, 0xf4);
|
||||
|
||||
// {8DB06ECC-EBFC-408a-9404-3074B4773515}
|
||||
DEFINE_GUID(IID_ID3DXSkinMesh,
|
||||
0x8db06ecc, 0xebfc, 0x408a, 0x94, 0x4, 0x30, 0x74, 0xb4, 0x77, 0x35, 0x15);
|
||||
|
||||
// Mesh options - lower 3 bytes only, upper byte used by _D3DXMESHOPT option flags
|
||||
enum _D3DXMESH {
|
||||
D3DXMESH_32BIT = 0x001, // If set, then use 32 bit indices, if not set use 16 bit indices.
|
||||
D3DXMESH_DONOTCLIP = 0x002, // Use D3DUSAGE_DONOTCLIP for VB & IB.
|
||||
D3DXMESH_POINTS = 0x004, // Use D3DUSAGE_POINTS for VB & IB.
|
||||
D3DXMESH_RTPATCHES = 0x008, // Use D3DUSAGE_RTPATCHES for VB & IB.
|
||||
D3DXMESH_NPATCHES = 0x4000,// Use D3DUSAGE_NPATCHES for VB & IB.
|
||||
D3DXMESH_VB_SYSTEMMEM = 0x010, // Use D3DPOOL_SYSTEMMEM for VB. Overrides D3DXMESH_MANAGEDVERTEXBUFFER
|
||||
D3DXMESH_VB_MANAGED = 0x020, // Use D3DPOOL_MANAGED for VB.
|
||||
D3DXMESH_VB_WRITEONLY = 0x040, // Use D3DUSAGE_WRITEONLY for VB.
|
||||
D3DXMESH_VB_DYNAMIC = 0x080, // Use D3DUSAGE_DYNAMIC for VB.
|
||||
D3DXMESH_VB_SOFTWAREPROCESSING = 0x8000, // Use D3DUSAGE_SOFTWAREPROCESSING for VB.
|
||||
D3DXMESH_IB_SYSTEMMEM = 0x100, // Use D3DPOOL_SYSTEMMEM for IB. Overrides D3DXMESH_MANAGEDINDEXBUFFER
|
||||
D3DXMESH_IB_MANAGED = 0x200, // Use D3DPOOL_MANAGED for IB.
|
||||
D3DXMESH_IB_WRITEONLY = 0x400, // Use D3DUSAGE_WRITEONLY for IB.
|
||||
D3DXMESH_IB_DYNAMIC = 0x800, // Use D3DUSAGE_DYNAMIC for IB.
|
||||
D3DXMESH_IB_SOFTWAREPROCESSING= 0x10000, // Use D3DUSAGE_SOFTWAREPROCESSING for IB.
|
||||
|
||||
D3DXMESH_VB_SHARE = 0x1000, // Valid for Clone* calls only, forces cloned mesh/pmesh to share vertex buffer
|
||||
|
||||
D3DXMESH_USEHWONLY = 0x2000, // Valid for ID3DXSkinMesh::ConvertToBlendedMesh
|
||||
|
||||
// Helper options
|
||||
D3DXMESH_SYSTEMMEM = 0x110, // D3DXMESH_VB_SYSTEMMEM | D3DXMESH_IB_SYSTEMMEM
|
||||
D3DXMESH_MANAGED = 0x220, // D3DXMESH_VB_MANAGED | D3DXMESH_IB_MANAGED
|
||||
D3DXMESH_WRITEONLY = 0x440, // D3DXMESH_VB_WRITEONLY | D3DXMESH_IB_WRITEONLY
|
||||
D3DXMESH_DYNAMIC = 0x880, // D3DXMESH_VB_DYNAMIC | D3DXMESH_IB_DYNAMIC
|
||||
D3DXMESH_SOFTWAREPROCESSING = 0x18000, // D3DXMESH_VB_SOFTWAREPROCESSING | D3DXMESH_IB_SOFTWAREPROCESSING
|
||||
|
||||
};
|
||||
|
||||
// option field values for specifying min value in D3DXGeneratePMesh and D3DXSimplifyMesh
|
||||
enum _D3DXMESHSIMP
|
||||
{
|
||||
D3DXMESHSIMP_VERTEX = 0x1,
|
||||
D3DXMESHSIMP_FACE = 0x2,
|
||||
|
||||
};
|
||||
|
||||
enum _MAX_FVF_DECL_SIZE
|
||||
{
|
||||
MAX_FVF_DECL_SIZE = 20
|
||||
};
|
||||
|
||||
typedef struct ID3DXBaseMesh *LPD3DXBASEMESH;
|
||||
typedef struct ID3DXMesh *LPD3DXMESH;
|
||||
typedef struct ID3DXPMesh *LPD3DXPMESH;
|
||||
typedef struct ID3DXSPMesh *LPD3DXSPMESH;
|
||||
typedef struct ID3DXSkinMesh *LPD3DXSKINMESH;
|
||||
|
||||
typedef struct _D3DXATTRIBUTERANGE
|
||||
{
|
||||
DWORD AttribId;
|
||||
DWORD FaceStart;
|
||||
DWORD FaceCount;
|
||||
DWORD VertexStart;
|
||||
DWORD VertexCount;
|
||||
} D3DXATTRIBUTERANGE;
|
||||
|
||||
typedef D3DXATTRIBUTERANGE* LPD3DXATTRIBUTERANGE;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
struct D3DXMATERIAL
|
||||
{
|
||||
D3DMATERIAL8 MatD3D;
|
||||
LPSTR pTextureFilename;
|
||||
};
|
||||
typedef struct D3DXMATERIAL *LPD3DXMATERIAL;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
typedef struct _D3DXATTRIBUTEWEIGHTS
|
||||
{
|
||||
FLOAT Position;
|
||||
FLOAT Boundary;
|
||||
FLOAT Normal;
|
||||
FLOAT Diffuse;
|
||||
FLOAT Specular;
|
||||
FLOAT Tex[8];
|
||||
} D3DXATTRIBUTEWEIGHTS;
|
||||
|
||||
typedef D3DXATTRIBUTEWEIGHTS* LPD3DXATTRIBUTEWEIGHTS;
|
||||
|
||||
enum _D3DXWELDEPSILONSFLAGS
|
||||
{
|
||||
D3DXWELDEPSILONS_WELDALL = 0x1, // weld all vertices marked by adjacency as being overlapping
|
||||
|
||||
D3DXWELDEPSILONS_WELDPARTIALMATCHES = 0x2, // if a given vertex component is within epsilon, modify partial matched
|
||||
// vertices so that both components identical AND if all components "equal"
|
||||
// remove one of the vertices
|
||||
D3DXWELDEPSILONS_DONOTREMOVEVERTICES = 0x4, // instructs weld to only allow modifications to vertices and not removal
|
||||
// ONLY valid if D3DXWELDEPSILONS_WELDPARTIALMATCHES is set
|
||||
// useful to modify vertices to be equal, but not allow vertices to be removed
|
||||
};
|
||||
|
||||
typedef struct _D3DXWELDEPSILONS
|
||||
{
|
||||
FLOAT SkinWeights;
|
||||
FLOAT Normal;
|
||||
FLOAT Tex[8];
|
||||
DWORD Flags;
|
||||
} D3DXWELDEPSILONS;
|
||||
|
||||
typedef D3DXWELDEPSILONS* LPD3DXWELDEPSILONS;
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXBaseMesh
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXBaseMesh, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXBaseMesh
|
||||
STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE;
|
||||
STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
|
||||
STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE;
|
||||
STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options,
|
||||
DWORD FVF, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(CloneMesh)(THIS_ DWORD Options,
|
||||
CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER8* ppVB) PURE;
|
||||
STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER8* ppIB) PURE;
|
||||
STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE;
|
||||
STDMETHOD(UnlockVertexBuffer)(THIS) PURE;
|
||||
STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE;
|
||||
STDMETHOD(UnlockIndexBuffer)(THIS) PURE;
|
||||
STDMETHOD(GetAttributeTable)(
|
||||
THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE;
|
||||
|
||||
STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE;
|
||||
STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE;
|
||||
STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE;
|
||||
};
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXMesh
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXMesh, ID3DXBaseMesh)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXBaseMesh
|
||||
STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE;
|
||||
STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
|
||||
STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE;
|
||||
STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options,
|
||||
DWORD FVF, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(CloneMesh)(THIS_ DWORD Options,
|
||||
CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER8* ppVB) PURE;
|
||||
STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER8* ppIB) PURE;
|
||||
STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE;
|
||||
STDMETHOD(UnlockVertexBuffer)(THIS) PURE;
|
||||
STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE;
|
||||
STDMETHOD(UnlockIndexBuffer)(THIS) PURE;
|
||||
STDMETHOD(GetAttributeTable)(
|
||||
THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE;
|
||||
|
||||
STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE;
|
||||
STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE;
|
||||
STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE;
|
||||
|
||||
// ID3DXMesh
|
||||
STDMETHOD(LockAttributeBuffer)(THIS_ DWORD Flags, DWORD** ppData) PURE;
|
||||
STDMETHOD(UnlockAttributeBuffer)(THIS) PURE;
|
||||
STDMETHOD(Optimize)(THIS_ DWORD Flags, CONST DWORD* pAdjacencyIn, DWORD* pAdjacencyOut,
|
||||
DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap,
|
||||
LPD3DXMESH* ppOptMesh) PURE;
|
||||
STDMETHOD(OptimizeInplace)(THIS_ DWORD Flags, CONST DWORD* pAdjacencyIn, DWORD* pAdjacencyOut,
|
||||
DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap) PURE;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXPMesh
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXPMesh, ID3DXBaseMesh)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXBaseMesh
|
||||
STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE;
|
||||
STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
|
||||
STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE;
|
||||
STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options,
|
||||
DWORD FVF, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(CloneMesh)(THIS_ DWORD Options,
|
||||
CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER8* ppVB) PURE;
|
||||
STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER8* ppIB) PURE;
|
||||
STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE;
|
||||
STDMETHOD(UnlockVertexBuffer)(THIS) PURE;
|
||||
STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE;
|
||||
STDMETHOD(UnlockIndexBuffer)(THIS) PURE;
|
||||
STDMETHOD(GetAttributeTable)(
|
||||
THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE;
|
||||
|
||||
STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE;
|
||||
STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE;
|
||||
STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE;
|
||||
|
||||
// ID3DXPMesh
|
||||
STDMETHOD(ClonePMeshFVF)(THIS_ DWORD Options,
|
||||
DWORD FVF, LPDIRECT3DDEVICE8 pD3D, LPD3DXPMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(ClonePMesh)(THIS_ DWORD Options,
|
||||
CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3D, LPD3DXPMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(SetNumFaces)(THIS_ DWORD Faces) PURE;
|
||||
STDMETHOD(SetNumVertices)(THIS_ DWORD Vertices) PURE;
|
||||
STDMETHOD_(DWORD, GetMaxFaces)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetMinFaces)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetMaxVertices)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetMinVertices)(THIS) PURE;
|
||||
STDMETHOD(Save)(THIS_ IStream *pStream, LPD3DXMATERIAL pMaterials, DWORD NumMaterials) PURE;
|
||||
|
||||
STDMETHOD(Optimize)(THIS_ DWORD Flags, DWORD* pAdjacencyOut,
|
||||
DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap,
|
||||
LPD3DXMESH* ppOptMesh) PURE;
|
||||
|
||||
STDMETHOD(OptimizeBaseLOD)(THIS_ DWORD Flags, DWORD* pFaceRemap) PURE;
|
||||
STDMETHOD(TrimByFaces)(THIS_ DWORD NewFacesMin, DWORD NewFacesMax, DWORD *rgiFaceRemap, DWORD *rgiVertRemap) PURE;
|
||||
STDMETHOD(TrimByVertices)(THIS_ DWORD NewVerticesMin, DWORD NewVerticesMax, DWORD *rgiFaceRemap, DWORD *rgiVertRemap) PURE;
|
||||
|
||||
STDMETHOD(GetAdjacency)(THIS_ DWORD* pAdjacency) PURE;
|
||||
};
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXSPMesh
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXSPMesh, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXSPMesh
|
||||
STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
|
||||
STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE;
|
||||
STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options,
|
||||
DWORD FVF, LPDIRECT3DDEVICE8 pD3D, DWORD *pAdjacencyOut, DWORD *pVertexRemapOut, LPD3DXMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(CloneMesh)(THIS_ DWORD Options,
|
||||
CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3DDevice, DWORD *pAdjacencyOut, DWORD *pVertexRemapOut, LPD3DXMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(ClonePMeshFVF)(THIS_ DWORD Options,
|
||||
DWORD FVF, LPDIRECT3DDEVICE8 pD3D, DWORD *pVertexRemapOut, LPD3DXPMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(ClonePMesh)(THIS_ DWORD Options,
|
||||
CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3D, DWORD *pVertexRemapOut, LPD3DXPMESH* ppCloneMesh) PURE;
|
||||
STDMETHOD(ReduceFaces)(THIS_ DWORD Faces) PURE;
|
||||
STDMETHOD(ReduceVertices)(THIS_ DWORD Vertices) PURE;
|
||||
STDMETHOD_(DWORD, GetMaxFaces)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetMaxVertices)(THIS) PURE;
|
||||
STDMETHOD(GetVertexAttributeWeights)(THIS_ LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights) PURE;
|
||||
STDMETHOD(GetVertexWeights)(THIS_ FLOAT *pVertexWeights) PURE;
|
||||
};
|
||||
|
||||
#define UNUSED16 (0xffff)
|
||||
#define UNUSED32 (0xffffffff)
|
||||
|
||||
// ID3DXMesh::Optimize options - upper byte only, lower 3 bytes used from _D3DXMESH option flags
|
||||
enum _D3DXMESHOPT {
|
||||
D3DXMESHOPT_COMPACT = 0x01000000,
|
||||
D3DXMESHOPT_ATTRSORT = 0x02000000,
|
||||
D3DXMESHOPT_VERTEXCACHE = 0x04000000,
|
||||
D3DXMESHOPT_STRIPREORDER = 0x08000000,
|
||||
D3DXMESHOPT_IGNOREVERTS = 0x10000000, // optimize faces only, don't touch vertices
|
||||
D3DXMESHOPT_SHAREVB = 0x1000, // same as D3DXMESH_VB_SHARE
|
||||
};
|
||||
|
||||
// Subset of the mesh that has the same attribute and bone combination.
|
||||
// This subset can be rendered in a single draw call
|
||||
typedef struct _D3DXBONECOMBINATION
|
||||
{
|
||||
DWORD AttribId;
|
||||
DWORD FaceStart;
|
||||
DWORD FaceCount;
|
||||
DWORD VertexStart;
|
||||
DWORD VertexCount;
|
||||
DWORD* BoneId;
|
||||
} D3DXBONECOMBINATION, *LPD3DXBONECOMBINATION;
|
||||
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXSkinMesh
|
||||
|
||||
DECLARE_INTERFACE_(ID3DXSkinMesh, IUnknown)
|
||||
{
|
||||
// IUnknown
|
||||
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
||||
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
||||
|
||||
// ID3DXMesh
|
||||
STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
|
||||
STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
|
||||
STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE;
|
||||
STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
|
||||
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE;
|
||||
STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER8* ppVB) PURE;
|
||||
STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER8* ppIB) PURE;
|
||||
STDMETHOD(LockVertexBuffer)(THIS_ DWORD flags, BYTE** ppData) PURE;
|
||||
STDMETHOD(UnlockVertexBuffer)(THIS) PURE;
|
||||
STDMETHOD(LockIndexBuffer)(THIS_ DWORD flags, BYTE** ppData) PURE;
|
||||
STDMETHOD(UnlockIndexBuffer)(THIS) PURE;
|
||||
STDMETHOD(LockAttributeBuffer)(THIS_ DWORD flags, DWORD** ppData) PURE;
|
||||
STDMETHOD(UnlockAttributeBuffer)(THIS) PURE;
|
||||
// ID3DXSkinMesh
|
||||
STDMETHOD_(DWORD, GetNumBones)(THIS) PURE;
|
||||
STDMETHOD(GetOriginalMesh)(THIS_ LPD3DXMESH* ppMesh) PURE;
|
||||
STDMETHOD(SetBoneInfluence)(THIS_ DWORD bone, DWORD numInfluences, CONST DWORD* vertices, CONST FLOAT* weights) PURE;
|
||||
STDMETHOD_(DWORD, GetNumBoneInfluences)(THIS_ DWORD bone) PURE;
|
||||
STDMETHOD(GetBoneInfluence)(THIS_ DWORD bone, DWORD* vertices, FLOAT* weights) PURE;
|
||||
STDMETHOD(GetMaxVertexInfluences)(THIS_ DWORD* maxVertexInfluences) PURE;
|
||||
STDMETHOD(GetMaxFaceInfluences)(THIS_ DWORD* maxFaceInfluences) PURE;
|
||||
|
||||
STDMETHOD(ConvertToBlendedMesh)(THIS_ DWORD Options,
|
||||
CONST LPDWORD pAdjacencyIn,
|
||||
LPDWORD pAdjacencyOut,
|
||||
DWORD* pNumBoneCombinations,
|
||||
LPD3DXBUFFER* ppBoneCombinationTable,
|
||||
DWORD* pFaceRemap,
|
||||
LPD3DXBUFFER *ppVertexRemap,
|
||||
LPD3DXMESH* ppMesh) PURE;
|
||||
|
||||
STDMETHOD(ConvertToIndexedBlendedMesh)(THIS_ DWORD Options,
|
||||
CONST LPDWORD pAdjacencyIn,
|
||||
DWORD paletteSize,
|
||||
LPDWORD pAdjacencyOut,
|
||||
DWORD* pNumBoneCombinations,
|
||||
LPD3DXBUFFER* ppBoneCombinationTable,
|
||||
DWORD* pFaceRemap,
|
||||
LPD3DXBUFFER *ppVertexRemap,
|
||||
LPD3DXMESH* ppMesh) PURE;
|
||||
|
||||
STDMETHOD(GenerateSkinnedMesh)(THIS_ DWORD Options,
|
||||
FLOAT minWeight,
|
||||
CONST LPDWORD pAdjacencyIn,
|
||||
LPDWORD pAdjacencyOut,
|
||||
DWORD* pFaceRemap,
|
||||
LPD3DXBUFFER *ppVertexRemap,
|
||||
LPD3DXMESH* ppMesh) PURE;
|
||||
STDMETHOD(UpdateSkinnedMesh)(THIS_ CONST D3DXMATRIX* pBoneTransforms, CONST D3DXMATRIX* pBoneInvTransforms, LPD3DXMESH pMesh) PURE;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateMesh(
|
||||
DWORD NumFaces,
|
||||
DWORD NumVertices,
|
||||
DWORD Options,
|
||||
CONST DWORD *pDeclaration,
|
||||
LPDIRECT3DDEVICE8 pD3D,
|
||||
LPD3DXMESH* ppMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateMeshFVF(
|
||||
DWORD NumFaces,
|
||||
DWORD NumVertices,
|
||||
DWORD Options,
|
||||
DWORD FVF,
|
||||
LPDIRECT3DDEVICE8 pD3D,
|
||||
LPD3DXMESH* ppMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateSPMesh(
|
||||
LPD3DXMESH pMesh,
|
||||
CONST DWORD* pAdjacency,
|
||||
CONST LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights,
|
||||
CONST FLOAT *pVertexWeights,
|
||||
LPD3DXSPMESH* ppSMesh);
|
||||
|
||||
// clean a mesh up for simplification, try to make manifold
|
||||
HRESULT WINAPI
|
||||
D3DXCleanMesh(
|
||||
LPD3DXMESH pMeshIn,
|
||||
CONST DWORD* pAdjacencyIn,
|
||||
LPD3DXMESH* ppMeshOut,
|
||||
DWORD* pAdjacencyOut,
|
||||
LPD3DXBUFFER* ppErrorsAndWarnings);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXValidMesh(
|
||||
LPD3DXMESH pMeshIn,
|
||||
CONST DWORD* pAdjacency,
|
||||
LPD3DXBUFFER* ppErrorsAndWarnings);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXGeneratePMesh(
|
||||
LPD3DXMESH pMesh,
|
||||
CONST DWORD* pAdjacency,
|
||||
CONST LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights,
|
||||
CONST FLOAT *pVertexWeights,
|
||||
DWORD MinValue,
|
||||
DWORD Options,
|
||||
LPD3DXPMESH* ppPMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXSimplifyMesh(
|
||||
LPD3DXMESH pMesh,
|
||||
CONST DWORD* pAdjacency,
|
||||
CONST LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights,
|
||||
CONST FLOAT *pVertexWeights,
|
||||
DWORD MinValue,
|
||||
DWORD Options,
|
||||
LPD3DXMESH* ppMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXComputeBoundingSphere(
|
||||
PVOID pPointsFVF,
|
||||
DWORD NumVertices,
|
||||
DWORD FVF,
|
||||
D3DXVECTOR3 *pCenter,
|
||||
FLOAT *pRadius);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXComputeBoundingBox(
|
||||
PVOID pPointsFVF,
|
||||
DWORD NumVertices,
|
||||
DWORD FVF,
|
||||
D3DXVECTOR3 *pMin,
|
||||
D3DXVECTOR3 *pMax);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXComputeNormals(
|
||||
LPD3DXBASEMESH pMesh,
|
||||
CONST DWORD *pAdjacency);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateBuffer(
|
||||
DWORD NumBytes,
|
||||
LPD3DXBUFFER *ppBuffer);
|
||||
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXLoadMeshFromX(
|
||||
LPSTR pFilename,
|
||||
DWORD Options,
|
||||
LPDIRECT3DDEVICE8 pD3D,
|
||||
LPD3DXBUFFER *ppAdjacency,
|
||||
LPD3DXBUFFER *ppMaterials,
|
||||
DWORD *pNumMaterials,
|
||||
LPD3DXMESH *ppMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXLoadMeshFromXInMemory(
|
||||
PBYTE Memory,
|
||||
DWORD SizeOfMemory,
|
||||
DWORD Options,
|
||||
LPDIRECT3DDEVICE8 pD3D,
|
||||
LPD3DXBUFFER *ppAdjacency,
|
||||
LPD3DXBUFFER *ppMaterials,
|
||||
DWORD *pNumMaterials,
|
||||
LPD3DXMESH *ppMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXLoadMeshFromXResource(
|
||||
HMODULE Module,
|
||||
LPCTSTR Name,
|
||||
LPCTSTR Type,
|
||||
DWORD Options,
|
||||
LPDIRECT3DDEVICE8 pD3D,
|
||||
LPD3DXBUFFER *ppAdjacency,
|
||||
LPD3DXBUFFER *ppMaterials,
|
||||
DWORD *pNumMaterials,
|
||||
LPD3DXMESH *ppMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXSaveMeshToX(
|
||||
LPSTR pFilename,
|
||||
LPD3DXMESH pMesh,
|
||||
CONST DWORD* pAdjacency,
|
||||
CONST LPD3DXMATERIAL pMaterials,
|
||||
DWORD NumMaterials,
|
||||
DWORD Format
|
||||
);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreatePMeshFromStream(
|
||||
IStream *pStream,
|
||||
DWORD Options,
|
||||
LPDIRECT3DDEVICE8 pD3DDevice,
|
||||
LPD3DXBUFFER *ppMaterials,
|
||||
DWORD* pNumMaterials,
|
||||
LPD3DXPMESH *ppPMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateSkinMesh(
|
||||
DWORD NumFaces,
|
||||
DWORD NumVertices,
|
||||
DWORD NumBones,
|
||||
DWORD Options,
|
||||
CONST DWORD *pDeclaration,
|
||||
LPDIRECT3DDEVICE8 pD3D,
|
||||
LPD3DXSKINMESH* ppSkinMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateSkinMeshFVF(
|
||||
DWORD NumFaces,
|
||||
DWORD NumVertices,
|
||||
DWORD NumBones,
|
||||
DWORD Options,
|
||||
DWORD FVF,
|
||||
LPDIRECT3DDEVICE8 pD3D,
|
||||
LPD3DXSKINMESH* ppSkinMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateSkinMeshFromMesh(
|
||||
LPD3DXMESH pMesh,
|
||||
DWORD numBones,
|
||||
LPD3DXSKINMESH* ppSkinMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXLoadMeshFromXof(
|
||||
LPDIRECTXFILEDATA pXofObjMesh,
|
||||
DWORD Options,
|
||||
LPDIRECT3DDEVICE8 pD3DDevice,
|
||||
LPD3DXBUFFER *ppAdjacency,
|
||||
LPD3DXBUFFER *ppMaterials,
|
||||
DWORD *pNumMaterials,
|
||||
LPD3DXMESH *ppMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXLoadSkinMeshFromXof(
|
||||
LPDIRECTXFILEDATA pxofobjMesh,
|
||||
DWORD Options,
|
||||
LPDIRECT3DDEVICE8 pD3D,
|
||||
LPD3DXBUFFER* ppAdjacency,
|
||||
LPD3DXBUFFER* ppMaterials,
|
||||
DWORD *pMatOut,
|
||||
LPD3DXBUFFER* ppBoneNames,
|
||||
LPD3DXBUFFER* ppBoneTransforms,
|
||||
LPD3DXSKINMESH* ppMesh);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXTessellateNPatches(
|
||||
LPD3DXMESH pMeshIn,
|
||||
CONST DWORD* pAdjacencyIn,
|
||||
FLOAT NumSegs,
|
||||
BOOL QuadraticInterpNormals, // if false use linear intrep for normals, if true use quadratic
|
||||
LPD3DXMESH *ppMeshOut,
|
||||
LPD3DXBUFFER *ppAdjacencyOut);
|
||||
|
||||
UINT WINAPI
|
||||
D3DXGetFVFVertexSize(DWORD FVF);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXDeclaratorFromFVF(
|
||||
DWORD FVF,
|
||||
DWORD Declaration[MAX_FVF_DECL_SIZE]);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXFVFFromDeclarator(
|
||||
CONST DWORD *pDeclarator,
|
||||
DWORD *pFVF);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXWeldVertices(
|
||||
CONST LPD3DXMESH pMesh,
|
||||
LPD3DXWELDEPSILONS pEpsilons,
|
||||
CONST DWORD *pAdjacencyIn,
|
||||
DWORD *pAdjacencyOut,
|
||||
DWORD* pFaceRemap,
|
||||
LPD3DXBUFFER *ppVertexRemap);
|
||||
|
||||
typedef struct _D3DXINTERSECTINFO
|
||||
{
|
||||
DWORD FaceIndex; // index of face intersected
|
||||
FLOAT U; // Barycentric Hit Coordinates
|
||||
FLOAT V; // Barycentric Hit Coordinates
|
||||
FLOAT Dist; // Ray-Intersection Parameter Distance
|
||||
} D3DXINTERSECTINFO, *LPD3DXINTERSECTINFO;
|
||||
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXIntersect(
|
||||
LPD3DXBASEMESH pMesh,
|
||||
CONST D3DXVECTOR3 *pRayPos,
|
||||
CONST D3DXVECTOR3 *pRayDir,
|
||||
BOOL *pHit, // True if any faces were intersected
|
||||
DWORD *pFaceIndex, // index of closest face intersected
|
||||
FLOAT *pU, // Barycentric Hit Coordinates
|
||||
FLOAT *pV, // Barycentric Hit Coordinates
|
||||
FLOAT *pDist, // Ray-Intersection Parameter Distance
|
||||
LPD3DXBUFFER *ppAllHits, // Array of D3DXINTERSECTINFOs for all hits (not just closest)
|
||||
DWORD *pCountOfHits); // Number of entries in AllHits array
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXIntersectSubset(
|
||||
LPD3DXBASEMESH pMesh,
|
||||
DWORD AttribId,
|
||||
CONST D3DXVECTOR3 *pRayPos,
|
||||
CONST D3DXVECTOR3 *pRayDir,
|
||||
BOOL *pHit, // True if any faces were intersected
|
||||
DWORD *pFaceIndex, // index of closest face intersected
|
||||
FLOAT *pU, // Barycentric Hit Coordinates
|
||||
FLOAT *pV, // Barycentric Hit Coordinates
|
||||
FLOAT *pDist, // Ray-Intersection Parameter Distance
|
||||
LPD3DXBUFFER *ppAllHits, // Array of D3DXINTERSECTINFOs for all hits (not just closest)
|
||||
DWORD *pCountOfHits); // Number of entries in AllHits array
|
||||
|
||||
|
||||
HRESULT WINAPI D3DXSplitMesh
|
||||
(
|
||||
CONST LPD3DXMESH pMeshIn,
|
||||
CONST DWORD *pAdjacencyIn,
|
||||
CONST DWORD MaxSize,
|
||||
CONST DWORD Options,
|
||||
DWORD *pMeshesOut,
|
||||
LPD3DXBUFFER *ppMeshArrayOut,
|
||||
LPD3DXBUFFER *ppAdjacencyArrayOut,
|
||||
LPD3DXBUFFER *ppFaceRemapArrayOut,
|
||||
LPD3DXBUFFER *ppVertRemapArrayOut
|
||||
);
|
||||
|
||||
BOOL D3DXIntersectTri
|
||||
(
|
||||
CONST D3DXVECTOR3 *p0, // Triangle vertex 0 position
|
||||
CONST D3DXVECTOR3 *p1, // Triangle vertex 1 position
|
||||
CONST D3DXVECTOR3 *p2, // Triangle vertex 2 position
|
||||
CONST D3DXVECTOR3 *pRayPos, // Ray origin
|
||||
CONST D3DXVECTOR3 *pRayDir, // Ray direction
|
||||
FLOAT *pU, // Barycentric Hit Coordinates
|
||||
FLOAT *pV, // Barycentric Hit Coordinates
|
||||
FLOAT *pDist); // Ray-Intersection Parameter Distance
|
||||
|
||||
BOOL WINAPI
|
||||
D3DXSphereBoundProbe(
|
||||
CONST D3DXVECTOR3 *pCenter,
|
||||
FLOAT Radius,
|
||||
CONST D3DXVECTOR3 *pRayPosition,
|
||||
CONST D3DXVECTOR3 *pRayDirection);
|
||||
|
||||
BOOL WINAPI
|
||||
D3DXBoxBoundProbe(
|
||||
CONST D3DXVECTOR3 *pMin,
|
||||
CONST D3DXVECTOR3 *pMax,
|
||||
CONST D3DXVECTOR3 *pRayPosition,
|
||||
CONST D3DXVECTOR3 *pRayDirection);
|
||||
|
||||
enum _D3DXERR {
|
||||
D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900),
|
||||
D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901),
|
||||
D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902),
|
||||
D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903),
|
||||
D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904),
|
||||
D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905),
|
||||
D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906),
|
||||
};
|
||||
|
||||
|
||||
#define D3DX_COMP_TANGENT_NONE 0xFFFFFFFF
|
||||
|
||||
HRESULT WINAPI D3DXComputeTangent(LPD3DXMESH InMesh,
|
||||
DWORD TexStage,
|
||||
LPD3DXMESH OutMesh,
|
||||
DWORD TexStageUVec,
|
||||
DWORD TexStageVVec,
|
||||
DWORD Wrap,
|
||||
DWORD *Adjacency);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXConvertMeshSubsetToSingleStrip
|
||||
(
|
||||
LPD3DXBASEMESH MeshIn,
|
||||
DWORD AttribId,
|
||||
DWORD IBOptions,
|
||||
LPDIRECT3DINDEXBUFFER8 *ppIndexBuffer,
|
||||
DWORD *pNumIndices
|
||||
);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXConvertMeshSubsetToStrips
|
||||
(
|
||||
LPD3DXBASEMESH MeshIn,
|
||||
DWORD AttribId,
|
||||
DWORD IBOptions,
|
||||
LPDIRECT3DINDEXBUFFER8 *ppIndexBuffer,
|
||||
DWORD *pNumIndices,
|
||||
LPD3DXBUFFER *ppStripLengths,
|
||||
DWORD *pNumStrips
|
||||
);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
#endif //__D3DX8MESH_H__
|
||||
|
||||
|
220
gfx/include/d3d8/d3dx8shape.h
Normal file
220
gfx/include/d3d8/d3dx8shape.h
Normal file
@ -0,0 +1,220 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) Microsoft Corporation. All Rights Reserved.
|
||||
//
|
||||
// File: d3dx8shapes.h
|
||||
// Content: D3DX simple shapes
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "d3dx8.h"
|
||||
|
||||
#ifndef __D3DX8SHAPES_H__
|
||||
#define __D3DX8SHAPES_H__
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Functions:
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif //__cplusplus
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXCreatePolygon:
|
||||
// ------------------
|
||||
// Creates a mesh containing an n-sided polygon. The polygon is centered
|
||||
// at the origin.
|
||||
//
|
||||
// Parameters:
|
||||
//
|
||||
// pDevice The D3D device with which the mesh is going to be used.
|
||||
// Length Length of each side.
|
||||
// Sides Number of sides the polygon has. (Must be >= 3)
|
||||
// ppMesh The mesh object which will be created
|
||||
// ppAdjacency Returns a buffer containing adjacency info. Can be NULL.
|
||||
//-------------------------------------------------------------------------
|
||||
HRESULT WINAPI
|
||||
D3DXCreatePolygon(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
FLOAT Length,
|
||||
UINT Sides,
|
||||
LPD3DXMESH* ppMesh,
|
||||
LPD3DXBUFFER* ppAdjacency);
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXCreateBox:
|
||||
// --------------
|
||||
// Creates a mesh containing an axis-aligned box. The box is centered at
|
||||
// the origin.
|
||||
//
|
||||
// Parameters:
|
||||
//
|
||||
// pDevice The D3D device with which the mesh is going to be used.
|
||||
// Width Width of box (along X-axis)
|
||||
// Height Height of box (along Y-axis)
|
||||
// Depth Depth of box (along Z-axis)
|
||||
// ppMesh The mesh object which will be created
|
||||
// ppAdjacency Returns a buffer containing adjacency info. Can be NULL.
|
||||
//-------------------------------------------------------------------------
|
||||
HRESULT WINAPI
|
||||
D3DXCreateBox(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
FLOAT Width,
|
||||
FLOAT Height,
|
||||
FLOAT Depth,
|
||||
LPD3DXMESH* ppMesh,
|
||||
LPD3DXBUFFER* ppAdjacency);
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXCreateCylinder:
|
||||
// -------------------
|
||||
// Creates a mesh containing a cylinder. The generated cylinder is
|
||||
// centered at the origin, and its axis is aligned with the Z-axis.
|
||||
//
|
||||
// Parameters:
|
||||
//
|
||||
// pDevice The D3D device with which the mesh is going to be used.
|
||||
// Radius1 Radius at -Z end (should be >= 0.0f)
|
||||
// Radius2 Radius at +Z end (should be >= 0.0f)
|
||||
// Length Length of cylinder (along Z-axis)
|
||||
// Slices Number of slices about the main axis
|
||||
// Stacks Number of stacks along the main axis
|
||||
// ppMesh The mesh object which will be created
|
||||
// ppAdjacency Returns a buffer containing adjacency info. Can be NULL.
|
||||
//-------------------------------------------------------------------------
|
||||
HRESULT WINAPI
|
||||
D3DXCreateCylinder(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
FLOAT Radius1,
|
||||
FLOAT Radius2,
|
||||
FLOAT Length,
|
||||
UINT Slices,
|
||||
UINT Stacks,
|
||||
LPD3DXMESH* ppMesh,
|
||||
LPD3DXBUFFER* ppAdjacency);
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXCreateSphere:
|
||||
// -----------------
|
||||
// Creates a mesh containing a sphere. The sphere is centered at the
|
||||
// origin.
|
||||
//
|
||||
// Parameters:
|
||||
//
|
||||
// pDevice The D3D device with which the mesh is going to be used.
|
||||
// Radius Radius of the sphere (should be >= 0.0f)
|
||||
// Slices Number of slices about the main axis
|
||||
// Stacks Number of stacks along the main axis
|
||||
// ppMesh The mesh object which will be created
|
||||
// ppAdjacency Returns a buffer containing adjacency info. Can be NULL.
|
||||
//-------------------------------------------------------------------------
|
||||
HRESULT WINAPI
|
||||
D3DXCreateSphere(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
FLOAT Radius,
|
||||
UINT Slices,
|
||||
UINT Stacks,
|
||||
LPD3DXMESH* ppMesh,
|
||||
LPD3DXBUFFER* ppAdjacency);
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXCreateTorus:
|
||||
// ----------------
|
||||
// Creates a mesh containing a torus. The generated torus is centered at
|
||||
// the origin, and its axis is aligned with the Z-axis.
|
||||
//
|
||||
// Parameters:
|
||||
//
|
||||
// pDevice The D3D device with which the mesh is going to be used.
|
||||
// InnerRadius Inner radius of the torus (should be >= 0.0f)
|
||||
// OuterRadius Outer radius of the torue (should be >= 0.0f)
|
||||
// Sides Number of sides in a cross-section (must be >= 3)
|
||||
// Rings Number of rings making up the torus (must be >= 3)
|
||||
// ppMesh The mesh object which will be created
|
||||
// ppAdjacency Returns a buffer containing adjacency info. Can be NULL.
|
||||
//-------------------------------------------------------------------------
|
||||
HRESULT WINAPI
|
||||
D3DXCreateTorus(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
FLOAT InnerRadius,
|
||||
FLOAT OuterRadius,
|
||||
UINT Sides,
|
||||
UINT Rings,
|
||||
LPD3DXMESH* ppMesh,
|
||||
LPD3DXBUFFER* ppAdjacency);
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXCreateTeapot:
|
||||
// -----------------
|
||||
// Creates a mesh containing a teapot.
|
||||
//
|
||||
// Parameters:
|
||||
//
|
||||
// pDevice The D3D device with which the mesh is going to be used.
|
||||
// ppMesh The mesh object which will be created
|
||||
// ppAdjacency Returns a buffer containing adjacency info. Can be NULL.
|
||||
//-------------------------------------------------------------------------
|
||||
HRESULT WINAPI
|
||||
D3DXCreateTeapot(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
LPD3DXMESH* ppMesh,
|
||||
LPD3DXBUFFER* ppAdjacency);
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// D3DXCreateText:
|
||||
// ---------------
|
||||
// Creates a mesh containing the specified text using the font associated
|
||||
// with the device context.
|
||||
//
|
||||
// Parameters:
|
||||
//
|
||||
// pDevice The D3D device with which the mesh is going to be used.
|
||||
// hDC Device context, with desired font selected
|
||||
// pText Text to generate
|
||||
// Deviation Maximum chordal deviation from true font outlines
|
||||
// Extrusion Amount to extrude text in -Z direction
|
||||
// ppMesh The mesh object which will be created
|
||||
// pGlyphMetrics Address of buffer to receive glyph metric data (or NULL)
|
||||
//-------------------------------------------------------------------------
|
||||
HRESULT WINAPI
|
||||
D3DXCreateTextA(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
HDC hDC,
|
||||
LPCSTR pText,
|
||||
FLOAT Deviation,
|
||||
FLOAT Extrusion,
|
||||
LPD3DXMESH* ppMesh,
|
||||
LPD3DXBUFFER* ppAdjacency,
|
||||
LPGLYPHMETRICSFLOAT pGlyphMetrics);
|
||||
|
||||
HRESULT WINAPI
|
||||
D3DXCreateTextW(
|
||||
LPDIRECT3DDEVICE8 pDevice,
|
||||
HDC hDC,
|
||||
LPCWSTR pText,
|
||||
FLOAT Deviation,
|
||||
FLOAT Extrusion,
|
||||
LPD3DXMESH* ppMesh,
|
||||
LPD3DXBUFFER* ppAdjacency,
|
||||
LPGLYPHMETRICSFLOAT pGlyphMetrics);
|
||||
|
||||
#ifdef UNICODE
|
||||
#define D3DXCreateText D3DXCreateTextW
|
||||
#else
|
||||
#define D3DXCreateText D3DXCreateTextA
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //__cplusplus
|
||||
|
||||
#endif //__D3DX8SHAPES_H__
|
1592
gfx/include/d3d8/d3dx8tex.h
Normal file
1592
gfx/include/d3d8/d3dx8tex.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user