|
|
| GRDeviceD3D () |
| | コンストラクタ
|
| |
|
virtual void | Init () |
| | 初期設定
|
| |
|
virtual void | SetViewport (Vec2f pos, Vec2f sz) |
| | Viewport設定
|
| |
|
virtual void | ClearBuffer () |
| | バッファクリア
|
| |
|
virtual void | BeginScene () |
| | レンダリングの開始前に呼ぶ関数
|
| |
|
virtual void | EndScene () |
| | レンダリングの終了後に呼ぶ関数
|
| |
|
virtual void | SetViewMatrix (const Affinef &afv) |
| | カレントの視点行列をafvで置き換える
|
| |
|
virtual void | SetProjectionMatrix (const Affinef &afp) |
| | カレントの投影行列を取得する
|
| |
|
virtual void | GetProjectionMatrix (const Affinef &afp) |
| | カレントの投影行列をafpで置き換える
|
| |
|
virtual void | SetModelMatrix (const Affinef &afw) |
| | カレントのモデル行列をafwで置き換える
|
| |
|
virtual void | MultModelMatrix (const Affinef &afw) |
| | カレントのモデル行列に対してafwを掛ける
|
| |
|
virtual void | PushModelMatrix () |
| | カレントのモデル行列をモデル行列スタックへ保存する
|
| |
|
virtual void | PopModelMatrix () |
| | モデル行列スタックから取り出し、カレントのモデル行列とする
|
| |
|
virtual void | ClearBlendMatrix () |
| | ブレンド変換行列の全要素を削除する
|
| |
|
virtual bool | SetBlendMatrix (const Affinef &afb) |
| | ブレンド変換行列を設定する
|
| |
|
virtual bool | SetBlendMatrix (const Affinef &afb, unsigned int id) |
| | ブレンド変換行列を設定する
|
| |
|
virtual void | SetVertexFormat (const GRVertexElement *e) |
| | 頂点フォーマットの指定
|
| |
|
virtual void | SetVertexShader (void *s) |
| | 頂点シェーダーの指定
|
| |
|
virtual void | DrawDirect (GRRenderBaseIf::TPrimitiveType ty, void *begin, size_t count, size_t stride=0) |
| | 頂点座標を指定してプリミティブを描画
|
| |
|
virtual void | DrawIndexed (GRRenderBaseIf::TPrimitiveType ty, GLuint *idx, void *vtx, size_t count, size_t stride=0) |
| | 頂点座標とインデックスを指定してプリミティブを描画
|
| |
|
virtual void | DrawList (int i) |
| | DisplayListの表示
|
| |
|
virtual void | ReleaseList (int i) |
| | DisplayListの解放
|
| |
|
virtual void | DrawFont (Vec2f pos, const std::string str) |
| | 3次元テキストの描画(GLオンリー版でfontは指定なし)
|
| |
|
virtual void | DrawFont (Vec3f pos, const std::string str) |
| | 3次元テキストの描画(GLオンリー版でfontは指定なし)
|
| |
|
virtual void | DrawFont (Vec2f pos, const std::string str, const GRFont &font) |
| | 3次元テキストの描画
|
| |
|
virtual void | DrawFont (Vec3f pos, const std::string str, const GRFont &font) |
| | 3次元テキストの描画
|
| |
|
virtual void | SetMaterial (const GRMaterialDesc &mat) |
| | 描画の材質の設定
|
| |
|
virtual void | SetMaterial (const GRMaterialIf *&mat) |
| |
|
virtual void | SetLineWidth (float w) |
| | 描画する点・線の太さの設定
|
| |
|
virtual void | PushLight (const GRLightDesc &light) |
| | 光源スタックをPush
|
| |
|
virtual void | PushLight (const GRLightIf *light) |
| |
|
virtual void | PopLight () |
| | 光源スタックをPop
|
| |
|
virtual void | SetDepthWrite (bool b) |
| | デプスバッファへの書き込みを許可/禁止する
|
| |
|
virtual void | SetDepthTest (bool b) |
| | デプステストを有効/無効にする
|
| |
|
virtual void | SetDepthFunc (GRRenderBaseIf::TDepthFunc f) |
| | デプスバッファ法に用いる判定条件を指定する
|
| |
|
virtual void | SetAlphaTest (bool b) |
| | アルファブレンディングを有効/無効にする
|
| |
|
virtual void | SetAlphaMode (GRRenderBaseIf::TBlendFunc src, GRRenderBaseIf::TBlendFunc dest) |
| | アルファブレンディングのモード設定(SRCの混合係数, DEST混合係数)
|
| |
|
virtual unsigned int | LoadTexture (const std::string filename) |
| | テクスチャのロード(戻り値:テクスチャID)
|
| |
|
virtual void | InitShader () |
| | シェーダの初期化
|
| |
|
virtual void | SetShaderFormat (GRShaderFormat::ShaderType type) |
| | シェーダフォーマットの設定
|
| |
|
virtual bool | CreateShader (std::string vShaderFile, std::string fShaderFile, GRHandler &shader) |
| | シェーダオブジェクトの作成
|
| |
|
virtual GRHandler | CreateShader () |
| | シェーダオブジェクトの作成、GRDeviceGL::shaderへの登録(あらかじめShaderFile名を登録しておく必要がある)
|
| |
|
virtual bool | ReadShaderSource (GRHandler shader, std::string file) |
| | シェーダのソースプログラムをメモリに読み込み、シェーダオブジェクトと関連付ける
|
| |
|
virtual void | GetShaderLocation (GRHandler shader, void *location) |
| | ロケーション情報の取得(SetShaderFormat()でシェーダフォーマットを設定しておく必要あり)
|
| |
|
virtual void | SetConfirmDeviceFunc (GRDeviceD3DConfirmDeviceFunc func) |
| | デバイス選定用のコールバック関数を登録
|
| |
|
virtual void | AddLostDeviceListener (GRDeviceD3DListenerFunc func) |
| | デバイスがロストしたときに呼ばれるコールバック関数を登録
|
| |
|
virtual void | AddResetDeviceListener (GRDeviceD3DListenerFunc func) |
| | デバイスがリセットされたときに呼ばれるコールバック関数を登録
|
| |
|
virtual void | ToggleFullScreen () |
| | ウインドウモード<->フルスクリーン 切り替え
|
| |
|
virtual bool | IsFullScreen () |
| | フルスクリーンモードか?
|
| |
|
| SPR_OBJECTDEF_ABST (GRDevice) |
| |
|
virtual void | GetClearColor (Vec4f &color) |
| | 背景色の取得
|
| |
|
virtual void | SetClearColor (const Vec4f &color) |
| |
|
virtual void | SetMaterial (const GRMaterialIf *mat) |
| |
|
| SPR_OBJECTDEF_ABST (GRRenderBase) |
| |
|
virtual Vec2f | GetViewportPos () |
| |
|
virtual Vec2f | GetViewportSize () |
| |
|
virtual void | ClearBuffer (bool color, bool depth) |
| |
|
virtual void | SwapBuffers () |
| | バッファの入れ替え(表示)
|
| |
|
virtual void | GetViewMatrix (Affinef &afv) |
| |
|
virtual void | GetProjectionMatrix (Affinef &afp) |
| |
|
virtual void | PushProjectionMatrix () |
| |
|
virtual void | PopProjectionMatrix () |
| |
|
virtual void | GetModelMatrix (Affinef &afw) |
| |
|
virtual void | DrawArrays (GRRenderBaseIf::TPrimitiveType ty, GRVertexArray *arrays, size_t count) |
| |
|
virtual void | DrawArrays (GRRenderBaseIf::TPrimitiveType ty, size_t *idx, GRVertexArray *arrays, size_t count) |
| |
|
virtual void | DrawPoint (Vec3f p) |
| |
|
virtual void | DrawLine (Vec3f p0, Vec3f p1) |
| |
|
virtual void | DrawSpline (Vec3f p0, Vec3f v0, Vec3f p1, Vec3f v1, int ndiv) |
| |
|
virtual void | DrawArrow (Vec3f p0, Vec3f p1, float rbar, float rhead, float lhead, int slice, bool solid) |
| |
|
virtual void | DrawBox (float sx, float sy, float sz, bool solid=true) |
| |
|
virtual void | DrawSphere (float radius, int slices, int stacks, bool solid=true) |
| |
|
virtual void | DrawEllipsoid (Vec3f radius, int slices, int stacks, bool solid=true) |
| |
|
virtual void | DrawCone (float radius, float height, int slice, bool solid=true) |
| |
|
virtual void | DrawCylinder (float radius, float height, int slice, bool solid=true, bool cap=true) |
| |
|
virtual void | DrawDisk (float radius, int slice, bool solid=true) |
| |
|
virtual void | DrawCapsule (float radius, float height, int slice=20, bool solid=true) |
| |
|
virtual void | DrawRoundCone (float rbottom, float rtop, float height, int slice=20, bool solid=true) |
| |
|
virtual void | DrawCurve (const Curve3f &curve) |
| |
|
virtual void | DrawGrid (float size, int slice, float lineWidth) |
| |
|
virtual int | StartList () |
| |
|
virtual void | EndList () |
| |
|
virtual void | SetFont (const GRFont &font)=0 |
| |
|
virtual void | SetMaterial (int matname) |
| |
|
virtual void | SetMaterial (int matname, float alpha) |
| |
|
virtual void | SetPointSize (float sz, bool smooth=false) |
| |
|
virtual void | SetLineWidth (float w, bool smooth=false) |
| |
|
virtual int | NLights () |
| |
|
virtual void | SetLighting (bool l) |
| |
|
virtual void | SetTexture2D (bool b) |
| |
|
virtual void | SetTexture3D (bool b) |
| |
|
virtual void | SetBlending (bool b) |
| |
|
virtual void | SetTextureImage (const std::string id, int components, int xsize, int ysize, int format, const char *tb) |
| |
|
virtual GRShaderIf * | CreateShader (const GRShaderDesc &sd) |
| |
|
virtual bool | SetShader (GRShaderIf *sh) |
| |
|
virtual void | SetShadowLight (const GRShadowLightDesc &sld) |
| |
|
virtual void | EnterShadowMapGeneration () |
| |
|
virtual void | LeaveShadowMapGeneration () |
| |
|
| SPR_OBJECTDEF (Object) |
| | クラス名の取得などの基本機能の実装
|
| |
|
ObjectIf * | GetObjectIf () |
| |
|
const ObjectIf * | GetObjectIf () const |
| |
|
virtual void | Print (std::ostream &os) const |
| | デバッグ用の表示
|
| |
|
virtual void | PrintShort (std::ostream &os) const |
| |
|
virtual ObjectIf * | CreateObject (const IfInfo *info, const void *desc) |
| | オブジェクトの作成
|
| |
|
virtual size_t | NChildObject () const |
| | 子オブジェクトの数
|
| |
|
virtual ObjectIf * | GetChildObject (size_t pos) |
| | 子オブジェクトの取得
|
| |
|
virtual const ObjectIf * | GetChildObject (size_t pos) const |
| |
|
virtual bool | AddChildObject (ObjectIf *o) |
| | 子オブジェクトの追加
|
| |
|
virtual bool | DelChildObject (ObjectIf *o) |
| | 子オブジェクトの削除
|
| |
|
virtual void | Clear () |
| | すべての子オブジェクトの削除とプロパティのクリア
|
| |
|
virtual void | Loaded (UTLoadContext *) |
| | ファイルロード後に一度呼ばれる。ノードの設定に使う。 呼び出し順序に依存する処理がしたい場合は、UTLoadHandeler と UTLoadTask を使うと良い。
|
| |
|
virtual void | Setup () |
| | ノードの設定をするための関数
|
| |
|
virtual bool | GetDesc (void *desc) const |
| | デスクリプタの読み出し(コピー版)
|
| |
|
virtual void | SetDesc (const void *desc) |
| | デスクリプタの設定
|
| |
|
virtual const void * | GetDescAddress () const |
| | デスクリプタの読み出し(参照版)
|
| |
|
virtual size_t | GetDescSize () const |
| | デスクリプタのサイズ
|
| |
|
virtual bool | GetState (void *state) const |
| | 状態の読み出し(コピー版)
|
| |
|
virtual const void * | GetStateAddress () const |
| | 状態の読み出し(参照版)
|
| |
|
virtual void | GetStateR (char *&state) |
| | 状態の再帰的な読み出し
|
| |
|
virtual void | SetState (const void *state) |
| | 状態の設定
|
| |
|
virtual void | SetStateR (const char *&state) |
| | 状態の再帰的な設定
|
| |
|
virtual bool | WriteStateR (std::ostream &fout) |
| | 状態のファイルへの書き出し
|
| |
|
virtual bool | WriteState (std::string fileName) |
| |
|
virtual bool | ReadStateR (std::istream &fin) |
| | 状態の読み込み
|
| |
|
virtual bool | ReadState (std::string fileName) |
| |
|
virtual size_t | GetStateSize () const |
| | 状態のサイズ
|
| |
|
virtual void | ConstructState (void *m) const |
| | メモリブロックを状態型に初期化
|
| |
|
virtual void | DestructState (void *m) const |
| | 状態型をメモリブロックに戻す
|
| |
|
virtual void | DumpObjectR (std::ostream &os, int level=0) const |
| | メモリデバッグ用。単純にツリーのオブジェクトをファイルにダンプする。
|
| |