📄 tri.h
字号:
/*******************************************************************
* Advanced 3D Game Programming using DirectX 9.0
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* copyright (c) 2003 by Peter A Walsh and Adrian Perez
* See license.txt for modification and distribution information
******************************************************************/
#ifndef _TRI_H
#define _TRI_H
template <class type>
struct tri
{
type v[3]; // Array access useful in for loops
tri()
{
// nothing
}
tri( type v0, type v1, type v2 )
{
v[0] = v0;
v[1] = v1;
v[2] = v2;
}
};
#endif //_TRI_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -