-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprovide_view_controller.go
More file actions
54 lines (40 loc) · 996 Bytes
/
provide_view_controller.go
File metadata and controls
54 lines (40 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package sdk
import (
"context"
"github.com/urnetwork/glog"
)
type ProvideViewController struct {
ctx context.Context
cancel context.CancelFunc
device Device
}
func newProvideViewController(ctx context.Context, device Device) *ProvideViewController {
cancelCtx, cancel := context.WithCancel(ctx)
vc := &ProvideViewController{
ctx: cancelCtx,
cancel: cancel,
device: device,
}
// vc.drawController = vc
return vc
}
func (self *ProvideViewController) Start() {
// FIXME
}
func (self *ProvideViewController) Stop() {
// FIXME
}
// func (self *ProvideViewController) draw(g gl.Context) {
// // pvcLog("draw")
// g.ClearColor(self.bgRed, self.bgGreen, self.bgBlue, 1.0)
// g.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)
// }
// func (self *ProvideViewController) drawLoopOpen() {
// self.frameRate = 24
// }
// func (self *ProvideViewController) drawLoopClose() {
// }
func (self *ProvideViewController) Close() {
glog.Info("[pvc]close")
self.cancel()
}