mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Move d3d8_texture_new to d3d8.c and make it static
This commit is contained in:
parent
923b756926
commit
29584b9960
@ -95,22 +95,6 @@ void d3d8_deinitialize_symbols(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void *d3d8_texture_new(LPDIRECT3DDEVICE8 dev,
|
|
||||||
unsigned width, unsigned height,
|
|
||||||
unsigned miplevels, unsigned usage, INT32 format,
|
|
||||||
INT32 pool, unsigned filter, unsigned mipfilter,
|
|
||||||
INT32 color_key, void *src_info_data,
|
|
||||||
PALETTEENTRY *palette, bool want_mipmap)
|
|
||||||
{
|
|
||||||
void *buf = NULL;
|
|
||||||
if (SUCCEEDED(IDirect3DDevice8_CreateTexture(dev,
|
|
||||||
width, height, miplevels, usage,
|
|
||||||
(D3DFORMAT)format, (D3DPOOL)pool,
|
|
||||||
(struct IDirect3DTexture8**)&buf)))
|
|
||||||
return buf;
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool d3d8_create_device_internal(
|
static bool d3d8_create_device_internal(
|
||||||
LPDIRECT3DDEVICE8 dev,
|
LPDIRECT3DDEVICE8 dev,
|
||||||
D3DPRESENT_PARAMETERS *d3dpp,
|
D3DPRESENT_PARAMETERS *d3dpp,
|
||||||
|
@ -81,13 +81,6 @@ d3d8_vertex_buffer_lock(LPDIRECT3DVERTEXBUFFER8 vertbuf)
|
|||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *d3d8_texture_new(LPDIRECT3DDEVICE8 dev,
|
|
||||||
unsigned width, unsigned height,
|
|
||||||
unsigned miplevels, unsigned usage, INT32 format,
|
|
||||||
INT32 pool, unsigned filter, unsigned mipfilter,
|
|
||||||
INT32 color_key, void *src_info_data,
|
|
||||||
PALETTEENTRY *palette, bool want_mipmap);
|
|
||||||
|
|
||||||
bool d3d8_create_device(void *dev,
|
bool d3d8_create_device(void *dev,
|
||||||
void *d3dpp,
|
void *d3dpp,
|
||||||
LPDIRECT3D8 d3d,
|
LPDIRECT3D8 d3d,
|
||||||
|
@ -96,6 +96,22 @@ struct d3d8_texture_info
|
|||||||
enum texture_filter_type type;
|
enum texture_filter_type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void *d3d8_texture_new(LPDIRECT3DDEVICE8 dev,
|
||||||
|
unsigned width, unsigned height,
|
||||||
|
unsigned miplevels, unsigned usage, INT32 format,
|
||||||
|
INT32 pool, unsigned filter, unsigned mipfilter,
|
||||||
|
INT32 color_key, void *src_info_data,
|
||||||
|
PALETTEENTRY *palette, bool want_mipmap)
|
||||||
|
{
|
||||||
|
void *buf = NULL;
|
||||||
|
if (SUCCEEDED(IDirect3DDevice8_CreateTexture(dev,
|
||||||
|
width, height, miplevels, usage,
|
||||||
|
(D3DFORMAT)format, (D3DPOOL)pool,
|
||||||
|
(struct IDirect3DTexture8**)&buf)))
|
||||||
|
return buf;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
void d3d8_set_mvp(void *data, const void *mat_data)
|
void d3d8_set_mvp(void *data, const void *mat_data)
|
||||||
{
|
{
|
||||||
struct d3d_matrix matrix;
|
struct d3d_matrix matrix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user