Merge pull request #244 from JupiterRider/master
Update examples/go.mod physics/go.mod raygui/go.mod
This commit is contained in:
commit
e394da6f51
15 changed files with 316 additions and 316 deletions
|
@ -17,9 +17,9 @@ import (
|
|||
*
|
||||
********************************************************************************************/
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
// ------------------------------------------------------------------------------------
|
||||
// Program main entry point
|
||||
//------------------------------------------------------------------------------------
|
||||
// ------------------------------------------------------------------------------------
|
||||
func main() {
|
||||
// Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
|
|
@ -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
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
|
|
@ -14,7 +14,7 @@ func main() {
|
|||
camera.Position = rl.NewVector3(10.0, 10.0, 10.0) // Camera position
|
||||
camera.Target = rl.NewVector3(0.0, 0.0, 0.0) // Camera looking at point
|
||||
camera.Up = rl.NewVector3(0.0, 1.0, 0.0) // Camera up vector (rotation towards target)
|
||||
camera.Fovy = 45.0 // Camera field-of-view Y
|
||||
camera.Fovy = 45.0 // Camera field-of-view Y
|
||||
|
||||
cubePosition := rl.NewVector3(0.0, 0.0, 0.0)
|
||||
cubeScreenPosition := rl.Vector2{}
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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=
|
||||
|
|
|
@ -3,8 +3,8 @@ package main
|
|||
import (
|
||||
"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() {
|
||||
|
|
|
@ -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
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
|
|
@ -24,9 +24,9 @@ import (
|
|||
*
|
||||
**********************************************************************************************/
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
// ------------------------------------------------------------------------------------
|
||||
// Program main entry point
|
||||
//------------------------------------------------------------------------------------
|
||||
// ------------------------------------------------------------------------------------
|
||||
func main() {
|
||||
// Initialization
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
|
|
@ -30,9 +30,9 @@ import (
|
|||
*
|
||||
**********************************************************************************************/
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
// ------------------------------------------------------------------------------------
|
||||
// Program main entry point
|
||||
//------------------------------------------------------------------------------------
|
||||
// ------------------------------------------------------------------------------------
|
||||
func main() {
|
||||
|
||||
// Initialization
|
||||
|
@ -85,10 +85,10 @@ func main() {
|
|||
|
||||
if showContentArea {
|
||||
rl.DrawRectangle(
|
||||
int32(panelRec.X+panelScroll.X),
|
||||
int32(panelRec.Y+panelScroll.Y),
|
||||
int32(panelContentRec.Width),
|
||||
int32(panelContentRec.Height),
|
||||
int32(panelRec.X+panelScroll.X),
|
||||
int32(panelRec.Y+panelScroll.Y),
|
||||
int32(panelContentRec.Width),
|
||||
int32(panelContentRec.Height),
|
||||
rl.Fade(rl.Red, 0.1),
|
||||
)
|
||||
}
|
||||
|
@ -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)
|
||||
//----------------------------------------------------------
|
||||
|
||||
|
|
|
@ -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
2
physics/go.sum
Normal 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=
|
|
@ -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
2
raygui/go.sum
Normal 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=
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue