Go to the source code of this file.
◆ d3d_light_AddRef()
| static ULONG WINAPI d3d_light_AddRef |
( |
IDirect3DLight * |
iface | ) |
|
|
static |
Definition at line 121 of file light.c.
122{
125
127
129}
#define InterlockedIncrement
static struct d3d_light * impl_from_IDirect3DLight(IDirect3DLight *iface)
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
◆ d3d_light_GetLight()
Definition at line 225 of file light.c.
226{
228
229 TRACE(
"iface %p, light %p.\n", iface, lpLight);
230
234
236}
#define memcpy(s1, s2, n)
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
◆ d3d_light_init()
◆ d3d_light_Initialize()
| static HRESULT WINAPI d3d_light_Initialize |
( |
IDirect3DLight * |
iface, |
|
|
IDirect3D * |
d3d |
|
) |
| |
|
static |
Definition at line 163 of file light.c.
164{
165 TRACE(
"iface %p, d3d %p.\n", iface, d3d);
166
168}
◆ d3d_light_QueryInterface()
◆ d3d_light_Release()
| static ULONG WINAPI d3d_light_Release |
( |
IDirect3DLight * |
iface | ) |
|
|
static |
Definition at line 131 of file light.c.
132{
135
137
139 {
141 return 0;
142 }
144}
#define InterlockedDecrement
◆ d3d_light_SetLight()
Definition at line 170 of file light.c.
171{
172 static const D3DCOLORVALUE zero_value = {{0.0f}, {0.0f}, {0.0f}, {0.0f}};
176
177 TRACE(
"iface %p, data %p.\n", iface,
data);
178
181
182
187 else
199
202
205
209
211}
#define D3DLIGHT_NO_SPECULAR
struct _D3DLIGHT2 D3DLIGHT2
void light_activate(struct d3d_light *light)
void light_deactivate(struct d3d_light *light)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
#define DDERR_INVALIDPARAMS
D3DCOLORVALUE dcvSpecular
◆ impl_from_IDirect3DLight()
| static struct d3d_light * impl_from_IDirect3DLight |
( |
IDirect3DLight * |
iface | ) |
|
|
inlinestatic |
◆ light_activate()
Definition at line 48 of file light.c.
49{
51
53
54 if (!
light->active_viewport || !
light->active_viewport->active_device
55 ||
light->active_viewport->active_device->current_viewport !=
light->active_viewport)
56 return;
58
60 {
64 }
65}
#define IDirect3DDevice7_LightEnable(p, a, b)
void viewport_alloc_active_light_index(struct d3d_light *light)
static void light_update(struct d3d_light *light)
Referenced by d3d_light_SetLight(), d3d_viewport_AddLight(), and viewport_activate().
◆ light_deactivate()
◆ light_update()
Definition at line 30 of file light.c.
31{
33
35
36 if (!
light->active_viewport || !
light->active_viewport->active_device)
return;
38
40}
#define IDirect3DDevice7_SetLight(p, a, b)
Referenced by light_activate().
◆ unsafe_impl_from_IDirect3DLight()
| struct d3d_light * unsafe_impl_from_IDirect3DLight |
( |
IDirect3DLight * |
iface | ) |
|
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
ddraw |
| ) |
|
◆ d3d_light_vtbl
Initial value:=
{
}
static HRESULT WINAPI d3d_light_SetLight(IDirect3DLight *iface, D3DLIGHT *data)
static ULONG WINAPI d3d_light_AddRef(IDirect3DLight *iface)
static HRESULT WINAPI d3d_light_GetLight(IDirect3DLight *iface, D3DLIGHT *lpLight)
static HRESULT WINAPI d3d_light_QueryInterface(IDirect3DLight *iface, REFIID riid, void **object)
static HRESULT WINAPI d3d_light_Initialize(IDirect3DLight *iface, IDirect3D *d3d)
static ULONG WINAPI d3d_light_Release(IDirect3DLight *iface)
Definition at line 238 of file light.c.
Referenced by d3d_light_init(), and unsafe_impl_from_IDirect3DLight().