void gizmo_line(context &ctx, vec2 a, vec2 b, rgba color=colors::green, f32 duration=0.0f)
Đoạn thẳng 2D.
void gizmo_axes3d(context &ctx, vec3 pos, f32 size=1.0f, f32 duration=0.0f)
Ba trục tọa độ tại pos: x đỏ, y xanh lá, z xanh dương.
bool gizmos_visible(const context &ctx)
Gizmo có đang được vẽ không.
void gizmo_text(context &ctx, vec2 pos, const char *text, rgba color=colors::white, f32 duration=0.0f)
Nhãn chữ tại một điểm của thế giới 2D, cỡ cố định trên màn hình.
void gizmo_point(context &ctx, vec2 p, rgba color=colors::green, f32 duration=0.0f)
Một điểm 2D: dấu chữ thập nhỏ, cỡ cố định trên màn hình.
void gizmo_arrow(context &ctx, vec2 from, vec2 to, rgba color=colors::green, f32 duration=0.0f)
Mũi tên 2D từ from tới to.
void gizmo_rect(context &ctx, rect r, rgba color=colors::green, f32 duration=0.0f)
Khung hình chữ nhật 2D.
void gizmo_arrow3d(context &ctx, vec3 from, vec3 to, rgba color=colors::green, f32 duration=0.0f)
Mũi tên 3D từ from tới to.
void gizmo_box3d(context &ctx, vec3 center, vec3 size, rgba color=colors::green, f32 duration=0.0f)
Khung hộp 3D, các cạnh song song với trục.
void gizmo_sphere3d(context &ctx, vec3 center, f32 radius, rgba color=colors::green, f32 duration=0.0f)
Khung cầu 3D: ba đường tròn lớn.
void gizmos_set_visible(context &ctx, bool visible)
Bật hay tắt việc vẽ gizmo.
void gizmo_circle(context &ctx, vec2 center, f32 radius, rgba color=colors::green, f32 duration=0.0f)
Đường tròn 2D.
void gizmo_point3d(context &ctx, vec3 p, rgba color=colors::green, f32 duration=0.0f)
Một điểm 3D: dấu chữ thập nhỏ, cỡ cố định trên màn hình.
void gizmo_text3d(context &ctx, vec3 pos, const char *text, rgba color=colors::white, f32 duration=0.0f)
Nhãn chữ gắn vào một điểm 3D, cỡ cố định trên màn hình.
void gizmo_line3d(context &ctx, vec3 a, vec3 b, rgba color=colors::green, f32 duration=0.0f)
Đoạn thẳng 3D.
float f32
Số thực 32 bit.
Definition _types.h:28
constexpr rgba white
Trắng.
Definition _math.h:234
constexpr rgba green
Xanh lá.
Definition _math.h:237
Hình chữ nhật thẳng trục: pos là góc trên trái, size là rộng và cao.
Definition _math.h:13
Màu gồm đỏ, xanh lá, xanh dương và alpha.
Definition _types.h:64
Vector 2 chiều. Dùng cho vị trí, kích thước, độ dời.
Definition _types.h:39
Vector 3 chiều.
Definition _types.h:47