Skip to content

Commit

Permalink
Better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
disketflu committed Jan 4, 2023
1 parent 6ef1c71 commit 4cd7c08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions draw_and_create_model_no_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions draw_and_create_model_no_pipeline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions draw_and_create_model_no_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 4cd7c08

Please sign in to comment.