system.cpp

来自「一个纹理地形渲染器」· C++ 代码 · 共 40 行

CPP
40
字号
// System factory methods

#include <stdio.h>
#include <stdlib.h>

#include "System.h"
#include "DirectX/Display.h"


System::Display* System::createDisplay()
{
    return new DirectX::Display();
}


void System::log(const char message[])
{
    printf("%s\n", message);
}


void System::logf(const char format[], ...)
{
    char buffer[1024];

	va_list args;
	va_start(args, format);
	_vsnprintf(buffer, sizeof(buffer), format, args);
	va_end(args);

    printf("%s\n", buffer);
}


/// \mainpage Virtual Go
///
/// \section intro Introduction
///
/// This is the technical documentation for Virtual Go.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?