Updated 2014-02-20 09:28:01 by apw


ntkThemed is a new implementation of Tk widgets based on OpenGL ES 2.0 and itcl-ng. For displaying texts, which are not part of OpenGL ES, a package gles2 was implemented based on FreeType fonts, which also includes the Tcl wrappers for calling the gl* methods.

The goal behind the implementation is to have some Tk available on mobile devices like Android based or iOS based devices.

The benefit of using OpenGL ES is: it is available for Android, iOS and even as base below webgl. And OpenGL itself is a superset of OpenGL ES.

This is work in progress (WIP) and has shortly been presented on the Twentieth Annual Tcl/Tk Conference (2013) during a WIP session.

[ARR] This is very interesting, are there any demo files for download to get a personal impression? How can I contribute?

apw 2013-10-27: the repository for ntkThemed is still called ntk and can be found here (RS same day: domain not found) (apw 2013-10-29 should be fixed now)

I can give you write permission, if you are interested. There are a lot of missing commands for the available widgets, and the gles2 package including FreeType fonts have to be ported to Java for Android and to Objective C for iOS. The current version is running in an OpenGL ES emulator on linux (OpenSuSe 12.3).

apw 2014-02-09: First Tcl command (clearbuffer) implemented and running for Android APWTCL (Java) based on OpenGL ES 2.0. This includes the base code for implementing a package named TclGles20 (about 700 LOC in Java). The TclGles20 commands are the base for ttk like widgets implemented in itcl-ng based on OpenGL ES 2.0.

apw 2014-02-20: Some more Tcl commands (drawline, drawtriangle, filltriangle, drawrectangle, fillrectangle) implemented and running (mostly) for Android APWTCL (Java) based on OpenGL ES 2.0. See table in TclGles20 (now about 2500 LOC in Java).