hang on.. try this:
never mind the calcnormals thingy.. (unless you have a function doing that)
Method LoadTexture(file:String) Local tex:TPixmap = LoadPixmap(file) If tex self.texture = GLTexFromPixmap(tex) glBindTexture(GL_TEXTURE_2D, texture) self.CalcNormals() Else DebugLog "texture: " + file + " load fail!" EndIf EndMethod
never mind the calcnormals thingy.. (unless you have a function doing that)