DirectX9サンプルいじり

ホヅミ
記事: 110
登録日時: 14年前

DirectX9サンプルいじり

投稿記事 by ホヅミ » 14年前

DirectXSDKのサンプルのEmptyProjectでフォントを表示することに成功

だが、フルスクリーン切り替えで解像度を800*600に固定できないものか・・・

あと縁取りが

CODE:

txtHelper.SetInsertionPos( 3, 5 );
    txtHelper.SetForegroundColor( D3DXCOLOR( 0.0f, 0.0f, 0.0f, 1.0f ) );
    txtHelper.DrawTextLine( L"Draw Text Test Program" );
    txtHelper.DrawTextLine( DXUTGetFrameStats() );
    txtHelper.DrawTextLine( DXUTGetDeviceStats() );

	txtHelper.SetInsertionPos( 7, 5 );
    txtHelper.SetForegroundColor( D3DXCOLOR( 0.0f, 0.0f, 0.0f, 1.0f ) );
    txtHelper.DrawTextLine( L"Draw Text Test Program" );
    txtHelper.DrawTextLine( DXUTGetFrameStats() );
    txtHelper.DrawTextLine( DXUTGetDeviceStats() );

	txtHelper.SetInsertionPos( 5, 3 );
    txtHelper.SetForegroundColor( D3DXCOLOR( 0.0f, 0.0f, 0.0f, 1.0f ) );
    txtHelper.DrawTextLine( L"Draw Text Test Program" );
    txtHelper.DrawTextLine( DXUTGetFrameStats() );
    txtHelper.DrawTextLine( DXUTGetDeviceStats() );

	txtHelper.SetInsertionPos( 5, 7 );
    txtHelper.SetForegroundColor( D3DXCOLOR( 0.0f, 0.0f, 0.0f, 1.0f ) );
    txtHelper.DrawTextLine( L"Draw Text Test Program" );
    txtHelper.DrawTextLine( DXUTGetFrameStats() );
    txtHelper.DrawTextLine( DXUTGetDeviceStats() );

	txtHelper.SetInsertionPos( 5, 5 );
    txtHelper.SetForegroundColor( D3DXCOLOR( 1.0f, 1.0f, 0.0f, 1.0f ) );
    txtHelper.DrawTextLine( L"Draw Text Test Program" );
    txtHelper.DrawTextLine( DXUTGetFrameStats() );
    txtHelper.DrawTextLine( DXUTGetDeviceStats() );
もっと美しくならないもんか

それぞれをネットの海から拾い上げてやる作業



うヴぉあー
添付ファイル
クリップボード01.jpg
クリップボード01.jpg (33.96 KiB) 閲覧数: 92 回

コメントはまだありません。