global.h
来自「此文档是用vistual studio 2005 开发的用来描述3D-tree 」· C头文件 代码 · 共 56 行
H
56 行
/*
* Copyright (c) 2008 Lauming chen, Soochow University.
* All right reserved.
*
*
*/
#ifndef _3D_MyTree_GLOBAL_
#define _3D_MyTree_GLOBAL_
/* Window type - contains left, top, widthm, and height */
typedef struct Window {
int left;
int top;
int width;
int height;
} Window;
/* Textrue type - contains all texture of this program */
typedef struct Textrue {
unsigned int bark;
unsigned int leaf;
unsigned int ground;
unsigned int sky;
} Textrue;
/* Language type - contains all text of this program */
typedef struct Language {
char lightingMenuItem[ 32 ];
char textureMenuItem[ 32 ];
char landMenuItem[ 32 ];
char skyMenuItem[ 32 ];
char langugeMenu[ 32 ];
} Language;
Window window, controlPanel;
Language language;
Textrue textrue;
char currentLanguage[ 16 ] = "English";
void setWindowSize( int l, int t, int w, int h ){
window.left = l;
window.top = t;
window.width = w;
window.height = h;
}
void setControlPanelSize( int l, int t, int w, int h ){
controlPanel.left = l;
controlPanel.top = t;
controlPanel.width = w;
controlPanel.height = h;
}
#endif /* _3D_MyTree_GLOBAL_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?