0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DXライブラリの前処理(初期化前の設定)

Last updated at Posted at 2013-08-07

自分用のメモ

DXライブラリの初期化前に、各種設定を行なっておくといいかんじになる。

DxLibSample1.cpp
#include "DxLib.h"

int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
         LPSTR lpCmdLine, int nCmdShow )
{

    ChangeWindowMode( TRUE ) ;// Windowモードで起動
    SetMainWindowText( "俺のゲームだ!" ) ;//ウィンドウタイトルを変更
    SetGraphMode( 640 , 480, 16 );// 画面解像度と色数の設定

    if( DxLib_Init() == -1 )
    {
        // エラー発生時の処理
        return -1 ;
    }
    
    WaitKey() ;// キーの入力待ち
    DxLib_End() ;// DXライブラリ終了
    return 0 ;// ソフトの終了
}
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?