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

📄 glut.h

📁 这是一个生物的吸收仿真程序,在模拟方面也算的是一个不错的小程序.
💻 H
📖 第 1 页 / 共 2 页
字号:
#define GLUT_WINDOW_DOUBLEBUFFER	((GLenum) 115)

#define GLUT_WINDOW_RGBA		((GLenum) 116)

#define GLUT_WINDOW_PARENT		((GLenum) 117)

#define GLUT_WINDOW_NUM_CHILDREN	((GLenum) 118)

#define GLUT_WINDOW_COLORMAP_SIZE	((GLenum) 119)

#if (GLUT_API_VERSION >= 2)

#define GLUT_WINDOW_NUM_SAMPLES		((GLenum) 120)

#define GLUT_WINDOW_STEREO		((GLenum) 121)

#endif

#if (GLUT_API_VERSION >= 3)

#define GLUT_WINDOW_CURSOR		((GLenum) 122)

#endif

#define GLUT_SCREEN_WIDTH		((GLenum) 200)

#define GLUT_SCREEN_HEIGHT		((GLenum) 201)

#define GLUT_SCREEN_WIDTH_MM		((GLenum) 202)

#define GLUT_SCREEN_HEIGHT_MM		((GLenum) 203)

#define GLUT_MENU_NUM_ITEMS		((GLenum) 300)

#define GLUT_DISPLAY_MODE_POSSIBLE	((GLenum) 400)

#define GLUT_INIT_WINDOW_X		((GLenum) 500)

#define GLUT_INIT_WINDOW_Y		((GLenum) 501)

#define GLUT_INIT_WINDOW_WIDTH		((GLenum) 502)

#define GLUT_INIT_WINDOW_HEIGHT		((GLenum) 503)

#define GLUT_INIT_DISPLAY_MODE		((GLenum) 504)

#if (GLUT_API_VERSION >= 2)

#define GLUT_ELAPSED_TIME		((GLenum) 700)

#endif

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)

#define GLUT_WINDOW_FORMAT_ID		((GLenum) 123)

#endif



#if (GLUT_API_VERSION >= 2)

/* glutDeviceGet parameters. */

#define GLUT_HAS_KEYBOARD		((GLenum) 600)

#define GLUT_HAS_MOUSE			((GLenum) 601)

#define GLUT_HAS_SPACEBALL		((GLenum) 602)

#define GLUT_HAS_DIAL_AND_BUTTON_BOX	((GLenum) 603)

#define GLUT_HAS_TABLET			((GLenum) 604)

#define GLUT_NUM_MOUSE_BUTTONS		((GLenum) 605)

#define GLUT_NUM_SPACEBALL_BUTTONS	((GLenum) 606)

#define GLUT_NUM_BUTTON_BOX_BUTTONS	((GLenum) 607)

#define GLUT_NUM_DIALS			((GLenum) 608)

#define GLUT_NUM_TABLET_BUTTONS		((GLenum) 609)

#endif

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)

#define GLUT_DEVICE_IGNORE_KEY_REPEAT   ((GLenum) 610)

#define GLUT_DEVICE_KEY_REPEAT          ((GLenum) 611)

#define GLUT_HAS_JOYSTICK		((GLenum) 612)

#define GLUT_OWNS_JOYSTICK		((GLenum) 613)

#define GLUT_JOYSTICK_BUTTONS		((GLenum) 614)

#define GLUT_JOYSTICK_AXES		((GLenum) 615)

#define GLUT_JOYSTICK_POLL_RATE		((GLenum) 616)

#endif



#if (GLUT_API_VERSION >= 3)

/* glutLayerGet parameters. */

#define GLUT_OVERLAY_POSSIBLE           ((GLenum) 800)

#define GLUT_LAYER_IN_USE		((GLenum) 801)

#define GLUT_HAS_OVERLAY		((GLenum) 802)

#define GLUT_TRANSPARENT_INDEX		((GLenum) 803)

#define GLUT_NORMAL_DAMAGED		((GLenum) 804)

#define GLUT_OVERLAY_DAMAGED		((GLenum) 805)



#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)

/* glutVideoResizeGet parameters. */

#define GLUT_VIDEO_RESIZE_POSSIBLE	((GLenum) 900)

#define GLUT_VIDEO_RESIZE_IN_USE	((GLenum) 901)

#define GLUT_VIDEO_RESIZE_X_DELTA	((GLenum) 902)

#define GLUT_VIDEO_RESIZE_Y_DELTA	((GLenum) 903)

#define GLUT_VIDEO_RESIZE_WIDTH_DELTA	((GLenum) 904)

#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA	((GLenum) 905)

#define GLUT_VIDEO_RESIZE_X		((GLenum) 906)

#define GLUT_VIDEO_RESIZE_Y		((GLenum) 907)

#define GLUT_VIDEO_RESIZE_WIDTH		((GLenum) 908)

#define GLUT_VIDEO_RESIZE_HEIGHT	((GLenum) 909)

#endif



/* glutUseLayer parameters. */

#define GLUT_NORMAL			((GLenum) 0)

#define GLUT_OVERLAY			((GLenum) 1)



/* glutGetModifiers return mask. */

#define GLUT_ACTIVE_SHIFT               1

#define GLUT_ACTIVE_CTRL                2

#define GLUT_ACTIVE_ALT                 4



/* glutSetCursor parameters. */

/* Basic arrows. */

#define GLUT_CURSOR_RIGHT_ARROW		0

#define GLUT_CURSOR_LEFT_ARROW		1

/* Symbolic cursor shapes. */

#define GLUT_CURSOR_INFO		2

#define GLUT_CURSOR_DESTROY		3

#define GLUT_CURSOR_HELP		4

#define GLUT_CURSOR_CYCLE		5

#define GLUT_CURSOR_SPRAY		6

#define GLUT_CURSOR_WAIT		7

#define GLUT_CURSOR_TEXT		8

#define GLUT_CURSOR_CROSSHAIR		9

/* Directional cursors. */

#define GLUT_CURSOR_UP_DOWN		10

#define GLUT_CURSOR_LEFT_RIGHT		11

/* Sizing cursors. */

#define GLUT_CURSOR_TOP_SIDE		12

#define GLUT_CURSOR_BOTTOM_SIDE		13

#define GLUT_CURSOR_LEFT_SIDE		14

#define GLUT_CURSOR_RIGHT_SIDE		15

#define GLUT_CURSOR_TOP_LEFT_CORNER	16

#define GLUT_CURSOR_TOP_RIGHT_CORNER	17

#define GLUT_CURSOR_BOTTOM_RIGHT_CORNER	18

#define GLUT_CURSOR_BOTTOM_LEFT_CORNER	19

/* Inherit from parent window. */

#define GLUT_CURSOR_INHERIT		100

/* Blank cursor. */

#define GLUT_CURSOR_NONE		101

/* Fullscreen crosshair (if available). */

#define GLUT_CURSOR_FULL_CROSSHAIR	102

#endif



/* GLUT initialization sub-API. */

GLUTAPI void APIENTRY glutInit(int *argcp, char **argv);

#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK)

GLUTAPI void APIENTRY __glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int));

#ifndef GLUT_BUILDING_LIB

static void APIENTRY glutInit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); }

#define glutInit glutInit_ATEXIT_HACK

#endif

#endif

GLUTAPI void APIENTRY glutInitDisplayMode(unsigned int mode);

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)

GLUTAPI void APIENTRY glutInitDisplayString(const char *string);

#endif

GLUTAPI void APIENTRY glutInitWindowPosition(int x, int y);

GLUTAPI void APIENTRY glutInitWindowSize(int width, int height);

GLUTAPI void APIENTRY glutMainLoop(void);



/* GLUT window sub-API. */

GLUTAPI int APIENTRY glutCreateWindow(const char *title);

#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK)

GLUTAPI int APIENTRY __glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int));

#ifndef GLUT_BUILDING_LIB

static int APIENTRY glutCreateWindow_ATEXIT_HACK(const char *title) { return __glutCreateWindowWithExit(title, exit); }

#define glutCreateWindow glutCreateWindow_ATEXIT_HACK

#endif

#endif

GLUTAPI int APIENTRY glutCreateSubWindow(int win, int x, int y, int width, int height);

GLUTAPI void APIENTRY glutDestroyWindow(int win);

GLUTAPI void APIENTRY glutPostRedisplay(void);

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 11)

GLUTAPI void APIENTRY glutPostWindowRedisplay(int win);

#endif

GLUTAPI void APIENTRY glutSwapBuffers(void);

GLUTAPI int APIENTRY glutGetWindow(void);

GLUTAPI void APIENTRY glutSetWindow(int win);

GLUTAPI void APIENTRY glutSetWindowTitle(const char *title);

GLUTAPI void APIENTRY glutSetIconTitle(const char *title);

GLUTAPI void APIENTRY glutPositionWindow(int x, int y);

GLUTAPI void APIENTRY glutReshapeWindow(int width, int height);

GLUTAPI void APIENTRY glutPopWindow(void);

GLUTAPI void APIENTRY glutPushWindow(void);

GLUTAPI void APIENTRY glutIconifyWindow(void);

GLUTAPI void APIENTRY glutShowWindow(void);

GLUTAPI void APIENTRY glutHideWindow(void);

#if (GLUT_API_VERSION >= 3)

GLUTAPI void APIENTRY glutFullScreen(void);

GLUTAPI void APIENTRY glutSetCursor(int cursor);

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)

GLUTAPI void APIENTRY glutWarpPointer(int x, int y);

#endif



/* GLUT overlay sub-API. */

GLUTAPI void APIENTRY glutEstablishOverlay(void);

GLUTAPI void APIENTRY glutRemoveOverlay(void);

GLUTAPI void APIENTRY glutUseLayer(GLenum layer);

GLUTAPI void APIENTRY glutPostOverlayRedisplay(void);

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 11)

GLUTAPI void APIENTRY glutPostWindowOverlayRedisplay(int win);

#endif

GLUTAPI void APIENTRY glutShowOverlay(void);

GLUTAPI void APIENTRY glutHideOverlay(void);

#endif



/* GLUT menu sub-API. */

GLUTAPI int APIENTRY glutCreateMenu(void (GLUTCALLBACK *func)(int));

#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK)

GLUTAPI int APIENTRY __glutCreateMenuWithExit(void (GLUTCALLBACK *func)(int), void (__cdecl *exitfunc)(int));

#ifndef GLUT_BUILDING_LIB

static int APIENTRY glutCreateMenu_ATEXIT_HACK(void (GLUTCALLBACK *func)(int)) { return __glutCreateMenuWithExit(func, exit); }

#define glutCreateMenu glutCreateMenu_ATEXIT_HACK

#endif

#endif

GLUTAPI void APIENTRY glutDestroyMenu(int menu);

GLUTAPI int APIENTRY glutGetMenu(void);

GLUTAPI void APIENTRY glutSetMenu(int menu);

GLUTAPI void APIENTRY glutAddMenuEntry(const char *label, int value);

GLUTAPI void APIENTRY glutAddSubMenu(const char *label, int submenu);

GLUTAPI void APIENTRY glutChangeToMenuEntry(int item, const char *label, int value);

GLUTAPI void APIENTRY glutChangeToSubMenu(int item, const char *label, int submenu);

GLUTAPI void APIENTRY glutRemoveMenuItem(int item);

GLUTAPI void APIENTRY glutAttachMenu(int button);

GLUTAPI void APIENTRY glutDetachMenu(int button);



/* GLUT window callback sub-API. */

GLUTAPI void APIENTRY glutDisplayFunc(void (GLUTCALLBACK *func)(void));

GLUTAPI void APIENTRY glutReshapeFunc(void (GLUTCALLBACK *func)(int width, int height));

GLUTAPI void APIENTRY glutKeyboardFunc(void (GLUTCALLBACK *func)(unsigned char key, int x, int y));

GLUTAPI void APIENTRY glutMouseFunc(void (GLUTCALLBACK *func)(int button, int state, int x, int y));

GLUTAPI void APIENTRY glutMotionFunc(void (GLUTCALLBACK *func)(int x, int y));

GLUTAPI void APIENTRY glutPassiveMotionFunc(void (GLUTCALLBACK *func)(int x, int y));

GLUTAPI void APIENTRY glutEntryFunc(void (GLUTCALLBACK *func)(int state));

GLUTAPI void APIENTRY glutVisibilityFunc(void (GLUTCALLBACK *func)(int state));

GLUTAPI void APIENTRY glutIdleFunc(void (GLUTCALLBACK *func)(void));

GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void (GLUTCALLBACK *func)(int value), int value);

GLUTAPI void APIENTRY glutMenuStateFunc(void (GLUTCALLBACK *func)(int state));

#if (GLUT_API_VERSION >= 2)

GLUTAPI void APIENTRY glutSpecialFunc(void (GLUTCALLBACK *func)(int key, int x, int y));

GLUTAPI void APIENTRY glutSpaceballMotionFunc(void (GLUTCALLBACK *func)(int x, int y, int z));

GLUTAPI void APIENTRY glutSpaceballRotateFunc(void (GLUTCALLBACK *func)(int x, int y, int z));

GLUTAPI void APIENTRY glutSpaceballButtonFunc(void (GLUTCALLBACK *func)(int button, int state));

GLUTAPI void APIENTRY glutButtonBoxFunc(void (GLUTCALLBACK *func)(int button, int state));

GLUTAPI void APIENTRY glutDialsFunc(void (GLUTCALLBACK *func)(int dial, int value));

GLUTAPI void APIENTRY glutTabletMotionFunc(void (GLUTCALLBACK *func)(int x, int y));

GLUTAPI void APIENTRY glutTabletButtonFunc(void (GLUTCALLBACK *func)(int button, int state, int x, int y));

#if (GLUT_API_VERSION >= 3)

GLUTAPI void APIENTRY glutMenuStatusFunc(void (GLUTCALLBACK *func)(int status, int x, int y));

GLUTAPI void APIENTRY glutOverlayDisplayFunc(void (GLUTCALLBACK *func)(void));

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)

GLUTAPI void APIENTRY glutWindowStatusFunc(void (GLUTCALLBACK *func)(int state));

#endif

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)

GLUTAPI void APIENTRY glutKeyboardUpFunc(void (GLUTCALLBACK *func)(unsigned char key, int x, int y));

GLUTAPI void APIENTRY glutSpecialUpFunc(void (GLUTCALLBACK *func)(int key, int x, int y));

GLUTAPI void APIENTRY glutJoystickFunc(void (GLUTCALLBACK *func)(unsigned int buttonMask, int x, int y, int z), int pollInterval);

#endif

#endif

#endif



/* GLUT color index sub-API. */

GLUTAPI void APIENTRY glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue);

GLUTAPI GLfloat APIENTRY glutGetColor(int ndx, int component);

GLUTAPI void APIENTRY glutCopyColormap(int win);



/* GLUT state retrieval sub-API. */

GLUTAPI int APIENTRY glutGet(GLenum type);

GLUTAPI int APIENTRY glutDeviceGet(GLenum type);

#if (GLUT_API_VERSION >= 2)

/* GLUT extension support sub-API */

GLUTAPI int APIENTRY glutExtensionSupported(const char *name);

#endif

#if (GLUT_API_VERSION >= 3)

GLUTAPI int APIENTRY glutGetModifiers(void);

GLUTAPI int APIENTRY glutLayerGet(GLenum type);

#endif



/* GLUT font sub-API */

GLUTAPI void APIENTRY glutBitmapCharacter(void *font, int character);

GLUTAPI int APIENTRY glutBitmapWidth(void *font, int character);

GLUTAPI void APIENTRY glutStrokeCharacter(void *font, int character);

GLUTAPI int APIENTRY glutStrokeWidth(void *font, int character);

#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)

GLUTAPI int APIENTRY glutBitmapLength(void *font, const unsigned char *string);

GLUTAPI int APIENTRY glutStrokeLength(void *font, const unsigned char *string);

#endif



/* GLUT pre-built models sub-API */

GLUTAPI void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks);

GLUTAPI void APIENTRY glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);

GLUTAPI void APIENTRY glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);

GLUTAPI void APIENTRY glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);

GLUTAPI void APIENTRY glutWireCube(GLdouble size);

GLUTAPI void APIENTRY glutSolidCube(GLdouble size);

GLUTAPI void APIENTRY glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);

GLUTAPI void APIENTRY glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);

GLUTAPI void APIENTRY glutWireDodecahedron(void);

GLUTAPI void APIENTRY glutSolidDodecahedron(void);

GLUTAPI void APIENTRY glutWireTeapot(GLdouble size);

GLUTAPI void APIENTRY glutSolidTeapot(GLdouble size);

GLUTAPI void APIENTRY glutWireOctahedron(void);

GLUTAPI void APIENTRY glutSolidOctahedron(void);

GLUTAPI void APIENTRY glutWireTetrahedron(void);

GLUTAPI void APIENTRY glutSolidTetrahedron(void);

GLUTAPI void APIENTRY glutWireIcosahedron(void);

GLUTAPI void APIENTRY glutSolidIcosahedron(void);



#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)

/* GLUT video resize sub-API. */

GLUTAPI int APIENTRY glutVideoResizeGet(GLenum param);

GLUTAPI void APIENTRY glutSetupVideoResizing(void);

GLUTAPI void APIENTRY glutStopVideoResizing(void);

GLUTAPI void APIENTRY glutVideoResize(int x, int y, int width, int height);

GLUTAPI void APIENTRY glutVideoPan(int x, int y, int width, int height);



/* GLUT debugging sub-API. */

GLUTAPI void APIENTRY glutReportErrors(void);

#endif



#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)

/* GLUT device control sub-API. */

/* glutSetKeyRepeat modes. */

#define GLUT_KEY_REPEAT_OFF		0

#define GLUT_KEY_REPEAT_ON		1

#define GLUT_KEY_REPEAT_DEFAULT		2



/* Joystick button masks. */

#define GLUT_JOYSTICK_BUTTON_A		1

#define GLUT_JOYSTICK_BUTTON_B		2

#define GLUT_JOYSTICK_BUTTON_C		4

#define GLUT_JOYSTICK_BUTTON_D		8



GLUTAPI void APIENTRY glutIgnoreKeyRepeat(int ignore);

GLUTAPI void APIENTRY glutSetKeyRepeat(int repeatMode);

GLUTAPI void APIENTRY glutForceJoystickFunc(void);



/* GLUT game mode sub-API. */

/* glutGameModeGet. */

#define GLUT_GAME_MODE_ACTIVE           ((GLenum) 0)

#define GLUT_GAME_MODE_POSSIBLE         ((GLenum) 1)

#define GLUT_GAME_MODE_WIDTH            ((GLenum) 2)

#define GLUT_GAME_MODE_HEIGHT           ((GLenum) 3)

#define GLUT_GAME_MODE_PIXEL_DEPTH      ((GLenum) 4)

#define GLUT_GAME_MODE_REFRESH_RATE     ((GLenum) 5)

#define GLUT_GAME_MODE_DISPLAY_CHANGED  ((GLenum) 6)



GLUTAPI void APIENTRY glutGameModeString(const char *string);

GLUTAPI int APIENTRY glutEnterGameMode(void);

GLUTAPI void APIENTRY glutLeaveGameMode(void);

GLUTAPI int APIENTRY glutGameModeGet(GLenum mode);

#endif



#ifdef __cplusplus

}



#endif



#ifdef GLUT_APIENTRY_DEFINED

# undef GLUT_APIENTRY_DEFINED

# undef APIENTRY

#endif



#ifdef GLUT_WINGDIAPI_DEFINED

# undef GLUT_WINGDIAPI_DEFINED

# undef WINGDIAPI

#endif



#ifdef GLUT_DEFINED___CDECL

# undef GLUT_DEFINED___CDECL

# undef __cdecl

#endif



#ifdef GLUT_DEFINED__CRTIMP

# undef GLUT_DEFINED__CRTIMP

# undef _CRTIMP

#endif



#endif                  /* __glut_h__ */

⌨️ 快捷键说明

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