[Lazarus] IMGUI example

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Wed Mar 30 15:52:57 CEST 2011


Just tried on the mac mini. The demo runs up to 1000FPS which is the limit of what I can measure. How nice to have hardware acceleration.... 

One more thing tho, there seem to be a some bugs with key handling. 

1) OnKeyPress, OnKeyDown and OnKeyUp are not fired for TOpenGLControl on win32 but are fired on mac
2) OnKeyDown and OnKeyUp for TForm always give an uppercase value for the key, only OnKeyPress gives the correct character (lower or uppercase) for win32. On Mac however I got the right value for the key that fired the method each time.

Are these known issues? I googled a bit and looked on the bug tracker but couldn't find anything related. Just try the demo I sent to see if this can be confirmed. On win32 I used a lazarus snapshot (2.4.3) no more than a couple of days old.

Regards, Darius


On Mar 30, 2011, at 1:45 PM, <dhkblaszyk at zeelandnet.nl> <dhkblaszyk at zeelandnet.nl> wrote:

> 
> Hi,
> 
> Here's a nice demo which I reworked to FPC/Lazarus of an IMGUI implementation. An IMGUI is a different approach to implementing a widget toolkit and may be of interest in some applications. Additionally I included a port of a vector font library for OpenGL.
> The demo is very fast (>60FPS on a low end laptop). For now this was only tested on win32 but I'm confident that it will run on any platform without issues as it's native pascal all over. I would welcome it if it could be included as an example for the OpenGLContext component.
> 
> Regards, Darius
> <imgui.zip>--
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110330/5654edd2/attachment-0003.html>


More information about the Lazarus mailing list