[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Updates on Freetype Demos - Swift Support
From: |
Alexei Podtelezhnikov |
Subject: |
Re: Updates on Freetype Demos - Swift Support |
Date: |
Sat, 22 Jun 2024 09:37:31 -0400 |
Hi Akhmet,
Going in the opposite order:
- grinit.c should have an entry for you new driver, which should
reside in a subfolder, which should contain rules.mk, which should
detect macOS. Once set up properly, you should have your driver
compiled in.
- grInitDevices() is the first call (see inside FTDemo_display_New).
This does not open the window yet. This only prepares for it:
RegisterClass in Windows, XOpenDisplay and get details of appropriate
Visual in X11.
- grNewSurface(...) actually opens the window of the requested size
and the requested (or default) color depth. Or returns NULL and causes
termination. The return surface object will be used for future
communication with the open window. It also hosts the frame buffer
that is projected in the windows
- grRefreshSurface does just that: looks at the surface frame buffer
and displays it
- grListenSurface communicates the key presses and window resizes so
that the main program modifies the frame buffer and back to
grRefreshSurface, etc, etc, etc
Alexei
On Fri, Jun 21, 2024 at 8:21 AM Ahmet Göksu <ahmet@goksu.in> wrote:
>
> Hello,
> I apologize for my recent silence due to exams. Thank you for your
> understanding. I am now able to be more active.
>
> Here's the updates so far with the Graph Demos Swift support:
> -studied the code in grx11.c
> -studied the code in ftgamma.c
> -studied how they built by makefiles
> -developed a demo using cocoa and swiftui
> https://github.com/goeksu/GraphDemo
> This demo opens a window, displays a test bitmap, and logs keyboard strikes.
>
> while the development process has been easy and basic so far, I am now facing
> the challenge of figuring out how to integrate this into the existing
> codebase. I would greatly appreciate any guidance or assistance you can
> provide in this matter..
>
> Best,
> Goksu
> goksu.in
- Updates on Freetype Demos - Swift Support, Ahmet Göksu, 2024/06/21
- Re: Updates on Freetype Demos - Swift Support,
Alexei Podtelezhnikov <=
- Re: Updates on Freetype Demos - Swift Support, Ahmet Göksu, 2024/06/23
- Re: Updates on Freetype Demos - Swift Support, Alexei Podtelezhnikov, 2024/06/23
- Message not available
- about folder naming (Re: Updates on Freetype Demos - Swift Support), suzuki toshiya, 2024/06/23
- Re: about folder naming (Re: Updates on Freetype Demos - Swift Support), Hin-Tak Leung, 2024/06/23
- Message not available
- Re: about folder naming (Re: Updates on Freetype Demos - Swift Support), suzuki toshiya, 2024/06/23
- Re: about folder naming (Re: Updates on Freetype Demos - Swift Support), Sean McBride, 2024/06/25
- Re: about folder naming (Re: Updates on Freetype Demos - Swift Support), Hin-Tak Leung, 2024/06/27