Skip to content

I want to display an image in an MD game using Lua. How can I do this? #146

Answered by cuavas
uname1able asked this question in Q&A
Discussion options

You must be logged in to vote
  • Read the file into a bitmap using emu.bitmap_argb32.load(...).
  • Create a texture referencing the bitmap using manager.machine.render:texture_alloc(...).
  • Use draw_quad(...) on a render container to draw the texture.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@uname1able
Comment options

Answer selected by uname1able
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants