#include "config.h"
#include "wine/port.h"
#include "ddraw_private.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (ddraw) |
|
static HRESULT WINAPI | ddraw_palette_QueryInterface (IDirectDrawPalette *iface, REFIID refiid, void **obj) |
|
static ULONG WINAPI | ddraw_palette_AddRef (IDirectDrawPalette *iface) |
|
static ULONG WINAPI | ddraw_palette_Release (IDirectDrawPalette *iface) |
|
static HRESULT WINAPI | ddraw_palette_Initialize (IDirectDrawPalette *iface, IDirectDraw *ddraw, DWORD flags, PALETTEENTRY *entries) |
|
static HRESULT WINAPI | ddraw_palette_GetCaps (IDirectDrawPalette *iface, DWORD *caps) |
|
static HRESULT WINAPI | ddraw_palette_SetEntries (IDirectDrawPalette *iface, DWORD flags, DWORD start, DWORD count, PALETTEENTRY *entries) |
|
static HRESULT WINAPI | ddraw_palette_GetEntries (IDirectDrawPalette *iface, DWORD flags, DWORD start, DWORD count, PALETTEENTRY *entries) |
|
struct ddraw_palette * | unsafe_impl_from_IDirectDrawPalette (IDirectDrawPalette *iface) |
|
static unsigned int | palette_size (DWORD flags) |
|
HRESULT | ddraw_palette_init (struct ddraw_palette *palette, struct ddraw *ddraw, DWORD flags, PALETTEENTRY *entries) |
|
◆ ddraw_palette_AddRef()
static ULONG WINAPI ddraw_palette_AddRef |
( |
IDirectDrawPalette * |
iface | ) |
|
|
static |
Definition at line 67 of file palette.c.
68{
71
73
75}
#define InterlockedIncrement
static struct ddraw_palette * impl_from_IDirectDrawPalette(IDirectDrawPalette *iface)
◆ ddraw_palette_GetCaps()
Definition at line 133 of file palette.c.
134{
136
137 TRACE(
"iface %p, caps %p.\n", iface, caps);
138
142
144}
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
◆ ddraw_palette_GetEntries()
Definition at line 202 of file palette.c.
204{
207
208 TRACE(
"iface %p, flags %#x, start %u, count %u, entries %p.\n",
210
211 if (!entries)
213
217
219}
HRESULT CDECL wined3d_palette_get_entries(const struct wined3d_palette *palette, DWORD flags, DWORD start, DWORD count, PALETTEENTRY *entries)
GLuint GLuint GLsizei count
#define DDERR_INVALIDPARAMS
◆ ddraw_palette_init()
Definition at line 258 of file palette.c.
260{
261 unsigned int entry_count;
262 DWORD wined3d_flags = 0;
264
266 {
269 }
270
277
281
283 wined3d_flags, entry_count, entries, &
palette->wined3d_palette)))
284 {
285 WARN(
"Failed to create wined3d palette, hr %#x.\n",
hr);
287 }
288
291 IUnknown_AddRef(
palette->ifaceToRelease);
292
294}
static const struct IDirectDrawPaletteVtbl ddraw_palette_vtbl
static unsigned int palette_size(DWORD flags)
HRESULT CDECL wined3d_palette_create(struct wined3d_device *device, DWORD flags, unsigned int entry_count, const PALETTEENTRY *entries, struct wined3d_palette **palette)
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
#define DDPCAPS_8BITENTRIES
struct wined3d_device * wined3d_device
IDirectDraw7 IDirectDraw7_iface
#define WINED3D_PALETTE_8BIT_ENTRIES
#define WINED3D_PALETTE_ALLOW_256
#define WINED3D_PALETTE_ALPHA
Referenced by ddraw7_CreatePalette().
◆ ddraw_palette_Initialize()
Definition at line 124 of file palette.c.
126{
127 TRACE(
"iface %p, ddraw %p, flags %#x, entries %p.\n",
129
131}
#define DDERR_ALREADYINITIALIZED
◆ ddraw_palette_QueryInterface()
Definition at line 40 of file palette.c.
41{
43
46 {
48 IDirectDrawPalette_AddRef(iface);
50 }
51 else
52 {
55 }
56}
#define IsEqualGUID(rguid1, rguid2)
◆ ddraw_palette_Release()
static ULONG WINAPI ddraw_palette_Release |
( |
IDirectDrawPalette * |
iface | ) |
|
|
static |
Definition at line 86 of file palette.c.
87{
90
92
94 {
100 IUnknown_Release(
palette->ifaceToRelease);
102
104 }
105
107}
static BOOL heap_free(void *mem)
#define InterlockedDecrement
ULONG CDECL wined3d_palette_decref(struct wined3d_palette *palette)
#define DDPCAPS_PRIMARYSURFACE
◆ ddraw_palette_SetEntries()
Definition at line 163 of file palette.c.
165{
168
169 TRACE(
"iface %p, flags %#x, start %u, count %u, entries %p.\n",
171
172 if (!entries)
174
177
180
182
184}
HRESULT ddraw_surface_update_frontbuffer(struct ddraw_surface *surface, const RECT *rect, BOOL read) DECLSPEC_HIDDEN
HRESULT CDECL wined3d_palette_set_entries(struct wined3d_palette *palette, DWORD flags, DWORD start, DWORD count, const PALETTEENTRY *entries)
◆ palette_size()
◆ unsafe_impl_from_IDirectDrawPalette()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
ddraw |
| ) |
|
◆ ddraw_palette_vtbl
Initial value:=
{
}
static HRESULT WINAPI ddraw_palette_GetEntries(IDirectDrawPalette *iface, DWORD flags, DWORD start, DWORD count, PALETTEENTRY *entries)
static ULONG WINAPI ddraw_palette_AddRef(IDirectDrawPalette *iface)
static HRESULT WINAPI ddraw_palette_SetEntries(IDirectDrawPalette *iface, DWORD flags, DWORD start, DWORD count, PALETTEENTRY *entries)
static HRESULT WINAPI ddraw_palette_QueryInterface(IDirectDrawPalette *iface, REFIID refiid, void **obj)
static HRESULT WINAPI ddraw_palette_Initialize(IDirectDrawPalette *iface, IDirectDraw *ddraw, DWORD flags, PALETTEENTRY *entries)
static ULONG WINAPI ddraw_palette_Release(IDirectDrawPalette *iface)
static HRESULT WINAPI ddraw_palette_GetCaps(IDirectDrawPalette *iface, DWORD *caps)
Definition at line 221 of file palette.c.
Referenced by ddraw_palette_init(), and unsafe_impl_from_IDirectDrawPalette().