mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-03-02 09:22:00 +00:00
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
#ifndef __UI_RENDERER_H__
|
|
#define __UI_RENDERER_H__
|
|
|
|
#include <memory>
|
|
#include "recomp_ui.h"
|
|
|
|
namespace RT64 {
|
|
struct RenderInterface;
|
|
struct RenderDevice;
|
|
struct RenderCommandList;
|
|
struct RenderFramebuffer;
|
|
};
|
|
|
|
namespace Rml {
|
|
class RenderInterface;
|
|
}
|
|
|
|
namespace recompui {
|
|
class RmlRenderInterface_RT64_impl;
|
|
|
|
class RmlRenderInterface_RT64 {
|
|
private:
|
|
std::unique_ptr<RmlRenderInterface_RT64_impl> impl;
|
|
public:
|
|
RmlRenderInterface_RT64();
|
|
~RmlRenderInterface_RT64();
|
|
void reset();
|
|
void init(RT64::RenderInterface* interface, RT64::RenderDevice* device);
|
|
Rml::RenderInterface* get_rml_interface();
|
|
|
|
void start(RT64::RenderCommandList* list, int image_width, int image_height);
|
|
void end(RT64::RenderCommandList* list, RT64::RenderFramebuffer* framebuffer);
|
|
void queue_image_from_bytes_file(const std::string &src, const std::vector<char> &bytes);
|
|
void queue_image_from_bytes_rgba32(const std::string &src, const std::vector<char> &bytes, uint32_t width, uint32_t height);
|
|
};
|
|
} // namespace recompui
|
|
|
|
#endif
|