port from perforce

This commit is contained in:
2026-04-18 22:31:51 +02:00
commit 8d0ab5b7cc
8409 changed files with 3972376 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#pragma once
#include "ICommandUser.h"
#include "IRenderCommandNode.h"
class CommandUserBase
: public ICommandUser
{
public:
CommandUserBase();
virtual ~CommandUserBase();
virtual const std::vector<Command*>& GetCommands() const;
virtual CommandExecuteResult::Enumeration ExecuteCommand(unsigned char argCommandType, ICommandBuffer& argCurrentBuffer, uint32 argCurrentPositon) = 0;
virtual void AssignToRenderCommandNode(IRenderCommandNode& argNode);
virtual void UnassignFromRenderCommandNode(IRenderCommandNode& argNode);
virtual bool get_IsPreconditionForNextCommands() const { return false; }
virtual string8 get_UserName() const = 0;
protected:
void UnassignFromSceneNodes();
void MarkCommandsAsDirty();
std::vector<Command*> m_Commands;
private:
std::vector<IRenderCommandNode*> m_RenderCommandNodesIamAssignedTo;
};