Files
dl_old/dl/render/dl_graphics.cpp
T
2023-08-20 00:03:30 +08:00

36 lines
629 B
C++

#include "dl_graphics.h"
#include "vk/dl_vk.h"
namespace dl
{
// 汉
void Graphics::Dot(const Position3& p)
{
VertexGfx v;
v._pos = p;
v._color = _col;
g_vk->GfxPushDot(v);
}
void Graphics::Line(const Position3& p0, const Position3& p1)
{
g_vk->GfxPushLine({ p0, _col }, { p1, _col });
}
void Graphics::Triangle(const Position3& p0, const Position3& p1, const Position3& p2)
{
g_vk->GfxPushTriangle({ p0, _col }, { p1, _col }, { p2, _col });
}
void Graphics::TriangleSolid(const Position3& p0, const Position3& p1, const Position3& p2)
{
g_vk->GfxPushTriangleSolid({ p0, _col }, { p1, _col }, { p2, _col });
}
}