[M3devel] On Trestle, OpenGL, etc...
Darko
darko at darko.org
Sun Jan 24 02:59:26 CET 2010
Here is the Cairo API done in M3 and I have a few others. I'd like to promote this style of naming, where prefixes matching the interface name are removed, so CairoSave in C becomes Cairo.Save in M3.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cairo.i3
Type: application/octet-stream
Size: 21401 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100124/51166a02/attachment-0002.obj>
-------------- next part --------------
On 24/01/2010, at 9:02 AM, Chris wrote:
On Sat, 23 Jan 2010 12:17:07 +0100
Daniel Solaz <m3 at sol42.com> wrote:
> I think the only way to go is a single Modula-3 API that wraps the native toolkit on each platform, sort of like wxwidgets. Where there is no single native toolkit, choose the best or most used. Portability, full interoperability and looking/feeling native are the key points here.
>
> Developing a new toolkit in pure Modula-3 is a waste of effort. Sun has spent years and billions in Swing, and it still sucks in a different way every platform it works on. Worst of all (for me at least) is how it incorrectly and incompletely mimics the native look and feel, mainly Motif and GTK, but Mac OS X too; on Windows it looks way better but is still far from perfect. SWT is a bit more difficult to use, and not available (yet?) on every platform, but to me it is the right way to go.
>
> Making Trestle look good will only get us so far. I haven't looked at it for years, but unless it has changed quite a bit it would require rewriting significant parts. Text handling comes to mind, and scrollbars too.
>
> Regards.
> -Daniel
Good points.
I think your correct that creating bindings to some toolkits are the way to go, for now. Of course the lower level X and OpenGL bindings will still need to be upgraded, just so that thier available for those who want to use them.(I know I will.)
Right now, as far as toolkits go, I'm looking at bindings to Cairo/Pango/Glitz. Maybe an SDL binding. Full GTK and QT bindings are good. Maybe bindings to Clutter(http://clutter-project.org/) and Amanith(http://www.amanith.org/) would be useful.
So, bindings are the way to start at least. Alright then. Time to get hacking.
--
Chris <Highjinks at gmx.com>
More information about the M3devel
mailing list