From 40a924db3664318615a9a3f11ee25c206cb77fe1 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 1 May 2022 21:44:04 -0400 Subject: Renderer3d basics --- themes/TreeShape.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'themes/TreeShape.h') diff --git a/themes/TreeShape.h b/themes/TreeShape.h index 49ea083..32b00d3 100644 --- a/themes/TreeShape.h +++ b/themes/TreeShape.h @@ -27,7 +27,7 @@ struct TreeBranchLoadData { Vector2 topRight; Vector2 topMidpoint; - void fillVertices(Renderer2dVertex* vertices, int branchTier); + void fillVertices(Vertex2D* vertices, int branchTier); }; struct TreeBranchUpdateData { @@ -36,7 +36,7 @@ struct TreeBranchUpdateData { f32 period = 0; f32 amplitude = 0; Vector2 currentOffset; - Renderer2dVertex* vertices = NULL; + Vertex2D* vertices = NULL; TreeBranchUpdateData* branchToFollow = NULL; }; @@ -51,7 +51,7 @@ struct TreeShapeLoadResult { struct TreeShape { // Update data TreeBranchUpdateData* updateData = NULL; - Renderer2dVertex* vertices = NULL; + Vertex2D* vertices = NULL; f32 timeElapsedSeconds = 0.f; f32 animateTimePerTier = 1.f; f32 animateStaggerPerTier = 0.2f; @@ -66,7 +66,7 @@ struct TreeShape { TreeShapeLoadResult load(Renderer2d* renderer); void createBranch(TreeLoadData* ld, TreeBranchLoadData* branchList, i32 numBranches, i32* branchIndex, i32 branchLevel, f32 width, f32 height, - Vector2 position, f32 rotation, TreeBranchUpdateData* parent, Renderer2dVertex* vertices, TreeShapeLoadResult* lr); + Vector2 position, f32 rotation, TreeBranchUpdateData* parent, Vertex2D* vertices, TreeShapeLoadResult* lr); void update(f32 dtSeconds); void render(Renderer2d* renderer); void unload(); -- cgit v1.2.1