Hi everyone,
it has been a while since I used Gideros the last time but I am considering it again for a project I have in mind. Super glad to see it is still alive and apparently venturing into 3d territory which is great. Awesome work!!
My question is regarding 2d however: is it possible to directly draw a texture to any screen coordinates without adding it to the stage? I am not the biggest fan of the Flash API and sometimes I feel it is easier to simply draw directly (similar to Love2d in this regard). So if possible I try to find a way to subvert the scenegraph
Incidentally, if that would be possible, maybe it would convert a few people over from Love as I think in terms of development experience, Gideros is far ahead (and also in terms of deployment targets...). So that would be cool.
Anyway, if it is not possible, that would certainly not be a dealbreaker for me too. Thanks!
Comments
https://wiki.giderosmobile.com/index.php/Introduction_to_Graphics#Textures_and_Bitmaps
I don't think it's possible, if you don't add it to the stage you won't see your texture.
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
EDIT: This would work provided that lua is executed after the standard render pass, but before issuing the frame buffer to screen, maybe inside a special callback function triggered at the right point in the draw flow.
on the other hand perhaps RenderTarget:drawTexture() could be added with similar parameters as RenderTarget:clear() (somehow similar as Pixel.new accepts color and texture as well when initialized) so that there is no need to create a bitmap to draw a texture on the rendertarget. but again, probably not many people would use this feature.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
This code has just that...
Likes: MoKaLux, stetso