danaugrs пре 7 година
родитељ
комит
194239b198
11 измењених фајлова са 15 додато и 15 уклоњено
  1. 1 1
      audio/wave.go
  2. 2 2
      gui/dropdown.go
  3. 1 1
      gui/list.go
  4. 2 2
      gui/table.go
  5. 2 2
      math32/box2.go
  6. 2 2
      math32/box3.go
  7. 1 1
      math32/quaternion.go
  8. 1 1
      renderer/shaman.go
  9. 1 1
      texture/animator.go
  10. 1 1
      util/logger/doc.go
  11. 1 1
      util/stats/stats.go

+ 1 - 1
audio/wave.go

@@ -10,7 +10,7 @@ import (
 	"os"
 )
 
-// WaveSpecs describes the characterists of the audio encoded in a wave file.
+// WaveSpecs describes the characteristics of the audio encoded in a wave file.
 type WaveSpecs struct {
 	Format     int     // OpenAl Format
 	Type       int     // Type field from wave header

+ 2 - 2
gui/dropdown.go

@@ -80,14 +80,14 @@ func (dd *DropDown) Add(item *ImageLabel) {
 }
 
 // InsertAt inserts a list item at the specified position
-// Returs true if the item was successfuly inserted
+// Returs true if the item was successfully inserted
 func (dd *DropDown) InsertAt(pos int, item *ImageLabel) {
 
 	dd.list.InsertAt(pos, item)
 }
 
 // RemoveAt removes the list item from the specified position
-// Returs true if the item was successfuly removed
+// Returs true if the item was successfully removed
 func (dd *DropDown) RemoveAt(pos int) {
 
 	dd.list.RemoveAt(pos)

+ 1 - 1
gui/list.go

@@ -120,7 +120,7 @@ func (li *List) Add(item IPanel) {
 }
 
 // InsertAt inserts a list item at the specified position
-// Returs true if the item was successfuly inserted
+// Returs true if the item was successfully inserted
 func (li *List) InsertAt(pos int, item IPanel) {
 
 	litem := newListItem(li, item)

+ 2 - 2
gui/table.go

@@ -1229,7 +1229,7 @@ func (t *Table) recalcHeader() {
 				continue
 			}
 			// There is space available and if column is expandable,
-			// expands it proportionaly to the other expandable columns
+			// expands it proportionally to the other expandable columns
 			factor := c.expand / totalExpand
 			w := factor * wspace
 			c.SetWidth(c.Width() + w)
@@ -1517,7 +1517,7 @@ func (t *Table) onVScrollBar(evname string, ev interface{}) {
 }
 
 // calcMaxFirst calculates the maximum index of the first visible row
-// such as the remaing rows fits completely inside the table
+// such as the remaining rows fits completely inside the table
 // It is used when scrolling the table vertically
 func (t *Table) calcMaxFirst() int {
 

+ 2 - 2
math32/box2.go

@@ -20,7 +20,7 @@ func NewBox2(min, max *Vector2) *Box2 {
 	return b
 }
 
-// Set sets this bounding box minumum and maximum coordinates.
+// Set sets this bounding box minimum and maximum coordinates.
 // Returns pointer to this updated bounding box.
 func (b *Box2) Set(min, max *Vector2) *Box2 {
 
@@ -49,7 +49,7 @@ func (b *Box2) SetFromPoints(points []*Vector2) *Box2 {
 }
 
 // SetFromCenterAndSize set this bounding box from a center point and size.
-// Size is a vector from the minumum point to the maximum point.
+// Size is a vector from the minimum point to the maximum point.
 // Returns pointer to this updated bounding box.
 func (b *Box2) SetFromCenterAndSize(center, size *Vector2) *Box2 {
 

+ 2 - 2
math32/box3.go

@@ -20,7 +20,7 @@ func NewBox3(min, max *Vector3) *Box3 {
 	return b
 }
 
-// Set sets this bounding box minumum and maximum coordinates.
+// Set sets this bounding box minimum and maximum coordinates.
 // Returns pointer to this updated bounding box.
 func (b *Box3) Set(min, max *Vector3) *Box3 {
 
@@ -49,7 +49,7 @@ func (b *Box3) SetFromPoints(points []Vector3) *Box3 {
 }
 
 // SetFromCenterAndSize set this bounding box from a center point and size.
-// Size is a vector from the minumum point to the maximum point.
+// Size is a vector from the minimum point to the maximum point.
 // Returns pointer to this updated bounding box.
 func (b *Box3) SetFromCenterAndSize(center, size *Vector3) *Box3 {
 

+ 1 - 1
math32/quaternion.go

@@ -228,7 +228,7 @@ func (q *Quaternion) Dot(other *Quaternion) float32 {
 	return q.X*other.X + q.Y*other.Y + q.Z*other.Z + q.W*other.W
 }
 
-// LengthSq returns this quanternion's lenght squared
+// LengthSq returns this quanternion's length squared
 func (q *Quaternion) lengthSq() float32 {
 
 	return q.X*q.X + q.Y*q.Y + q.Z*q.Z + q.W*q.W

+ 1 - 1
renderer/shaman.go

@@ -271,7 +271,7 @@ func (sm *Shaman) preprocess(source string, defines map[string]string) (string,
 		if err != nil {
 			return "", err
 		}
-		// Replace all occurances of the include directive with its processed source code
+		// Replace all occurrances of the include directive with its processed source code
 		newSource = strings.Replace(newSource, m[0], incSource, -1)
 	}
 	return prefix + newSource, nil

+ 1 - 1
texture/animator.go

@@ -12,7 +12,7 @@ import (
 type Animator struct {
 	tex       *Texture2D    // pointer to texture being displayed
 	dispTime  time.Duration // disply duration of each tile (default = 1.0/30.0)
-	maxCycles int           // Maximum number of cycles (default = 0 - continous)
+	maxCycles int           // maximum number of cycles (default = 0 - continuous)
 	cycles    int           // current number of complete cycles
 	columns   int           // number of columns
 	rows      int           // number of rows

+ 1 - 1
util/logger/doc.go

@@ -2,5 +2,5 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package logger implements an hierachical logger used by other packages.
+// Package logger implements an hierarchical logger used by other packages.
 package logger

+ 1 - 1
util/stats/stats.go

@@ -6,7 +6,7 @@ import (
 	"time"
 )
 
-// Stats contains several statistics usefull for performance evaluation
+// Stats contains several statistics useful for performance evaluation
 type Stats struct {
 	Glstats      gls.Stats // GLS statistics structure
 	UnilocHits   int       // Uniform location cache hits per frame