Merge pull request #244 from JupiterRider/master

Update examples/go.mod physics/go.mod raygui/go.mod
This commit is contained in:
Milan Nikolic 2023-02-11 20:15:43 +01:00 committed by GitHub
commit e394da6f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 316 additions and 316 deletions

View file

@ -17,9 +17,9 @@ import (
*
********************************************************************************************/
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
func main() {
// 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
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, 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)
}
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
func main() {
// Initialization
//--------------------------------------------------------------------------------------

View file

@ -2,19 +2,11 @@ module examples
go 1.19
replace github.com/gen2brain/raylib-go/easings => ../easings
replace github.com/gen2brain/raylib-go/physics => ../physics
replace github.com/gen2brain/raylib-go/raygui => ../raygui
replace github.com/gen2brain/raylib-go/raylib => ../raylib
require (
github.com/gen2brain/raylib-go/easings v0.0.0-00010101000000-000000000000
github.com/gen2brain/raylib-go/physics v0.0.0-00010101000000-000000000000
github.com/gen2brain/raylib-go/raygui v0.0.0-00010101000000-000000000000
github.com/gen2brain/raylib-go/raylib v0.0.0-00010101000000-000000000000
github.com/gen2brain/raylib-go/easings v0.0.0-20230131162822-963c891c4eb9
github.com/gen2brain/raylib-go/physics v0.0.0-20230131162822-963c891c4eb9
github.com/gen2brain/raylib-go/raygui v0.0.0-20230131162822-963c891c4eb9
github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9
github.com/jakecoffman/cp v1.2.1
github.com/neguse/go-box2d-lite v0.0.0-20170921151050-5d8ed9b7272b
)

View file

@ -1,3 +1,11 @@
github.com/gen2brain/raylib-go/easings v0.0.0-20230131162822-963c891c4eb9 h1:1YY9EBOIC9qFkK7c9gVGoewHwU6cbtb4wNkK0ep3dZE=
github.com/gen2brain/raylib-go/easings v0.0.0-20230131162822-963c891c4eb9/go.mod h1:UuXithI7f7GZ22PJtaZDXHzWzdXx0OCyuxaakj9gt9k=
github.com/gen2brain/raylib-go/physics v0.0.0-20230131162822-963c891c4eb9 h1:UabZE8KGiM/e/Zl8UuG3ltQ75swQfUWkpga/wyAH7gs=
github.com/gen2brain/raylib-go/physics v0.0.0-20230131162822-963c891c4eb9/go.mod h1:NgBhaaDuraC9m/vapFCw1aIzXbqCVRBEdnoQd8ViLGs=
github.com/gen2brain/raylib-go/raygui v0.0.0-20230131162822-963c891c4eb9 h1:mA5NXxZi4DrI3NLCIOqNIZscfxkeSNHy81fDLZAcBLY=
github.com/gen2brain/raylib-go/raygui v0.0.0-20230131162822-963c891c4eb9/go.mod h1:dPf8qhPRSGwUWGjjM83HmiFCOEEA8SjtPAGBg/ALtfU=
github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9 h1:xRHgpz2plzW2Lq8msailf2k2Jz9IKWngnzijX7ruN6Y=
github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9/go.mod h1:+NbsqGlEQqGqrsgJFF5Yj2dkvn0ML2SQb8RqM2hJsPU=
github.com/jakecoffman/cp v1.2.1 h1:zkhc2Gpo9l4NLUZfeG3j33+3bQD7MkqPa+n5PdX+5mI=
github.com/jakecoffman/cp v1.2.1/go.mod h1:JjY/Fp6d8E1CHnu74gWNnU0+b9VzEdUVPoJxg2PsTQg=
github.com/neguse/go-box2d-lite v0.0.0-20170921151050-5d8ed9b7272b h1:+67TGbwfgeB5o03Rx+ZBW44zAQ+wUujcwdRA0p9CbJI=

View file

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

View file

@ -46,9 +46,9 @@ import (
//#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
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
func main() {
// Initialization
//---------------------------------------------------------------------------------------

View file

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

View file

@ -30,9 +30,9 @@ import (
*
**********************************************************************************************/
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
func main() {
// Initialization
@ -140,7 +140,7 @@ func DrawStyleEditControls() {
gui.Spinner(rl.Rectangle{670, 240, 90, 20}, "", &style, 0, 14, false)
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)
style = gui.GetStyle(gui.SCROLLBAR, gui.SLIDER_PADDING)
@ -159,7 +159,7 @@ func DrawStyleEditControls() {
} else {
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)
//----------------------------------------------------------

View file

@ -2,6 +2,4 @@ module github.com/gen2brain/raylib-go/physics
go 1.19
replace github.com/gen2brain/raylib-go/raylib => ../raylib
require github.com/gen2brain/raylib-go/raylib v0.0.0-00010101000000-000000000000
require github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9

2
physics/go.sum Normal file
View file

@ -0,0 +1,2 @@
github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9 h1:xRHgpz2plzW2Lq8msailf2k2Jz9IKWngnzijX7ruN6Y=
github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9/go.mod h1:+NbsqGlEQqGqrsgJFF5Yj2dkvn0ML2SQb8RqM2hJsPU=

View file

@ -2,6 +2,4 @@ module github.com/gen2brain/raylib-go/raygui
go 1.19
replace github.com/gen2brain/raylib-go/raylib => ../raylib
require github.com/gen2brain/raylib-go/raylib v0.0.0-00010101000000-000000000000
require github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9

2
raygui/go.sum Normal file
View file

@ -0,0 +1,2 @@
github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9 h1:xRHgpz2plzW2Lq8msailf2k2Jz9IKWngnzijX7ruN6Y=
github.com/gen2brain/raylib-go/raylib v0.0.0-20230131162822-963c891c4eb9/go.mod h1:+NbsqGlEQqGqrsgJFF5Yj2dkvn0ML2SQb8RqM2hJsPU=

View file

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