Monday, 2014-10-13

*** ricardocrudo has quit IRC02:25
*** zth has quit IRC04:38
*** edogawa has joined #lv205:45
*** falktx has joined #lv208:27
*** rncbc has joined #lv211:30
*** falktx has quit IRC12:16
*** edogawa has quit IRC12:22
*** edogawa has joined #lv212:23
*** rgareus has quit IRC12:23
*** ricardocrudo has joined #lv212:24
*** rgareus has joined #lv212:24
*** NickSB2 has quit IRC12:34
*** falktx has joined #lv213:20
*** rncbc has quit IRC13:50
*** ricardocrudo has quit IRC14:03
*** ricardocrudo has joined #lv214:03
*** falktx has quit IRC14:39
*** falktx has joined #lv214:46
*** rncbc has joined #lv215:32
*** mlpug has joined #lv216:00
*** zth has joined #lv216:13
*** falktx has quit IRC16:20
*** edogawa_ has joined #lv216:48
*** edogawa has quit IRC16:51
*** drobilla has joined #lv216:58
*** falktx has joined #lv217:31
*** drobilla has quit IRC17:34
*** drobilla has joined #lv219:14
*** edogawa_ is now known as edogawa19:46
*** falktx has quit IRC19:50
*** falktx has joined #lv219:50
*** mlpug has quit IRC20:10
*** zth has quit IRC20:13
falktxdrobilla: I got pugl to work as embed on osx20:39
falktxonly need to handle mouse events position having some offset now20:40
falktxmy latest code will always be at this url if you need to check/import anything20:41
falktxhttps://github.com/DISTRHO/DPF/blob/master/dgl/src/pugl/pugl_osx.m20:41
drobillafalktx: okay, thanks20:48
drobillafalktx: probably offset of view inside window not handled correctly20:48
falktxwrl said to me an important function is missing20:49
falktxwindowViewMoved or something20:49
falktxdrobilla: my pugl code is missing an important view:setFrame function to set view size without the window20:50
falktxI call that shortly after the UI is created, not in that pugl file20:51
*** mlilenium_ has joined #lv220:55
*** mlilenium_ has left #lv220:55
wrli ran into a similar issue20:58
wrloh wait actually hm20:58
wrlwhoa whoa20:59
wrlfalktx: there's no need to add a tracking area every time the mouse moves into the view20:59
wrlahhh, here's your mouse coord problem20:59
wrlyou keep calling [event locationInWindow]20:59
wrlcompare to how i do it in rutabaga: [self convertPoint:[e locationInWindow] fromView:nil]21:00
wrlyou're close but you need the cursor in view coords, not window coords21:00
falktxI have21:01
falktxNSPoint loc = [self convertPoint:[event locationInWindow] fromView:nil];21:01
falktxcopied from your code21:01
falktxwrl: are you seeing something else?21:01
wrli'm looking at the DPF pugl code right now21:02
falktxhttps://github.com/DISTRHO/DPF/blob/master/dgl/src/pugl/pugl_osx.m21:02
wrloh i'm still tracking falktx/DPF21:02
wrlwell you definitely don't need to keep fucking with the tracking areas like you are21:03
wrli only do that with the view gets added to a window iirc21:03
falktxblame harrison :)21:03
wrlanyway.21:04
falktxthis is not my original code, I fixed it to support embed21:05
falktxI'll do your suggestions next, thanks21:05
falktxbtw, pugl-win32 doesn't track host window moves when embed21:06
falktxwhen the host moves the plugin window we need to trigger a repaint21:06
falktxwrl: do you know how a win32 child window can know when the parent moved position?21:07
wrlfalktx: not sure, but if you give me an example host to test with i can see if rutabaga handles it correctly21:08
falktxfl studio causes this at least21:08
falktx(on win32 of course)21:09
wrlhm.21:09
falktxwrl: have you checked your synth against FL?21:09
wrlyeah, works fine21:09
wrlboth 32bit and 64bit bridged21:09
falktxI'll have to copy some more code ;)21:09
wrlyeah21:09
wrli think that audiomulch does that too21:09
wrland panther/rtb handle it just fine21:09
wrltbqh the win32 code was easier to write than the osx/cocoa code21:09
falktxone doesn't require to learn a new language...21:10
wrlexcept for the "get an opengl 3.2 context" bit, that's a little gnarly21:10
wrlbut pugl doesn't care about that21:10
drobillaThe windows GL stuff is practically GLX with a search replace, which is also very much like EGL21:14
drobillaWould be nice if EGL could actually be used everywhere currently...21:14
drobillaThere is CGL, which is OSX'es similar thing, but I don't know if using it is feasible.  Inheriting from NSOpenGLView is problematic, particularly with pugl/cairo in the pipeline21:16
falktx#ifdef all the way!21:17
wrldrobilla: in rutabaga i inherit from NSView and do the context wrangling myself21:18
drobillawrl: I will append checking that out to my infinite TODO list :)21:18
*** rncbc has quit IRC22:04
*** Anchakor_ has quit IRC22:12
*** Anchakor_ has joined #lv222:20
*** Anchakor_ has joined #lv222:33
*** edogawa has quit IRC22:36
*** hybrid has quit IRC23:40

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