Recent

Author Topic: Use bgrabitmap on android / web  (Read 1234 times)

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Use bgrabitmap on android / web
« on: February 18, 2020, 02:21:52 am »
Its possible to make a simple painting application with bgrabitmap on android?
Someone already did it?

Last time I played with android and Lazarus was with castle game engine and it comes with a painting app that just draws a color.

Or the other can be using bgrabitmap on a web application now that we have pas2js.

Last time I played with pas2js I made ya simple game.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: Use bgrabitmap on android / web
« Reply #1 on: February 18, 2020, 02:56:05 am »
I suppose it could be used on Android as it is cross-platform.

On the client side of a Web app, I don't think it is possible, because it is quite complex. Also pas2js does not handle pointers.

Those are available in WebAssembly so it may be compilable to that in theory. The resulting file size may be a bit large for the web, though we may trim it for that if necessary.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Use bgrabitmap on android / web
« Reply #2 on: February 18, 2020, 03:16:37 am »
Ok.

What I'm thinking is that it can be used as a .so library on android studio. So the ui of the application is a regular android app and we manipulate only the pixels with bgrabitmap. Is like we did previously to make the dll to use it with c# and java that comes with bgracontrols.

So instead of using LAMW we can use android studio but is just a way the other way is using all Lazarus.

What do you think? The first involves using java or kotlin to do the app and also making the .so library (that can be used for anything in fact like a portable library for any language).

The other is keep using Lazarus for everything. Edit, as I commented on github maybe using castle game engine to draw but bgra to make the pixels.
« Last Edit: February 18, 2020, 03:47:23 am by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Use bgrabitmap on android / web
« Reply #3 on: February 19, 2020, 06:14:44 am »
The question is not bgrabitmap but if Lazarus some day will have a solution for this kind of problems.

But I doubt since for my understanding nobody solves that. The cross mobile device and web is harder than the cross desktop (that's already tricky). :o

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: Use bgrabitmap on android / web
« Reply #4 on: February 19, 2020, 10:02:26 am »
Ok so no cross-platphone then :'(
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018