Skip to content

Commit

Permalink
examples/ folder added
Browse files Browse the repository at this point in the history
  • Loading branch information
go4orward committed May 2, 2021
1 parent 871c83a commit 0ec5125
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 31 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
all:
GOOS=js GOARCH=wasm go build -o wasm_test.wasm webgl1st_example.go
GOOS=js GOARCH=wasm go build -o wasm_test.wasm examples/webgl1st_example.go
go build -o wasm_test_server wasm_test_server.go

2d:
GOOS=js GOARCH=wasm go build -o wasm_test.wasm webgl2d_example.go
GOOS=js GOARCH=wasm go build -o wasm_test.wasm examples/webgl2d_example.go
go build -o wasm_test_server wasm_test_server.go

2dui:
GOOS=js GOARCH=wasm go build -o wasm_test.wasm webgl2dui_example.go
GOOS=js GOARCH=wasm go build -o wasm_test.wasm examples/webgl2dui_example.go
go build -o wasm_test_server wasm_test_server.go

3d:
GOOS=js GOARCH=wasm go build -o wasm_test.wasm webgl3d_example.go
GOOS=js GOARCH=wasm go build -o wasm_test.wasm examples/webgl3d_example.go
go build -o wasm_test_server wasm_test_server.go

globe:
GOOS=js GOARCH=wasm go build -o wasm_test.wasm webglglobe_example.go
GOOS=js GOARCH=wasm go build -o wasm_test.wasm examples/webglglobe_example.go
go build -o wasm_test_server wasm_test_server.go

clean:
Expand Down
2 changes: 1 addition & 1 deletion webgl1st_example.go → examples/webgl1st_example.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// +build js,wasm
package main
package examples

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion webgl2d_example.go → examples/webgl2d_example.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// +build js,wasm
package main
package examples

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion webgl2dui_example.go → examples/webgl2dui_example.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// +build js,wasm
package main
package examples

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion webgl3d_example.go → examples/webgl3d_example.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// +build js,wasm
package main
package examples

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion webglglobe_example.go → examples/webglglobe_example.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package examples

import (
"fmt"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion webgl2d/camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math"

"github.com/go4orward/gowebgl/wcommon/geom2d"
"github.com/go4orward/gowebgl/geom2d"
)

type Camera struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl2d/geometry.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"math"
"syscall/js"

"github.com/go4orward/gowebgl/geom2d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom2d"
)

// ----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion webgl2d/overlay.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package webgl2d

import (
"github.com/go4orward/gowebgl/wcommon/geom2d"
"github.com/go4orward/gowebgl/geom2d"
)

type Overlay interface {
Expand Down
2 changes: 1 addition & 1 deletion webgl2d/overlay_label_layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/go4orward/gowebgl/geom2d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom2d"
)

type OverlayLabel struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl2d/overlay_marker_layer.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package webgl2d

import (
"github.com/go4orward/gowebgl/geom2d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom2d"
)

type OverlayMarkerLayer struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl2d/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"syscall/js"

"github.com/go4orward/gowebgl/geom2d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom2d"
)

type Renderer struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl2d/scene.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package webgl2d

import (
"github.com/go4orward/gowebgl/geom2d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom2d"
)

type Scene struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl2d/scene_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package webgl2d
import (
"fmt"

"github.com/go4orward/gowebgl/geom2d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom2d"
)

type SceneObject struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl3d/camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math"

"github.com/go4orward/gowebgl/wcommon/geom3d"
"github.com/go4orward/gowebgl/geom3d"
)

type CameraProjection interface {
Expand Down
2 changes: 1 addition & 1 deletion webgl3d/camera_orthographic_projection.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math"

"github.com/go4orward/gowebgl/wcommon/geom3d"
"github.com/go4orward/gowebgl/geom3d"
)

type OrthographicProjection struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl3d/camera_perspective_projection.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math"

"github.com/go4orward/gowebgl/wcommon/geom3d"
"github.com/go4orward/gowebgl/geom3d"
)

type PerspectiveProjection struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl3d/geometry.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"math"
"syscall/js"

"github.com/go4orward/gowebgl/geom3d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom3d"
)

// ----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion webgl3d/overlay.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package webgl3d

import "github.com/go4orward/gowebgl/wcommon/geom3d"
import "github.com/go4orward/gowebgl/geom3d"

type Overlay interface {
Render(proj *geom3d.Matrix4, view *geom3d.Matrix4)
Expand Down
2 changes: 1 addition & 1 deletion webgl3d/overlay_label_layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/go4orward/gowebgl/geom3d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom3d"
"github.com/go4orward/gowebgl/webgl2d"
)

Expand Down
2 changes: 1 addition & 1 deletion webgl3d/overlay_marker_layer.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package webgl3d

import (
"github.com/go4orward/gowebgl/geom3d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom3d"
"github.com/go4orward/gowebgl/webgl2d"
)

Expand Down
4 changes: 2 additions & 2 deletions webgl3d/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"
"syscall/js"

"github.com/go4orward/gowebgl/geom2d"
"github.com/go4orward/gowebgl/geom3d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom2d"
"github.com/go4orward/gowebgl/wcommon/geom3d"
)

type Renderer struct {
Expand Down
2 changes: 1 addition & 1 deletion webgl3d/scene_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package webgl3d
import (
"fmt"

"github.com/go4orward/gowebgl/geom3d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom3d"
)

type SceneObject struct {
Expand Down
2 changes: 1 addition & 1 deletion webglglobe/globe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package webglglobe
import (
"math"

"github.com/go4orward/gowebgl/geom3d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom3d"
"github.com/go4orward/gowebgl/webgl3d"
)

Expand Down
2 changes: 1 addition & 1 deletion webglglobe/world_camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package webglglobe
import (
"math"

"github.com/go4orward/gowebgl/wcommon/geom3d"
"github.com/go4orward/gowebgl/geom3d"
"github.com/go4orward/gowebgl/webgl3d"
)

Expand Down
2 changes: 1 addition & 1 deletion webglglobe/world_renderer.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package webglglobe

import (
"github.com/go4orward/gowebgl/geom3d"
"github.com/go4orward/gowebgl/wcommon"
"github.com/go4orward/gowebgl/wcommon/geom3d"
"github.com/go4orward/gowebgl/webgl3d"
)

Expand Down

0 comments on commit 0ec5125

Please sign in to comment.