mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 10:35:44 +00:00
Remove gl
This commit is contained in:
parent
8c52af89f9
commit
948bbbddf7
2 changed files with 2 additions and 5 deletions
|
|
@ -5,4 +5,3 @@ COPY . /go/src/github.com/giongto35/game-online/
|
|||
|
||||
# Install server dependencies
|
||||
RUN go get github.com/pions/webrtc
|
||||
RUN go get github.com/go-gl/glfw/v3.2/glfw
|
||||
|
|
|
|||
|
|
@ -39,13 +39,12 @@ func (d *Director) SetView(view View) {
|
|||
if d.view != nil {
|
||||
d.view.Enter()
|
||||
}
|
||||
//d.timestamp = glfw.GetTime()
|
||||
d.timestamp = float64(time.Now().Unix())
|
||||
d.timestamp = float64(time.Now().Nanosecond()) / float64(time.Second)
|
||||
}
|
||||
|
||||
func (d *Director) Step() {
|
||||
//gl.Clear(gl.COLOR_BUFFER_BIT)
|
||||
timestamp := float64(time.Now().Unix())
|
||||
timestamp := float64(time.Now().Nanosecond()) / float64(time.Second)
|
||||
fmt.Println("Time stamp", timestamp)
|
||||
dt := timestamp - d.timestamp
|
||||
fmt.Println("dt", dt)
|
||||
|
|
@ -66,7 +65,6 @@ func (d *Director) Start(paths []string) {
|
|||
func (d *Director) Run() {
|
||||
for {
|
||||
d.Step()
|
||||
//glfw.PollEvents()
|
||||
}
|
||||
d.SetView(nil)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue