-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from oakmound/feature/v4-drivers
shiny: overhaul api for v4
- Loading branch information
Showing
92 changed files
with
1,006 additions
and
3,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
//go:build (windows || linux || osx) && !js && !android && !nooswindow | ||
// +build windows linux osx | ||
// +build !js | ||
// +build !android | ||
// +build !nooswindow | ||
|
||
package oak | ||
|
||
import ( | ||
"image" | ||
) | ||
|
||
// MoveWindow calls MoveWindow on the default window. | ||
func MoveWindow(x, y, w, h int) error { | ||
initDefaultWindow() | ||
return defaultWindow.MoveWindow(x, y, w, h) | ||
} | ||
|
||
// SetFullScreen calls SetFullScreen on the default window. | ||
func SetFullScreen(fs bool) error { | ||
initDefaultWindow() | ||
return defaultWindow.SetFullScreen(fs) | ||
} | ||
|
||
// SetBorderless calls SetBorderless on the default window. | ||
func SetBorderless(bs bool) error { | ||
initDefaultWindow() | ||
return defaultWindow.SetBorderless(bs) | ||
} | ||
|
||
// SetTopMost calls SetTopMost on the default window. | ||
func SetTopMost(on bool) error { | ||
initDefaultWindow() | ||
return defaultWindow.SetTopMost(on) | ||
} | ||
|
||
// SetTitle calls SetTitle on the default window. | ||
func SetTitle(title string) error { | ||
initDefaultWindow() | ||
return defaultWindow.SetTitle(title) | ||
} | ||
|
||
// SetIcon calls SetIcon on the default window. | ||
func SetIcon(icon image.Image) error { | ||
initDefaultWindow() | ||
return defaultWindow.SetIcon(icon) | ||
} | ||
|
||
// HideCursor calls HideCursor on the default window. | ||
func HideCursor() error { | ||
initDefaultWindow() | ||
return defaultWindow.HideCursor() | ||
} | ||
|
||
// GetCursorPosition calls GetCursorPosition on the default window. | ||
func GetCursorPosition() (x, y float64) { | ||
initDefaultWindow() | ||
return defaultWindow.GetCursorPosition() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Bezier Rendering | ||
Use a mouse or debug commands to create points. | ||
The points will be used to draw bézier curve. | ||
|
||
![text](./example.PNG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Blank Scene | ||
Starts a pprof server and sets up a blank scene. | ||
Useful for benchmarking and as a minimal base to copy from. | ||
For less minimalist copying point see [the basic game template](https://github.com/oakmound/game-template). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Collision Demo | ||
|
||
Controllable box that colors itself based on what zones it collides with. | ||
|
||
![text](./example.PNG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Shaker Demo | ||
|
||
Extension of the collision demo to illustrate the default shaker. | ||
In addition to changing color 3 of the sectors will show a different shaking paradigm. | ||
|
||
|
||
|
||
This demo probably wont stay as is for long as it is a thin wrapper on collision-demo. | ||
|
Oops, something went wrong.