Graphics3D 800,600
SetBuffer BackBuffer()
light=CreateLight()
camera=CreateCamera()
CameraViewport camera,0,0,800,600
Global cube=CreateCube()
PositionEntity cube,0,0,5
texture=LoadTexture("a.bmp")
EntityTexture texture,cube
While Not KeyHit(1)
TurnEntity cube,0.1,0.2,0.3
TurnEntity cube,4,5,6
UpdateWorld
RenderWorld
Flip
Wend
End
I copied that straight from a tutorial but it says: " Entity does not exist" for this line of code: "EntityTexture texture,cube". I can't work out whats wrong.
SetBuffer BackBuffer()
light=CreateLight()
camera=CreateCamera()
CameraViewport camera,0,0,800,600
Global cube=CreateCube()
PositionEntity cube,0,0,5
texture=LoadTexture("a.bmp")
EntityTexture texture,cube
While Not KeyHit(1)
TurnEntity cube,0.1,0.2,0.3
TurnEntity cube,4,5,6
UpdateWorld
RenderWorld
Flip
Wend
End
I copied that straight from a tutorial but it says: " Entity does not exist" for this line of code: "EntityTexture texture,cube". I can't work out whats wrong.