Bläddra i källkod

Comment compressed texture methods

Adam Leyland 6 år sedan
förälder
incheckning
0cddff5a3b
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 1
      gls/gls-desktop.go
  2. 1 0
      texture/texture2D.go

+ 1 - 1
gls/gls-desktop.go

@@ -601,7 +601,7 @@ func (gs *GLS) TexImage2D(target uint32, level int32, iformat int32, width int32
 		ptr(data))
 }
 
-// CompressedTexImage2D specified a two-dimensional compressed texture image.
+// CompressedTexImage2D specifies a two-dimensional compressed texture image.
 func (gs *GLS) CompressedTexImage2D(target uint32, level uint32, iformat uint32, width int32, height int32, size int32, data interface{}) {
 
 	C.glCompressedTexImage2D(C.GLenum(target),

+ 1 - 0
texture/texture2D.go

@@ -109,6 +109,7 @@ func NewTexture2DFromData(width, height int, format int, formatType, iformat int
 	return t
 }
 
+// NewTexture2DFromCompressedData creates a new compressed texture from data
 func NewTexture2DFromCompressedData(width, height int, iformat int32, size int32, data interface{}) *Texture2D {
 
 	t := newTexture2D()