love.graphics_newVideo
oblerion edited this page Sep 15, 2022
·
1 revision
let vid = love.graphics_newVideo(filename);
- filename : string path of file. be aware it can't verify path's file, use webm file .
return video object. can draw with love.graphics_draw().
object.play() -> play video.
object.pause() -> stop video.
- love.load()
- love.update()
- love.draw()
- love.keypressed(key,code,repeat)
- love.keyreleased(key,code,repeat)
- love.mousepressed(x,y,button,istouch)
- love.mousereleased(x,y,button,istouch)
- love.graphics_setColor(r,g,b,a)
- love.graphics_setAlpha(a)
- love.graphics_getColor()
- love.graphics_setFont(font)
- love.graphics_print(text,x,y,r,sx)
- love.graphics_rectangle(mode,x,y,w,h)
- love.graphics_circle(mode,x,y,radius)
- love.graphics_line(x,y,x2,y2)
- love.graphics_newImage(filename)
- love.graphics_newVideo(filename)
- love.graphics_newQuad(x,y,w,h)
- love.graphics_draw(object,[quad,]x,y,r,sx,sy)
- love.graphics_scale(w,h)
- love.audio_newSource(filename,type)
- love.audio_play(object)
- love.audio_pause(object)
- love.audio_stop(object)
- love.audio_setVolume(volume)
- love.audio_getVolume()