Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-02-23

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

All times shown according to UTC.

Time Nick Message
00:00 admsyn it's pretty popular in certain niches :)
00:05 yandil joined #openframeworks
00:17 ezraanderson so download OF-0073 and built & ran jacres demo for deffered lighting.... and
00:17 ezraanderson wow
00:17 ezraanderson really cool :)
00:31 kritzikratzi hey!
00:31 kritzikratzi to add to the visual studio discussion from earlier:
00:32 kritzikratzi if any of you have companies registered that quite young then you can try to signup for their bizspark thingie http://www.microsoft.com/bizspark/default.aspx
00:33 kritzikratzi you get free, lasting licenses for windows, visual studio and lots of other software
00:35 ezraanderson Good to know
00:36 kritzikratzi the application process is a bit annoying, but i actually explained them that i was in visual studio for OF development, and not in the azure stuff they’re mainly promoting
00:36 kritzikratzi that was fine after some emails back and forward
00:37 ezraanderson what docs did you have to provide?
00:37 kritzikratzi first you fill out the form in their signup
00:38 kritzikratzi they ask for some details (name, phone and such), and then there’s a textbox where you have to describe WHY you’re interrested
00:38 kritzikratzi i think i dropped two lines, and my correspondent was unhappy with that
00:38 ezraanderson so you didn't have to send tax ids, businnes license, and all that supporting documents
00:38 kritzikratzi so i wrote half a page or so, explaining roughly what i do, then she unlocked me
00:39 kritzikratzi ^ i think i sent them my EU company number
00:39 kritzikratzi tbh, i can’t remember exactly if i did or didn’t
00:39 ezraanderson I think micorsoft is scrambling for develpers
00:39 kritzikratzi totally
00:39 kritzikratzi but they also constantly bring out really cool research
00:39 ezraanderson to keep using there producst, they seem to be losing market share
00:40 kritzikratzi yea, but it’s weird, cause they have all these really good research guys, esp. in computer graphics/visiion,
00:40 kritzikratzi but then they’re really pushing these business products
00:40 ezraanderson vs ide is my favorite, I use eclipse and xcode and they both drive me crazy
00:40 kritzikratzi i guess that’s how they make money :)
00:41 kritzikratzi ^ grew up with eclipse, don’t wanna start a war here :)
00:43 ezraanderson haha, no worries
00:43 ezraanderson i struggle with change... just this month I moved from win-xp to win-7
01:13 yandil joined #openframeworks
01:44 admsyn joined #openframeworks
01:54 yandil joined #openframeworks
02:47 ilbot3 joined #openframeworks
02:47 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
02:54 wjf joined #openframeworks
02:56 ar_tama joined #openframeworks
02:58 ar_tama_ joined #openframeworks
02:58 egradman joined #openframeworks
03:03 admsyn joined #openframeworks
03:56 egradman joined #openframeworks
04:12 wjf this may be a dumb question but when I use .push_back in a vector of objects to add a new object, is it calling the constructor of every object in that vector?
04:14 admsyn not every object in the vector, it'll usually call the copy constructor though
04:14 admsyn or rather, it will call the copy constructor unless your vector actually contains pointers to things
04:14 wjf ok
04:15 admsyn as in when you do vector.push_back(Thing()) it'll construct a Thing, then make a copy of that Thing into the vector
04:16 wjf so if I have vector.push_back(Thing(some pointer)), it will reapply that pointer to every object in the vector?
04:16 wjf so basically i have this:
04:16 wjf myItems.push_back(itemBlock(mouseX, mouseY, itemColors[colorLevel]));
04:17 wjf and when i change the colorLevel, the color of all the items is changing
04:17 wjf but it's not putting all of them at mouseX and mouseY
04:17 admsyn what type is itemColors ?
04:17 wjf that's an array of ofColors
04:17 wjf so i'm new to c++
04:17 admsyn sure no problem
04:18 wjf but since arrays use pointers, it's treating that differently than mouseX and mouseY whcih are not pointers
04:18 wjf is that right?
04:18 admsyn almost, arrays sorta kinda act like pointers, but the thing in your array don't have to be pointers
04:18 admsyn *the things in your array
04:18 wjf ok
04:19 admsyn usually in C++ you would use a vector instead of an array if possible, since the do basically the same thing, but don't worry about that too much if you're just getting started
04:19 admsyn I think the issue might be in your itemBlock constructor, what's that look like?
04:21 wjf the relevant part is:
04:21 wjf itemBlock::itemBlock(int _x, int _y, ofColor c)
04:21 wjf {ofSetColor(c);}
04:21 admsyn put it on pastebin if you're about to copy and paste it here
04:21 wjf ok
04:21 admsyn oh n/m that's it?
04:22 wjf that's the relevant part
04:22 wjf so here's the full constructor
04:22 wjf http://pastebin.com/5szzvshB
04:23 admsyn ah ok, so what's happening there is you're calling ofSetColor every time, which is changing the global color you're drawing with
04:23 wjf ohhhh
04:23 admsyn instead of that, you should store the ofColor in your item block, than do an ofSetColor with that stored color whenever you're about to draw
04:23 admsyn so if you have a draw() it'd be like { ofSetColor(storedColor); /* stuff */ }
04:24 wjf ok
04:26 wjf thank you so much
04:26 admsyn np
04:44 ar_tama joined #openframeworks
04:45 ar_tama_ joined #openframeworks
04:53 booltox joined #openframeworks
05:08 egradman joined #openframeworks
05:36 yandil joined #openframeworks
05:50 yandil joined #openframeworks
06:22 ezraanderson joined #openframeworks
06:31 ar_tama joined #openframeworks
06:55 ar_tama joined #openframeworks
07:16 gabrielstuff joined #openframeworks
07:50 MyMind joined #openframeworks
07:52 notjosh joined #openframeworks
08:03 gabrielstuff joined #openframeworks
08:12 debu joined #openframeworks
08:36 mhashmi joined #openframeworks
08:49 notjosh joined #openframeworks
09:30 synesthete joined #openframeworks
09:48 marcocanc joined #openframeworks
11:03 notjosh joined #openframeworks
11:16 HarryHaaren joined #openframeworks
11:17 kritzikratzi joined #openframeworks
11:22 gabrielstuff joined #openframeworks
11:47 sebllll joined #openframeworks
12:12 gabrielstuff joined #openframeworks
12:33 gabrielstuff joined #openframeworks
13:04 ar_tama_ joined #openframeworks
13:38 kritzikratzi joined #openframeworks
13:47 notjosh joined #openframeworks
16:02 wjf_ joined #openframeworks
16:11 yandil joined #openframeworks
16:45 yandil joined #openframeworks
17:02 SFBurning joined #openframeworks
17:08 GuidovanPossum joined #openframeworks
17:08 yandil joined #openframeworks
17:11 admsyn joined #openframeworks
17:40 qDot_ joined #openframeworks
18:23 yandil joined #openframeworks
18:36 ezraanderson joined #openframeworks
18:57 debu joined #openframeworks
19:10 marcocanc joined #openframeworks
20:05 wjf_ joined #openframeworks
20:08 debuuux joined #openframeworks
20:47 notjosh joined #openframeworks
20:54 wjf_ joined #openframeworks
21:08 admsyn joined #openframeworks
21:21 GuidovanPossum_ joined #openframeworks
22:22 notjosh joined #openframeworks
22:26 gabrielstuff joined #openframeworks
23:12 wjf_ joined #openframeworks
23:14 pizthewiz joined #openframeworks
23:33 egradman joined #openframeworks

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