BuddhaLib::Texture2D Class Reference

2次元テクスチャ - テクセルの2次元グリッドを表現 More...

#include <BuddhaTexture2D.h>

List of all members.

Public Member Functions

 Texture2D (GraphicsDevice *device, int width, int height, int numberLevels, DWORD usage, D3DFORMAT format)
 非初期化テクスチャを作成するコンストラクタ
int GetWidth (void) const
 幅を取得
int GetHeight (void) const
 高さを取得
int GetLevelCount (void)
 マルチレベルテクスチャのテクスチャレベルの数を取得
int GetLevelOfDetail (void)
 テクスチャに設定されている最大詳細レベル (LOD) 制限を取得

Static Public Member Functions

static Texture2DPtr FromFile (GraphicsDevice *device, LPCWSTR filePath)
 filePath のテクスチャファイルをロードする
Exceptions:
FileNotFoundException 指定されたファイルが見つからない

static Texture2DPtr FromFile (GraphicsDevice *device, const String &filePath)
 filePath のテクスチャファイルをロードする
Exceptions:
FileNotFoundException 指定されたファイルが見つからない

static Texture2DCreateDummy (GraphicsDevice *device)
 幅1高さ1のダミーテクスチャを作成します


Detailed Description

2次元テクスチャ - テクセルの2次元グリッドを表現


Constructor & Destructor Documentation

BuddhaLib::Texture2D::Texture2D ( GraphicsDevice device,
int  width,
int  height,
int  numberLevels,
DWORD  usage,
D3DFORMAT  format 
)

非初期化テクスチャを作成するコンストラクタ

与えられた大きさ、リソース用途、フォーマットから、初期化されていない Texture2D リソースを作成します。 ファイルからのロードで Texture2D を初期化するためには Texture2D::FromFile() を参照してください。


Generated on Fri Jun 29 16:49:21 2007 for BuddhaLib by  doxygen 1.5.2