ReactOS 0.4.17-dev-934-g091855f
mesh.c File Reference
#include "d3dx10.h"
#include "wine/debug.h"
Include dependency graph for mesh.c:

Go to the source code of this file.

Classes

struct  d3dx10_mesh
 

Macros

#define COBJMACROS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (d3dx)
 
static struct d3dx10_mesh * impl_from_ID3DX10Mesh (ID3DX10Mesh *iface)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_QueryInterface (ID3DX10Mesh *iface, REFIID riid, void **out)
 
static ULONG STDMETHODCALLTYPE d3dx10_mesh_AddRef (ID3DX10Mesh *iface)
 
static ULONG STDMETHODCALLTYPE d3dx10_mesh_Release (ID3DX10Mesh *iface)
 
static UINT STDMETHODCALLTYPE d3dx10_mesh_GetFaceCount (ID3DX10Mesh *iface)
 
static UINT STDMETHODCALLTYPE d3dx10_mesh_GetVertexCount (ID3DX10Mesh *iface)
 
static UINT STDMETHODCALLTYPE d3dx10_mesh_GetVertexBufferCount (ID3DX10Mesh *iface)
 
static UINT STDMETHODCALLTYPE d3dx10_mesh_GetFlags (ID3DX10Mesh *iface)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetVertexDescription (ID3DX10Mesh *iface, const D3D10_INPUT_ELEMENT_DESC **desc, UINT *count)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetVertexData (ID3DX10Mesh *iface, UINT index, const void *data)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetVertexBuffer (ID3DX10Mesh *iface, UINT index, ID3DX10MeshBuffer **buffer)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetIndexData (ID3DX10Mesh *iface, const void *data, UINT count)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetIndexBuffer (ID3DX10Mesh *iface, ID3DX10MeshBuffer **buffer)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetAttributeData (ID3DX10Mesh *iface, const UINT *data)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetAttributeBuffer (ID3DX10Mesh *iface, ID3DX10MeshBuffer **buffer)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetAttributeTable (ID3DX10Mesh *iface, const D3DX10_ATTRIBUTE_RANGE *table, UINT count)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetAttributeTable (ID3DX10Mesh *iface, D3DX10_ATTRIBUTE_RANGE *table, UINT *count)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GenerateAdjacencyAndPointReps (ID3DX10Mesh *iface, float epsilon)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GenerateGSAdjacency (ID3DX10Mesh *iface)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetAdjacencyData (ID3DX10Mesh *iface, const UINT *adjacency)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetAdjacencyBuffer (ID3DX10Mesh *iface, ID3DX10MeshBuffer **buffer)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetPointRepData (ID3DX10Mesh *iface, const UINT *pointreps)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetPointRepBuffer (ID3DX10Mesh *iface, ID3DX10MeshBuffer **buffer)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_Discard (ID3DX10Mesh *iface, D3DX10_MESH_DISCARD_FLAGS flags)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_CloneMesh (ID3DX10Mesh *iface, UINT flags, const char *pos_semantic, const D3D10_INPUT_ELEMENT_DESC *desc, UINT decl_count, ID3DX10Mesh **cloned_mesh)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_Optimize (ID3DX10Mesh *iface, UINT flags, UINT *face_remap, ID3D10Blob **vertex_remap)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GenerateAttributeBufferFromTable (ID3DX10Mesh *iface)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_Intersect (ID3DX10Mesh *iface, D3DXVECTOR3 *ray_pos, D3DXVECTOR3 *ray_dir, UINT *hit_count, UINT *face_index, float *u, float *v, float *dist, ID3D10Blob **all_hits)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_IntersectSubset (ID3DX10Mesh *iface, UINT attr_id, D3DXVECTOR3 *ray_pos, D3DXVECTOR3 *ray_dir, UINT *hit_count, float *u, float *v, float *dist, ID3D10Blob **all_hits)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_CommitToDevice (ID3DX10Mesh *iface)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_DrawSubset (ID3DX10Mesh *iface, UINT attr_id)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_DrawSubsetInstanced (ID3DX10Mesh *iface, UINT attr_id, UINT instance_count, UINT start_instance)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetDeviceVertexBuffer (ID3DX10Mesh *iface, UINT index, ID3D10Buffer **buffer)
 
static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetDeviceIndexBuffer (ID3DX10Mesh *iface, ID3D10Buffer **buffer)
 
HRESULT WINAPI D3DX10CreateMesh (ID3D10Device *device, const D3D10_INPUT_ELEMENT_DESC *decl, UINT decl_count, const char *position_semantic, UINT vertex_count, UINT face_count, UINT options, ID3DX10Mesh **mesh)
 

Variables

static const ID3DX10MeshVtbl d3dx10_mesh_vtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 20 of file mesh.c.

Function Documentation

◆ d3dx10_mesh_AddRef()

static ULONG STDMETHODCALLTYPE d3dx10_mesh_AddRef ( ID3DX10Mesh *  iface)
static

Definition at line 56 of file mesh.c.

57{
58 struct d3dx10_mesh *mesh = impl_from_ID3DX10Mesh(iface);
60
61 TRACE("%p increasing refcount to %lu.\n", iface, refcount);
62
63 return refcount;
64}
#define InterlockedIncrement
Definition: armddk.h:53
static struct d3dx10_mesh * impl_from_ID3DX10Mesh(ID3DX10Mesh *iface)
Definition: mesh.c:33
#define TRACE(s)
Definition: solgame.cpp:4
LONG refcount
Definition: mesh.c:30
Definition: mesh.c:189
uint32_t ULONG
Definition: typedefs.h:59

◆ d3dx10_mesh_CloneMesh()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_CloneMesh ( ID3DX10Mesh *  iface,
UINT  flags,
const char *  pos_semantic,
const D3D10_INPUT_ELEMENT_DESC *  desc,
UINT  decl_count,
ID3DX10Mesh **  cloned_mesh 
)
static

Definition at line 234 of file mesh.c.

237{
238 FIXME("iface %p, flags %#x, pos_semantic %s, desc %p, decl_count %u, cloned_mesh %p stub!\n",
239 iface, flags, debugstr_a(pos_semantic), desc, decl_count, cloned_mesh);
240
241 return E_NOTIMPL;
242}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99
GLbitfield flags
Definition: glext.h:7161
#define debugstr_a
Definition: kernel32.h:31
D3D11_SHADER_VARIABLE_DESC desc
Definition: reflection.c:1683

◆ d3dx10_mesh_CommitToDevice()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_CommitToDevice ( ID3DX10Mesh *  iface)
static

Definition at line 280 of file mesh.c.

281{
282 FIXME("iface %p stub!\n", iface);
283
284 return E_NOTIMPL;
285}

◆ d3dx10_mesh_Discard()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_Discard ( ID3DX10Mesh *  iface,
D3DX10_MESH_DISCARD_FLAGS  flags 
)
static

Definition at line 226 of file mesh.c.

228{
229 FIXME("iface %p, flags %#x stub!\n", iface, flags);
230
231 return E_NOTIMPL;
232}

◆ d3dx10_mesh_DrawSubset()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_DrawSubset ( ID3DX10Mesh *  iface,
UINT  attr_id 
)
static

Definition at line 287 of file mesh.c.

288{
289 FIXME("iface %p, attr_id %u stub!\n", iface, attr_id);
290
291 return E_NOTIMPL;
292}

◆ d3dx10_mesh_DrawSubsetInstanced()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_DrawSubsetInstanced ( ID3DX10Mesh *  iface,
UINT  attr_id,
UINT  instance_count,
UINT  start_instance 
)
static

Definition at line 294 of file mesh.c.

296{
297 FIXME("iface %p, attr_id %u, instance_count %u, start_instance %u stub!\n", iface, attr_id,
298 instance_count, start_instance);
299
300 return E_NOTIMPL;
301}

◆ d3dx10_mesh_GenerateAdjacencyAndPointReps()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GenerateAdjacencyAndPointReps ( ID3DX10Mesh *  iface,
float  epsilon 
)
static

Definition at line 179 of file mesh.c.

181{
182 FIXME("iface %p, epsilon %.8e stub!\n", iface, epsilon);
183
184 return E_NOTIMPL;
185}

◆ d3dx10_mesh_GenerateAttributeBufferFromTable()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GenerateAttributeBufferFromTable ( ID3DX10Mesh *  iface)
static

Definition at line 253 of file mesh.c.

254{
255 FIXME("iface %p stub!\n", iface);
256
257 return E_NOTIMPL;
258}

◆ d3dx10_mesh_GenerateGSAdjacency()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GenerateGSAdjacency ( ID3DX10Mesh *  iface)
static

Definition at line 187 of file mesh.c.

188{
189 FIXME("iface %p stub!\n", iface);
190
191 return E_NOTIMPL;
192}

◆ d3dx10_mesh_GetAdjacencyBuffer()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetAdjacencyBuffer ( ID3DX10Mesh *  iface,
ID3DX10MeshBuffer **  buffer 
)
static

Definition at line 202 of file mesh.c.

204{
205 FIXME("iface %p, buffer %p stub!\n", iface, buffer);
206
207 return E_NOTIMPL;
208}
GLuint buffer
Definition: glext.h:5915

◆ d3dx10_mesh_GetAttributeBuffer()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetAttributeBuffer ( ID3DX10Mesh *  iface,
ID3DX10MeshBuffer **  buffer 
)
static

Definition at line 155 of file mesh.c.

157{
158 FIXME("iface %p, buffer %p stub!\n", iface, buffer);
159
160 return E_NOTIMPL;
161}

◆ d3dx10_mesh_GetAttributeTable()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetAttributeTable ( ID3DX10Mesh *  iface,
D3DX10_ATTRIBUTE_RANGE *  table,
UINT *  count 
)
static

Definition at line 171 of file mesh.c.

173{
174 FIXME("iface %p, table %p, count %p stub!\n", iface, table, count);
175
176 return E_NOTIMPL;
177}
GLuint GLuint GLsizei count
Definition: gl.h:1545

◆ d3dx10_mesh_GetDeviceIndexBuffer()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetDeviceIndexBuffer ( ID3DX10Mesh *  iface,
ID3D10Buffer **  buffer 
)
static

Definition at line 311 of file mesh.c.

313{
314 FIXME("iface %p, buffer %p stub!\n", iface, buffer);
315
316 return E_NOTIMPL;
317}

◆ d3dx10_mesh_GetDeviceVertexBuffer()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetDeviceVertexBuffer ( ID3DX10Mesh *  iface,
UINT  index,
ID3D10Buffer **  buffer 
)
static

Definition at line 303 of file mesh.c.

305{
306 FIXME("iface %p, index %u, buffer %p stub!\n", iface, index, buffer);
307
308 return E_NOTIMPL;
309}
GLuint index
Definition: glext.h:6031

◆ d3dx10_mesh_GetFaceCount()

static UINT STDMETHODCALLTYPE d3dx10_mesh_GetFaceCount ( ID3DX10Mesh *  iface)
static

Definition at line 79 of file mesh.c.

80{
81 FIXME("iface %p stub!\n", iface);
82
83 return 0;
84}

◆ d3dx10_mesh_GetFlags()

static UINT STDMETHODCALLTYPE d3dx10_mesh_GetFlags ( ID3DX10Mesh *  iface)
static

Definition at line 100 of file mesh.c.

101{
102 FIXME("iface %p stub!\n", iface);
103
104 return 0;
105}

◆ d3dx10_mesh_GetIndexBuffer()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetIndexBuffer ( ID3DX10Mesh *  iface,
ID3DX10MeshBuffer **  buffer 
)
static

Definition at line 139 of file mesh.c.

141{
142 FIXME("iface %p, buffer %p stub!\n", iface, buffer);
143
144 return E_NOTIMPL;
145}

◆ d3dx10_mesh_GetPointRepBuffer()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetPointRepBuffer ( ID3DX10Mesh *  iface,
ID3DX10MeshBuffer **  buffer 
)
static

Definition at line 218 of file mesh.c.

220{
221 FIXME("iface %p, buffer %p stub!\n", iface, buffer);
222
223 return E_NOTIMPL;
224}

◆ d3dx10_mesh_GetVertexBuffer()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetVertexBuffer ( ID3DX10Mesh *  iface,
UINT  index,
ID3DX10MeshBuffer **  buffer 
)
static

Definition at line 123 of file mesh.c.

125{
126 FIXME("iface %p, index %u, buffer %p stub!\n", iface, index, buffer);
127
128 return E_NOTIMPL;
129}

◆ d3dx10_mesh_GetVertexBufferCount()

static UINT STDMETHODCALLTYPE d3dx10_mesh_GetVertexBufferCount ( ID3DX10Mesh *  iface)
static

Definition at line 93 of file mesh.c.

94{
95 FIXME("iface %p stub!\n", iface);
96
97 return 0;
98}

◆ d3dx10_mesh_GetVertexCount()

static UINT STDMETHODCALLTYPE d3dx10_mesh_GetVertexCount ( ID3DX10Mesh *  iface)
static

Definition at line 86 of file mesh.c.

87{
88 FIXME("iface %p stub!\n", iface);
89
90 return 0;
91}

◆ d3dx10_mesh_GetVertexDescription()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_GetVertexDescription ( ID3DX10Mesh *  iface,
const D3D10_INPUT_ELEMENT_DESC **  desc,
UINT *  count 
)
static

Definition at line 107 of file mesh.c.

109{
110 FIXME("iface %p, desc %p, count %p stub!\n", iface, desc, count);
111
112 return E_NOTIMPL;
113}

◆ d3dx10_mesh_Intersect()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_Intersect ( ID3DX10Mesh *  iface,
D3DXVECTOR3 *  ray_pos,
D3DXVECTOR3 *  ray_dir,
UINT *  hit_count,
UINT *  face_index,
float *  u,
float *  v,
float *  dist,
ID3D10Blob **  all_hits 
)
static

Definition at line 260 of file mesh.c.

263{
264 FIXME("iface %p, ray_pos %p, ray_dir %p, hit_count %p, u %p, v %p, dist %p, all_hits %p stub!\n",
265 iface, ray_pos, ray_dir, hit_count, u, v, dist, all_hits);
266
267 return E_NOTIMPL;
268}
const GLdouble * v
Definition: gl.h:2040
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

◆ d3dx10_mesh_IntersectSubset()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_IntersectSubset ( ID3DX10Mesh *  iface,
UINT  attr_id,
D3DXVECTOR3 *  ray_pos,
D3DXVECTOR3 *  ray_dir,
UINT *  hit_count,
float *  u,
float *  v,
float *  dist,
ID3D10Blob **  all_hits 
)
static

Definition at line 270 of file mesh.c.

273{
274 FIXME("iface %p, attr_id %u, ray_pos %p, ray_dir %p, hit_count %p, u %p, v %p, dist %p, all_hits %p stub!\n",
275 iface, attr_id, ray_pos, ray_dir, hit_count, u, v, dist, all_hits);
276
277 return E_NOTIMPL;
278}

◆ d3dx10_mesh_Optimize()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_Optimize ( ID3DX10Mesh *  iface,
UINT  flags,
UINT *  face_remap,
ID3D10Blob **  vertex_remap 
)
static

Definition at line 244 of file mesh.c.

246{
247 FIXME("iface %p, flags %#x, face_remap %p, vertex_remap %p stub!\n", iface, flags,
248 face_remap, vertex_remap);
249
250 return E_NOTIMPL;
251}

◆ d3dx10_mesh_QueryInterface()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_QueryInterface ( ID3DX10Mesh *  iface,
REFIID  riid,
void **  out 
)
static

Definition at line 38 of file mesh.c.

39{
40 TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out);
41
42 if (IsEqualGUID(riid, &IID_ID3DX10Mesh)
44 {
45 IUnknown_AddRef(iface);
46 *out = iface;
47 return S_OK;
48 }
49
50 WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
51
52 *out = NULL;
53 return E_NOINTERFACE;
54}
#define WARN(fmt,...)
Definition: precomp.h:61
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
REFIID riid
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define debugstr_guid
Definition: kernel32.h:35
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383
#define E_NOINTERFACE
Definition: winerror.h:3479

◆ d3dx10_mesh_Release()

static ULONG STDMETHODCALLTYPE d3dx10_mesh_Release ( ID3DX10Mesh *  iface)
static

Definition at line 66 of file mesh.c.

67{
68 struct d3dx10_mesh *mesh = impl_from_ID3DX10Mesh(iface);
70
71 TRACE("%p decreasing refcount to %lu.\n", iface, refcount);
72
73 if (!refcount)
74 free(mesh);
75
76 return refcount;
77}
#define InterlockedDecrement
Definition: armddk.h:52
#define free
Definition: debug_ros.c:5

◆ d3dx10_mesh_SetAdjacencyData()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetAdjacencyData ( ID3DX10Mesh *  iface,
const UINT *  adjacency 
)
static

Definition at line 194 of file mesh.c.

196{
197 FIXME("iface %p, adjacency %p stub!\n", iface, adjacency);
198
199 return E_NOTIMPL;
200}

◆ d3dx10_mesh_SetAttributeData()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetAttributeData ( ID3DX10Mesh *  iface,
const UINT *  data 
)
static

Definition at line 147 of file mesh.c.

149{
150 FIXME("iface %p, data %p stub!\n", iface, data);
151
152 return E_NOTIMPL;
153}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

◆ d3dx10_mesh_SetAttributeTable()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetAttributeTable ( ID3DX10Mesh *  iface,
const D3DX10_ATTRIBUTE_RANGE *  table,
UINT  count 
)
static

Definition at line 163 of file mesh.c.

165{
166 FIXME("iface %p, table %p, count %u stub!\n", iface, table, count);
167
168 return E_NOTIMPL;
169}

◆ d3dx10_mesh_SetIndexData()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetIndexData ( ID3DX10Mesh *  iface,
const void *  data,
UINT  count 
)
static

Definition at line 131 of file mesh.c.

133{
134 FIXME("iface %p, data %p, count %u stub!\n", iface, data, count);
135
136 return E_NOTIMPL;
137}

◆ d3dx10_mesh_SetPointRepData()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetPointRepData ( ID3DX10Mesh *  iface,
const UINT *  pointreps 
)
static

Definition at line 210 of file mesh.c.

212{
213 FIXME("iface %p, pointreps %p stub!\n", iface, pointreps);
214
215 return E_NOTIMPL;
216}

◆ d3dx10_mesh_SetVertexData()

static HRESULT STDMETHODCALLTYPE d3dx10_mesh_SetVertexData ( ID3DX10Mesh *  iface,
UINT  index,
const void *  data 
)
static

Definition at line 115 of file mesh.c.

117{
118 FIXME("iface %p, index %u, data %p stub!\n", iface, index, data);
119
120 return E_NOTIMPL;
121}

◆ D3DX10CreateMesh()

HRESULT WINAPI D3DX10CreateMesh ( ID3D10Device *  device,
const D3D10_INPUT_ELEMENT_DESC *  decl,
UINT  decl_count,
const char *  position_semantic,
UINT  vertex_count,
UINT  face_count,
UINT  options,
ID3DX10Mesh **  mesh 
)

Definition at line 356 of file mesh.c.

359{
360 struct d3dx10_mesh *object;
361
362 FIXME("device %p, decl %p, decl_count %u, position_semantic %s, vertex_count %u, face_count %u, "
363 "options %#x, mesh %p semi-stub.\n", device, decl, decl_count, debugstr_a(position_semantic), vertex_count,
365
366 *mesh = NULL;
367
368 if (!(object = calloc(1, sizeof(*object))))
369 return E_OUTOFMEMORY;
370
371 object->ID3DX10Mesh_iface.lpVtbl = &d3dx10_mesh_vtbl;
372 object->refcount = 1;
373
374 *mesh = &object->ID3DX10Mesh_iface;
375
376 return S_OK;
377}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const ID3DX10MeshVtbl d3dx10_mesh_vtbl
Definition: mesh.c:319
int face_count
Definition: d3drm.c:3529
int vertex_count
Definition: d3drm.c:3528
#define calloc
Definition: rosglue.h:14
Definition: devices.h:37

◆ impl_from_ID3DX10Mesh()

static struct d3dx10_mesh * impl_from_ID3DX10Mesh ( ID3DX10Mesh *  iface)
inlinestatic

Definition at line 33 of file mesh.c.

34{
35 return CONTAINING_RECORD(iface, struct d3dx10_mesh, ID3DX10Mesh_iface);
36}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by d3dx10_mesh_AddRef(), and d3dx10_mesh_Release().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( d3dx  )

Variable Documentation

◆ d3dx10_mesh_vtbl

const ID3DX10MeshVtbl d3dx10_mesh_vtbl
static

Definition at line 319 of file mesh.c.

Referenced by D3DX10CreateMesh().