mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 05:29:57 +00:00
21 lines
521 B
C++
21 lines
521 B
C++
#pragma once
|
|
#include <cstdint>
|
|
#include "UIActions.h"
|
|
|
|
namespace cdc {
|
|
|
|
class IRenderDrawable {
|
|
protected:
|
|
friend class DrawableList;
|
|
uint16_t typeID = 0; // 4, kDrawableTypeIDDefault
|
|
uint16_t order = 0; // 6
|
|
float sortZ = 0.0f; // 8
|
|
public:
|
|
virtual void draw(uint32_t funcSetIndex, IRenderDrawable *other) = 0;
|
|
virtual uint32_t compare(uint32_t funcSetIndex, IRenderDrawable *other) = 0;
|
|
virtual void buildUI(uint32_t funcSetIndex, UIActions&) {} // HACK
|
|
uint32_t getVtable() { return *(uint32_t*)this; }
|
|
};
|
|
|
|
}
|