- Add ResetFast to Pool using c++20 concept - Add Put function to Pool - Use Pool Index instead of pointers in Command - Add accessor to Li Pools to prevent wrong command usage - Add Command Formatter - Use ResetFast for all Pools - Add Reset func to Li::Vertex (for ResetFast) - Add Pool Expandor and Put funcs to Lithium pools - Add getters for GfxDriverBase to PD::Li Pools
25 lines
427 B
C++
Executable File
25 lines
427 B
C++
Executable File
#pragma once
|
|
|
|
#include <pd/core/vec.hpp>
|
|
|
|
namespace PD {
|
|
namespace Li {
|
|
class Vertex {
|
|
public:
|
|
Vertex() {}
|
|
Vertex(const fvec2& pos, const fvec2& uv, u32 color)
|
|
: pos(pos), uv(uv), color(color) {}
|
|
~Vertex() {}
|
|
|
|
void Reset() {
|
|
pos = fvec2(0.f);
|
|
uv = fvec2(0.f);
|
|
color = 0x00000000;
|
|
}
|
|
|
|
fvec2 pos;
|
|
fvec2 uv;
|
|
u32 color = 0x00000000;
|
|
};
|
|
} // namespace Li
|
|
} // namespace PD
|