• R/O
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。


Commit MetaInfo

修订版12 (tree)
时间2015-01-22 00:36:26
作者xops-mikan

Log Message

D3DGraphicsクラスの未使用関数を削除、2Dの線描画時のバグ修正。

更改概述

差异

--- trunk/d3dgraphics.h (revision 11)
+++ trunk/d3dgraphics.h (revision 12)
@@ -119,7 +119,6 @@
119119 void CleanupModel(int id);
120120 int LoadTexture(char* filename, bool texturefont, bool BlackTransparent);
121121 int GetTextureSize(int id, int *width, int *height);
122- int CheckAlphaTexture(int id);
123122 void CleanupTexture(int id);
124123 int StartRender();
125124 void EndRender();
--- trunk/d3dgraphics.cpp (revision 11)
+++ trunk/d3dgraphics.cpp (revision 12)
@@ -454,46 +454,6 @@
454454 return 0;
455455 }
456456
457-//! テクスチャがアルファ値を含んでいるかチェック
458-//! @param id テクスチャ認識番号
459-//! @return アルファ値を含む:1 含まない・エラー:0
460-int D3DGraphics::CheckAlphaTexture(int id)
461-{
462- //無効な認識番号が指定されていたら、処理せず返す。
463- if( id == -1 ){ return 0; }
464- if( ptextures[id] == NULL ){ return 0; }
465-
466- IDirect3DSurface9 *surface;
467- D3DSURFACE_DESC desc;
468- int Format;
469-
470- //サーフェイスを取得
471- ptextures[id]->GetSurfaceLevel(0, &surface);
472-
473- //幅と高さを取得
474- surface->GetDesc(&desc);
475- Format = desc.Format;
476-
477- //サーフェイスを開放
478- surface->Release();
479-
480- //http://msdn.microsoft.com/ja-jp/library/cc324320.aspx
481- if( Format == D3DFMT_A8R8G8B8 ){ return 1; }
482- if( Format == D3DFMT_A1R5G5B5 ){ return 1; }
483- if( Format == D3DFMT_A4R4G4B4 ){ return 1; }
484- if( Format == D3DFMT_A8 ){ return 1; }
485- if( Format == D3DFMT_A8R3G3B2 ){ return 1; }
486- if( Format == D3DFMT_A2B10G10R10 ){ return 1; }
487- if( Format == D3DFMT_A8B8G8R8 ){ return 1; }
488- if( Format == D3DFMT_A2R10G10B10 ){ return 1; }
489- if( Format == D3DFMT_A16B16G16R16 ){ return 1; }
490- if( Format == D3DFMT_A8P8 ){ return 1; }
491- if( Format == D3DFMT_A8L8 ){ return 1; }
492- if( Format == D3DFMT_A4L4 ){ return 1; }
493-
494- return 0;
495-}
496-
497457 //! テクスチャを解放
498458 //! @param id テクスチャ認識番号
499459 void D3DGraphics::CleanupTexture(int id)
@@ -1286,7 +1246,7 @@
12861246
12871247 //データ形式を設定し、描画。
12881248 pd3dDevice->SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1);
1289- pd3dDevice->DrawPrimitiveUP(D3DPT_LINELIST, 2, pLineVertices, sizeof(TLVERTX));
1249+ pd3dDevice->DrawPrimitiveUP(D3DPT_LINELIST, 1, pLineVertices, sizeof(TLVERTX));
12901250
12911251 //2D描画用設定を解除
12921252 End2DRender();