• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

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


Commit MetaInfo

Revision308 (tree)
Time2022-04-30 17:37:05
Authorxops-mikan

Log Message

デバッグログ出力時、一部グラフィック関係のリソース情報も出力するように。

Change Summary

Incremental Difference

--- trunk/d3dgraphics-directx.cpp (revision 307)
+++ trunk/d3dgraphics-directx.cpp (revision 308)
@@ -699,7 +699,13 @@
699699
700700 #ifdef ENABLE_DEBUGLOG
701701 //ログに出力
702- OutputLog.WriteLog(LOG_COMPLETE, "", id);
702+ //OutputLog.WriteLog(LOG_COMPLETE, "", id);
703+
704+ char str[32];
705+ int width, height;
706+ GetTextureSize(id, &width, &height);
707+ sprintf(str, "ID:%d (size:%dx%d)", id, width, height);
708+ OutputLog.WriteLog(LOG_COMPLETE, "", str);
703709 #endif
704710 return id;
705711 }
@@ -833,7 +839,11 @@
833839
834840 #ifdef ENABLE_DEBUGLOG
835841 //ログに出力
836- OutputLog.WriteLog(LOG_COMPLETE, "", id);
842+ //OutputLog.WriteLog(LOG_COMPLETE, "", id);
843+
844+ char str[32];
845+ sprintf(str, "ID:%d (size:%dx%d)", id, width, height);
846+ OutputLog.WriteLog(LOG_COMPLETE, "", str);
837847 #endif
838848
839849 //テクスチャID設定
@@ -1395,7 +1405,11 @@
13951405
13961406 #ifdef ENABLE_DEBUGLOG
13971407 //ログに出力
1398- OutputLog.WriteLog(LOG_COMPLETE, "", "");
1408+ //OutputLog.WriteLog(LOG_COMPLETE, "", id);
1409+
1410+ char str[32];
1411+ sprintf(str, "Blocks:%d, Vertices:%d", bs, bs*6*4);
1412+ OutputLog.WriteLog(LOG_COMPLETE, "", str);
13991413 #endif
14001414 }
14011415
--- trunk/d3dgraphics-opengl.cpp (revision 307)
+++ trunk/d3dgraphics-opengl.cpp (revision 308)
@@ -957,7 +957,11 @@
957957
958958 #ifdef ENABLE_DEBUGLOG
959959 //ログに出力
960- OutputLog.WriteLog(LOG_COMPLETE, "", id);
960+ //OutputLog.WriteLog(LOG_COMPLETE, "", id);
961+
962+ char str[32];
963+ sprintf(str, "ID:%d (size:%dx%d)", id, width, height);
964+ OutputLog.WriteLog(LOG_COMPLETE, "", str);
961965 #endif
962966
963967 return id;
@@ -1629,7 +1633,11 @@
16291633
16301634 #ifdef ENABLE_DEBUGLOG
16311635 //ログに出力
1632- OutputLog.WriteLog(LOG_COMPLETE, "", id);
1636+ //OutputLog.WriteLog(LOG_COMPLETE, "", id);
1637+
1638+ char str[32];
1639+ sprintf(str, "ID:%d (size:%dx%d)", id, width, height);
1640+ OutputLog.WriteLog(LOG_COMPLETE, "", str);
16331641 #endif
16341642
16351643 //テクスチャID設定