James Turner
c035b3e9e3
Better fix for Canvas-in-PUI compositing
...
This seems to work everywhere, let’s try it.
2018-01-28 16:10:18 +00:00
James Turner
c1947b6bc4
Fix PUICamera compilation
...
Some blending issues remain with Canvas-in-PUI, waiting to hear back
if Thomas has nay great ideas on those.
2018-01-28 14:23:22 +00:00
James Turner
ac50a3c7ed
Restore OSG 3.2 compilation support
2017-12-05 21:39:30 +00:00
James Turner
e090427591
Better fix for CanvasWidget transparency
...
Use osg GLExtensions to retrieve glBlendFuncSeperate on Win32
2017-10-22 19:25:46 +01:00
James Turner
c1df6e9d15
Hack to fix Windows build.
...
glBlendFuncSeperate will need some ugly trick to use in CanvasWidget, I better find another way.
2017-10-20 17:25:06 +01:00
James Turner
804dc4e74a
Steps to make PUI optional, HiDPI tolerant.
...
Move all PUI event and rendering into a custom camera, which can be
rendered via an FBO to account for display-resolution scaling (HiDPI).
Start wrapping PUI calls in #ifdefs so PUI can be disabled at compile
time; a run-time switch is trivial now but not implemented yet.
2017-10-20 12:10:51 +01:00
James Turner
2ff476a217
More safe subsystem accessors.
2016-09-27 05:58:47 -05:00
Thomas Geymayer
5b74a72506
Canvas: support for custom events and event dispatching.
2014-05-19 00:28:40 +02:00
Thomas Geymayer
764fbd519c
CanvasWidget (PUI): make button index consistent with Canvas windows
2014-03-15 15:01:09 +01:00
James Turner
e25aa4f004
Fix some static property references.
...
(These cause problems when replacing the property tree during reset)
2013-11-14 16:37:46 +00:00
Thomas Geymayer
3d3475e965
Small cleanup.
2013-06-03 23:46:27 +02:00
Thomas Geymayer
1c905e5881
Typos, license headers...
2013-03-06 01:04:52 +01:00
Thomas Geymayer
3ea69785d9
CanvasWidget: automatically set auto-viewport.
...
If no viewport dimensions are given the viewport
will now automatically resize, otherwise it stays
unchanged.
2013-02-25 15:39:30 +01:00
Thomas Geymayer
045fc5b4ae
CanvasWidget: add auto-viewport property.
...
The auto-viewport property allows to disable automatic
update of the canvas viewport update upon resizing
the PUI canvas widget.
2013-02-25 15:32:07 +01:00
Thomas Geymayer
41d285a821
Canvas: remove old event handling code
2012-12-16 19:04:38 +01:00
Thomas Geymayer
e62649e075
CanvasWidget: Retrieve texture id every frame.
...
If the size of a Canvas changes also the texture id
changes. We now retrieve the texture id for the CanvasWidget
every frame to ensure it uses the latest texture instance.
2012-12-09 23:15:49 +01:00
Thomas Geymayer
13cec7bd99
Canvas MouseEvent now provides client and screen position
2012-12-08 15:02:15 +01:00
Thomas Geymayer
91bc5e522a
Canvas add event time and expose current click count
2012-12-06 23:27:25 +01:00
Thomas Geymayer
ab1c0e946f
Fix calculating CanvasWidget mouse coordinates
2012-12-02 23:59:44 +01:00
Thomas Geymayer
8d8e9c3913
Fix for old PUI versions
2012-12-02 15:47:21 +01:00
Thomas Geymayer
28f2779c4b
Forward mouse events from (PUI) CanvasWidget to Canvas for new DOM like callbacks
2012-12-02 13:33:16 +01:00
Thomas Geymayer
d51499382d
Clean up CanvasWidget and more work on Canvas/Nasal bindings
2012-11-18 16:46:03 +01:00
Thomas Geymayer
83bbd9e45c
Canvas: Image/Window unifying and allow using canvas inside canvas.
...
- Refactor and unify common functionality of canvas::Window and
canvas::Image
- Make canvas::Image actually work
- Allow using canvases inside canvas::Image
* Use new canvas:// "protocol" to allow using canvases in
place of images
- Prepare for categorizing canvases:
* Move canvases to /canvas/by-index
* Later support linking to other nodes in subbranches of
/canvas
2012-08-09 16:13:38 +02:00
Frederic Bouvier
766014883c
Fix Win32 build - No GLUT please \!
2012-08-01 08:53:40 +02:00
Thomas Geymayer
91c3f63110
Canvas: UTF-8 support and more settings exposed.
...
- Allow hiding objects
- Use UTF-8 encoding for text elements
- Add paramter max-width to text elements
- Support stroke-linecap for path elements
- Fix mouse coords
- Set better mipmap filter
2012-07-31 23:19:23 +02:00
Thomas Geymayer
373d511c69
Canvas: Allow using canvases as PUI widgets.
...
- Add new widget type canvas
- Set canvas view dimension from the gui xml.
- Expose mouse events to canvas widget properties.
2012-07-31 23:19:22 +02:00