Parcourir la source

Consolidate texture logger and docs

Daniel Salvadori il y a 6 ans
Parent
commit
8deeb8fc20
3 fichiers modifiés avec 5 ajouts et 19 suppressions
  1. 0 7
      texture/doc.go
  2. 0 12
      texture/logger.go
  3. 5 0
      texture/texture2D.go

+ 0 - 7
texture/doc.go

@@ -1,7 +0,0 @@
-// Copyright 2016 The G3N Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package texture contains several types of textures which
-// can be added to materials.
-package texture

+ 0 - 12
texture/logger.go

@@ -1,12 +0,0 @@
-// Copyright 2016 The G3N Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package texture
-
-import (
-	"github.com/g3n/engine/util/logger"
-)
-
-// Package logger
-var log = logger.New("TEX", logger.Default)

+ 5 - 0
texture/texture2D.go

@@ -2,10 +2,12 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Package texture contains several types of textures which can be added to materials.
 package texture
 
 import (
 	"fmt"
+	"github.com/g3n/engine/util/logger"
 	"image"
 	"image/draw"
 	_ "image/gif"
@@ -16,6 +18,9 @@ import (
 	"github.com/g3n/engine/gls"
 )
 
+// Package logger
+var log = logger.New("TEX", logger.Default)
+
 // Texture2D represents a texture
 type Texture2D struct {
 	gs           *gls.GLS    // Pointer to OpenGL state