~zhao

Recent activity

Re: Rendering Label/text with transparent/clear background? 3 days ago

From Zhao Wang to ~eliasnaur/gio

On Mon, May 3, 2021 at 1:21 AM Elias Naur <mail@eliasnaur.com> wrote:
>
> On Sun May 2, 2021 at 22:32 CEST, Zhao Wang wrote:
> > Hi is it possible to render a text/label with transparent background?
> > It seems to me the options are not there since the colors in
> > "material.Palette" are all color.NRGBA. Also in material.LabelStyle,
> > there is no way to specify a background color. Would love to know if
> > this is possible to do. And if not, what is the reason behind this or
> > if this is just simply due to API is not added there.
> >
>
> Do you mean a transparent background when using gpu/headless? If so,
> I've changed[0] the headless background to transparent.
Yes, thank you! This is what I need.

Rendering Label/text with transparent/clear background? 3 days ago

From Zhao Wang to ~eliasnaur/gio

Hi is it possible to render a text/label with transparent background?
It seems to me the options are not there since the colors in
"material.Palette" are all color.NRGBA. Also in material.LabelStyle,
there is no way to specify a background color. Would love to know if
this is possible to do. And if not, what is the reason behind this or
if this is just simply due to API is not added there.

Thanks.
Zhao

Re: Embed Gio with other OpenGL rendering 3 months ago

From Zhao Wang to ~eliasnaur/gio

On Wed, Jan 27, 2021 at 11:30 PM Elias Naur <mail@eliasnaur.com> wrote:
>
> On Wed Jan 27, 2021 at 23:45 CET, Zhao Wang wrote:
> > This works, thank you!
> >
> > On Wed, Jan 27, 2021 at 8:45 AM Elias Naur <mail@eliasnaur.com> wrote:
> > >
> > > On Tue Jan 26, 2021 at 23:41 CET, Zhao Wang wrote:
> > > > On Tue, Jan 26, 2021 at 5:51 AM Elias Naur <mail@eliasnaur.com> wrote:
> > > > > On Mon Jan 25, 2021 at 17:40, Zhao Wang wrote:
> > > > > > On Mon, Jan 25, 2021 at 2:05 AM Elias Naur <mail@eliasnaur.com> wrote:
> > > > > > > On Mon Jan 25, 2021 at 8:43 AM CET, Zhao Wang wrote:
> > > > > > > > I just tried the GLFW example on windows, it failed as expected as
> > > > > > > > shown by the attachment.

Re: Embed Gio with other OpenGL rendering 3 months ago

From Zhao Wang to ~eliasnaur/gio

This works, thank you!

On Wed, Jan 27, 2021 at 8:45 AM Elias Naur <mail@eliasnaur.com> wrote:
>
> On Tue Jan 26, 2021 at 23:41 CET, Zhao Wang wrote:
> > On Tue, Jan 26, 2021 at 5:51 AM Elias Naur <mail@eliasnaur.com> wrote:
> > > On Mon Jan 25, 2021 at 17:40, Zhao Wang wrote:
> > > > On Mon, Jan 25, 2021 at 2:05 AM Elias Naur <mail@eliasnaur.com> wrote:
> > > > > On Mon Jan 25, 2021 at 8:43 AM CET, Zhao Wang wrote:
> > > > > > I just tried the GLFW example on windows, it failed as expected as
> > > > > > shown by the attachment.
> > > > > >
> > > > > > It panic when trying to GetString for Extension during initializing a
> > > > > > new backend.

Re: Injecting custom frame update to the flow? 3 months ago

From Zhao Wang to ~eliasnaur/gio

Hi Elias,

Please see my response below. Thank you!

On Sun, Jan 17, 2021 at 1:30 AM Elias Naur <mail@eliasnaur.com> wrote:
>
> On Sun Jan 17, 2021 at 8:33 AM CET, Zhao Wang wrote:
> > Hi guys,
> >
> > I am trying to use gio to build a multi window chat client to have
> > main chat UI in one
> > window and run OpenGL ES game in another window which I hope to use Gio
> > Window as well as the event loop and frame updating mechanism.
> >

Re: Injecting custom frame update to the flow? 3 months ago

From Zhao Wang to ~eliasnaur/gio

Hi Loki,

Thanks for the help. It is helpful, I will try the approaches
you mentioned below.

Besides my response below, here is our current app demo,
just in case it helps to understand what I am talking about.

https://drive.google.com/file/d/1HTJ5L8l4MoRz5llK_WhR7ObyKMtvJK6X/view

The gif above shows both chat view (native iOS UIKit view)
and game view (custom iOS UIView with a EAGLContext
with DisplayLink)

Injecting custom frame update to the flow? 3 months ago

From Zhao Wang to ~eliasnaur/gio

Hi guys,

I am trying to use gio to build a multi window chat client to have
main chat UI in one
window and run OpenGL ES game in another window which I hope to use Gio
Window as well as the event loop and frame updating mechanism.

The game has its own "drawFrame" method which calls standard OpenGL ES APIs.
And does not use gio widgets yet (might need to add some later).
I am wondering how I can inject the game's drawFrame into Gio window's frame
update loop.

I spent some time digging into the code, it looks to me current frame
drawing happens