ReactOS 0.4.16-dev-334-g4d9f67c
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{
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 IDirect3DRMFace2_AddDestroyCallback(p, a, b)
Definition: d3drmobj.h:2423
static struct d3drm_face * impl_from_IDirect3DRMFace(IDirect3DRMFace *iface)
Definition: face.c:25
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
#define TRACE(s)
Definition: solgame.cpp:4

◆ d3drm_face1_AddRef()

static ULONG WINAPI d3drm_face1_AddRef ( IDirect3DRMFace *  iface)
static

Definition at line 62 of file face.c.

63{
65 ULONG refcount = InterlockedIncrement(&face->ref);
66
67 TRACE("%p increasing refcount to %u.\n", iface, refcount);
68
69 return refcount;
70}
#define InterlockedIncrement
Definition: armddk.h:53
uint32_t ULONG
Definition: typedefs.h:59

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}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLdouble GLdouble z
Definition: glext.h:5874

◆ 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}
@ normal
Definition: optimize.h:166
Definition: mesh.c:4558

◆ 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 debugstr_guid
Definition: kernel32.h:35
static FILE * out
Definition: regtests2xml.c:44

◆ 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{
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 IDirect3DRMFace2_DeleteDestroyCallback(p, a, b)
Definition: d3drmobj.h:2424

◆ d3drm_face1_GetAppData()

static DWORD WINAPI d3drm_face1_GetAppData ( IDirect3DRMFace *  iface)
static

Definition at line 145 of file face.c.

146{
148
149 TRACE("iface %p.\n", iface);
150
151 return d3drm_face2_GetAppData(&face->IDirect3DRMFace2_iface);
152}
static DWORD WINAPI d3drm_face2_GetAppData(IDirect3DRMFace2 *iface)
Definition: face.c:136

◆ 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{
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
GLsizeiptr size
Definition: glext.h:5919
Definition: name.c:39

◆ d3drm_face1_GetColor()

static D3DCOLOR WINAPI d3drm_face1_GetColor ( IDirect3DRMFace *  iface)
static

Definition at line 367 of file face.c.

368{
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

◆ 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}

◆ 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{
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

◆ 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}

◆ 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}
GLenum GLuint texture
Definition: glext.h:6295

◆ 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

◆ 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}
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

◆ 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}

◆ 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}
GLuint index
Definition: glext.h:6031

◆ 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}

◆ 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}

◆ 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}
GLuint coords
Definition: glext.h:7368
int vertex_count
Definition: d3drm.c:3367

◆ 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{
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 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 IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:2364

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{
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);
83 }
84
85 return refcount;
86}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define InterlockedDecrement
Definition: armddk.h:52
void d3drm_object_cleanup(IDirect3DRMObject *iface, struct d3drm_object *object)
Definition: d3drm_main.c:153

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{
130
131 TRACE("iface %p, data %#x.\n", iface, data);
132
133 return d3drm_face2_SetAppData(&face->IDirect3DRMFace2_iface, data);
134}
static HRESULT WINAPI d3drm_face2_SetAppData(IDirect3DRMFace2 *iface, DWORD data)
Definition: face.c:116
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

◆ d3drm_face1_SetColor()

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

Definition at line 246 of file face.c.

247{
249
250 TRACE("iface %p, color 0x%08x.\n", iface, color);
251
252 return d3drm_face2_SetColor(&face->IDirect3DRMFace2_iface, color);
253}
static HRESULT WINAPI d3drm_face2_SetColor(IDirect3DRMFace2 *iface, D3DCOLOR color)
Definition: face.c:235
GLuint color
Definition: glext.h:6243

◆ 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{
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}
static HRESULT WINAPI d3drm_face2_SetColorRGB(IDirect3DRMFace2 *iface, D3DVALUE red, D3DVALUE green, D3DVALUE blue)
Definition: face.c:214
GLclampf green
Definition: gl.h:1740
GLclampf GLclampf blue
Definition: gl.h:1740
#define red
Definition: linetest.c:67

◆ 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}

◆ d3drm_face1_SetName()

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

Definition at line 163 of file face.c.

164{
166
167 TRACE("iface %p, name %s.\n", iface, debugstr_a(name));
168
169 return d3drm_face2_SetName(&face->IDirect3DRMFace2_iface, name);
170}
static HRESULT WINAPI d3drm_face2_SetName(IDirect3DRMFace2 *iface, const char *name)
Definition: face.c:154
#define debugstr_a
Definition: kernel32.h:31

◆ 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}

◆ 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}

◆ 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}

◆ 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{
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
static struct d3drm_face * impl_from_IDirect3DRMFace2(IDirect3DRMFace2 *iface)
Definition: face.c:30

◆ d3drm_face2_AddRef()

static ULONG WINAPI d3drm_face2_AddRef ( IDirect3DRMFace2 *  iface)
static

Definition at line 417 of file face.c.

418{
420
421 return d3drm_face1_AddRef(&face->IDirect3DRMFace_iface);
422}
static ULONG WINAPI d3drm_face1_AddRef(IDirect3DRMFace *iface)
Definition: face.c:62

◆ 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}

◆ 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}

◆ 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}

◆ 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{
453
454 TRACE("iface %p, cb %p, ctx %p.\n", iface, cb, ctx);
455
457}
HRESULT d3drm_object_delete_destroy_callback(struct d3drm_object *object, D3DRMOBJECTCALLBACK cb, void *ctx)
Definition: d3drm_main.c:72

◆ d3drm_face2_GetAppData()

static DWORD WINAPI d3drm_face2_GetAppData ( IDirect3DRMFace2 *  iface)
static

Definition at line 136 of file face.c.

137{
139
140 TRACE("iface %p.\n", iface);
141
142 return face->obj.appdata;
143}

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{
462
463 TRACE("iface %p, size %p, name %p.\n", iface, size, name);
464
466}
HRESULT d3drm_object_get_class_name(struct d3drm_object *object, DWORD *size, char *name)
Definition: d3drm_main.c:92

◆ d3drm_face2_GetColor()

static D3DCOLOR WINAPI d3drm_face2_GetColor ( IDirect3DRMFace2 *  iface)
static

Definition at line 358 of file face.c.

359{
361
362 TRACE("iface %p.\n", iface);
363
364 return face->color;
365}

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}

◆ 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{
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

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}

◆ 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}

◆ 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}

◆ 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}

◆ 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}

◆ 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}

◆ 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}

◆ 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}

◆ 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}

◆ 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{
413
414 return d3drm_face1_QueryInterface(&face->IDirect3DRMFace_iface, riid, out);
415}
static HRESULT WINAPI d3drm_face1_QueryInterface(IDirect3DRMFace *iface, REFIID riid, void **out)
Definition: face.c:35

◆ d3drm_face2_Release()

static ULONG WINAPI d3drm_face2_Release ( IDirect3DRMFace2 *  iface)
static

Definition at line 424 of file face.c.

425{
427
428 return d3drm_face1_Release(&face->IDirect3DRMFace_iface);
429}
static ULONG WINAPI d3drm_face1_Release(IDirect3DRMFace *iface)
Definition: face.c:72

◆ d3drm_face2_SetAppData()

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

Definition at line 116 of file face.c.

117{
119
120 TRACE("iface %p, data %#x.\n", iface, data);
121
122 face->obj.appdata = data;
123
124 return D3DRM_OK;
125}
#define D3DRM_OK
Definition: d3drm.h:486

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{
238
239 TRACE("iface %p, color 0x%08x.\n", iface, color);
240
241 face->color = color;
242
243 return D3DRM_OK;
244}

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{
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}
static void d3drm_set_color(D3DCOLOR *color, float r, float g, float b, float a)

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}

◆ d3drm_face2_SetName()

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

Definition at line 154 of file face.c.

155{
157
158 TRACE("iface %p, name %s.\n", iface, debugstr_a(name));
159
160 return d3drm_object_set_name(&face->obj, name);
161}
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}

◆ 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}

◆ 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}

◆ 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}
void d3drm_object_init(struct d3drm_object *object, const char *classname)
Definition: d3drm_main.c:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const struct IDirect3DRMFace2Vtbl d3drm_face2_vtbl
Definition: face.c:586
static const struct IDirect3DRMFaceVtbl d3drm_face1_vtbl
Definition: face.c:376
WCHAR classname[128]
Definition: startup.c:15

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

◆ impl_from_IDirect3DRMFace2()

◆ 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().