Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-02-15

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:29 yandil joined #openframeworks
00:30 Psychedelien_ joined #openframeworks
00:52 admsyn joined #openframeworks
00:53 admsyn @jacres: any hints what you're going to be covering in your resonate workshop?
00:55 admsyn other than what's on the page already of course :)
00:55 admsyn thinking like lighting techniques etc..
01:26 w4ffles joined #openframeworks
02:48 ilbot3 joined #openframeworks
02:48 Topic for #openframeworks is now Welcome :) Site: http://openframeworks.cc/ Logs: http://irclog.perlgeek.de/openframeworks/ Agenda: https://openframeworks.hackpad.​com/IRC-Meetup-February-8-2015
03:10 booltox_ joined #openframeworks
04:22 yandil joined #openframeworks
04:51 yandil joined #openframeworks
05:51 ar_tama joined #openframeworks
07:08 marcocanc joined #openframeworks
07:11 w4ffles joined #openframeworks
07:41 mhashmi joined #openframeworks
08:16 ar_tama joined #openframeworks
08:47 mhashmi joined #openframeworks
09:09 mhashmi joined #openframeworks
09:18 booltox joined #openframeworks
09:21 cbrooks1 joined #openframeworks
10:20 booltox_ joined #openframeworks
10:55 mhashmi_ joined #openframeworks
10:57 mhashmi joined #openframeworks
11:43 LSA232 joined #openframeworks
11:47 sebllll_ joined #openframeworks
11:59 lukaszw joined #openframeworks
13:39 LSA23242 joined #openframeworks
13:41 LSA232 joined #openframeworks
13:50 HarryHaaren joined #openframeworks
13:56 LSA232 joined #openframeworks
14:18 mhashmi joined #openframeworks
14:26 ar_tama joined #openframeworks
14:37 mhashmi joined #openframeworks
15:18 marcocanc joined #openframeworks
15:51 admsyn joined #openframeworks
16:16 ReallyRad joined #openframeworks
16:35 admsyn joined #openframeworks
17:48 w4ffles joined #openframeworks
18:09 yandil joined #openframeworks
18:12 mhashmi joined #openframeworks
18:38 yandil joined #openframeworks
19:00 pixelorchestra joined #openframeworks
19:39 dine909 joined #openframeworks
19:39 dine909 is there a way to receive an event on more than one lisrtener
19:40 dine909 listener
19:47 jvcleave dine909: yes
19:48 mhashmi joined #openframeworks
19:48 jvcleave You just pass it from each listener’s class e.g. ofAddListener(ofEvents().update, this, &ofxRPiCameraVideoGrabber::onUpdate);
19:49 jvcleave ofAddListener(ofEvents().update, this, &SomeOtherClass::onUpdate);
20:05 dine909 right - but what when the class is the same
20:06 dine909 i have 2 or more instances of ClassA and only the first ClassA's listener is responding to the event they are both listening to
20:06 dine909 *same event
20:09 jvcleave maybe ofAddListener(ofEvents().update, this, this->onUpdate);
20:15 dine909 what's the difference between adding an EventType& listener and an ofEvent<> listener
20:16 dine909 ah nm
20:16 dine909 truly stuck
20:17 jvcleave yeah - just tried it - not working here
20:17 jvcleave this is another way I do it but it’s more complicated
20:17 jvcleave kind of a delegate model
20:17 dine909 so you only get first registered listener responding to the event too?
20:19 dine909 but how does update() etc work then
20:19 dine909 they seem to have many listeners
20:19 jvcleave https://github.com/jvcleave/ofxRPiCameraVide​oGrabber/blob/master/src/TerminalListener.h
20:20 jvcleave so in that way I pass in my own listener and if it isn’t null it calls the method
20:20 jvcleave the bad/messy part is that your other class has to extend it and implement the methods
20:20 jvcleave https://github.com/jvcleave/ofxRPiCameraVideoGrabb​er/blob/master/example-pixels/src/pixelsApp.h#L18
20:21 dine909 right ok
20:21 jvcleave and init it like this
20:21 jvcleave https://github.com/jvcleave/ofxRPi​CameraVideoGrabber/blob/master/exa​mple-pixels/src/pixelsApp.cpp#L16
20:21 dine909 trying to create a dynamic event system gui here
20:22 dine909 so it's kinda going the wrong way
20:22 dine909 might look at zmq's inproc://
20:24 dine909 i wish events were as easy as Qt's qmake system
20:24 jvcleave yeah - I haven’t seen a great event system in c++ - always confusing
20:25 dine909 have you used Qt Framework?
20:25 dine909 obviously not
20:25 dine909 or you'd not have just said that
20:25 dine909 :)
20:25 jvcleave I have actually a bit
20:26 jvcleave never liked the editor
20:26 dine909 i actually used the editor as my main IDE for everything - but that aside, never use the editor, the gui, ignore all that, and only use the FX, its awesome
20:27 dine909 signals & slots
20:27 dine909 the actualy graphic gui designer on the editor is an abortion, much easier just typing it all out in cpp
20:27 dine909 i'd pay to have Qt and OF married at the alter
20:27 dine909 an arranged marriage
20:28 jvcleave yeah - like most frameworks it’s just another flavor of kool-aid :)
20:30 jvcleave I really want to try this gui https://github.com/ocornut/imgui
20:30 dine909 my - god
20:31 dine909 that's exactly what i'm after
20:31 dine909 how much work (in coffee's) does it look like to embedd into an ofxAddon
20:32 jvcleave It’s supposed to be lightweight so might just be best to use directly
20:36 dine909 looks delicious thanks for the tip
20:36 jvcleave good luck - curious to see how well it works
21:12 dine909 i settled for this http://hastebin.com/godesuqaha.cpp
21:12 dine909 will templatify it
21:13 dine909 any class that wants to pass frames in or out (in this example)  just needs to inherit this class
21:19 notjosh joined #openframeworks
21:27 dantheman joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary