2005-05-01から1ヶ月間の記事一覧

自分専用「俺様インターフェイス」を探し求めて早幾年

http://www.users-side.co.jp/guide/press/ergodex_dx1.php

かっこいい壁紙サイト

http://www.deviantart.com/ http://nanka.sozai.st/

Wordpress

プレビュー http://detlog.org/?p=428&c=1 コメント欄にクイックタグ http://www.kowa.org/modules/pukiwiki/324.html 掲示板 http://www.kowa.org/modules/yybbs/viewbbs.php?bbs_id=4 プラグイン一覧 http://tekapo.com/wp/wp_plugins.html#post_editing …

Vim on Cygwin

nnoremap "*p :r!getclip<CR></cr>

Jgl Java で実装された OpenGL

http://www.cmlab.csie.ntu.edu.tw/~robin/JavaGL/

メモ

glut32.dll を c:\windows\system32 へ http://www.xmission.com/~nate/glut.html

浮動小数点の例外を扱う気の利いた方法は。

http://www.kouno.jp/home/c_faq/c19.html#0

squeak入門

http://www.h5.dion.ne.jp/~tuyano/SqueakTutor/

可変長引数マクロの作り方

/* * cpp: 新しい C 言語の CPP 可変個数引数マクロの例 * (c)1999 seclan * ver1.00 1999/04/05 最初のバージョン */ #include <stdio.h> #define dbg(fmt, ...) \ printf("debug:" fmt, __VA_ARGS__) #define adbg(...) \ //(1)これもOK printf("debug:" __VA_ARGS_</stdio.h>…

NULLの読み方

NULL (Cマクロ) [ぬる] [なる] 語源はドイツ語らしいので読み方は [ぬる] だが英語圏の人は [なる] というだろう。 ちなみに、気になったので、JISの仕様(JISX3010:プログラム言語C)をちょっと眺めてみましたが、すべて「ナル」でした。(「ヌル」のとこ…

TRUE を -1 で定義したがる人がいるようだが、それが間違いである根拠

組み込みの演算子によってブー ル値が産み出されるときは、1か0であることが保証されている。よっ てテスト if ((a == b) == TRUE)は(TRUEが1であるかぎり)期待したとおりの結果を返す。 http://www.kouno.jp/home/c_faq/c9.html#0

OpenGL のシーングラフライブラリ

http://www.vsl.gifu-u.ac.jp/techinfo/cosmo3d.htm http://wwweic.eri.u-tokyo.ac.jp/computer/manual/lx/3d/PerformerDoc/Performer.html OpenRM http://www.r3vis.com/ Gizmo3D http://www.linux3d.net/gizmo3d OpenGVS http://www.opengvs.com/product%2…

image2mpeg

画像を mpeg に変換するソフト http://www.gromeck.de/cms/index.php?image2mpeg

コーディングスタイルの名前

K&R(カーネルスタイル) while (...) { ... } ANSI(オールマンスタイル) whille (...) { ... } GNU (ホワイトスミス) while (...) { ... } Indian hill http://www.cs.arizona.edu/people/mccann/cstyle.html http://dennou-k.gaia.h.kyoto-u.ac.jp/arc…

間違い?

これはものすごく重要であるのにも関わらず、どういう訳だか解説本ではあまりきちんと説明がなされていません。 glMatrixMode(GL_PROJECTION); glOrtho(left, right, bottom, top, near, far); gluLookAt(eyex, eyey, eyez, centerx, centery, centerz, upx,…

Mesa のサンプル

Mesa-6.2.1/progs/util には色々便利そうな関数が入っている。 matrix.c 変換行列色々 glstate.c OpenGL ステートをダンプする showbuffer.c デプスバッファをグレースケールのイメージで表現する

OpenGL / DirectXにおける3D基礎概念の対比

実際的な説明 http://sequoia-web.hp.infoseek.co.jp/tsudoi/tsudoi06.shtml

この本買ってみよう

http://lucille.atso-net.jp/blog/archives/2005/01/jim_blinns_corn.html

OpenGL明日読もう

http://www.glprogramming.com/links.php http://www.cs.ucy.ac.cy/courses/EPL656/webpage2005/lectures/656_07b_opengl.ppt http://www.gamasutra.com/features/19990723/opengl_texture_objects_07.htm

OpenGL の思想

OpenGL アーキテクチャの基礎 http://www.hc.t.u-tokyo.ac.jp/~kaki/paper/VSJ/VisFrontier/Kakimoto2004GfxHwVSJ.pdf GLUT design philosophy http://www.gimlay.org/~andoh/opengl/glut/section01-02.html

Direct3D vs. OpenGL: Which API to Use When, Where, and Why

http://www.gamedev.net/reference/articles/article1775.asp John Carmack も昔は DirectX が嫌いだったが、今は無視できなくなったと言ったらしい。

OpenGL DirectX 思想

http://lucille.atso-net.jp/blog/archives/2005/04/mac_os_x_tiger.html GLSL on Mac OS X ?ついに Mac OS X 上での OpenGL 2.0 + GLSL のサポートかッ!? すくなくとも Core Image では GLSL の派生言語が用いられますので、 GLSL が実装されている可能性が…

C++の読み方

中国:シージャージャー 韓国:シープルプル

vim

command! Li call CommentCaption("-") command! LLi call CommentCaption("=") function! CommentCaption(ch) set paste execute "normal! o" . b:commentSymbol execute "normal! 77a" . a:ch execute "normal! o" . b:commentSymbol execute "normal! 77a…

Doxygen メインページのカスタマイズ

こんな感じのコメントを入れておくとindex.htmlに表示される。 /*! \mainpage My Personal Index Page * * \section intro Introduction * * This is the introduction. * * \section install Installation * * \subsection step1 Step 1: Opening the box *…

明日やること

astyle 入れる。 WWhizのclassのテンプレート改造して使う C-@ C-- のマクロを2行の線に変える。カーソル位置、タブも. たぶん Doxygen パスにスペースが入っていても使える。(日本語はダメ) graphviz を先にインストールするのが必要条件か? ftp://ftp.s…

Windows ダブルバッファ

http://lcl.web5.jp/prog/ddbtest.html

関数名のマクロ

__FILE__,__LINE__と同様に関数名を表すマクロ(gcc独自拡張) __PRETTY_FUNCTION__ http://mingw.biggie.jp/type_name.html コンパイラ依存になってしまいますが、 VC7 なら __FUNCDNAME__ or __FUNCSIG__ or __FUNCTION__ g++ なら __FUNCTION__ or __PRETT…

intのビット数を知る方法

http://www.bohyoh.com/CandCPP/FAQ/FAQ00018.html /*--- unsigned型のビット数を返却 ---*/ int int_bits(void) { int count = 0; unsigned x = ~0U; while (x) { if (x & 1U) count++; x >>= 1; } return (count); }

金曜やること

VC6.0に戻るがないか探す。