2011年6月14日火曜日
2011年6月6日月曜日
boost::function
http://d.hatena.ne.jp/osyo-manga/20100930/1285800075
int main(){ // 関数の保持 boost::function<int(int, int)> division_func = &division; assert(division_func(10, 2) == 5); // ラムダも保持できる boost::function<bool(int)> is_even = [](int n)->bool{ return n % 2 == 0; }; assert(is_even(4) == true); // あらかじめ、関数に渡す引数を設定しておく事も出来る boost::function<bool()> three_is_even = boost::bind(is_even, 3); assert(three_is_even() == false); // is_even(3) // template の場合は、渡す時に template 型も設定する boost::function<bool(int, int)> is_equal_int(&is_equal<int>); assert(is_equal_int(10, 10) == true); // 非 static メソッドを保持する場合は、第一引数にクラスのポインタを設定する boost::function<void(game*, int)> any_game_even(&game::even1); game g; any_game_even(&g, 10); // g.even1(10); // あらかじめクラスのポインタを渡しておくと呼び出し時に楽 boost::function<void(int)> any_game_even2 = boost::bind(&game::even2, &g, ::_1); any_game_even2(10); return 0; }
2011年5月28日土曜日
CS-based deferred shading. Deferred shading using DX11 CS
http://s09.idav.ucdavis.edu/talks/04-JAndersson-ParallelFrostbite-Siggraph09.pdf
アンチエイリアシング
http://www-ljk.imag.fr/Publications/Basilic/com.lmc.publi.PUBLI_Article@11e7cdda2f7_f64b69/index_en.html
情報源
http://rightwingkinu.blog46.fc2.com/blog-date-200908.html
情報源
http://rightwingkinu.blog46.fc2.com/blog-date-200908.html
DirectShow PowerDVDのActiveX
WindowsSDKのDirectShowサンプル
http://www.firefly-vj.net/imagery/index.php?itemid=149
のDirectX10フィルタ
そのたもろもろDirectShowのサンプルプログラムを
ビルドしたけど、PowerDVDのActiveXをつかえるのは
http://wantech.ikuto.com/software/eropega2.html
これだけ。C#だし。
なんで?
http://www.firefly-vj.net/imagery/index.php?itemid=149
のDirectX10フィルタ
そのたもろもろDirectShowのサンプルプログラムを
ビルドしたけど、PowerDVDのActiveXをつかえるのは
http://wantech.ikuto.com/software/eropega2.html
これだけ。C#だし。
なんで?
BOOST::asio サンプル
http://3dmmo.blog42.fc2.com/
・スレッドプール
・セッションサーバ
http://codingplayground.blogspot.com/2008/08/boostasio-keep-alive-boostserialization.html
・asio+serialization
・スレッドプール
・セッションサーバ
http://codingplayground.blogspot.com/2008/08/boostasio-keep-alive-boostserialization.html
・asio+serialization
登録:
投稿 (Atom)