ReactOS  0.4.15-dev-1074-gffc96d2
face.c File Reference
#include "d3drm_private.h"
Include dependency graph for face.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (d3drm)
 
static struct d3drm_faceimpl_from_IDirect3DRMFace (IDirect3DRMFace *iface)
 
static struct d3drm_faceimpl_from_IDirect3DRMFace2 (IDirect3DRMFace2 *iface)
 
static HRESULT WINAPI d3drm_face1_QueryInterface (IDirect3DRMFace *iface, REFIID riid, void **out)
 
static ULONG WINAPI d3drm_face1_AddRef (IDirect3DRMFace *iface)
 
static ULONG WINAPI d3drm_face1_Release (IDirect3DRMFace *iface)
 
static HRESULT WINAPI d3drm_face1_Clone (IDirect3DRMFace *iface, IUnknown *outer, REFIID iid, void **out)
 
static HRESULT WINAPI d3drm_face1_AddDestroyCallback (IDirect3DRMFace *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
 
static HRESULT WINAPI d3drm_face1_DeleteDestroyCallback (IDirect3DRMFace *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
 
static HRESULT WINAPI d3drm_face2_SetAppData (IDirect3DRMFace2 *iface, DWORD data)
 
static HRESULT WINAPI d3drm_face1_SetAppData (IDirect3DRMFace *iface, DWORD data)
 
static DWORD WINAPI d3drm_face2_GetAppData (IDirect3DRMFace2 *iface)
 
static DWORD WINAPI d3drm_face1_GetAppData (IDirect3DRMFace *iface)
 
static HRESULT WINAPI d3drm_face2_SetName (IDirect3DRMFace2 *iface, const char *name)
 
static HRESULT WINAPI d3drm_face1_SetName (IDirect3DRMFace *iface, const char *name)
 
static HRESULT WINAPI d3drm_face2_GetName (IDirect3DRMFace2 *iface, DWORD *size, char *name)
 
static HRESULT WINAPI d3drm_face1_GetName (IDirect3DRMFace *iface, DWORD *size, char *name)
 
static HRESULT WINAPI d3drm_face1_GetClassName (IDirect3DRMFace *iface, DWORD *size, char *name)
 
static HRESULT WINAPI d3drm_face1_AddVertex (IDirect3DRMFace *iface, D3DVALUE x, D3DVALUE y, D3DVALUE z)
 
static HRESULT WINAPI d3drm_face1_AddVertexAndNormalIndexed (IDirect3DRMFace *iface, DWORD vertex, DWORD normal)
 
static HRESULT WINAPI d3drm_face2_SetColorRGB (IDirect3DRMFace2 *iface, D3DVALUE red, D3DVALUE green, D3DVALUE blue)
 
static HRESULT WINAPI d3drm_face1_SetColorRGB (IDirect3DRMFace *iface, D3DVALUE red, D3DVALUE green, D3DVALUE blue)
 
static HRESULT WINAPI d3drm_face2_SetColor (IDirect3DRMFace2 *iface, D3DCOLOR color)
 
static HRESULT WINAPI d3drm_face1_SetColor (IDirect3DRMFace *iface, D3DCOLOR color)
 
static HRESULT WINAPI d3drm_face1_SetTexture (IDirect3DRMFace *iface, IDirect3DRMTexture *texture)
 
static HRESULT WINAPI d3drm_face1_SetTextureCoordinates (IDirect3DRMFace *iface, DWORD vertex, D3DVALUE u, D3DVALUE v)
 
static HRESULT WINAPI d3drm_face1_SetMaterial (IDirect3DRMFace *iface, IDirect3DRMMaterial *material)
 
static HRESULT WINAPI d3drm_face1_SetTextureTopology (IDirect3DRMFace *iface, BOOL wrap_u, BOOL wrap_v)
 
static HRESULT WINAPI d3drm_face1_GetVertex (IDirect3DRMFace *iface, DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal)
 
static HRESULT WINAPI d3drm_face1_GetVertices (IDirect3DRMFace *iface, DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals)
 
static HRESULT WINAPI d3drm_face1_GetTextureCoordinates (IDirect3DRMFace *iface, DWORD vertex, D3DVALUE *u, D3DVALUE *v)
 
static HRESULT WINAPI d3drm_face1_GetTextureTopology (IDirect3DRMFace *iface, BOOL *wrap_u, BOOL *wrap_v)
 
static HRESULT WINAPI d3drm_face1_GetNormal (IDirect3DRMFace *iface, D3DVECTOR *normal)
 
static HRESULT WINAPI d3drm_face1_GetTexture (IDirect3DRMFace *iface, IDirect3DRMTexture **texture)
 
static HRESULT WINAPI d3drm_face1_GetMaterial (IDirect3DRMFace *iface, IDirect3DRMMaterial **material)
 
static int WINAPI d3drm_face1_GetVertexCount (IDirect3DRMFace *iface)
 
static int WINAPI d3drm_face1_GetVertexIndex (IDirect3DRMFace *iface, DWORD which)
 
static int WINAPI d3drm_face1_GetTextureCoordinateIndex (IDirect3DRMFace *iface, DWORD which)
 
static D3DCOLOR WINAPI d3drm_face2_GetColor (IDirect3DRMFace2 *iface)
 
static D3DCOLOR WINAPI d3drm_face1_GetColor (IDirect3DRMFace *iface)
 
static HRESULT WINAPI d3drm_face2_QueryInterface (IDirect3DRMFace2 *iface, REFIID riid, void **out)
 
static ULONG WINAPI d3drm_face2_AddRef (IDirect3DRMFace2 *iface)
 
static ULONG WINAPI d3drm_face2_Release (IDirect3DRMFace2 *iface)
 
static HRESULT WINAPI d3drm_face2_Clone (IDirect3DRMFace2 *iface, IUnknown *outer, REFIID iid, void **out)
 
static HRESULT WINAPI d3drm_face2_AddDestroyCallback (IDirect3DRMFace2 *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
 
static HRESULT WINAPI d3drm_face2_DeleteDestroyCallback (IDirect3DRMFace2 *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
 
static HRESULT WINAPI d3drm_face2_GetClassName (IDirect3DRMFace2 *iface, DWORD *size, char *name)
 
static HRESULT WINAPI d3drm_face2_AddVertex (IDirect3DRMFace2 *iface, D3DVALUE x, D3DVALUE y, D3DVALUE z)
 
static HRESULT WINAPI d3drm_face2_AddVertexAndNormalIndexed (IDirect3DRMFace2 *iface, DWORD vertex, DWORD normal)
 
static HRESULT WINAPI d3drm_face2_SetTexture (IDirect3DRMFace2 *iface, IDirect3DRMTexture3 *texture)
 
static HRESULT WINAPI d3drm_face2_SetTextureCoordinates (IDirect3DRMFace2 *iface, DWORD vertex, D3DVALUE u, D3DVALUE v)
 
static HRESULT WINAPI d3drm_face2_SetMaterial (IDirect3DRMFace2 *iface, IDirect3DRMMaterial2 *material)
 
static HRESULT WINAPI d3drm_face2_SetTextureTopology (IDirect3DRMFace2 *iface, BOOL wrap_u, BOOL wrap_v)
 
static HRESULT WINAPI d3drm_face2_GetVertex (IDirect3DRMFace2 *iface, DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal)
 
static HRESULT WINAPI d3drm_face2_GetVertices (IDirect3DRMFace2 *iface, DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals)
 
static HRESULT WINAPI d3drm_face2_GetTextureCoordinates (IDirect3DRMFace2 *iface, DWORD vertex, D3DVALUE *u, D3DVALUE *v)
 
static HRESULT WINAPI d3drm_face2_GetTextureTopology (IDirect3DRMFace2 *iface, BOOL *wrap_u, BOOL *wrap_v)
 
static HRESULT WINAPI d3drm_face2_GetNormal (IDirect3DRMFace2 *iface, D3DVECTOR *normal)
 
static HRESULT WINAPI d3drm_face2_GetTexture (IDirect3DRMFace2 *iface, IDirect3DRMTexture3 **texture)
 
static HRESULT WINAPI d3drm_face2_GetMaterial (IDirect3DRMFace2 *iface, IDirect3DRMMaterial2 **material)
 
static int WINAPI d3drm_face2_GetVertexCount (IDirect3DRMFace2 *iface)
 
static int WINAPI d3drm_face2_GetVertexIndex (IDirect3DRMFace2 *iface, DWORD which)
 
static int WINAPI d3drm_face2_GetTextureCoordinateIndex (IDirect3DRMFace2 *iface, DWORD which)
 
HRESULT d3drm_face_create (struct d3drm_face **face)
 

Variables

static const struct IDirect3DRMFaceVtbl d3drm_face1_vtbl
 
static const struct IDirect3DRMFace2Vtbl d3drm_face2_vtbl
 

Function Documentation

◆ d3drm_face1_AddDestroyCallback()

static HRESULT WINAPI d3drm_face1_AddDestroyCallback ( IDirect3DRMFace *  iface,
D3DRMOBJECTCALLBACK  cb,
void ctx 
)
static

Definition at line 96 of file face.c.

98 {
99  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
100 
101  TRACE("iface %p, cb %p, ctx %p.\n", iface, cb, ctx);
102 
103  return IDirect3DRMFace2_AddDestroyCallback(&face->IDirect3DRMFace2_iface, cb, ctx);
104 }
#define TRACE(s)
Definition: solgame.cpp:4
#define IDirect3DRMFace2_AddDestroyCallback(p, a, b)
Definition: d3drmobj.h:2423
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
static HMODULE MODULEINFO DWORD cb
Definition: module.c:32
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_AddRef()

static ULONG WINAPI d3drm_face1_AddRef ( IDirect3DRMFace *  iface)
static

Definition at line 62 of file face.c.

63 {
64  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
65  ULONG refcount = InterlockedIncrement(&face->ref);
66 
67  TRACE("%p increasing refcount to %u.\n", iface, refcount);
68 
69  return refcount;
70 }
#define TRACE(s)
Definition: solgame.cpp:4
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
#define InterlockedIncrement
Definition: armddk.h:53
unsigned int ULONG
Definition: retypes.h:1
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm_face2_AddRef().

◆ d3drm_face1_AddVertex()

static HRESULT WINAPI d3drm_face1_AddVertex ( IDirect3DRMFace *  iface,
D3DVALUE  x,
D3DVALUE  y,
D3DVALUE  z 
)
static

Definition at line 199 of file face.c.

200 {
201  FIXME("iface %p, x %.8e, y %.8e, z %.8e stub!\n", iface, x, y, z);
202 
203  return E_NOTIMPL;
204 }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define FIXME(fmt,...)
Definition: debug.h:111
GLdouble GLdouble z
Definition: glext.h:5874
#define E_NOTIMPL
Definition: ddrawi.h:99
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ d3drm_face1_AddVertexAndNormalIndexed()

static HRESULT WINAPI d3drm_face1_AddVertexAndNormalIndexed ( IDirect3DRMFace *  iface,
DWORD  vertex,
DWORD  normal 
)
static

Definition at line 206 of file face.c.

208 {
209  FIXME("iface %p, vertex %u, normal %u stub!\n", iface, vertex, normal);
210 
211  return E_NOTIMPL;
212 }
Definition: mesh.c:4557
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_Clone()

static HRESULT WINAPI d3drm_face1_Clone ( IDirect3DRMFace *  iface,
IUnknown outer,
REFIID  iid,
void **  out 
)
static

Definition at line 88 of file face.c.

90 {
91  FIXME("iface %p, outer %p, iid %s, out %p stub!\n", iface, outer, debugstr_guid(iid), out);
92 
93  return E_NOTIMPL;
94 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_guid
Definition: kernel32.h:35
static FILE * out
Definition: regtests2xml.c:44
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_DeleteDestroyCallback()

static HRESULT WINAPI d3drm_face1_DeleteDestroyCallback ( IDirect3DRMFace *  iface,
D3DRMOBJECTCALLBACK  cb,
void ctx 
)
static

Definition at line 106 of file face.c.

108 {
109  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
110 
111  TRACE("iface %p, cb %p, ctx %p.\n", iface, cb, ctx);
112 
113  return IDirect3DRMFace2_DeleteDestroyCallback(&face->IDirect3DRMFace2_iface, cb, ctx);
114 }
#define TRACE(s)
Definition: solgame.cpp:4
#define IDirect3DRMFace2_DeleteDestroyCallback(p, a, b)
Definition: d3drmobj.h:2424
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
static HMODULE MODULEINFO DWORD cb
Definition: module.c:32
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_GetAppData()

static DWORD WINAPI d3drm_face1_GetAppData ( IDirect3DRMFace *  iface)
static

Definition at line 145 of file face.c.

146 {
147  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
148 
149  TRACE("iface %p.\n", iface);
150 
151  return d3drm_face2_GetAppData(&face->IDirect3DRMFace2_iface);
152 }
#define TRACE(s)
Definition: solgame.cpp:4
static DWORD WINAPI d3drm_face2_GetAppData(IDirect3DRMFace2 *iface)
Definition: face.c:136
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_GetClassName()

static HRESULT WINAPI d3drm_face1_GetClassName ( IDirect3DRMFace *  iface,
DWORD size,
char name 
)
static

Definition at line 190 of file face.c.

191 {
192  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
193 
194  TRACE("iface %p, size %p, name %p.\n", iface, size, name);
195 
196  return IDirect3DRMFace2_GetClassName(&face->IDirect3DRMFace2_iface, size, name);
197 }
#define IDirect3DRMFace2_GetClassName(p, a, b)
Definition: d3drmobj.h:2429
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
Definition: name.c:38
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_GetColor()

static D3DCOLOR WINAPI d3drm_face1_GetColor ( IDirect3DRMFace *  iface)
static

Definition at line 367 of file face.c.

368 {
369  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
370 
371  TRACE("iface %p.\n", iface);
372 
373  return d3drm_face2_GetColor(&face->IDirect3DRMFace2_iface);
374 }
static D3DCOLOR WINAPI d3drm_face2_GetColor(IDirect3DRMFace2 *iface)
Definition: face.c:358
#define TRACE(s)
Definition: solgame.cpp:4
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_GetMaterial()

static HRESULT WINAPI d3drm_face1_GetMaterial ( IDirect3DRMFace *  iface,
IDirect3DRMMaterial **  material 
)
static

Definition at line 330 of file face.c.

331 {
332  FIXME("iface %p, material %p stub!\n", iface, material);
333 
334  return E_NOTIMPL;
335 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_GetName()

static HRESULT WINAPI d3drm_face1_GetName ( IDirect3DRMFace *  iface,
DWORD size,
char name 
)
static

Definition at line 181 of file face.c.

182 {
183  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
184 
185  TRACE("iface %p, size %p, name %p.\n", iface, size, name);
186 
187  return d3drm_face2_GetName(&face->IDirect3DRMFace2_iface, size, name);
188 }
static HRESULT WINAPI d3drm_face2_GetName(IDirect3DRMFace2 *iface, DWORD *size, char *name)
Definition: face.c:172
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
Definition: name.c:38
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_GetNormal()

static HRESULT WINAPI d3drm_face1_GetNormal ( IDirect3DRMFace *  iface,
D3DVECTOR normal 
)
static

Definition at line 316 of file face.c.

317 {
318  FIXME("iface %p, normal %p stub!\n", iface, normal);
319 
320  return E_NOTIMPL;
321 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_GetTexture()

static HRESULT WINAPI d3drm_face1_GetTexture ( IDirect3DRMFace *  iface,
IDirect3DRMTexture **  texture 
)
static

Definition at line 323 of file face.c.

324 {
325  FIXME("iface %p, texture %p stub!\n", iface, texture);
326 
327  return E_NOTIMPL;
328 }
#define FIXME(fmt,...)
Definition: debug.h:111
GLenum GLuint texture
Definition: glext.h:6295
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_GetTextureCoordinateIndex()

static int WINAPI d3drm_face1_GetTextureCoordinateIndex ( IDirect3DRMFace *  iface,
DWORD  which 
)
static

Definition at line 351 of file face.c.

352 {
353  FIXME("iface %p, which %u stub!\n", iface, which);
354 
355  return 0;
356 }
static GLenum which
Definition: wgl_font.c:159
#define FIXME(fmt,...)
Definition: debug.h:111

◆ d3drm_face1_GetTextureCoordinates()

static HRESULT WINAPI d3drm_face1_GetTextureCoordinates ( IDirect3DRMFace *  iface,
DWORD  vertex,
D3DVALUE u,
D3DVALUE v 
)
static

Definition at line 301 of file face.c.

303 {
304  FIXME("iface %p, vertex %u, u %p, v %p stub!\n", iface, vertex, u, v);
305 
306  return E_NOTIMPL;
307 }
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
Definition: mesh.c:4557
#define FIXME(fmt,...)
Definition: debug.h:111
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_GetTextureTopology()

static HRESULT WINAPI d3drm_face1_GetTextureTopology ( IDirect3DRMFace *  iface,
BOOL wrap_u,
BOOL wrap_v 
)
static

Definition at line 309 of file face.c.

310 {
311  FIXME("iface %p, wrap_u %p, wrap_v %p stub!\n", iface, wrap_u, wrap_v);
312 
313  return E_NOTIMPL;
314 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_GetVertex()

static HRESULT WINAPI d3drm_face1_GetVertex ( IDirect3DRMFace *  iface,
DWORD  index,
D3DVECTOR vertex,
D3DVECTOR normal 
)
static

Definition at line 284 of file face.c.

286 {
287  FIXME("iface %p, index %u, vertex %p, normal %p stub!\n", iface, index, vertex, normal);
288 
289  return E_NOTIMPL;
290 }
Definition: mesh.c:4557
#define FIXME(fmt,...)
Definition: debug.h:111
GLuint index
Definition: glext.h:6031
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_GetVertexCount()

static int WINAPI d3drm_face1_GetVertexCount ( IDirect3DRMFace *  iface)
static

Definition at line 337 of file face.c.

338 {
339  FIXME("iface %p stub!\n", iface);
340 
341  return 0;
342 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ d3drm_face1_GetVertexIndex()

static int WINAPI d3drm_face1_GetVertexIndex ( IDirect3DRMFace *  iface,
DWORD  which 
)
static

Definition at line 344 of file face.c.

345 {
346  FIXME("iface %p, which %u stub!\n", iface, which);
347 
348  return 0;
349 }
static GLenum which
Definition: wgl_font.c:159
#define FIXME(fmt,...)
Definition: debug.h:111

◆ d3drm_face1_GetVertices()

static HRESULT WINAPI d3drm_face1_GetVertices ( IDirect3DRMFace *  iface,
DWORD vertex_count,
D3DVECTOR coords,
D3DVECTOR normals 
)
static

Definition at line 292 of file face.c.

294 {
295  FIXME("iface %p, vertex_count %p, coords %p, normals %p stub!\n",
296  iface, vertex_count, coords, normals);
297 
298  return E_NOTIMPL;
299 }
int vertex_count
Definition: d3drm.c:3367
GLuint coords
Definition: glext.h:7368
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_QueryInterface()

static HRESULT WINAPI d3drm_face1_QueryInterface ( IDirect3DRMFace *  iface,
REFIID  riid,
void **  out 
)
static

Definition at line 35 of file face.c.

36 {
37  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
38 
39  TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out);
40 
41  if (IsEqualGUID(riid, &IID_IDirect3DRMFace)
42  || IsEqualGUID(riid, &IID_IDirect3DRMObject)
44  {
45  *out = &face->IDirect3DRMFace_iface;
46  }
47  else if(IsEqualGUID(riid, &IID_IDirect3DRMFace2))
48  {
49  *out = &face->IDirect3DRMFace2_iface;
50  }
51  else
52  {
53  *out = NULL;
54  WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
55  return E_NOINTERFACE;
56  }
57 
58  IUnknown_AddRef((IUnknown *)*out);
59  return S_OK;
60 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:112
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
static FILE * out
Definition: regtests2xml.c:44
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
#define S_OK
Definition: intsafe.h:51
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm_face2_QueryInterface().

◆ d3drm_face1_Release()

static ULONG WINAPI d3drm_face1_Release ( IDirect3DRMFace *  iface)
static

Definition at line 72 of file face.c.

73 {
74  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
75  ULONG refcount = InterlockedDecrement(&face->ref);
76 
77  TRACE("%p decreasing refcount to %u.\n", iface, refcount);
78 
79  if (!refcount)
80  {
81  d3drm_object_cleanup((IDirect3DRMObject *)iface, &face->obj);
82  heap_free(face);
83  }
84 
85  return refcount;
86 }
void d3drm_object_cleanup(IDirect3DRMObject *iface, struct d3drm_object *object)
Definition: d3drm_main.c:153
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
unsigned int ULONG
Definition: retypes.h:1
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

Referenced by d3drm_face2_Release().

◆ d3drm_face1_SetAppData()

static HRESULT WINAPI d3drm_face1_SetAppData ( IDirect3DRMFace *  iface,
DWORD  data 
)
static

Definition at line 127 of file face.c.

128 {
129  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
130 
131  TRACE("iface %p, data %#x.\n", iface, data);
132 
133  return d3drm_face2_SetAppData(&face->IDirect3DRMFace2_iface, data);
134 }
#define TRACE(s)
Definition: solgame.cpp:4
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
static HRESULT WINAPI d3drm_face2_SetAppData(IDirect3DRMFace2 *iface, DWORD data)
Definition: face.c:116
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_SetColor()

static HRESULT WINAPI d3drm_face1_SetColor ( IDirect3DRMFace *  iface,
D3DCOLOR  color 
)
static

Definition at line 246 of file face.c.

247 {
248  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
249 
250  TRACE("iface %p, color 0x%08x.\n", iface, color);
251 
252  return d3drm_face2_SetColor(&face->IDirect3DRMFace2_iface, color);
253 }
GLuint color
Definition: glext.h:6243
#define TRACE(s)
Definition: solgame.cpp:4
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
static HRESULT WINAPI d3drm_face2_SetColor(IDirect3DRMFace2 *iface, D3DCOLOR color)
Definition: face.c:235
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_SetColorRGB()

static HRESULT WINAPI d3drm_face1_SetColorRGB ( IDirect3DRMFace *  iface,
D3DVALUE  red,
D3DVALUE  green,
D3DVALUE  blue 
)
static

Definition at line 225 of file face.c.

227 {
228  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
229 
230  TRACE("iface %p, red %.8e, green %.8e, blue %.8e.\n", iface, red, green, blue);
231 
232  return d3drm_face2_SetColorRGB(&face->IDirect3DRMFace2_iface, red, green, blue);
233 }
GLclampf GLclampf blue
Definition: gl.h:1740
#define TRACE(s)
Definition: solgame.cpp:4
GLclampf green
Definition: gl.h:1740
#define red
Definition: linetest.c:67
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
static HRESULT WINAPI d3drm_face2_SetColorRGB(IDirect3DRMFace2 *iface, D3DVALUE red, D3DVALUE green, D3DVALUE blue)
Definition: face.c:214
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_SetMaterial()

static HRESULT WINAPI d3drm_face1_SetMaterial ( IDirect3DRMFace *  iface,
IDirect3DRMMaterial *  material 
)
static

Definition at line 270 of file face.c.

271 {
272  FIXME("iface %p, material %p stub!\n", iface, material);
273 
274  return E_NOTIMPL;
275 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_SetName()

static HRESULT WINAPI d3drm_face1_SetName ( IDirect3DRMFace *  iface,
const char name 
)
static

Definition at line 163 of file face.c.

164 {
165  struct d3drm_face *face = impl_from_IDirect3DRMFace(iface);
166 
167  TRACE("iface %p, name %s.\n", iface, debugstr_a(name));
168 
169  return d3drm_face2_SetName(&face->IDirect3DRMFace2_iface, name);
170 }
#define TRACE(s)
Definition: solgame.cpp:4
#define debugstr_a
Definition: kernel32.h:31
static HRESULT WINAPI d3drm_face2_SetName(IDirect3DRMFace2 *iface, const char *name)
Definition: face.c:154
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
Definition: name.c:38
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face1_SetTexture()

static HRESULT WINAPI d3drm_face1_SetTexture ( IDirect3DRMFace *  iface,
IDirect3DRMTexture *  texture 
)
static

Definition at line 255 of file face.c.

256 {
257  FIXME("iface %p, texture %p stub!\n", iface, texture);
258 
259  return E_NOTIMPL;
260 }
#define FIXME(fmt,...)
Definition: debug.h:111
GLenum GLuint texture
Definition: glext.h:6295
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_SetTextureCoordinates()

static HRESULT WINAPI d3drm_face1_SetTextureCoordinates ( IDirect3DRMFace *  iface,
DWORD  vertex,
D3DVALUE  u,
D3DVALUE  v 
)
static

Definition at line 262 of file face.c.

264 {
265  FIXME("iface %p, vertex %u, u %.8e, v %.8e stub!\n", iface, vertex, u, v);
266 
267  return E_NOTIMPL;
268 }
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
Definition: mesh.c:4557
#define FIXME(fmt,...)
Definition: debug.h:111
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face1_SetTextureTopology()

static HRESULT WINAPI d3drm_face1_SetTextureTopology ( IDirect3DRMFace *  iface,
BOOL  wrap_u,
BOOL  wrap_v 
)
static

Definition at line 277 of file face.c.

278 {
279  FIXME("iface %p, wrap_u %#x, wrap_v %#x stub!\n", iface, wrap_u, wrap_v);
280 
281  return E_NOTIMPL;
282 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_AddDestroyCallback()

static HRESULT WINAPI d3drm_face2_AddDestroyCallback ( IDirect3DRMFace2 *  iface,
D3DRMOBJECTCALLBACK  cb,
void ctx 
)
static

Definition at line 439 of file face.c.

441 {
442  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
443 
444  TRACE("iface %p, cb %p, ctx %p.\n", iface, cb, ctx);
445 
447 }
HRESULT d3drm_object_add_destroy_callback(struct d3drm_object *object, D3DRMOBJECTCALLBACK cb, void *ctx)
Definition: d3drm_main.c:55
#define TRACE(s)
Definition: solgame.cpp:4
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
static HMODULE MODULEINFO DWORD cb
Definition: module.c:32
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face2_AddRef()

static ULONG WINAPI d3drm_face2_AddRef ( IDirect3DRMFace2 *  iface)
static

Definition at line 417 of file face.c.

418 {
419  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
420 
421  return d3drm_face1_AddRef(&face->IDirect3DRMFace_iface);
422 }
static ULONG WINAPI d3drm_face1_AddRef(IDirect3DRMFace *iface)
Definition: face.c:62
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face2_AddVertex()

static HRESULT WINAPI d3drm_face2_AddVertex ( IDirect3DRMFace2 *  iface,
D3DVALUE  x,
D3DVALUE  y,
D3DVALUE  z 
)
static

Definition at line 468 of file face.c.

469 {
470  FIXME("iface %p, x %.8e, y %.8e, z %.8e stub!\n", iface, x, y, z);
471 
472  return E_NOTIMPL;
473 }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define FIXME(fmt,...)
Definition: debug.h:111
GLdouble GLdouble z
Definition: glext.h:5874
#define E_NOTIMPL
Definition: ddrawi.h:99
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ d3drm_face2_AddVertexAndNormalIndexed()

static HRESULT WINAPI d3drm_face2_AddVertexAndNormalIndexed ( IDirect3DRMFace2 *  iface,
DWORD  vertex,
DWORD  normal 
)
static

Definition at line 475 of file face.c.

477 {
478  FIXME("iface %p, vertex %u, normal %u stub!\n", iface, vertex, normal);
479 
480  return E_NOTIMPL;
481 }
Definition: mesh.c:4557
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_Clone()

static HRESULT WINAPI d3drm_face2_Clone ( IDirect3DRMFace2 *  iface,
IUnknown outer,
REFIID  iid,
void **  out 
)
static

Definition at line 431 of file face.c.

433 {
434  FIXME("iface %p, outer %p, iid %s, out %p stub!\n", iface, outer, debugstr_guid(iid), out);
435 
436  return E_NOTIMPL;
437 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_guid
Definition: kernel32.h:35
static FILE * out
Definition: regtests2xml.c:44
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_DeleteDestroyCallback()

static HRESULT WINAPI d3drm_face2_DeleteDestroyCallback ( IDirect3DRMFace2 *  iface,
D3DRMOBJECTCALLBACK  cb,
void ctx 
)
static

Definition at line 449 of file face.c.

451 {
452  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
453 
454  TRACE("iface %p, cb %p, ctx %p.\n", iface, cb, ctx);
455 
457 }
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT d3drm_object_delete_destroy_callback(struct d3drm_object *object, D3DRMOBJECTCALLBACK cb, void *ctx)
Definition: d3drm_main.c:72
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
static HMODULE MODULEINFO DWORD cb
Definition: module.c:32
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face2_GetAppData()

static DWORD WINAPI d3drm_face2_GetAppData ( IDirect3DRMFace2 *  iface)
static

Definition at line 136 of file face.c.

137 {
138  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
139 
140  TRACE("iface %p.\n", iface);
141 
142  return face->obj.appdata;
143 }
#define TRACE(s)
Definition: solgame.cpp:4
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm_face1_GetAppData().

◆ d3drm_face2_GetClassName()

static HRESULT WINAPI d3drm_face2_GetClassName ( IDirect3DRMFace2 *  iface,
DWORD size,
char name 
)
static

Definition at line 459 of file face.c.

460 {
461  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
462 
463  TRACE("iface %p, size %p, name %p.\n", iface, size, name);
464 
465  return d3drm_object_get_class_name(&face->obj, size, name);
466 }
HRESULT d3drm_object_get_class_name(struct d3drm_object *object, DWORD *size, char *name)
Definition: d3drm_main.c:92
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
Definition: name.c:38
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face2_GetColor()

static D3DCOLOR WINAPI d3drm_face2_GetColor ( IDirect3DRMFace2 *  iface)
static

Definition at line 358 of file face.c.

359 {
360  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
361 
362  TRACE("iface %p.\n", iface);
363 
364  return face->color;
365 }
#define TRACE(s)
Definition: solgame.cpp:4
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm_face1_GetColor().

◆ d3drm_face2_GetMaterial()

static HRESULT WINAPI d3drm_face2_GetMaterial ( IDirect3DRMFace2 *  iface,
IDirect3DRMMaterial2 **  material 
)
static

Definition at line 558 of file face.c.

559 {
560  FIXME("iface %p, material %p stub!\n", iface, material);
561 
562  return E_NOTIMPL;
563 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_GetName()

static HRESULT WINAPI d3drm_face2_GetName ( IDirect3DRMFace2 *  iface,
DWORD size,
char name 
)
static

Definition at line 172 of file face.c.

173 {
174  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
175 
176  TRACE("iface %p, size %p, name %p.\n", iface, size, name);
177 
178  return d3drm_object_get_name(&face->obj, size, name);
179 }
HRESULT d3drm_object_get_name(struct d3drm_object *object, DWORD *size, char *name)
Definition: d3drm_main.c:111
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
Definition: name.c:38
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm_face1_GetName().

◆ d3drm_face2_GetNormal()

static HRESULT WINAPI d3drm_face2_GetNormal ( IDirect3DRMFace2 *  iface,
D3DVECTOR normal 
)
static

Definition at line 544 of file face.c.

545 {
546  FIXME("iface %p, normal %p stub!\n", iface, normal);
547 
548  return E_NOTIMPL;
549 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_GetTexture()

static HRESULT WINAPI d3drm_face2_GetTexture ( IDirect3DRMFace2 *  iface,
IDirect3DRMTexture3 **  texture 
)
static

Definition at line 551 of file face.c.

552 {
553  FIXME("iface %p, texture %p stub!\n", iface, texture);
554 
555  return E_NOTIMPL;
556 }
#define FIXME(fmt,...)
Definition: debug.h:111
GLenum GLuint texture
Definition: glext.h:6295
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_GetTextureCoordinateIndex()

static int WINAPI d3drm_face2_GetTextureCoordinateIndex ( IDirect3DRMFace2 *  iface,
DWORD  which 
)
static

Definition at line 579 of file face.c.

580 {
581  FIXME("iface %p, which %u stub!\n", iface, which);
582 
583  return 0;
584 }
static GLenum which
Definition: wgl_font.c:159
#define FIXME(fmt,...)
Definition: debug.h:111

◆ d3drm_face2_GetTextureCoordinates()

static HRESULT WINAPI d3drm_face2_GetTextureCoordinates ( IDirect3DRMFace2 *  iface,
DWORD  vertex,
D3DVALUE u,
D3DVALUE v 
)
static

Definition at line 529 of file face.c.

531 {
532  FIXME("iface %p, vertex %u, u %p, v %p stub!\n", iface, vertex, u, v);
533 
534  return E_NOTIMPL;
535 }
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
Definition: mesh.c:4557
#define FIXME(fmt,...)
Definition: debug.h:111
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_GetTextureTopology()

static HRESULT WINAPI d3drm_face2_GetTextureTopology ( IDirect3DRMFace2 *  iface,
BOOL wrap_u,
BOOL wrap_v 
)
static

Definition at line 537 of file face.c.

538 {
539  FIXME("iface %p, wrap_u %p, wrap_v %p stub!\n", iface, wrap_u, wrap_v);
540 
541  return E_NOTIMPL;
542 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_GetVertex()

static HRESULT WINAPI d3drm_face2_GetVertex ( IDirect3DRMFace2 *  iface,
DWORD  index,
D3DVECTOR vertex,
D3DVECTOR normal 
)
static

Definition at line 512 of file face.c.

514 {
515  FIXME("iface %p, index %u, vertex %p, normal %p stub!\n", iface, index, vertex, normal);
516 
517  return E_NOTIMPL;
518 }
Definition: mesh.c:4557
#define FIXME(fmt,...)
Definition: debug.h:111
GLuint index
Definition: glext.h:6031
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_GetVertexCount()

static int WINAPI d3drm_face2_GetVertexCount ( IDirect3DRMFace2 *  iface)
static

Definition at line 565 of file face.c.

566 {
567  FIXME("iface %p stub!\n", iface);
568 
569  return 0;
570 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ d3drm_face2_GetVertexIndex()

static int WINAPI d3drm_face2_GetVertexIndex ( IDirect3DRMFace2 *  iface,
DWORD  which 
)
static

Definition at line 572 of file face.c.

573 {
574  FIXME("iface %p, which %u stub!\n", iface, which);
575 
576  return 0;
577 }
static GLenum which
Definition: wgl_font.c:159
#define FIXME(fmt,...)
Definition: debug.h:111

◆ d3drm_face2_GetVertices()

static HRESULT WINAPI d3drm_face2_GetVertices ( IDirect3DRMFace2 *  iface,
DWORD vertex_count,
D3DVECTOR coords,
D3DVECTOR normals 
)
static

Definition at line 520 of file face.c.

522 {
523  FIXME("iface %p, vertex_count %p, coords %p, normals %p stub!\n",
524  iface, vertex_count, coords, normals);
525 
526  return E_NOTIMPL;
527 }
int vertex_count
Definition: d3drm.c:3367
GLuint coords
Definition: glext.h:7368
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_QueryInterface()

static HRESULT WINAPI d3drm_face2_QueryInterface ( IDirect3DRMFace2 *  iface,
REFIID  riid,
void **  out 
)
static

Definition at line 410 of file face.c.

411 {
412  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
413 
414  return d3drm_face1_QueryInterface(&face->IDirect3DRMFace_iface, riid, out);
415 }
REFIID riid
Definition: precomp.h:44
static HRESULT WINAPI d3drm_face1_QueryInterface(IDirect3DRMFace *iface, REFIID riid, void **out)
Definition: face.c:35
static FILE * out
Definition: regtests2xml.c:44
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face2_Release()

static ULONG WINAPI d3drm_face2_Release ( IDirect3DRMFace2 *  iface)
static

Definition at line 424 of file face.c.

425 {
426  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
427 
428  return d3drm_face1_Release(&face->IDirect3DRMFace_iface);
429 }
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
static ULONG WINAPI d3drm_face1_Release(IDirect3DRMFace *iface)
Definition: face.c:72
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

◆ d3drm_face2_SetAppData()

static HRESULT WINAPI d3drm_face2_SetAppData ( IDirect3DRMFace2 *  iface,
DWORD  data 
)
static

Definition at line 116 of file face.c.

117 {
118  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
119 
120  TRACE("iface %p, data %#x.\n", iface, data);
121 
122  face->obj.appdata = data;
123 
124  return D3DRM_OK;
125 }
#define TRACE(s)
Definition: solgame.cpp:4
#define D3DRM_OK
Definition: d3drm.h:486
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm_face1_SetAppData().

◆ d3drm_face2_SetColor()

static HRESULT WINAPI d3drm_face2_SetColor ( IDirect3DRMFace2 *  iface,
D3DCOLOR  color 
)
static

Definition at line 235 of file face.c.

236 {
237  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
238 
239  TRACE("iface %p, color 0x%08x.\n", iface, color);
240 
241  face->color = color;
242 
243  return D3DRM_OK;
244 }
GLuint color
Definition: glext.h:6243
#define TRACE(s)
Definition: solgame.cpp:4
#define D3DRM_OK
Definition: d3drm.h:486
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm_face1_SetColor().

◆ d3drm_face2_SetColorRGB()

static HRESULT WINAPI d3drm_face2_SetColorRGB ( IDirect3DRMFace2 *  iface,
D3DVALUE  red,
D3DVALUE  green,
D3DVALUE  blue 
)
static

Definition at line 214 of file face.c.

215 {
216  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
217 
218  TRACE("iface %p, red %.8e, green %.8e, blue %.8e.\n", iface, red, green, blue);
219 
220  d3drm_set_color(&face->color, red, green, blue, 1.0f);
221 
222  return D3DRM_OK;
223 }
GLclampf GLclampf blue
Definition: gl.h:1740
#define TRACE(s)
Definition: solgame.cpp:4
#define D3DRM_OK
Definition: d3drm.h:486
GLclampf green
Definition: gl.h:1740
#define red
Definition: linetest.c:67
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
static void d3drm_set_color(D3DCOLOR *color, float r, float g, float b, float a)
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm_face1_SetColorRGB().

◆ d3drm_face2_SetMaterial()

static HRESULT WINAPI d3drm_face2_SetMaterial ( IDirect3DRMFace2 *  iface,
IDirect3DRMMaterial2 *  material 
)
static

Definition at line 498 of file face.c.

499 {
500  FIXME("iface %p, material %p stub!\n", iface, material);
501 
502  return E_NOTIMPL;
503 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_SetName()

static HRESULT WINAPI d3drm_face2_SetName ( IDirect3DRMFace2 *  iface,
const char name 
)
static

Definition at line 154 of file face.c.

155 {
156  struct d3drm_face *face = impl_from_IDirect3DRMFace2(iface);
157 
158  TRACE("iface %p, name %s.\n", iface, debugstr_a(name));
159 
160  return d3drm_object_set_name(&face->obj, name);
161 }
#define TRACE(s)
Definition: solgame.cpp:4
#define debugstr_a
Definition: kernel32.h:31
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30
Definition: name.c:38
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
HRESULT d3drm_object_set_name(struct d3drm_object *object, const char *name)
Definition: d3drm_main.c:135

Referenced by d3drm_face1_SetName().

◆ d3drm_face2_SetTexture()

static HRESULT WINAPI d3drm_face2_SetTexture ( IDirect3DRMFace2 *  iface,
IDirect3DRMTexture3 *  texture 
)
static

Definition at line 483 of file face.c.

484 {
485  FIXME("iface %p, texture %p stub!\n", iface, texture);
486 
487  return E_NOTIMPL;
488 }
#define FIXME(fmt,...)
Definition: debug.h:111
GLenum GLuint texture
Definition: glext.h:6295
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_SetTextureCoordinates()

static HRESULT WINAPI d3drm_face2_SetTextureCoordinates ( IDirect3DRMFace2 *  iface,
DWORD  vertex,
D3DVALUE  u,
D3DVALUE  v 
)
static

Definition at line 490 of file face.c.

492 {
493  FIXME("iface %p, vertex %u, u %.8e, v %.8e stub!\n", iface, vertex, u, v);
494 
495  return E_NOTIMPL;
496 }
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
Definition: mesh.c:4557
#define FIXME(fmt,...)
Definition: debug.h:111
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face2_SetTextureTopology()

static HRESULT WINAPI d3drm_face2_SetTextureTopology ( IDirect3DRMFace2 *  iface,
BOOL  wrap_u,
BOOL  wrap_v 
)
static

Definition at line 505 of file face.c.

506 {
507  FIXME("iface %p, wrap_u %#x, wrap_v %#x stub!\n", iface, wrap_u, wrap_v);
508 
509  return E_NOTIMPL;
510 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3drm_face_create()

HRESULT d3drm_face_create ( struct d3drm_face **  face)

Definition at line 620 of file face.c.

621 {
622  static const char classname[] = "Face";
623  struct d3drm_face *object;
624 
625  TRACE("face %p.\n", face);
626 
627  if (!(object = heap_alloc_zero(sizeof(*object))))
628  return E_OUTOFMEMORY;
629 
630  object->IDirect3DRMFace_iface.lpVtbl = &d3drm_face1_vtbl;
631  object->IDirect3DRMFace2_iface.lpVtbl = &d3drm_face2_vtbl;
632  object->ref = 1;
633 
635 
636  *face = object;
637 
638  return S_OK;
639 }
WCHAR classname[128]
Definition: startup.c:15
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
static const struct IDirect3DRMFace2Vtbl d3drm_face2_vtbl
Definition: face.c:586
#define S_OK
Definition: intsafe.h:51
void d3drm_object_init(struct d3drm_object *object, const char *classname)
Definition: d3drm_main.c:39
static const struct IDirect3DRMFaceVtbl d3drm_face1_vtbl
Definition: face.c:376
void * object
Definition: jmemsys.h:48
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by d3drm1_CreateFace(), d3drm_create_face_object(), d3drm_mesh_builder2_CreateFace(), and d3drm_mesh_builder3_CreateFace().

◆ impl_from_IDirect3DRMFace()

static struct d3drm_face* impl_from_IDirect3DRMFace ( IDirect3DRMFace *  iface)
inlinestatic

Definition at line 25 of file face.c.

26 {
27  return CONTAINING_RECORD(iface, struct d3drm_face, IDirect3DRMFace_iface);
28 }
IDirect3DRMFace IDirect3DRMFace_iface
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by d3drm_face1_AddDestroyCallback(), d3drm_face1_AddRef(), d3drm_face1_DeleteDestroyCallback(), d3drm_face1_GetAppData(), d3drm_face1_GetClassName(), d3drm_face1_GetColor(), d3drm_face1_GetName(), d3drm_face1_QueryInterface(), d3drm_face1_Release(), d3drm_face1_SetAppData(), d3drm_face1_SetColor(), d3drm_face1_SetColorRGB(), and d3drm_face1_SetName().

◆ impl_from_IDirect3DRMFace2()

static struct d3drm_face* impl_from_IDirect3DRMFace2 ( IDirect3DRMFace2 *  iface)
inlinestatic

Definition at line 30 of file face.c.

31 {
33 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560
IDirect3DRMFace2 IDirect3DRMFace2_iface

Referenced by d3drm_face2_AddDestroyCallback(), d3drm_face2_AddRef(), d3drm_face2_DeleteDestroyCallback(), d3drm_face2_GetAppData(), d3drm_face2_GetClassName(), d3drm_face2_GetColor(), d3drm_face2_GetName(), d3drm_face2_QueryInterface(), d3drm_face2_Release(), d3drm_face2_SetAppData(), d3drm_face2_SetColor(), d3drm_face2_SetColorRGB(), and d3drm_face2_SetName().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( d3drm  )

Variable Documentation

◆ d3drm_face1_vtbl

const struct IDirect3DRMFaceVtbl d3drm_face1_vtbl
static

Definition at line 376 of file face.c.

Referenced by d3drm_face_create().

◆ d3drm_face2_vtbl

const struct IDirect3DRMFace2Vtbl d3drm_face2_vtbl
static

Definition at line 586 of file face.c.

Referenced by d3drm_face_create().