Thursday, 2014-08-28

drobillargareus: Weird00:03
drobillargareus: I'd rather not involve GL unless the UI is actually using GL00:04
drobilla(you can now build a pugl UI with no libgl and friend dependency whatsoever)00:04
drobillaI guess performance may force me to rework my tidy 'cairo or GL' design :/00:07
rgareusdrobilla: pugl without gl?  isn't that just pu? what am I missing?00:19
falktxcairo00:19
falktxpuca00:19
rgareuswell, ^^^ it said    "pugl cairo"00:20
*** ricardocrudo has joined #lv200:24
drobillargareus: Yes, it's something of a misnomer now00:30
drobillaIt was never actually very dependent on GL.  There's about 50 lines of GL specific code in there00:31
drobillargareus: Writing just cairo to draw stuff is a way lower bar of entry, at the very least00:33
drobillaI want UI code to be as simple as possible, with minimal platform details except for actually drawing.  Simple enough for example plugins...00:34
drobillaCan't beat "here's a cairo_t*, draw stuff"00:34
drobillaRe: name, I don't know.  I was trying to think of something that would shorten to a prefix, say pr, so pugl would be prut, some toolkit built on it could be prtk, maybe pru would become a think (utilities, like glu), etc.00:38
drobillathough if I wrote a toolkit I'd kind of want to escape that whole glCamelCase thing so maybe shouldn't shoot for consistency above that level00:38
rgareusyes just going for  cairo_t + simple event system  sounds great.00:42
drobillaWell, for compatibility I'm keeping the glut callbacks too00:42
drobilla... Though I don't particularly want to :)00:42
falktxmake the callbacks pass a struct00:42
rgareusdrobilla: what's under the hood,  openGL or xlib or whatever is not directly important.  though openGL does have a huge advantage when it comes to ABI.00:43
falktxso they can be changing without breaking APi compat00:43
drobillafalktx: That's what I'm talking about / just did.  Then you only need one callback.  Namely onEvent00:43
drobillargareus: That'd be great if you could only depend on libgl, but you can't, so whatever00:44
rgareusdrobilla: could you keep in mind that  this would easily allow 'swallowing' plugins?00:44
rgareusdrobilla: a host could just as well provide that cairo_t00:44
drobillaThe glut ones are not a very good design, probably designed to be simple and avoid the need for a bunch of structs00:44
rgareuse.g. ardour's mixer-strip.00:44
drobillaBut removing them would diverge from glut so much I'd just stop using it as a guideline altogether00:44
drobillargareus: Not really.  You can't get events from a cairo_t00:45
drobillaPassing a cairo_t is a nice idea that solves about 0.0000001% of the problem :)  Drawing is easy00:45
rgareusdrobilla: well, yeah.  but a LV2 variant   a ui:CairoUI   could define both.00:47
falktxdo we send atoms to the UI ?00:48
rgareuslike  ui:GtkUI  or  ui:X11UI00:49
falktxbrb00:49
*** falktx has quit IRC00:49
*** falktx has joined #lv200:53
*** ricardocrudo has quit IRC01:58
drobillargareus: Then all that event API stuff is imposed on the host:plugin interface.  To what benefit?02:17
drobillaWorst of all possible places to add API, it adds tight ABI-sensitive coupling between separate projects02:22
drobillaJust passing a pointer to whatever platform-dependent "window" thing underlies it all is *way* less volatile02:23
drobillaand makes it possible for UIs to do pretty much anything possible, not what the LV2 API thought of02:23
*** drobilla has quit IRC04:09
*** Anchakor_ has joined #lv206:13
*** ddom has joined #lv207:58
*** falktx_ has joined #lv208:00
*** falktx has quit IRC08:01
*** edogawa has joined #lv208:10
*** falktx_ has quit IRC09:21
*** falktx_ has joined #lv209:22
*** ddom_ has joined #lv210:16
*** ddom has quit IRC10:19
*** mlpug has joined #lv211:17
*** edogawa has quit IRC11:52
*** falktx_ has quit IRC12:29
*** edogawa has joined #lv212:37
*** NickSB2 has quit IRC13:29
*** ricardocrudo has joined #lv213:32
*** ddom_ has quit IRC14:18
*** ddom_ has joined #lv214:18
*** mlpug has quit IRC14:40
*** ricardocrudo has quit IRC15:34
*** drobilla has joined #lv215:41
*** ricardocrudo has joined #lv215:57
*** zth has joined #lv215:57
*** crudo has joined #lv215:58
*** ricardocrudo has quit IRC15:58
*** ricardocrudo has joined #lv216:00
*** ddom_ has quit IRC16:25
*** ricardocrudo has quit IRC16:36
*** ricardocrudo has joined #lv216:36
*** rncbc has joined #lv218:21
*** zth has quit IRC18:22
*** falktx has joined #lv218:44
*** bgribble has joined #lv218:49
*** mlpug has joined #lv218:50
*** bgribble has quit IRC19:13
*** NickSB2 has joined #lv219:38
*** mlpug has quit IRC20:00
*** rncbc has quit IRC21:48
*** ricardocrudo has quit IRC22:40
*** edogawa has quit IRC23:13

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!