system.h
来自「一个纹理地形渲染器」· C头文件 代码 · 共 51 行
H
51 行
// System classes
#pragma once
#pragma warning( disable : 4127 ) // conditional expression is constant
#pragma warning( disable : 4100 ) // unreferenced formal parameter
#pragma warning( disable : 4702 ) // unreachable code
namespace Mathematics {};
/// Interfaces defining system functionality.
/// Create a display instance with the System::createDisplay method,
/// then using the Display object, contruct instances of other objects
/// such as Light, Material, Texture and Mesh.
namespace System
{
using namespace Mathematics;
class Error;
class Vertex;
class Key;
class KeyboardListener;
class Mouse;
class MouseListener;
class WindowListener;
class Object;
class Light;
class Material;
class Texture;
class Mesh;
class Timer;
class Display;
/// %Display factory method.
/// Creates an system specific instance of a display object, for Win32 the
/// instance will be a DirectX::Display, we plan to add an OpenGL::Display
/// for both Windows and MacOS in the future.
Display* createDisplay();
/// Write a message to the log.
void log(const char message[]);
/// Write a formatted message to the log.
/// note: printf style formatting.
void logf(const char format[], ...);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?