function main()
local tex = renderLoadTextureFromFile(getWorkingDirectory()..'/wall1.jpg')
while true do
renderDrawTexture(tex, 100, 100, 100, 100, 0, -1)
renderBegin(5)
renderColor(0xFFFFFFFF)
renderBindTexture(tex)
renderSetTexCoord(0, 1)
renderVertex(500, 500)
renderSetTexCoord(0, 0)
renderVertex(500, 200)
renderSetTexCoord(1, 1)
renderVertex(800, 500)
renderSetTexCoord(1, 0)
renderVertex(800, 200)
renderEnd()
wait(0)
end
end