Demo of TCastleMask
Using TCastleMask to limit rendering of arbitrary UI (any button, image, viewport...) to an arbitrary UI shape (again any button, image, viewport...).
Using Castle Game Engine.
Building
Compile by:
-
CGE editor. Just use menu items "Compile" or "Compile And Run".
-
Or use CGE command-line build tool. Run
castle-engine compilein this directory. -
Or use Lazarus. Open in Lazarus
mask_standalone.lpifile and compile / run from Lazarus. Make sure to first register CGE Lazarus packages. -
Or use Delphi. Open in Delphi
mask_standalone.dprojfile and compile / run from Delphi. See CGE and Delphi documentation for details.
