mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-11-30 02:56:42 -08:00
## Link to GitHub Issue or related Pull Request, if one exists n/a ## Description of change To make plugin development easier, add `get_module_info` and `get_plugin_directory` to deal with common tasks for hooking DLLs and reading INI files. Also, add the ability to register for d3d9 present callbacks via `register_d3d9`, which makes it significantly easier for plugins to draw things on screen. ## Testing See sample code.
17 lines
512 B
C++
17 lines
512 B
C++
#pragma once
|
|
|
|
#include <d3d9.h>
|
|
#include "modules.h"
|
|
|
|
namespace sdk::d3d9 {
|
|
|
|
SPICE_SDK_STATUS_CODE register_d3d9(const std::vector<SdkModule> &modules,
|
|
spice_sdk_d3d9_callback_func *callback, void *userdata);
|
|
void draw(HWND window, IDirect3DDevice9 *device);
|
|
void present_complete(IDirect3DDevice9 *device, HRESULT result);
|
|
void invalidate(IDirect3DDevice9 *device);
|
|
void reset_complete(IDirect3DDevice9 *device, bool success);
|
|
void destroy(IDirect3DDevice9 *device);
|
|
bool shutdown(bool graphics_stopped);
|
|
|
|
} |