refactoring
This commit is contained in:
parent
95afd87656
commit
baaa87b18f
62 changed files with 7231 additions and 6636 deletions
|
@ -1,11 +1,35 @@
|
|||
#pragma once
|
||||
#ifndef RENDER_D3D9_H
|
||||
#define RENDER_D3D9_H
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <d3d9.h>
|
||||
|
||||
#define D3D9_TEXTURE_COUNT 2
|
||||
|
||||
typedef struct CUSTOMVERTEX { float x, y, z, rhw, u, v; } CUSTOMVERTEX;
|
||||
|
||||
DWORD WINAPI render_d3d9_main(void);
|
||||
BOOL Direct3D9_Create();
|
||||
BOOL Direct3D9_Reset();
|
||||
BOOL Direct3D9_Release();
|
||||
BOOL Direct3D9_OnDeviceLost();
|
||||
typedef struct d3d9_renderer
|
||||
{
|
||||
HMODULE hmodule;
|
||||
D3DPRESENT_PARAMETERS params;
|
||||
LPDIRECT3D9 instance;
|
||||
LPDIRECT3DDEVICE9 device;
|
||||
LPDIRECT3DVERTEXBUFFER9 vertex_buf;
|
||||
IDirect3DTexture9* surface_tex[D3D9_TEXTURE_COUNT];
|
||||
IDirect3DTexture9* palette_tex[D3D9_TEXTURE_COUNT];
|
||||
IDirect3DPixelShader9* pixel_shader;
|
||||
float scale_w;
|
||||
float scale_h;
|
||||
int bits_per_pixel;
|
||||
} d3d9_renderer;
|
||||
|
||||
extern HMODULE Direct3D9_hModule;
|
||||
BOOL d3d9_is_available();
|
||||
DWORD WINAPI d3d9_render_main(void);
|
||||
BOOL d3d9_create();
|
||||
BOOL d3d9_reset();
|
||||
BOOL d3d9_release();
|
||||
BOOL d3d9_on_device_lost();
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue