📄 w32stdconsolerenderingcontext.cpp
字号:
// --------------------------------------------------------------------------
// Dingus project - a collection of subsystems for game/graphics applications
// --------------------------------------------------------------------------
#include "stdafx.h"
#include "W32StdConsoleRenderingContext.h"
using namespace dingus;
//---------------------------------------------------------------------------
// CW32StdConsoleRenderingContext
//---------------------------------------------------------------------------
CW32StdConsoleRenderingContext::CW32StdConsoleRenderingContext()
{
AllocConsole();
mConsoleHandle = GetStdHandle( STD_OUTPUT_HANDLE );
assert( mConsoleHandle );
}
CW32StdConsoleRenderingContext::~CW32StdConsoleRenderingContext()
{
FreeConsole();
}
void CW32StdConsoleRenderingContext::write( const std::string& message )
{
DWORD charsWritten;
WriteConsole( mConsoleHandle, message.c_str(), message.length(), &charsWritten, NULL );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -