ReactOS 0.4.17-dev-934-g091855f
d3dx10mesh.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 Nikolay Sivov for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#include "d3dx10.h"
20
21DEFINE_GUID(IID_ID3DX10Mesh, 0x4020e5c2, 0x1403, 0x4929, 0x88, 0x3f, 0xe2, 0xe8, 0x49, 0xfa, 0xc1, 0x95);
22DEFINE_GUID(IID_ID3DX10MeshBuffer, 0x4b0d117, 0x1041, 0x46b1, 0xaa, 0x8a, 0x39, 0x52, 0x84, 0x8b, 0xa2, 0x2e);
23
25{
32
34{
42
43#define INTERFACE ID3DX10MeshBuffer
44DECLARE_INTERFACE_(ID3DX10MeshBuffer, IUnknown)
45{
46 /*** IUnknown methods ***/
50 /*** ID3DX10MeshBuffer methods ***/
51 STDMETHOD(Map)(THIS_ void **data, SIZE_T *size) PURE;
52 STDMETHOD(Unmap)(THIS) PURE;
54};
55#undef INTERFACE
56
57#define INTERFACE ID3DX10Mesh
59{
60 /*** IUnknown methods ***/
64 /*** ID3DX10Mesh methods ***/
65 STDMETHOD_(UINT, GetFaceCount)(THIS) PURE;
66 STDMETHOD_(UINT, GetVertexCount)(THIS) PURE;
67 STDMETHOD_(UINT, GetVertexBufferCount)(THIS) PURE;
68 STDMETHOD_(UINT, GetFlags)(THIS) PURE;
69 STDMETHOD(GetVertexDescription)(THIS_ const D3D10_INPUT_ELEMENT_DESC **desc, UINT *count) PURE;
70 STDMETHOD(SetVertexData)(THIS_ UINT index, const void *data) PURE;
71 STDMETHOD(GetVertexBuffer)(THIS_ UINT index, ID3DX10MeshBuffer **buffer) PURE;
72 STDMETHOD(SetIndexData)(THIS_ const void *data, UINT count) PURE;
73 STDMETHOD(GetIndexBuffer)(THIS_ ID3DX10MeshBuffer **buffer) PURE;
74 STDMETHOD(SetAttributeData)(THIS_ const UINT *data) PURE;
75 STDMETHOD(GetAttributeBuffer)(THIS_ ID3DX10MeshBuffer **buffer) PURE;
76 STDMETHOD(SetAttributeTable)(THIS_ const D3DX10_ATTRIBUTE_RANGE *table, UINT size) PURE;
78 STDMETHOD(GenerateAdjacencyAndPointReps)(THIS_ float epsilon) PURE;
79 STDMETHOD(GenerateGSAdjacency)(THIS) PURE;
80 STDMETHOD(SetAdjacencyData)(THIS_ const UINT *adjacency) PURE;
81 STDMETHOD(GetAdjacenctBuffer)(THIS_ ID3DX10MeshBuffer **buffer) PURE;
82 STDMETHOD(SetPointRepData)(THIS_ const UINT *pointreps) PURE;
83 STDMETHOD(GetPointRepBuffer)(THIS_ ID3DX10MeshBuffer **buffer) PURE;
85 STDMETHOD(CloneMesh)(THIS_ UINT flags, const char *pos_semantic, const D3D10_INPUT_ELEMENT_DESC *desc,
86 UINT decl_count, ID3DX10Mesh **cloned_mesh);
87 STDMETHOD(Optimize)(THIS_ UINT flags, UINT *face_remap, ID3D10Blob **vertex_remap) PURE;
88 STDMETHOD(GenerateAttributeBufferFromTable)(THIS) PURE;
89 STDMETHOD(Intersect)(THIS_ D3DXVECTOR3 *ray_pos, D3DXVECTOR3 *ray_dir, UINT *hit_count, UINT *face_index,
90 float *u, float *v, float *dist, ID3D10Blob **all_hits) PURE;
91 STDMETHOD(IntersectSubset)(THIS_ UINT attr_id, D3DXVECTOR3 *ray_pos, D3DXVECTOR3 *ray_dir, UINT *hit_count,
92 float *u, float *v, float *dist, ID3D10Blob **all_hits) PURE;
93 STDMETHOD(CommitToDevice)(THIS) PURE;
94 STDMETHOD(DrawSubset)(THIS_ UINT attr_id) PURE;
95 STDMETHOD(DrawSubsetInstanced)(THIS_ UINT attr_id, UINT instance_count, UINT start_instance) PURE;
96 STDMETHOD(GetDeviceVertexBuffer)(THIS_ UINT index, ID3D10Buffer **buffer) PURE;
97 STDMETHOD(GetDeviceIndexBuffer)(THIS_ ID3D10Buffer **buffer) PURE;
98};
99#undef INTERFACE
#define index(s, c)
Definition: various.h:29
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
DWORD WINAPI GetSize(LPVOID)
_D3DX10_MESH_DISCARD_FLAGS
Definition: d3dx10mesh.h:25
@ D3DX10_MESH_DISCARD_DEVICE_BUFFERS
Definition: d3dx10mesh.h:30
@ D3DX10_MESH_DISCARD_POINTREPS
Definition: d3dx10mesh.h:28
@ D3DX10_MESH_DISCARD_ATTRIBUTE_TABLE
Definition: d3dx10mesh.h:27
@ D3DX10_MESH_DISCARD_ADJACENCY
Definition: d3dx10mesh.h:29
@ D3DX10_MESH_DISCARD_ATTRIBUTE_BUFFER
Definition: d3dx10mesh.h:26
enum _D3DX10_MESH_DISCARD_FLAGS D3DX10_MESH_DISCARD_FLAGS
struct _D3DX10_ATTRIBUTE_RANGE D3DX10_ATTRIBUTE_RANGE
D3DX10_ATTRIBUTE_RANGE * LPD3DX10_ATTRIBUTE_RANGE
Definition: d3dx10mesh.h:41
_Check_return_ _In_ PQUERY_INTERFACE QueryInterface
Definition: dispmprt.h:1318
const GLdouble * v
Definition: gl.h:2040
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint buffer
Definition: glext.h:5915
GLsizeiptr size
Definition: glext.h:5919
GLbitfield flags
Definition: glext.h:7161
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
Definition: glfuncs.h:240
unsigned int UINT
Definition: sysinfo.c:13
D3D11_SHADER_VARIABLE_DESC desc
Definition: reflection.c:1683
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:83
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
ULONG_PTR SIZE_T
Definition: typedefs.h:80
uint32_t ULONG
Definition: typedefs.h:59
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383