Golint
This commit is contained in:
parent
29546140b9
commit
7e1cf349aa
13 changed files with 48 additions and 48 deletions
|
@ -64,7 +64,7 @@ func NewSoundFromPointer(ptr unsafe.Pointer) Sound {
|
|||
// NOTE: Anything longer than ~10 seconds should be streamed
|
||||
type Music C.Music
|
||||
|
||||
// Audio stream type
|
||||
// AudioStream type
|
||||
// NOTE: Useful to create custom audio streams not bound to a specific file
|
||||
type AudioStream struct {
|
||||
// Frequency (samples per second)
|
||||
|
@ -327,8 +327,8 @@ func SetMusicPitch(music Music, pitch float32) {
|
|||
C.SetMusicPitch(cmusic, cpitch)
|
||||
}
|
||||
|
||||
// Set music loop count (loop repeats)
|
||||
// SetMusicLoopCount - NOTE: If set to -1, means infinite loop
|
||||
// SetMusicLoopCount - Set music loop count (loop repeats)
|
||||
// NOTE: If set to -1, means infinite loop
|
||||
func SetMusicLoopCount(music Music, count float32) {
|
||||
cmusic := *(*C.Music)(unsafe.Pointer(&music))
|
||||
ccount := (C.float)(count)
|
||||
|
|
|
@ -60,7 +60,7 @@ func NewCamera2DFromPointer(ptr unsafe.Pointer) Camera2D {
|
|||
return *(*Camera2D)(ptr)
|
||||
}
|
||||
|
||||
// Camera mode
|
||||
// CameraMode type
|
||||
type CameraMode int32
|
||||
|
||||
// Camera system modes
|
||||
|
|
|
@ -349,7 +349,7 @@ func NewRectangleFromPointer(ptr unsafe.Pointer) Rectangle {
|
|||
return *(*Rectangle)(ptr)
|
||||
}
|
||||
|
||||
// Bounding box
|
||||
// BoundingBox type
|
||||
type BoundingBox struct {
|
||||
// Minimum vertex box-corner
|
||||
Min Vector3
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
// Go bindings for raylib, a simple and easy-to-use library to learn videogames programming.
|
||||
// Package raylib - Go bindings for raylib, a simple and easy-to-use library to learn videogames programming
|
||||
package raylib
|
||||
|
|
|
@ -6,10 +6,10 @@ package raylib
|
|||
import "C"
|
||||
import "unsafe"
|
||||
|
||||
// Gestures
|
||||
// Gestures type
|
||||
type Gestures int32
|
||||
|
||||
// Gestures type
|
||||
// Gestures types
|
||||
// NOTE: It could be used as flags to enable only some gestures
|
||||
const (
|
||||
GestureNone Gestures = C.GESTURE_NONE
|
||||
|
|
|
@ -8,7 +8,7 @@ import "C"
|
|||
import "unsafe"
|
||||
import "reflect"
|
||||
|
||||
// Vertex data definning a mesh
|
||||
// Mesh - Vertex data definning a mesh
|
||||
type Mesh struct {
|
||||
// Number of vertices stored in arrays
|
||||
VertexCount int32
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
// rRES file header (8 byte)
|
||||
// RRESFileHeader - rRES file header (8 byte)
|
||||
type RRESFileHeader struct {
|
||||
// File identifier: rRES (4 byte)
|
||||
ID [4]int8
|
||||
|
@ -19,7 +19,7 @@ type RRESFileHeader struct {
|
|||
Count uint16
|
||||
}
|
||||
|
||||
// rRES info header, every resource includes this header (16 byte + 16 byte)
|
||||
// RRESInfoHeader - rRES info header, every resource includes this header (16 byte + 16 byte)
|
||||
type RRESInfoHeader struct {
|
||||
// Resource unique identifier (4 byte)
|
||||
ID uint32
|
||||
|
|
|
@ -8,7 +8,7 @@ import "C"
|
|||
import "unsafe"
|
||||
import "reflect"
|
||||
|
||||
// Vr device
|
||||
// VrDevice type
|
||||
type VrDevice int32
|
||||
|
||||
// Head Mounted Display devices
|
||||
|
@ -24,7 +24,7 @@ const (
|
|||
HmdFoveVr VrDevice = C.HMD_FOVE_VR
|
||||
)
|
||||
|
||||
// Blend mode
|
||||
// BlendMode type
|
||||
type BlendMode int32
|
||||
|
||||
// Color blending modes (pre-defined)
|
||||
|
|
|
@ -7,7 +7,7 @@ package raylib
|
|||
import "C"
|
||||
import "unsafe"
|
||||
|
||||
// SpriteFont character info
|
||||
// CharInfo - SpriteFont character info
|
||||
type CharInfo struct {
|
||||
// Character value (Unicode)
|
||||
Value int32
|
||||
|
|
|
@ -7,7 +7,7 @@ package raylib
|
|||
import "C"
|
||||
import "unsafe"
|
||||
|
||||
// Texture format
|
||||
// TextureFormat - Texture format
|
||||
type TextureFormat int32
|
||||
|
||||
// Texture formats
|
||||
|
@ -51,7 +51,7 @@ const (
|
|||
CompressedAstc8x8Rgba TextureFormat = C.COMPRESSED_ASTC_8x8_RGBA
|
||||
)
|
||||
|
||||
// Texture filter mode
|
||||
// TextureFilterMode - Texture filter mode
|
||||
type TextureFilterMode int32
|
||||
|
||||
// Texture parameters: filter mode
|
||||
|
@ -72,7 +72,7 @@ const (
|
|||
FilterAnisotropic16x TextureFilterMode = C.FILTER_ANISOTROPIC_16X
|
||||
)
|
||||
|
||||
// Texture wrap mode
|
||||
// TextureWrapMode - Texture wrap mode
|
||||
type TextureWrapMode int32
|
||||
|
||||
// Texture parameters: wrap mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue