From 99337878eca2807436bcf11d36946b90db44a2d3 Mon Sep 17 00:00:00 2001 From: pryazha Date: Mon, 4 Aug 2025 01:19:01 +0500 Subject: text rendering chapter --- libs/pwyazh/v2f.h | 7 +++++++ libs/pwyazh/v3f.h | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'libs/pwyazh') diff --git a/libs/pwyazh/v2f.h b/libs/pwyazh/v2f.h index bc09b45..67f9bd2 100644 --- a/libs/pwyazh/v2f.h +++ b/libs/pwyazh/v2f.h @@ -8,6 +8,13 @@ v2f(F32 x, F32 y) return(result); } +V2F +v2fa(F32 x) +{ + V2F result = { x, x }; + return(result); +} + V2F v2f_zero() { diff --git a/libs/pwyazh/v3f.h b/libs/pwyazh/v3f.h index f1b4ff7..c5a5c1b 100644 --- a/libs/pwyazh/v3f.h +++ b/libs/pwyazh/v3f.h @@ -8,6 +8,13 @@ v3f(F32 x, F32 y, F32 z) return(result); } +V3F +v3fa(F32 x) +{ + V3F result = { x, x, x }; + return(result); +} + V3F v3f_from_v4f(V4F a) { -- cgit v1.2.3-70-g09d2