*** ricardocrudo has quit IRC | 02:25 | |
*** zth has quit IRC | 04:38 | |
*** edogawa has joined #lv2 | 05:45 | |
*** falktx has joined #lv2 | 08:27 | |
*** rncbc has joined #lv2 | 11:30 | |
*** falktx has quit IRC | 12:16 | |
*** edogawa has quit IRC | 12:22 | |
*** edogawa has joined #lv2 | 12:23 | |
*** rgareus has quit IRC | 12:23 | |
*** ricardocrudo has joined #lv2 | 12:24 | |
*** rgareus has joined #lv2 | 12:24 | |
*** NickSB2 has quit IRC | 12:34 | |
*** falktx has joined #lv2 | 13:20 | |
*** rncbc has quit IRC | 13:50 | |
*** ricardocrudo has quit IRC | 14:03 | |
*** ricardocrudo has joined #lv2 | 14:03 | |
*** falktx has quit IRC | 14:39 | |
*** falktx has joined #lv2 | 14:46 | |
*** rncbc has joined #lv2 | 15:32 | |
*** mlpug has joined #lv2 | 16:00 | |
*** zth has joined #lv2 | 16:13 | |
*** falktx has quit IRC | 16:20 | |
*** edogawa_ has joined #lv2 | 16:48 | |
*** edogawa has quit IRC | 16:51 | |
*** drobilla has joined #lv2 | 16:58 | |
*** falktx has joined #lv2 | 17:31 | |
*** drobilla has quit IRC | 17:34 | |
*** drobilla has joined #lv2 | 19:14 | |
*** edogawa_ is now known as edogawa | 19:46 | |
*** falktx has quit IRC | 19:50 | |
*** falktx has joined #lv2 | 19:50 | |
*** mlpug has quit IRC | 20:10 | |
*** zth has quit IRC | 20:13 | |
falktx | drobilla: I got pugl to work as embed on osx | 20:39 |
---|---|---|
falktx | only need to handle mouse events position having some offset now | 20:40 |
falktx | my latest code will always be at this url if you need to check/import anything | 20:41 |
falktx | https://github.com/DISTRHO/DPF/blob/master/dgl/src/pugl/pugl_osx.m | 20:41 |
drobilla | falktx: okay, thanks | 20:48 |
drobilla | falktx: probably offset of view inside window not handled correctly | 20:48 |
falktx | wrl said to me an important function is missing | 20:49 |
falktx | windowViewMoved or something | 20:49 |
falktx | drobilla: my pugl code is missing an important view:setFrame function to set view size without the window | 20:50 |
falktx | I call that shortly after the UI is created, not in that pugl file | 20:51 |
*** mlilenium_ has joined #lv2 | 20:55 | |
*** mlilenium_ has left #lv2 | 20:55 | |
wrl | i ran into a similar issue | 20:58 |
wrl | oh wait actually hm | 20:58 |
wrl | whoa whoa | 20:59 |
wrl | falktx: there's no need to add a tracking area every time the mouse moves into the view | 20:59 |
wrl | ahhh, here's your mouse coord problem | 20:59 |
wrl | you keep calling [event locationInWindow] | 20:59 |
wrl | compare to how i do it in rutabaga: [self convertPoint:[e locationInWindow] fromView:nil] | 21:00 |
wrl | you're close but you need the cursor in view coords, not window coords | 21:00 |
falktx | I have | 21:01 |
falktx | NSPoint loc = [self convertPoint:[event locationInWindow] fromView:nil]; | 21:01 |
falktx | copied from your code | 21:01 |
falktx | wrl: are you seeing something else? | 21:01 |
wrl | i'm looking at the DPF pugl code right now | 21:02 |
falktx | https://github.com/DISTRHO/DPF/blob/master/dgl/src/pugl/pugl_osx.m | 21:02 |
wrl | oh i'm still tracking falktx/DPF | 21:02 |
wrl | well you definitely don't need to keep fucking with the tracking areas like you are | 21:03 |
wrl | i only do that with the view gets added to a window iirc | 21:03 |
falktx | blame harrison :) | 21:03 |
wrl | anyway. | 21:04 |
falktx | this is not my original code, I fixed it to support embed | 21:05 |
falktx | I'll do your suggestions next, thanks | 21:05 |
falktx | btw, pugl-win32 doesn't track host window moves when embed | 21:06 |
falktx | when the host moves the plugin window we need to trigger a repaint | 21:06 |
falktx | wrl: do you know how a win32 child window can know when the parent moved position? | 21:07 |
wrl | falktx: not sure, but if you give me an example host to test with i can see if rutabaga handles it correctly | 21:08 |
falktx | fl studio causes this at least | 21:08 |
falktx | (on win32 of course) | 21:09 |
wrl | hm. | 21:09 |
falktx | wrl: have you checked your synth against FL? | 21:09 |
wrl | yeah, works fine | 21:09 |
wrl | both 32bit and 64bit bridged | 21:09 |
falktx | I'll have to copy some more code ;) | 21:09 |
wrl | yeah | 21:09 |
wrl | i think that audiomulch does that too | 21:09 |
wrl | and panther/rtb handle it just fine | 21:09 |
wrl | tbqh the win32 code was easier to write than the osx/cocoa code | 21:09 |
falktx | one doesn't require to learn a new language... | 21:10 |
wrl | except for the "get an opengl 3.2 context" bit, that's a little gnarly | 21:10 |
wrl | but pugl doesn't care about that | 21:10 |
drobilla | The windows GL stuff is practically GLX with a search replace, which is also very much like EGL | 21:14 |
drobilla | Would be nice if EGL could actually be used everywhere currently... | 21:14 |
drobilla | There 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 pipeline | 21:16 |
falktx | #ifdef all the way! | 21:17 |
wrl | drobilla: in rutabaga i inherit from NSView and do the context wrangling myself | 21:18 |
drobilla | wrl: I will append checking that out to my infinite TODO list :) | 21:18 |
*** rncbc has quit IRC | 22:04 | |
*** Anchakor_ has quit IRC | 22:12 | |
*** Anchakor_ has joined #lv2 | 22:20 | |
*** Anchakor_ has joined #lv2 | 22:33 | |
*** edogawa has quit IRC | 22:36 | |
*** hybrid has quit IRC | 23:40 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!