mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
graphics mod action (add ability to set owning draw call)
This commit is contained in:
parent
4c71e8c48b
commit
4d875245cb
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
#include <picojson.h>
|
#include <picojson.h>
|
||||||
|
|
||||||
#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h"
|
#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h"
|
||||||
|
#include "VideoCommon/GraphicsModSystem/Types.h"
|
||||||
|
|
||||||
class GraphicsModAction
|
class GraphicsModAction
|
||||||
{
|
{
|
||||||
|
@ -30,10 +31,16 @@ public:
|
||||||
void SetID(u64 id) { m_id = id; }
|
void SetID(u64 id) { m_id = id; }
|
||||||
u64 GetID() const { return m_id; }
|
u64 GetID() const { return m_id; }
|
||||||
|
|
||||||
|
void SetDrawCall(GraphicsModSystem::DrawCallID draw_call) { m_draw_call = draw_call; }
|
||||||
|
GraphicsModSystem::DrawCallID GetDrawCall() const { return m_draw_call; }
|
||||||
|
|
||||||
virtual void DrawImGui() {}
|
virtual void DrawImGui() {}
|
||||||
virtual void SerializeToConfig(picojson::object* obj) {}
|
virtual void SerializeToConfig(picojson::object* obj) {}
|
||||||
virtual std::string GetFactoryName() const { return ""; }
|
virtual std::string GetFactoryName() const { return ""; }
|
||||||
|
|
||||||
|
protected:
|
||||||
|
GraphicsModSystem::DrawCallID m_draw_call = GraphicsModSystem::DrawCallID::INVALID;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
u64 m_id = 0;
|
u64 m_id = 0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue