⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.h

📁 此文档是用vistual studio 2005 开发的用来描述3D-tree 的生长过程
💻 H
字号:
/*
* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -