faster rect command creation
This commit is contained in:
@@ -45,6 +45,8 @@ class PD_API Drawlist {
|
||||
|
||||
/** Command Allocation */
|
||||
Command& NewCommand();
|
||||
bool HasCommands() { return pCommands.size() > 0; }
|
||||
Command& GetLastCommand() { return pCommands[pCommands.size() - 1]; }
|
||||
|
||||
/** Path API */
|
||||
void PathAdd(const fvec2& point) { pPath.Push(point); }
|
||||
|
||||
@@ -9,6 +9,8 @@ class Vertex {
|
||||
Vertex() {}
|
||||
Vertex(const fvec2& pos, const fvec2& uv, u32 color)
|
||||
: pos(pos), uv(uv), color(color) {}
|
||||
Vertex(float x, float y, float u, float v, u32 color)
|
||||
: pos(x, y), uv(u, v), color(color) {}
|
||||
~Vertex() {}
|
||||
|
||||
void Reset() {
|
||||
|
||||
Reference in New Issue
Block a user