mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
(D3D) Cleanups pt. 4
This commit is contained in:
parent
9081500780
commit
8a516b13ac
@ -375,12 +375,13 @@ bool renderchain_render(void *chain_data, const void *data,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool renderchain_create_first_pass(void *data, const LinkInfo *info,
|
bool renderchain_create_first_pass(void *data, const void *info_data,
|
||||||
PixelFormat fmt)
|
PixelFormat fmt)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
Pass pass;
|
Pass pass;
|
||||||
D3DXMATRIX ident;
|
D3DXMATRIX ident;
|
||||||
|
const LinkInfo *info = (const LinkInfo*)info_data;
|
||||||
renderchain_t *chain = (renderchain_t*)data;
|
renderchain_t *chain = (renderchain_t*)data;
|
||||||
LPDIRECT3DDEVICE d3dr = NULL;
|
LPDIRECT3DDEVICE d3dr = NULL;
|
||||||
|
|
||||||
@ -531,11 +532,12 @@ void renderchain_set_viewport(void *data, D3DVIEWPORT *vp)
|
|||||||
d3d_set_viewport(d3dr, vp);
|
d3d_set_viewport(d3dr, vp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void renderchain_set_mvp(void *data, CGprogram &vPrg,
|
void renderchain_set_mvp(void *data, void *vertex_program,
|
||||||
unsigned vp_width, unsigned vp_height,
|
unsigned vp_width, unsigned vp_height,
|
||||||
unsigned rotation)
|
unsigned rotation)
|
||||||
{
|
{
|
||||||
D3DXMATRIX proj, ortho, rot, tmp;
|
D3DXMATRIX proj, ortho, rot, tmp;
|
||||||
|
CGprogram vPrg = (CGprogram)vertex_program;
|
||||||
renderchain_t *chain = (renderchain_t*)data;
|
renderchain_t *chain = (renderchain_t*)data;
|
||||||
|
|
||||||
if (!chain)
|
if (!chain)
|
||||||
|
@ -139,7 +139,7 @@ D3DTEXTUREFILTERTYPE renderchain_translate_filter(unsigned type);
|
|||||||
D3DTEXTUREFILTERTYPE renderchain_translate_filter(bool smooth);
|
D3DTEXTUREFILTERTYPE renderchain_translate_filter(bool smooth);
|
||||||
|
|
||||||
bool renderchain_create_first_pass(void *data,
|
bool renderchain_create_first_pass(void *data,
|
||||||
const LinkInfo *info, PixelFormat fmt);
|
const void *info_data, PixelFormat fmt);
|
||||||
|
|
||||||
void renderchain_set_vertices(
|
void renderchain_set_vertices(
|
||||||
void *data, void *pass_data,
|
void *data, void *pass_data,
|
||||||
@ -150,7 +150,7 @@ void renderchain_set_vertices(
|
|||||||
|
|
||||||
void renderchain_set_viewport(void *data, D3DVIEWPORT *vp);
|
void renderchain_set_viewport(void *data, D3DVIEWPORT *vp);
|
||||||
|
|
||||||
void renderchain_set_mvp(void *data, CGprogram &vPrg,
|
void renderchain_set_mvp(void *data, void *vertex_program,
|
||||||
unsigned vp_width, unsigned vp_height,
|
unsigned vp_width, unsigned vp_height,
|
||||||
unsigned rotation);
|
unsigned rotation);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user