#include "glutint.h"
#include "glutbitmap.h"
-void APIENTRY
+void GLUTAPIENTRY
glutBitmapCharacter(GLUTbitmapFont font, int c)
{
const BitmapCharRec *ch;
#include "glutbitmap.h"
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutBitmapWidth(GLUTbitmapFont font, int c)
{
BitmapFontPtr fontinfo;
return 0;
}
-int APIENTRY
+int GLUTAPIENTRY
glutBitmapLength(GLUTbitmapFont font, const unsigned char *string)
{
int c, length;
#define CLAMP(i) ((i) > 1.0 ? 1.0 : ((i) < 0.0 ? 0.0 : (i)))
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutSetColor(int ndx, GLfloat red, GLfloat green, GLfloat blue)
{
GLUTcolormap *cmap, *newcmap;
XStoreColor(__glutDisplay, cmap->cmap, &color);
}
-GLfloat APIENTRY
+GLfloat GLUTAPIENTRY
glutGetColor(int ndx, int comp)
{
GLUTcolormap *colormap;
return colormap->cells[ndx].component[comp];
}
-void APIENTRY
+void GLUTAPIENTRY
glutCopyColormap(int winnum)
{
GLUTwindow *window = __glutWindowList[winnum - 1];
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutSetCursor(int cursor)
{
#ifdef _WIN32
#include "glutint.h"
-void APIENTRY
+void GLUTAPIENTRY
glutButtonBoxFunc(GLUTbuttonBoxCB buttonBoxFunc)
{
__glutCurrentWindow->buttonBox = buttonBoxFunc;
GLUT_DEVICE_MASK_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutDialsFunc(GLUTdialsCB dialsFunc)
{
__glutCurrentWindow->dials = dialsFunc;
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutInitDisplayString(const char *string)
{
#ifdef _WIN32
unsigned int __glutModifierMask = (unsigned int) ~0;
int __glutWindowDamaged = 0;
-void APIENTRY
+void GLUTAPIENTRY
glutIdleFunc(GLUTidleCB idleFunc)
{
__glutIdleFunc = idleFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutTimerFunc(unsigned int interval, GLUTtimerCB timerFunc, int value)
{
GLUTtimer *timer, *other;
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutPostRedisplay(void)
{
__glutPostRedisplay(__glutCurrentWindow, GLUT_REDISPLAY_WORK);
glutSetWindow call (entailing an expensive OpenGL context switch),
particularly useful when multiple windows need redisplays posted at
the same times. See also glutPostWindowOverlayRedisplay. */
-void APIENTRY
+void GLUTAPIENTRY
glutPostWindowRedisplay(int win)
{
__glutPostRedisplay(__glutWindowList[win - 1], GLUT_REDISPLAY_WORK);
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutMainLoop(void)
{
#if !defined(_WIN32)
#include "glutint.h"
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutExtensionSupported(const char *extension)
{
static const GLubyte *extensions = NULL;
/* XXX This isn't an official GLUT function, yet */
-void * APIENTRY
+void * GLUTAPIENTRY
glutGetProcAddress(const char *procName)
{
/* Try GLUT functions first */
/* Set a Fortran callback function. */
-void APIENTRY
+void GLUTAPIENTRY
__glutSetFCB(int which, void *func)
{
#ifdef SUPPORT_FORTRAN
/* Get a Fortran callback function. */
-void* APIENTRY
+void* GLUTAPIENTRY
__glutGetFCB(int which)
{
#ifdef SUPPORT_FORTRAN
#include "glutint.h"
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutFullScreen(void)
{
assert(!__glutCurrentWindow->parent);
__glutGameModeWindow = NULL;
}
-void APIENTRY
+void GLUTAPIENTRY
glutLeaveGameMode(void)
{
if (__glutGameModeWindow == NULL) {
return criteria;
}
-void APIENTRY
+void GLUTAPIENTRY
glutGameModeString(const char *string)
{
Criterion *criteria;
free(criteria);
}
-int APIENTRY
+int GLUTAPIENTRY
glutEnterGameMode(void)
{
GLUTwindow *window;
return window->num + 1;
}
-int APIENTRY
+int GLUTAPIENTRY
glutGameModeGet(GLenum mode)
{
switch (mode) {
#include "glutint.h"
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutGet(GLenum param)
{
Window win, root;
*argcp -= numToRemove;
}
-void APIENTRY
+void GLUTAPIENTRY
glutInit(int *argcp, char **argv)
{
char *display = NULL;
}
#ifdef _WIN32
-void APIENTRY
+void GLUTAPIENTRY
__glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int))
{
__glutExitFunc = exitfunc;
#endif
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutInitWindowPosition(int x, int y)
{
__glutInitX = x;
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutInitWindowSize(int width, int height)
{
__glutInitWidth = width;
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutInitDisplayMode(unsigned int mask)
{
__glutDisplayMode = mask;
}
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutDeviceGet(GLenum param)
{
probeDevices();
#include "glutint.h"
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutJoystickFunc(GLUTjoystickCB joystickFunc, int pollInterval)
{
#ifdef _WIN32
#endif
}
-void APIENTRY
+void GLUTAPIENTRY
glutForceJoystickFunc(void)
{
#ifdef _WIN32
#include "glutint.h"
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutKeyboardFunc(GLUTkeyboardCB keyboardFunc)
{
__glutChangeWindowEventMask(KeyPressMask,
__glutCurrentWindow->keyboard = keyboardFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutSpecialFunc(GLUTspecialCB specialFunc)
{
__glutChangeWindowEventMask(KeyPressMask,
#include "glutint.h"
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutIgnoreKeyRepeat(int ignore)
{
__glutCurrentWindow->ignoreKeyRepeat = ignore;
}
-void APIENTRY
+void GLUTAPIENTRY
glutSetKeyRepeat(int repeatMode)
{
#if !defined(_WIN32)
#include "glutint.h"
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutKeyboardUpFunc(GLUTkeyboardCB keyboardUpFunc)
{
__glutChangeWindowEventMask(KeyReleaseMask,
__glutCurrentWindow->keyboardUp = keyboardUpFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutSpecialUpFunc(GLUTspecialCB specialUpFunc)
{
__glutChangeWindowEventMask(KeyReleaseMask,
__glutGetMenuItem = getMenuItem;
}
-int APIENTRY
+int GLUTAPIENTRY
glutCreateMenu(GLUTselectCB selectFunc)
{
XSetWindowAttributes wa;
}
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutGetMenu(void)
{
if (__glutCurrentMenu) {
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutSetMenu(int menuid)
{
GLUTmenu *menu;
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutAddMenuEntry(const char *label, int value)
{
XSetWindowAttributes wa;
__glutCurrentMenu->list = entry;
}
-void APIENTRY
+void GLUTAPIENTRY
glutAddSubMenu(const char *label, int menu)
{
XSetWindowAttributes wa;
__glutCurrentMenu->list = submenu;
}
-void APIENTRY
+void GLUTAPIENTRY
glutAttachMenu(int button)
{
if (__glutMappedMenu) {
/* CENTRY */
/* DEPRICATED, use glutMenuStatusFunc instead. */
-void APIENTRY
+void GLUTAPIENTRY
glutMenuStateFunc(GLUTmenuStateCB menuStateFunc)
{
__glutMenuStatusFunc = (GLUTmenuStatusCB) menuStateFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutMenuStatusFunc(GLUTmenuStatusCB menuStatusFunc)
{
__glutMenuStatusFunc = menuStatusFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutDestroyMenu(int menunum)
{
GLUTmenu *menu = __glutGetMenuByNum(menunum);
free(menu);
}
-void APIENTRY
+void GLUTAPIENTRY
glutChangeToMenuEntry(int num, const char *label, int value)
{
GLUTmenuItem *item;
__glutWarning("Current menu has no %d item.", num);
}
-void APIENTRY
+void GLUTAPIENTRY
glutChangeToSubMenu(int num, const char *label, int menu)
{
GLUTmenuItem *item;
__glutWarning("Current menu has no %d item.", num);
}
-void APIENTRY
+void GLUTAPIENTRY
glutRemoveMenuItem(int num)
{
GLUTmenuItem *item, **prev, *remaining;
__glutWarning("Current menu has no %d item.", num);
}
-void APIENTRY
+void GLUTAPIENTRY
glutDetachMenu(int button)
{
if (__glutMappedMenu)
#include "glutint.h"
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutGetModifiers(void)
{
int modifiers;
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutEstablishOverlay(void)
{
GLUToverlay *overlay;
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutRemoveOverlay(void)
{
GLUTwindow *window = __glutCurrentWindow;
#endif
}
-void APIENTRY
+void GLUTAPIENTRY
glutUseLayer(GLenum layer)
{
GLUTwindow *window = __glutCurrentWindow;
__glutSetWindow(window);
}
-void APIENTRY
+void GLUTAPIENTRY
glutPostOverlayRedisplay(void)
{
__glutPostRedisplay(__glutCurrentWindow, GLUT_OVERLAY_REDISPLAY_WORK);
glutSetWindow call (entailing an expensive OpenGL context
switch), particularly useful when multiple windows need
redisplays posted at the same times. */
-void APIENTRY
+void GLUTAPIENTRY
glutPostWindowOverlayRedisplay(int win)
{
__glutPostRedisplay(__glutWindowList[win - 1], GLUT_OVERLAY_REDISPLAY_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutOverlayDisplayFunc(GLUTdisplayCB displayFunc)
{
if (!__glutCurrentWindow->overlay) {
__glutCurrentWindow->overlay->display = displayFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutHideOverlay(void)
{
if (!__glutCurrentWindow->overlay) {
__glutCurrentWindow->overlay->shownState = 0;
}
-void APIENTRY
+void GLUTAPIENTRY
glutShowOverlay(void)
{
if (!__glutCurrentWindow->overlay) {
__glutCurrentWindow->overlay->shownState = 1;
}
-int APIENTRY
+int GLUTAPIENTRY
glutLayerGet(GLenum param)
{
switch (param) {
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutWireSphere(GLdouble radius, GLint slices, GLint stacks)
{
QUAD_OBJ_INIT();
gluSphere(quadObj, radius, slices, stacks);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSolidSphere(GLdouble radius, GLint slices, GLint stacks)
{
QUAD_OBJ_INIT();
gluSphere(quadObj, radius, slices, stacks);
}
-void APIENTRY
+void GLUTAPIENTRY
glutWireCone(GLdouble base, GLdouble height,
GLint slices, GLint stacks)
{
gluCylinder(quadObj, base, 0.0, height, slices, stacks);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSolidCone(GLdouble base, GLdouble height,
GLint slices, GLint stacks)
{
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutWireCube(GLdouble size)
{
drawBox(size, GL_LINE_LOOP);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSolidCube(GLdouble size)
{
drawBox(size, GL_QUADS);
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutWireTorus(GLdouble innerRadius, GLdouble outerRadius,
GLint nsides, GLint rings)
{
glPopAttrib();
}
-void APIENTRY
+void GLUTAPIENTRY
glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius,
GLint nsides, GLint rings)
{
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutWireDodecahedron(void)
{
dodecahedron(GL_LINE_LOOP);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSolidDodecahedron(void)
{
dodecahedron(GL_TRIANGLE_FAN);
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutWireOctahedron(void)
{
octahedron(GL_LINE_LOOP);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSolidOctahedron(void)
{
octahedron(GL_TRIANGLES);
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutWireIcosahedron(void)
{
icosahedron(GL_LINE_LOOP);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSolidIcosahedron(void)
{
icosahedron(GL_TRIANGLES);
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutWireTetrahedron(void)
{
tetrahedron(GL_LINE_LOOP);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSolidTetrahedron(void)
{
tetrahedron(GL_TRIANGLES);
#include "glutint.h"
-void APIENTRY
+void GLUTAPIENTRY
glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc)
{
__glutCurrentWindow->spaceMotion = spaceMotionFunc;
GLUT_DEVICE_MASK_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc)
{
__glutCurrentWindow->spaceRotate = spaceRotateFunc;
GLUT_DEVICE_MASK_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc)
{
__glutCurrentWindow->spaceButton = spaceButtonFunc;
#include "glutint.h"
#include "glutstroke.h"
-void APIENTRY
+void GLUTAPIENTRY
glutStrokeCharacter(GLUTstrokeFont font, int c)
{
const StrokeCharRec *ch;
GLint __glutSwapTime = 0;
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutSwapBuffers(void)
{
GLUTwindow *window = __glutCurrentWindow;
#include "glutstroke.h"
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutStrokeWidth(GLUTstrokeFont font, int c)
{
StrokeFontPtr fontinfo;
return 0;
}
-int APIENTRY
+int GLUTAPIENTRY
glutStrokeLength(GLUTstrokeFont font, const unsigned char *string)
{
int c, length;
#include "glutint.h"
-void APIENTRY
+void GLUTAPIENTRY
glutTabletMotionFunc(GLUTtabletMotionCB tabletMotionFunc)
{
__glutCurrentWindow->tabletMotion = tabletMotionFunc;
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutTabletButtonFunc(GLUTtabletButtonCB tabletButtonFunc)
{
__glutCurrentWindow->tabletButton = tabletButtonFunc;
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutSolidTeapot(GLdouble scale)
{
teapot(7, scale, GL_FILL);
}
-void APIENTRY
+void GLUTAPIENTRY
glutWireTeapot(GLdouble scale)
{
teapot(10, scale, GL_LINE);
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutReportErrors(void)
{
GLenum error;
#endif
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutVideoResizeGet(GLenum param)
{
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutSetupVideoResizing(void)
{
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
__glutFatalError("glutEstablishVideoResizing: video resizing not possible.\n");
}
-void APIENTRY
+void GLUTAPIENTRY
glutStopVideoResizing(void)
{
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
}
/* ARGSUSED */
-void APIENTRY
+void GLUTAPIENTRY
glutVideoResize(int x, int y, int width, int height)
{
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
}
/* ARGSUSED */
-void APIENTRY
+void GLUTAPIENTRY
glutVideoPan(int x, int y, int width, int height)
{
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
#include "glutint.h"
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutWarpPointer(int x, int y)
{
XWarpPointer(__glutDisplay, None, __glutCurrentWindow->win,
}
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutGetWindow(void)
{
if (__glutCurrentWindow) {
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutSetWindow(int win)
{
GLUTwindow *window;
}
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutCreateWindow(const char *title)
{
static int firstWindow = 1;
}
#ifdef _WIN32
-int APIENTRY
+int GLUTAPIENTRY
__glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int))
{
__glutExitFunc = exitfunc;
}
#endif
-int APIENTRY
+int GLUTAPIENTRY
glutCreateSubWindow(int win, int x, int y, int width, int height)
{
GLUTwindow *window;
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutDestroyWindow(int win)
{
GLUTwindow *window = __glutWindowList[win - 1];
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutDisplayFunc(GLUTdisplayCB displayFunc)
{
/* XXX Remove the warning after GLUT 3.0. */
__glutCurrentWindow->display = displayFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutMouseFunc(GLUTmouseCB mouseFunc)
{
if (__glutCurrentWindow->mouse) {
__glutCurrentWindow->mouse = mouseFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutMotionFunc(GLUTmotionCB motionFunc)
{
/* Hack. Some window managers (4Dwm by default) will mask
__glutCurrentWindow->motion = motionFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutPassiveMotionFunc(GLUTpassiveCB passiveMotionFunc)
{
__glutChangeWindowEventMask(PointerMotionMask,
__glutCurrentWindow->passive = passiveMotionFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutEntryFunc(GLUTentryCB entryFunc)
{
__glutChangeWindowEventMask(EnterWindowMask | LeaveWindowMask,
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutWindowStatusFunc(GLUTwindowStatusCB windowStatusFunc)
{
__glutChangeWindowEventMask(VisibilityChangeMask,
__glutCurrentWindow->visibility(GLUT_VISIBLE);
}
-void APIENTRY
+void GLUTAPIENTRY
glutVisibilityFunc(GLUTvisibilityCB visibilityFunc)
{
__glutCurrentWindow->visibility = visibilityFunc;
glutWindowStatusFunc(NULL);
}
-void APIENTRY
+void GLUTAPIENTRY
glutReshapeFunc(GLUTreshapeCB reshapeFunc)
{
if (reshapeFunc) {
#include "glutint.h"
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutSetWindowTitle(const char *title)
{
XTextProperty textprop;
XFlush(__glutDisplay);
}
-void APIENTRY
+void GLUTAPIENTRY
glutSetIconTitle(const char *title)
{
XTextProperty textprop;
XFlush(__glutDisplay);
}
-void APIENTRY
+void GLUTAPIENTRY
glutPositionWindow(int x, int y)
{
IGNORE_IN_GAME_MODE();
__glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutReshapeWindow(int w, int h)
{
IGNORE_IN_GAME_MODE();
__glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutPopWindow(void)
{
IGNORE_IN_GAME_MODE();
__glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutPushWindow(void)
{
IGNORE_IN_GAME_MODE();
__glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutIconifyWindow(void)
{
IGNORE_IN_GAME_MODE();
__glutPutOnWorkList(__glutCurrentWindow, GLUT_MAP_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutShowWindow(void)
{
IGNORE_IN_GAME_MODE();
__glutPutOnWorkList(__glutCurrentWindow, GLUT_MAP_WORK);
}
-void APIENTRY
+void GLUTAPIENTRY
glutHideWindow(void)
{
IGNORE_IN_GAME_MODE();
static UINT uniqueMenuHandler = 1;
/* DEPRICATED, use glutMenuStatusFunc instead. */
-void APIENTRY
+void GLUTAPIENTRY
glutMenuStateFunc(GLUTmenuStateCB menuStateFunc)
{
__glutMenuStatusFunc = (GLUTmenuStatusCB) menuStateFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutMenuStatusFunc(GLUTmenuStatusCB menuStatusFunc)
{
__glutMenuStatusFunc = menuStatusFunc;
__glutFatalError("menu manipulation not allowed while menus in use.");
}
-int APIENTRY
+int GLUTAPIENTRY
glutCreateMenu(GLUTselectCB selectFunc)
{
GLUTmenu *menu;
return menuid + 1;
}
-int APIENTRY
+int GLUTAPIENTRY
__glutCreateMenuWithExit(GLUTselectCB selectFunc, void (__cdecl *exitfunc)(int))
{
__glutExitFunc = exitfunc;
return glutCreateMenu(selectFunc);
}
-void APIENTRY
+void GLUTAPIENTRY
glutDestroyMenu(int menunum)
{
GLUTmenu *menu = __glutGetMenuByNum(menunum);
free(menu);
}
-int APIENTRY
+int GLUTAPIENTRY
glutGetMenu(void)
{
if (__glutCurrentMenu) {
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutSetMenu(int menuid)
{
GLUTmenu *menu;
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutAddMenuEntry(const char *label, int value)
{
GLUTmenuItem *entry;
__glutCurrentMenu->list = entry;
}
-void APIENTRY
+void GLUTAPIENTRY
glutAddSubMenu(const char *label, int menu)
{
GLUTmenuItem *submenu;
__glutCurrentMenu->list = submenu;
}
-void APIENTRY
+void GLUTAPIENTRY
glutChangeToMenuEntry(int num, const char *label, int value)
{
GLUTmenuItem *item;
__glutWarning("Current menu has no %d item.", num);
}
-void APIENTRY
+void GLUTAPIENTRY
glutChangeToSubMenu(int num, const char *label, int menu)
{
GLUTmenu *popupmenu;
__glutWarning("Current menu has no %d item.", num);
}
-void APIENTRY
+void GLUTAPIENTRY
glutRemoveMenuItem(int num)
{
GLUTmenuItem *item, **prev;
__glutWarning("Current menu has no %d item.", num);
}
-void APIENTRY
+void GLUTAPIENTRY
glutAttachMenu(int button)
{
if (__glutCurrentWindow == __glutGameModeWindow) {
__glutCurrentWindow->menu[button] = __glutCurrentMenu->id + 1;
}
-void APIENTRY
+void GLUTAPIENTRY
glutDetachMenu(int button)
{
if (__glutMappedMenu) {