55 TRACE(
"%p increasing refcount to %u.\n", iface, refcount);
65 TRACE(
"%p decreasing refcount to %u.\n", iface, refcount);
90 TRACE(
"iface %p, cb %p, ctx %p.\n", iface,
cb,
ctx);
100 TRACE(
"iface %p, cb %p, ctx %p.\n", iface,
cb,
ctx);
109 TRACE(
"iface %p, data %#x.\n", iface,
data);
120 TRACE(
"iface %p.\n", iface);
122 return material->
obj.appdata;
156 TRACE(
"iface %p, power %.8e.\n", iface,
power);
168 TRACE(
"iface %p, r %.8e, g %.8e, b %.8e.\n", iface,
r,
g,
b);
182 TRACE(
"iface %p, r %.8e, g %.8e, b %.8e.\n", iface,
r,
g,
b);
195 TRACE(
"iface %p.\n", iface);
197 return material->
power;
205 TRACE(
"iface %p, r %p, g %p, b %p.\n", iface,
r,
g,
b);
219 TRACE(
"iface %p, r %p, g %p, b %p.\n", iface,
r,
g,
b);
233 TRACE(
"iface %p, r %p, g %p, b %p.\n", iface,
r,
g,
b);
247 TRACE(
"iface %p, r %.8e, g %.8e, b %.8e.\n", iface,
r,
g,
b);
281 static const char classname[] =
"Material";
284 TRACE(
"material %p, d3drm %p.\n", material,
d3drm);
286 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
291 object->d3drm =
d3drm;
294 object->specular.r = 1.0f;
295 object->specular.g = 1.0f;
296 object->specular.b = 1.0f;
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static HRESULT WINAPI d3drm_material_AddDestroyCallback(IDirect3DRMMaterial2 *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_material_SetName(IDirect3DRMMaterial2 *iface, const char *name)
static HRESULT WINAPI d3drm_material_DeleteDestroyCallback(IDirect3DRMMaterial2 *iface, D3DRMOBJECTCALLBACK cb, void *ctx)
static HRESULT WINAPI d3drm_material_SetEmissive(IDirect3DRMMaterial2 *iface, D3DVALUE r, D3DVALUE g, D3DVALUE b)
static HRESULT WINAPI d3drm_material_GetName(IDirect3DRMMaterial2 *iface, DWORD *size, char *name)
static ULONG WINAPI d3drm_material_AddRef(IDirect3DRMMaterial2 *iface)
static HRESULT WINAPI d3drm_material_GetSpecular(IDirect3DRMMaterial2 *iface, D3DVALUE *r, D3DVALUE *g, D3DVALUE *b)
static HRESULT WINAPI d3drm_material_Clone(IDirect3DRMMaterial2 *iface, IUnknown *outer, REFIID iid, void **out)
static ULONG WINAPI d3drm_material_Release(IDirect3DRMMaterial2 *iface)
static HRESULT WINAPI d3drm_material_GetClassName(IDirect3DRMMaterial2 *iface, DWORD *size, char *name)
static HRESULT WINAPI d3drm_material_GetAmbient(IDirect3DRMMaterial2 *iface, D3DVALUE *r, D3DVALUE *g, D3DVALUE *b)
static HRESULT WINAPI d3drm_material_SetSpecular(IDirect3DRMMaterial2 *iface, D3DVALUE r, D3DVALUE g, D3DVALUE b)
static HRESULT WINAPI d3drm_material_SetAppData(IDirect3DRMMaterial2 *iface, DWORD data)
static HRESULT WINAPI d3drm_material_GetEmissive(IDirect3DRMMaterial2 *iface, D3DVALUE *r, D3DVALUE *g, D3DVALUE *b)
static const struct IDirect3DRMMaterial2Vtbl d3drm_material_vtbl
static D3DVALUE WINAPI d3drm_material_GetPower(IDirect3DRMMaterial2 *iface)
static HRESULT WINAPI d3drm_material_QueryInterface(IDirect3DRMMaterial2 *iface, REFIID riid, void **out)
HRESULT d3drm_material_create(struct d3drm_material **material, IDirect3DRM *d3drm)
static HRESULT WINAPI d3drm_material_SetPower(IDirect3DRMMaterial2 *iface, D3DVALUE power)
static DWORD WINAPI d3drm_material_GetAppData(IDirect3DRMMaterial2 *iface)
static HRESULT WINAPI d3drm_material_SetAmbient(IDirect3DRMMaterial2 *iface, D3DVALUE r, D3DVALUE g, D3DVALUE b)
static struct d3drm_material * impl_from_IDirect3DRMMaterial2(IDirect3DRMMaterial2 *iface)
#define IDirect3DRM_Release(p)
#define IDirect3DRM_AddRef(p)
void d3drm_object_cleanup(IDirect3DRMObject *iface, struct d3drm_object *object)
void d3drm_object_init(struct d3drm_object *object, const char *classname)
HRESULT d3drm_object_get_name(struct d3drm_object *object, DWORD *size, char *name)
HRESULT d3drm_object_delete_destroy_callback(struct d3drm_object *object, D3DRMOBJECTCALLBACK cb, void *ctx)
HRESULT d3drm_object_add_destroy_callback(struct d3drm_object *object, D3DRMOBJECTCALLBACK cb, void *ctx)
HRESULT d3drm_object_set_name(struct d3drm_object *object, const char *name)
HRESULT d3drm_object_get_class_name(struct d3drm_object *object, DWORD *size, char *name)
#define IDirect3DRMMaterial2_AddRef(p)
void(__cdecl * D3DRMOBJECTCALLBACK)(struct IDirect3DRMObject *obj, void *arg)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
static HMODULE MODULEINFO DWORD cb
#define IsEqualGUID(rguid1, rguid2)
struct color_rgb specular
struct color_rgb emissive
IDirect3DRMMaterial2 IDirect3DRMMaterial2_iface
#define CONTAINING_RECORD(address, type, field)