Revert "remove gl crap"

This reverts commit 7cf75e4630.

possibly getting back to a recoverable state after the next revert
This commit is contained in:
lordwelch 2018-02-06 20:48:54 -08:00
parent 7cf75e4630
commit 3c3c0e8904
2 changed files with 13 additions and 3 deletions

14
main.go
View File

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