Revert "remove gl crap"
This reverts commit 7cf75e4630
.
possibly getting back to a recoverable state after the next revert
This commit is contained in:
parent
7cf75e4630
commit
3c3c0e8904
14
main.go
14
main.go
@ -104,8 +104,8 @@ func run() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sv service) Init(uint num) {
|
func (sv service) Init(int num) {
|
||||||
if num == 0 {
|
if num <= 0 {
|
||||||
num = 1
|
num = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,6 +231,16 @@ func (cl *Cell) Select() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*func (cl *Cell) Texture() glbase.Texture {
|
||||||
|
fmt.Println("index: ", cl.index, " ", cl.img.tex)
|
||||||
|
fmt.Println("error tex:", gl.GetError())
|
||||||
|
if cl.img.tex == 0 {
|
||||||
|
cl.img.tex = newTexture(*cl.getImage(monWidth, monHeight))
|
||||||
|
fmt.Println("new texture", cl.img.tex)
|
||||||
|
}
|
||||||
|
return cl.img.tex
|
||||||
|
}*/
|
||||||
|
|
||||||
//not really needed
|
//not really needed
|
||||||
func (cl Cell) String() string {
|
func (cl Cell) String() string {
|
||||||
return fmt.Sprintf("Index: %d \nText: %s\n", cl.index, cl.text)
|
return fmt.Sprintf("Index: %d \nText: %s\n", cl.index, cl.text)
|
||||||
|
Loading…
Reference in New Issue
Block a user