Skip to content

Commit

Permalink
Renamed all g3n to Cyberselves to keep standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
BOW authored and BOW committed Apr 21, 2024
1 parent 0c2d284 commit 153c56e
Show file tree
Hide file tree
Showing 140 changed files with 478 additions and 517 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

<p align="center"><img width="150" src="https://github.com/g3n/g3nd/blob/master/data/images/g3n_logo.png" alt="G3N Banner"/></p>
<p align="center">
<a href="https://godoc.org/github.com/g3n/engine"><img src="https://godoc.org/github.com/g3n/engine?status.svg" alt="Godoc"></img></a>
<a href="https://goreportcard.com/report/github.com/g3n/engine"><img src="https://goreportcard.com/badge/github.com/g3n/engine" alt="Go Report Card"/></a>
<a href="https://godoc.org/github.com/Cyberselves/engine"><img src="https://godoc.org/github.com/Cyberselves/engine?status.svg" alt="Godoc"></img></a>
<a href="https://goreportcard.com/report/github.com/Cyberselves/engine"><img src="https://goreportcard.com/badge/github.com/Cyberselves/engine" alt="Go Report Card"/></a>
<a href="https://discord.gg/NfaeVr8zDg"><img src="https://img.shields.io/badge/Discord-G3N-blue" alt="Discord"/></a>

</p>
Expand Down Expand Up @@ -71,7 +71,7 @@ Install the development files of OpenAL and Vorbis using [Homebrew](https://brew
The following set of commands will download and install the engine along with all its Go dependencies:

```
git clone https://github.com/g3n/engine g3n-engine
git clone https://github.com/Cyberselves/engine g3n-engine
cd g3n-engine
go install ./...
```
Expand Down Expand Up @@ -108,19 +108,19 @@ The code below is a basic "hello world" application ([hellog3n](https://github.c
package main

import (
"github.com/g3n/engine/app"
"github.com/g3n/engine/camera"
"github.com/g3n/engine/core"
"github.com/g3n/engine/geometry"
"github.com/g3n/engine/gls"
"github.com/g3n/engine/graphic"
"github.com/g3n/engine/gui"
"github.com/g3n/engine/light"
"github.com/g3n/engine/material"
"github.com/g3n/engine/math32"
"github.com/g3n/engine/renderer"
"github.com/g3n/engine/util/helper"
"github.com/g3n/engine/window"
"github.com/Cyberselves/engine/app"
"github.com/Cyberselves/engine/camera"
"github.com/Cyberselves/engine/core"
"github.com/Cyberselves/engine/geometry"
"github.com/Cyberselves/engine/gls"
"github.com/Cyberselves/engine/graphic"
"github.com/Cyberselves/engine/gui"
"github.com/Cyberselves/engine/light"
"github.com/Cyberselves/engine/material"
"github.com/Cyberselves/engine/math32"
"github.com/Cyberselves/engine/renderer"
"github.com/Cyberselves/engine/util/helper"
"github.com/Cyberselves/engine/window"
"time"
)

Expand Down Expand Up @@ -199,12 +199,12 @@ For more complex demos please see the [G3N demo program](https://github.com/g3n/

## Documentation

The complete engine API reference can be found here: [![GoDoc](https://godoc.org/github.com/g3n/engine?status.svg)](https://godoc.org/github.com/g3n/engine).
The complete engine API reference can be found here: [![GoDoc](https://godoc.org/github.com/Cyberselves/engine?status.svg)](https://godoc.org/github.com/Cyberselves/engine).

There is also the beginning of a Getting Started Guide, and a newly created list of Guides and Tutorials:

* [Getting Started](https://github.com/g3n/engine/wiki/Getting-Started-(WIP))
* [Guides and Tutorials](https://github.com/g3n/engine/wiki/Guides-and-Tutorials)
* [Getting Started](https://github.com/Cyberselves/engine/wiki/Getting-Started-(WIP))
* [Guides and Tutorials](https://github.com/Cyberselves/engine/wiki/Guides-and-Tutorials)

Along with those, a good way to learn how to use the engine is to see the source code of [G3ND - the G3N demo](https://github.com/g3n/g3nd).

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

import "github.com/g3n/engine/util/logger"
import "github.com/Cyberselves/engine/util/logger"

// Package logger
var log = logger.New("ANIMATION", logger.Default)
Expand Down
6 changes: 3 additions & 3 deletions animation/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
package animation

import (
"github.com/g3n/engine/core"
"github.com/g3n/engine/geometry"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/core"
"github.com/Cyberselves/engine/geometry"
"github.com/Cyberselves/engine/math32"
)

// A Channel associates an animation parameter channel to an interpolation sampler
Expand Down
4 changes: 2 additions & 2 deletions app/app-browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package app

import (
"fmt"
"github.com/g3n/engine/renderer"
"github.com/g3n/engine/window"
"github.com/Cyberselves/engine/renderer"
"github.com/Cyberselves/engine/window"
"syscall/js"
"time"
)
Expand Down
8 changes: 4 additions & 4 deletions app/app-desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"fmt"
"time"

"github.com/g3n/engine/audio/al"
"github.com/g3n/engine/audio/vorbis"
"github.com/g3n/engine/renderer"
"github.com/g3n/engine/window"
"github.com/Cyberselves/engine/audio/al"
"github.com/Cyberselves/engine/audio/vorbis"
"github.com/Cyberselves/engine/renderer"
"github.com/Cyberselves/engine/window"
)

// Application
Expand Down
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Package app implements a cross-platform G3N app.
package app

import "github.com/g3n/engine/util/logger"
import "github.com/Cyberselves/engine/util/logger"

// Package logger
var log = logger.New("APP", logger.Default)
Expand Down
4 changes: 2 additions & 2 deletions audio/audio_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"os"
"unsafe"

"github.com/g3n/engine/audio/al"
"github.com/g3n/engine/audio/ov"
"github.com/Cyberselves/engine/audio/al"
"github.com/Cyberselves/engine/audio/ov"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions audio/listener-browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
package audio

import (
"github.com/g3n/engine/core"
"github.com/g3n/engine/gls"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/core"
"github.com/Cyberselves/engine/gls"
"github.com/Cyberselves/engine/math32"
)

// Listener is an audio listener positioned in space.
Expand Down
8 changes: 4 additions & 4 deletions audio/listener-desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
package audio

import (
"github.com/g3n/engine/audio/al"
"github.com/g3n/engine/core"
"github.com/g3n/engine/gls"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/audio/al"
"github.com/Cyberselves/engine/core"
"github.com/Cyberselves/engine/gls"
"github.com/Cyberselves/engine/math32"
)

// Listener is an audio listener positioned in space.
Expand Down
10 changes: 5 additions & 5 deletions audio/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"time"
"unsafe"

"github.com/g3n/engine/audio/al"
"github.com/g3n/engine/core"
"github.com/g3n/engine/gls"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/audio/al"
"github.com/Cyberselves/engine/core"
"github.com/Cyberselves/engine/gls"
"github.com/Cyberselves/engine/math32"
)

const (
Expand Down Expand Up @@ -136,7 +136,7 @@ func (p *Player) Play() error {
// Starts playing and starts goroutine to fill buffers
al.SourcePlay(p.source)
go p.run()

return nil
}

Expand Down
2 changes: 1 addition & 1 deletion audio/windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The G3N engine audio support currently depends on the following external librari

These libraries are easily installed in Linux systems using the distribution package manager.

For Windows, the directory `<GOPATH>/src/github.com/g3n/engine/audio/windows`
For Windows, the directory `<GOPATH>/src/github.com/Cyberselves/engine/audio/windows`
contains the sources of these libraries, and the subdirectory `bin` contains the compiled DLLs,
used during the link process. To run a G3N application in Windows you will need
to copy these DLLs to the directory from which you will run your application.
Expand Down
6 changes: 3 additions & 3 deletions camera/camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
package camera

import (
"github.com/g3n/engine/core"
"github.com/g3n/engine/math32"
"github.com/g3n/engine/util/logger"
"github.com/Cyberselves/engine/core"
"github.com/Cyberselves/engine/math32"
"github.com/Cyberselves/engine/util/logger"
)

// Package logger
Expand Down
10 changes: 5 additions & 5 deletions camera/orbit_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ package camera
import (
"math"

"github.com/g3n/engine/core"
"github.com/g3n/engine/gui"
"github.com/g3n/engine/math32"
"github.com/g3n/engine/window"
"github.com/Cyberselves/engine/core"
"github.com/Cyberselves/engine/gui"
"github.com/Cyberselves/engine/math32"
"github.com/Cyberselves/engine/window"
)

// OrbitEnabled specifies which control types are enabled.
Expand Down Expand Up @@ -121,7 +121,7 @@ func (oc *OrbitControl) Target() math32.Vector3 {
return oc.target
}

//Set camera orbit target Vector3
// Set camera orbit target Vector3
func (oc *OrbitControl) SetTarget(v math32.Vector3) {
oc.target = v
}
Expand Down
2 changes: 1 addition & 1 deletion core/RenderInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package core

import (
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/math32"
)

// RenderInfo is passed into Render/RenderSetup calls
Expand Down
2 changes: 1 addition & 1 deletion core/logger.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package core

import (
"github.com/g3n/engine/util/logger"
"github.com/Cyberselves/engine/util/logger"
)

// Package logger
Expand Down
4 changes: 2 additions & 2 deletions core/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"math"
"strings"

"github.com/g3n/engine/gls"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/gls"
"github.com/Cyberselves/engine/math32"
)

// INode is the interface for all node types.
Expand Down
2 changes: 1 addition & 1 deletion experimental/collision/collision.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// WARNING: Parts of this package are experimental and incomplete!
package collision

import "github.com/g3n/engine/geometry"
import "github.com/Cyberselves/engine/geometry"

// TODO collision checking function dependent on collision shapes

Expand Down
2 changes: 1 addition & 1 deletion experimental/collision/contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package collision

import "github.com/g3n/engine/math32"
import "github.com/Cyberselves/engine/math32"

// Contact describes a contact point, normal, and depth.
type Contact struct {
Expand Down
12 changes: 6 additions & 6 deletions experimental/collision/raycaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ package collision
import (
"sort"

"github.com/g3n/engine/camera"
"github.com/g3n/engine/core"
"github.com/g3n/engine/gls"
"github.com/g3n/engine/graphic"
"github.com/g3n/engine/material"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/camera"
"github.com/Cyberselves/engine/core"
"github.com/Cyberselves/engine/gls"
"github.com/Cyberselves/engine/graphic"
"github.com/Cyberselves/engine/material"
"github.com/Cyberselves/engine/math32"
)

// Raycaster represents an empty object that can cast rays and check for ray intersections.
Expand Down
12 changes: 6 additions & 6 deletions experimental/collision/shape/convexhull.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
package shape

import (
"github.com/g3n/engine/experimental/collision"
"github.com/g3n/engine/geometry"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/experimental/collision"
"github.com/Cyberselves/engine/geometry"
"github.com/Cyberselves/engine/math32"
)

// ConvexHull is a convex triangle-based geometry used for collision detection and contact resolution.
Expand Down Expand Up @@ -247,7 +247,7 @@ func (ch *ConvexHull) ProjectOntoWorldAxis(worldAxis, pos *math32.Vector3, quat

// =====================================================================

//{array} result The an array of contact point objects, see clipFaceAgainstHull
// {array} result The an array of contact point objects, see clipFaceAgainstHull
func (ch *ConvexHull) ClipAgainstHull(chB *ConvexHull, posA, posB *math32.Vector3, quatA, quatB *math32.Quaternion, penAxis *math32.Vector3, minDist, maxDist float32) []collision.Contact {

var contacts []collision.Contact
Expand Down Expand Up @@ -295,8 +295,8 @@ func (ch *ConvexHull) WorldFace(face [3]math32.Vector3, pos *math32.Vector3, qua
}

// Clip a face against a hull.
//@param {Array} worldVertsB1 An array of Vec3 with vertices in the world frame.
//@param Array result Array to store resulting contact points in. Will be objects with properties: point, depth, normal. These are represented in world coordinates.
// @param {Array} worldVertsB1 An array of Vec3 with vertices in the world frame.
// @param Array result Array to store resulting contact points in. Will be objects with properties: point, depth, normal. These are represented in world coordinates.
func (ch *ConvexHull) clipFaceAgainstHull(posA, penAxis *math32.Vector3, quatA *math32.Quaternion, worldClosestFaceB [3]math32.Vector3, minDist, maxDist float32) []collision.Contact {

contacts := make([]collision.Contact, 0)
Expand Down
2 changes: 1 addition & 1 deletion experimental/collision/shape/plane.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package shape

import "github.com/g3n/engine/math32"
import "github.com/Cyberselves/engine/math32"

// Plane is an analytical collision Plane.
// A plane, facing in the +Z direction. The plane has its surface at z=0 and everything below z=0 is assumed to be solid.
Expand Down
2 changes: 1 addition & 1 deletion experimental/collision/shape/shape.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package shape

import "github.com/g3n/engine/math32"
import "github.com/Cyberselves/engine/math32"

// IShape is the interface for all collision shapes.
// Shapes in this package satisfy this interface and also geometry.Geometry.
Expand Down
2 changes: 1 addition & 1 deletion experimental/collision/shape/sphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package shape

import "github.com/g3n/engine/math32"
import "github.com/Cyberselves/engine/math32"

// Sphere is an analytical collision sphere.
type Sphere struct {
Expand Down
2 changes: 1 addition & 1 deletion experimental/physics/broadphase.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package physics

import (
"github.com/g3n/engine/experimental/physics/object"
"github.com/Cyberselves/engine/experimental/physics/object"
)

// CollisionPair is a pair of bodies that may be colliding.
Expand Down
4 changes: 2 additions & 2 deletions experimental/physics/constraint/conetwist.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package constraint

import (
"github.com/g3n/engine/experimental/physics/equation"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/experimental/physics/equation"
"github.com/Cyberselves/engine/math32"
)

// ConeTwist constraint.
Expand Down
4 changes: 2 additions & 2 deletions experimental/physics/constraint/constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
package constraint

import (
"github.com/g3n/engine/experimental/physics/equation"
"github.com/g3n/engine/math32"
"github.com/Cyberselves/engine/experimental/physics/equation"
"github.com/Cyberselves/engine/math32"
)

type IBody interface {
Expand Down

0 comments on commit 153c56e

Please sign in to comment.