Remove gl

This commit is contained in:
giongto35 2019-04-04 02:10:29 +08:00
parent 8c52af89f9
commit 948bbbddf7
2 changed files with 2 additions and 5 deletions

View file

@ -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

View file

@ -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)
}