mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24: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 "VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h"
|
||||
#include "VideoCommon/GraphicsModSystem/Types.h"
|
||||
|
||||
class GraphicsModAction
|
||||
{
|
||||
|
@ -30,10 +31,16 @@ public:
|
|||
void SetID(u64 id) { m_id = 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 SerializeToConfig(picojson::object* obj) {}
|
||||
virtual std::string GetFactoryName() const { return ""; }
|
||||
|
||||
protected:
|
||||
GraphicsModSystem::DrawCallID m_draw_call = GraphicsModSystem::DrawCallID::INVALID;
|
||||
|
||||
private:
|
||||
u64 m_id = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue