• What are you working on? V7
    2,001 replies, posted
[QUOTE=databee;20372688]If you have an array Type array[10] Is there a way to initialize them in a constructors initializer list? [editline]02:47AM[/editline] Also the constructor of the type in this situation has args. Meh I guess I could just pass it into another method but I'd still like to know.[/QUOTE] You can't. If you use a vector you can do something like: [cpp] std::vector<Type> v(10, Type(some, params)); // this temp object is copied 10 times into v // or you can use push_back if you need individual params [/cpp]
Just wrote a small (Well, relatively small) python script to calculate the best possible timetable for my University Subjects this Semester. Was well worth the effort.
So then I'd have to push them into another vector thats part of the class to store them? [editline]03:46AM[/editline] wait, you can treat vectors like arrays? I was doing this haha [cpp] std::vector<Tile*> tileSetTemp( 10, new Tile( window, sprite ) ); std::vector<Tile*>::iterator tileSetTemp_iterator = tileSetTemp.begin(); while ( tileSetTemp_iterator != tileSetTemp.end() ) tileSet.push_back( *tileSetTemp_iterator ); [/cpp] Not sure if that would even work (would help if i increased the iterator :v:) [editline]04:13AM[/editline] I think that's it for tonight, ty null. [img]http://dl.dropbox.com/u/99765/mi2.png[/img]
Can you zoom in without much laggyness after some time?
v8 now
Who's making v8? Because I'm not.
v7 went too fast. We're not prepared for this! :v:
Bring on the V8!! [editline]11:12AM[/editline] Last post?
I thought v7 went slow. Maybe it was just because I didn't contribute anything :(
Fuck yes :D portals, finally :D:D:D [hd]http://www.youtube.com/watch?v=1KsIMd7s7Yg[/hd] Of course I still have to fix the rendering bugs, because the portals are always drawn on top, but that fixed at least the clipping. Plus, I finally got the camera translation right, as you can see :D
Sorry, you need to Log In to post a reply to this thread.