ユーティリティメソッド
More...
#include <GxSysEnvironment.h>
|
|
static void | createMipmap (GxRenderTexture *pTexture) |
| ミップマップの生成
|
|
static s32 | getMaterialFunctionIndex (GxResShaderPackage *pShaderPackage, GX_HANDLE handleMaterialFunctions, const GxString &materialFunctionName) |
| マテリアル関数名からマテリアル関数番号を取得する
|
|
static void | setMaterialFunctions (GxResShaderPackage *pShaderPackage, GxShaderPackage::GxShaderCode *pShaderCode, const GxString &materialName, const GxString &materialFunctionName) |
| マテリアル関数を設定する
|
|
static b32 | setShaders (GxResShaderPackage *pShaderPackage, GxShaderPackage::GxShaderCode *pShaderCode) |
| シェーダコードの設定
|
|
static void | setSamplerState (GX_HANDLE handle, RENDER_SAMPLER_FILTER min, RENDER_SAMPLER_FILTER mag, RENDER_SAMPLER_FILTER mip, RENDER_SAMPLER_ADDRESS_MODE addressU, RENDER_SAMPLER_ADDRESS_MODE addressV) |
| サンプラの設定
|
|
static void | setTexture (GX_HANDLE handle, GxRenderTexture *pTexture, RENDER_SAMPLER_FILTER min, RENDER_SAMPLER_FILTER mag, RENDER_SAMPLER_FILTER mip, RENDER_SAMPLER_ADDRESS_MODE addressU, RENDER_SAMPLER_ADDRESS_MODE addressV) |
| テクスチャの設定
|
|
static GxRenderVertexBuffer * | createVertexBufferSphere (s32 xdiv, s32 ydiv, s32 ycount) |
| スフィア頂点バッファの生成
|
|
static GxRenderVertexDeclaration * | createVertexDeclarationSphere (void) |
| スフィア頂点定義の生成
|
|
static GxVector4 | getFogParam (f32 startDistance, f32 endDistance, f32 min, f32 max) |
| フォグパラメータの生成
|
|
◆ createMipmap()
◆ createVertexBufferSphere()
スフィア頂点バッファの生成
- Parameters
-
xDivide | [in] X軸の分割数 |
yDivide | [in] Y軸の分割数 |
yCount | [in] Yの数 |
- Returns
- 頂点バッファ
◆ createVertexDeclarationSphere()
◆ getFogParam()
GxVector4 Utility::getFogParam |
( |
f32 | startDistance, |
|
|
f32 | endDistance, |
|
|
f32 | min, |
|
|
f32 | max ) |
|
static |
フォグパラメータの生成
- Parameters
-
startDistance | [in] 開始距離 |
endDistance | [in] 終了距離 |
min | [in] 最小値 |
max | [in] 最大値 |
- Returns
- パラメータ
◆ getMaterialFunctionIndex()
マテリアル関数名からマテリアル関数番号を取得する
- Parameters
-
pShaderPackage | [in] シェーダーパッケージ |
handleMaterialFunctions | [in] 関数ハンドル |
materialFunctionName | [in] 関数ハンドル名 |
- Returns
- マテリアル関数番号
◆ setMaterialFunctions()
マテリアル関数を設定する
- Parameters
-
pShaderPackage | [in] シェーダーパッケージ |
pShaderCode | [in] シェーダーコード |
materialName | [in] マテリアル名 |
materialFunctionName | [in] 関数ハンドル名 |
◆ setSamplerState()
サンプラの設定
- Parameters
-
handle | [in] ハンドル |
min | [in] 縮小フィルタ |
mag | [in] 拡大フィルタ |
mip | [in] ミップマップフィルタ |
addressU | [in] U座標のアドレッシングモード |
addressV | [in] V座標のアドレッシングモード |
◆ setShaders()
シェーダコードの設定
- Parameters
-
pShaderPackage | [in] シェーダーパッケージ |
pShaderCode | [in] シェーダーコード |
- Returns
- 成功ならtrue
◆ setTexture()
テクスチャの設定
- Parameters
-
handle | [in] ハンドル |
pTexture | [in] 描画テクスチャ |
min | [in] 縮小フィルタ |
mag | [in] 拡大フィルタ |
mip | [in] ミップマップフィルタ |
addressU | [in] U座標のアドレッシングモード |
addressV | [in] V座標のアドレッシングモード |
The documentation for this class was generated from the following files:
- C:/Users/t-arai/Documents/workspace/orochi_package_windows/middleware/GxCore/src/GxSysEnvironment.h
- C:/Users/t-arai/Documents/workspace/orochi_package_windows/middleware/GxCore/src/GxSysEnvironment.cpp