gofmt -s -w -l .

This commit is contained in:
JupiterRider 2023-02-11 16:34:47 +01:00
parent 2243b93c92
commit f3d7d84178
9 changed files with 298 additions and 298 deletions

View file

@ -17,9 +17,9 @@ import (
* *
********************************************************************************************/ ********************************************************************************************/
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
// Program main entry point // Program main entry point
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
func main() { func main() {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------

View file

@ -31,7 +31,7 @@ func DrawScene() {
rl.DrawPlane(rl.Vector3{0, 0, 0}, rl.Vector2{50, 50}, rl.Beige) // Simple world plane rl.DrawPlane(rl.Vector3{0, 0, 0}, rl.Vector2{50, 50}, rl.Beige) // Simple world plane
for x := -float32(count * spacing); x <= count*spacing; x += spacing { for x := -float32(count * spacing); x <= count*spacing; x += spacing {
for z :=-float32(count * spacing); z <= count*spacing; z += spacing { for z := -float32(count * spacing); z <= count*spacing; z += spacing {
rl.DrawCube(rl.Vector3{x, 1.5, z}, 1, 1, 1, rl.Lime) rl.DrawCube(rl.Vector3{x, 1.5, z}, 1, 1, 1, rl.Lime)
rl.DrawCube(rl.Vector3{x, 0.5, z}, 0.25, 1, 0.25, rl.Brown) rl.DrawCube(rl.Vector3{x, 0.5, z}, 0.25, 1, 0.25, rl.Brown)
} }
@ -42,9 +42,9 @@ func DrawScene() {
rl.DrawCube(cameraPlayer2.Position, 1, 1, 1, rl.Blue) rl.DrawCube(cameraPlayer2.Position, 1, 1, 1, rl.Blue)
} }
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
// Program main entry point // Program main entry point
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
func main() { func main() {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------

View file

@ -3,8 +3,8 @@ package main
import ( import (
"fmt" "fmt"
rl "github.com/gen2brain/raylib-go/raylib"
gui "github.com/gen2brain/raylib-go/raygui" gui "github.com/gen2brain/raylib-go/raygui"
rl "github.com/gen2brain/raylib-go/raylib"
) )
func main() { func main() {

View file

@ -46,9 +46,9 @@ import (
//#define RAYGUI_CUSTOM_ICONS // It requires providing gui_icons.h in the same directory //#define RAYGUI_CUSTOM_ICONS // It requires providing gui_icons.h in the same directory
//#include "gui_icons.h" // External icons data provided, it can be generated with rGuiIcons tool //#include "gui_icons.h" // External icons data provided, it can be generated with rGuiIcons tool
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
// Program main entry point // Program main entry point
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
func main() { func main() {
// Initialization // Initialization
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------

View file

@ -24,9 +24,9 @@ import (
* *
**********************************************************************************************/ **********************************************************************************************/
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
// Program main entry point // Program main entry point
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
func main() { func main() {
// Initialization // Initialization
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------

View file

@ -30,9 +30,9 @@ import (
* *
**********************************************************************************************/ **********************************************************************************************/
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
// Program main entry point // Program main entry point
//------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
func main() { func main() {
// Initialization // Initialization
@ -140,7 +140,7 @@ func DrawStyleEditControls() {
gui.Spinner(rl.Rectangle{670, 240, 90, 20}, "", &style, 0, 14, false) gui.Spinner(rl.Rectangle{670, 240, 90, 20}, "", &style, 0, 14, false)
gui.SetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING, style) gui.SetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING, style)
style = boolToint32( gui.CheckBox(rl.Rectangle{565, 280, 20, 20}, "ARROWS_VISIBLE", int32Tobool(gui.GetStyle(gui.SCROLLBAR, gui.ARROWS_VISIBLE)))) style = boolToint32(gui.CheckBox(rl.Rectangle{565, 280, 20, 20}, "ARROWS_VISIBLE", int32Tobool(gui.GetStyle(gui.SCROLLBAR, gui.ARROWS_VISIBLE))))
gui.SetStyle(gui.SCROLLBAR, gui.ARROWS_VISIBLE, style) gui.SetStyle(gui.SCROLLBAR, gui.ARROWS_VISIBLE, style)
style = gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING) style = gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING)
@ -159,7 +159,7 @@ func DrawStyleEditControls() {
} else { } else {
text = "SCROLLBAR: RIGHT" text = "SCROLLBAR: RIGHT"
} }
style = boolToint32( gui.Toggle(rl.Rectangle{560, 110, 200, 35}, text, int32Tobool(gui.GetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE)))) style = boolToint32(gui.Toggle(rl.Rectangle{560, 110, 200, 35}, text, int32Tobool(gui.GetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE))))
gui.SetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE, style) gui.SetStyle(gui.LISTVIEW, gui.SCROLLBAR_SIDE, style)
//---------------------------------------------------------- //----------------------------------------------------------

View file

@ -422,7 +422,7 @@ func genSource(w io.Writer, data []byte) error {
return nil return nil
} }
//genBin generates go-bindata file // genBin generates go-bindata file
func genBin(base string) error { func genBin(base string) error {
cfg := bindata.NewConfig() cfg := bindata.NewConfig()
cfg.NoCompress = true cfg.NoCompress = true