mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Add save editor
This commit is contained in:
parent
f20ab2c260
commit
3e8c48c116
10 changed files with 641 additions and 7 deletions
|
@ -977,8 +977,8 @@ uint16_t gfx_d3d11_get_pixel_depth_old(float x, float y) {
|
|||
|
||||
} // namespace
|
||||
|
||||
void* SohImGui::GetTextureByID(int id) {
|
||||
return d3d.textures[id].resource_view.Get();
|
||||
ImTextureID SohImGui::GetTextureByID(int id) {
|
||||
return impl.backend == Backend::DX11 ? d3d.textures[id].resource_view.Get() : reinterpret_cast<ImTextureID>(id);
|
||||
}
|
||||
|
||||
struct GfxRenderingAPI gfx_direct3d11_api = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue