Choose license
DE EN FR ES IT CZ
Zurück Nach oben

Lua libcurl

  • #40, by ke4 10 years ago Zitieren
    This Draw function is independent from the libcurl? Can you draw any image? Or what exactly is this function for? Can you guys please name some examples of what would you use this for?

    Btw will this be drawn over videos too? Is it possible to draw an animation? Damn so many questions grin
  • #41, by darren-beckett 10 years ago Zitieren
    Some interesting possibilities here.
  • #42, by afrlme 10 years ago Zitieren
    This Draw function is independent from the libcurl? Can you draw any image? Or what exactly is this function for? Can you guys please name some examples of what would you use this for?

    Btw will this be drawn over videos too? Is it possible to draw an animation? Damn so many questions grin
    haha I bet Simon regrets creating this feature now. grin

  • #43, by darren-beckett 10 years ago Zitieren
    downloadMemory("http://url...", function(s,code,param) 
      sprite = graphics.loadMemoryJPG(s)
    -- sprite = graphics.loadMemoryPNG(s)
    -- sprite = graphics.loadMemoryWEBP(s)
    end)
    
    downloadMemory("http://url...", function(s,code,param) 
      print(s) -- html
    end) 
    

    Hi, are there any other image formats that will work for the sprite draw callbacks?

    GIF, SVG, SWF?

    sprite = graphics.loadMemoryGIF(s)
    sprite = graphics.loadMemorySVG(s)
    sprite = graphics.loadMemorySWF(s)

  • #44, by SimonS 10 years ago Zitieren
    Only images work, no gifs, no svgs, no flash.
  • #45, by darren-beckett 10 years ago Zitieren
    Ok, Thanks for the prompt reply.