From 4cd7c08bcf7710566070bf94bba4086019a6fa54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 4 Jan 2023 16:49:39 +0100 Subject: [PATCH] Better comments --- draw_and_create_model_no_pipeline.go | 6 +++--- draw_and_create_model_no_pipeline.lua | 4 ++-- draw_and_create_model_no_pipeline.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/draw_and_create_model_no_pipeline.go b/draw_and_create_model_no_pipeline.go index 47de361..8f4c7b8 100644 --- a/draw_and_create_model_no_pipeline.go +++ b/draw_and_create_model_no_pipeline.go @@ -19,7 +19,7 @@ func main() { mdl_builder := hg.NewModelBuilder() - // Below are the 6 faces of the cube model, with 4 vertices declared for each face, that are added as 2 triangles to make a complete cubic face + // Below are the 6 faces of the cube model, with 4 vertices declared for each face, that are added as 2 triangles to make a complete quad face // - vertex0 := hg.NewVertex() // Vertex constructor @@ -47,7 +47,7 @@ func main() { d := mdl_builder.AddVertex(vertex3) mdl_builder.AddTriangle(d, c, b) // Adding the first triangle of the current face - mdl_builder.AddTriangle(b, a, d) // Second one + mdl_builder.AddTriangle(b, a, d) // Second triangle // + vertex0 = hg.NewVertex() @@ -189,7 +189,7 @@ func main() { mdl_builder.AddTriangle(a, b, c) mdl_builder.AddTriangle(a, c, d) - cube_mdl := mdl_builder.MakeModel(vtx_layout) // Create the actuel cube model + cube_mdl := mdl_builder.MakeModel(vtx_layout) // Create the actual cube model ground_mdl := hg.CreatePlaneModel(vtx_layout, 5, 5, 1, 1) diff --git a/draw_and_create_model_no_pipeline.lua b/draw_and_create_model_no_pipeline.lua index 2802c8e..306b3f4 100644 --- a/draw_and_create_model_no_pipeline.lua +++ b/draw_and_create_model_no_pipeline.lua @@ -14,7 +14,7 @@ vtx_layout = hg.VertexLayoutPosFloatNormUInt8() mdl_builder = hg.ModelBuilder() --- Below are the 6 faces of the cube model, with 4 vertices declared for each face, that are added as 2 triangles to make a complete cubic face +-- Below are the 6 faces of the cube model, with 4 vertices declared for each face, that are added as 2 triangles to make a complete quad face -- - vertex0 = hg.Vertex() -- Vertex constructor @@ -42,7 +42,7 @@ vertex3.uv0 = hg.Vec2(1, 0) d = mdl_builder:AddVertex(vertex3) mdl_builder:AddTriangle(d, c, b) -- Adding the first triangle of the current face -mdl_builder:AddTriangle(b, a, d) -- Second one +mdl_builder:AddTriangle(b, a, d) -- Second triangle -- + vertex0 = hg.Vertex() diff --git a/draw_and_create_model_no_pipeline.py b/draw_and_create_model_no_pipeline.py index 47304ef..ff0d380 100644 --- a/draw_and_create_model_no_pipeline.py +++ b/draw_and_create_model_no_pipeline.py @@ -14,7 +14,7 @@ mdl_builder = hg.ModelBuilder() -# Below are the 6 faces of the cube model, with 4 vertices declared for each face, that are added as 2 triangles to make a complete cubic face +# Below are the 6 faces of the cube model, with 4 vertices declared for each face, that are added as 2 triangles to make a complete quad face # - vertex0 = hg.Vertex() # Vertex constructor @@ -42,7 +42,7 @@ d = mdl_builder.AddVertex(vertex3) mdl_builder.AddTriangle(d, c, b) # Adding the first triangle of the current face -mdl_builder.AddTriangle(b, a, d) # Second one +mdl_builder.AddTriangle(b, a, d) # Second triangle # + vertex0 = hg.Vertex() @@ -184,7 +184,7 @@ mdl_builder.AddTriangle(a, b, c) mdl_builder.AddTriangle(a, c, d) -cube_mdl = mdl_builder.MakeModel(vtx_layout) # Create the actuel cube model +cube_mdl = mdl_builder.MakeModel(vtx_layout) # Create the actual cube model ground_mdl = hg.CreatePlaneModel(vtx_layout, 5, 5, 1, 1)