39 if (!
light->active_viewport || !
light->active_viewport->active_device)
return;
57 if (!
light->active_viewport || !
light->active_viewport->active_device)
return;
81 if (!
light->active_viewport || !
light->active_viewport->active_device)
return;
87 light->light.dwFlags &= ~D3DLIGHT_ACTIVE;
161 TRACE(
"iface %p, d3d %p.\n", iface, d3d);
168 static const D3DCOLORVALUE zero_value = {{0.0f}, {0.0f}, {0.0f}, {0.0f}};
173 TRACE(
"iface %p, data %p.\n", iface,
data);
226 TRACE(
"iface %p, light %p.\n", iface, lpLight);
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define IDirect3DDevice7_LightEnable(p, a, b)
#define IDirect3DDevice7_SetLight(p, a, b)
#define D3DLIGHT_NO_SPECULAR
struct _D3DLIGHT2 D3DLIGHT2
static HRESULT WINAPI d3d_light_SetLight(IDirect3DLight *iface, D3DLIGHT *data)
void light_activate(struct d3d_light *light)
void light_deactivate(struct d3d_light *light)
static ULONG WINAPI d3d_light_AddRef(IDirect3DLight *iface)
static HRESULT WINAPI d3d_light_GetLight(IDirect3DLight *iface, D3DLIGHT *lpLight)
void d3d_light_init(struct d3d_light *light, struct ddraw *ddraw)
struct d3d_light * unsafe_impl_from_IDirect3DLight(IDirect3DLight *iface)
static void light_update(struct d3d_light *light)
static HRESULT WINAPI d3d_light_QueryInterface(IDirect3DLight *iface, REFIID riid, void **object)
static const struct IDirect3DLightVtbl d3d_light_vtbl
static HRESULT WINAPI d3d_light_Initialize(IDirect3DLight *iface, IDirect3D *d3d)
static struct d3d_light * impl_from_IDirect3DLight(IDirect3DLight *iface)
static ULONG WINAPI d3d_light_Release(IDirect3DLight *iface)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
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 light
#define memcpy(s1, s2, n)
#define DDERR_INVALIDPARAMS
D3DCOLORVALUE dcvSpecular
IDirect3DLight IDirect3DLight_iface
#define CONTAINING_RECORD(address, type, field)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)