Loading Images - Blank

Monkey Forums/Monkey Programming/Loading Images - Blank

Tibit(Posted 2012) [#1]
[monkeycode]Import mojo

Class DesertRaceMayhem extends App

Field Image:Image

Method OnCreate:Int()
Image = LoadImage("/graphics/car.png")
End

Method OnRender:Int()
DrawImage(Image, 200, 200)
End
End
[/monkeycode]

Why is this White in html5 but renhders an image (as expected) in GLFW, XNA?


hsutuo(Posted 2012) [#2]
Field Image:Image <=== no problem?


Tibit(Posted 2012) [#3]
Ah god... :)

Right!


Paul - Taiphoz(Posted 2012) [#4]
iv been there, done that lol.