mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
replace APIENTRY with GLUTAPIENTRY to be consistant with glut.h
This commit is contained in:
parent
095f59a303
commit
f2f5f4f884
35 changed files with 133 additions and 133 deletions
|
|
@ -8,7 +8,7 @@
|
|||
#include "glutint.h"
|
||||
#include "glutbitmap.h"
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutBitmapCharacter(GLUTbitmapFont font, int c)
|
||||
{
|
||||
const BitmapCharRec *ch;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include "glutbitmap.h"
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutBitmapWidth(GLUTbitmapFont font, int c)
|
||||
{
|
||||
BitmapFontPtr fontinfo;
|
||||
|
|
@ -30,7 +30,7 @@ glutBitmapWidth(GLUTbitmapFont font, int c)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutBitmapLength(GLUTbitmapFont font, const unsigned char *string)
|
||||
{
|
||||
int c, length;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#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;
|
||||
|
|
@ -126,7 +126,7 @@ glutSetColor(int ndx, GLfloat red, GLfloat green, GLfloat blue)
|
|||
XStoreColor(__glutDisplay, cmap->cmap, &color);
|
||||
}
|
||||
|
||||
GLfloat APIENTRY
|
||||
GLfloat GLUTAPIENTRY
|
||||
glutGetColor(int ndx, int comp)
|
||||
{
|
||||
GLUTcolormap *colormap;
|
||||
|
|
@ -161,7 +161,7 @@ glutGetColor(int ndx, int comp)
|
|||
return colormap->cells[ndx].component[comp];
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutCopyColormap(int winnum)
|
||||
{
|
||||
GLUTwindow *window = __glutWindowList[winnum - 1];
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ __glutSetCursor(GLUTwindow *window)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSetCursor(int cursor)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include "glutint.h"
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutButtonBoxFunc(GLUTbuttonBoxCB buttonBoxFunc)
|
||||
{
|
||||
__glutCurrentWindow->buttonBox = buttonBoxFunc;
|
||||
|
|
@ -16,7 +16,7 @@ glutButtonBoxFunc(GLUTbuttonBoxCB buttonBoxFunc)
|
|||
GLUT_DEVICE_MASK_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutDialsFunc(GLUTdialsCB dialsFunc)
|
||||
{
|
||||
__glutCurrentWindow->dials = dialsFunc;
|
||||
|
|
|
|||
|
|
@ -1478,7 +1478,7 @@ getVisualInfoFromString(char *string, Bool * treatAsSingle,
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutInitDisplayString(const char *string)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
|
|||
|
|
@ -103,13 +103,13 @@ Atom __glutMotifHints = None;
|
|||
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;
|
||||
|
|
@ -215,7 +215,7 @@ __glutPostRedisplay(GLUTwindow * window, int layerMask)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutPostRedisplay(void)
|
||||
{
|
||||
__glutPostRedisplay(__glutCurrentWindow, GLUT_REDISPLAY_WORK);
|
||||
|
|
@ -225,7 +225,7 @@ glutPostRedisplay(void)
|
|||
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);
|
||||
|
|
@ -1351,7 +1351,7 @@ __glutProcessWindowWorkLists(void)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutMainLoop(void)
|
||||
{
|
||||
#if !defined(_WIN32)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutExtensionSupported(const char *extension)
|
||||
{
|
||||
static const GLubyte *extensions = NULL;
|
||||
|
|
@ -177,7 +177,7 @@ static struct name_address_pair glut_functions[] = {
|
|||
|
||||
|
||||
/* XXX This isn't an official GLUT function, yet */
|
||||
void * APIENTRY
|
||||
void * GLUTAPIENTRY
|
||||
glutGetProcAddress(const char *procName)
|
||||
{
|
||||
/* Try GLUT functions first */
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
/* Set a Fortran callback function. */
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
__glutSetFCB(int which, void *func)
|
||||
{
|
||||
#ifdef SUPPORT_FORTRAN
|
||||
|
|
@ -100,7 +100,7 @@ __glutSetFCB(int which, void *func)
|
|||
|
||||
/* Get a Fortran callback function. */
|
||||
|
||||
void* APIENTRY
|
||||
void* GLUTAPIENTRY
|
||||
__glutGetFCB(int which)
|
||||
{
|
||||
#ifdef SUPPORT_FORTRAN
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutFullScreen(void)
|
||||
{
|
||||
assert(!__glutCurrentWindow->parent);
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ __glutCloseDownGameMode(void)
|
|||
__glutGameModeWindow = NULL;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutLeaveGameMode(void)
|
||||
{
|
||||
if (__glutGameModeWindow == NULL) {
|
||||
|
|
@ -548,7 +548,7 @@ parseDisplayString(const char *display, int *ncriteria)
|
|||
return criteria;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutGameModeString(const char *string)
|
||||
{
|
||||
Criterion *criteria;
|
||||
|
|
@ -560,7 +560,7 @@ glutGameModeString(const char *string)
|
|||
free(criteria);
|
||||
}
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutEnterGameMode(void)
|
||||
{
|
||||
GLUTwindow *window;
|
||||
|
|
@ -654,7 +654,7 @@ glutEnterGameMode(void)
|
|||
return window->num + 1;
|
||||
}
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutGameModeGet(GLenum mode)
|
||||
{
|
||||
switch (mode) {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutGet(GLenum param)
|
||||
{
|
||||
Window win, root;
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ removeArgs(int *argcp, char **argv, int numToRemove)
|
|||
*argcp -= numToRemove;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutInit(int *argcp, char **argv)
|
||||
{
|
||||
char *display = NULL;
|
||||
|
|
@ -344,7 +344,7 @@ glutInit(int *argcp, char **argv)
|
|||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
__glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int))
|
||||
{
|
||||
__glutExitFunc = exitfunc;
|
||||
|
|
@ -353,7 +353,7 @@ __glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int))
|
|||
#endif
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutInitWindowPosition(int x, int y)
|
||||
{
|
||||
__glutInitX = x;
|
||||
|
|
@ -367,7 +367,7 @@ glutInitWindowPosition(int x, int y)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutInitWindowSize(int width, int height)
|
||||
{
|
||||
__glutInitWidth = width;
|
||||
|
|
@ -381,7 +381,7 @@ glutInitWindowSize(int width, int height)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutInitDisplayMode(unsigned int mask)
|
||||
{
|
||||
__glutDisplayMode = mask;
|
||||
|
|
|
|||
|
|
@ -581,7 +581,7 @@ __glutUpdateInputDeviceMask(GLUTwindow * window)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutDeviceGet(GLenum param)
|
||||
{
|
||||
probeDevices();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutJoystickFunc(GLUTjoystickCB joystickFunc, int pollInterval)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
@ -48,7 +48,7 @@ glutJoystickFunc(GLUTjoystickCB joystickFunc, int pollInterval)
|
|||
#endif
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutForceJoystickFunc(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutKeyboardFunc(GLUTkeyboardCB keyboardFunc)
|
||||
{
|
||||
__glutChangeWindowEventMask(KeyPressMask,
|
||||
|
|
@ -18,7 +18,7 @@ glutKeyboardFunc(GLUTkeyboardCB keyboardFunc)
|
|||
__glutCurrentWindow->keyboard = keyboardFunc;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSpecialFunc(GLUTspecialCB specialFunc)
|
||||
{
|
||||
__glutChangeWindowEventMask(KeyPressMask,
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutIgnoreKeyRepeat(int ignore)
|
||||
{
|
||||
__glutCurrentWindow->ignoreKeyRepeat = ignore;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSetKeyRepeat(int repeatMode)
|
||||
{
|
||||
#if !defined(_WIN32)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutKeyboardUpFunc(GLUTkeyboardCB keyboardUpFunc)
|
||||
{
|
||||
__glutChangeWindowEventMask(KeyReleaseMask,
|
||||
|
|
@ -18,7 +18,7 @@ glutKeyboardUpFunc(GLUTkeyboardCB keyboardUpFunc)
|
|||
__glutCurrentWindow->keyboardUp = keyboardUpFunc;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSpecialUpFunc(GLUTspecialCB specialUpFunc)
|
||||
{
|
||||
__glutChangeWindowEventMask(KeyReleaseMask,
|
||||
|
|
|
|||
|
|
@ -831,7 +831,7 @@ installMenuCallbacks(void)
|
|||
__glutGetMenuItem = getMenuItem;
|
||||
}
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutCreateMenu(GLUTselectCB selectFunc)
|
||||
{
|
||||
XSetWindowAttributes wa;
|
||||
|
|
@ -890,7 +890,7 @@ glutCreateMenu(GLUTselectCB selectFunc)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutGetMenu(void)
|
||||
{
|
||||
if (__glutCurrentMenu) {
|
||||
|
|
@ -900,7 +900,7 @@ glutGetMenu(void)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSetMenu(int menuid)
|
||||
{
|
||||
GLUTmenu *menu;
|
||||
|
|
@ -940,7 +940,7 @@ __glutSetMenuItem(GLUTmenuItem * item, const char *label,
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutAddMenuEntry(const char *label, int value)
|
||||
{
|
||||
XSetWindowAttributes wa;
|
||||
|
|
@ -968,7 +968,7 @@ glutAddMenuEntry(const char *label, int value)
|
|||
__glutCurrentMenu->list = entry;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutAddSubMenu(const char *label, int menu)
|
||||
{
|
||||
XSetWindowAttributes wa;
|
||||
|
|
@ -997,7 +997,7 @@ glutAddSubMenu(const char *label, int menu)
|
|||
__glutCurrentMenu->list = submenu;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutAttachMenu(int button)
|
||||
{
|
||||
if (__glutMappedMenu) {
|
||||
|
|
|
|||
|
|
@ -29,19 +29,19 @@
|
|||
|
||||
/* 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);
|
||||
|
|
@ -68,7 +68,7 @@ glutDestroyMenu(int menunum)
|
|||
free(menu);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutChangeToMenuEntry(int num, const char *label, int value)
|
||||
{
|
||||
GLUTmenuItem *item;
|
||||
|
|
@ -95,7 +95,7 @@ glutChangeToMenuEntry(int num, const char *label, int value)
|
|||
__glutWarning("Current menu has no %d item.", num);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutChangeToSubMenu(int num, const char *label, int menu)
|
||||
{
|
||||
GLUTmenuItem *item;
|
||||
|
|
@ -122,7 +122,7 @@ glutChangeToSubMenu(int num, const char *label, int menu)
|
|||
__glutWarning("Current menu has no %d item.", num);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutRemoveMenuItem(int num)
|
||||
{
|
||||
GLUTmenuItem *item, **prev, *remaining;
|
||||
|
|
@ -173,7 +173,7 @@ glutRemoveMenuItem(int num)
|
|||
__glutWarning("Current menu has no %d item.", num);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutDetachMenu(int button)
|
||||
{
|
||||
if (__glutMappedMenu)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutGetModifiers(void)
|
||||
{
|
||||
int modifiers;
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ determineOverlayVisual(int *treatAsSingle, Bool * visAlloced, void **fbc)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutEstablishOverlay(void)
|
||||
{
|
||||
GLUToverlay *overlay;
|
||||
|
|
@ -458,7 +458,7 @@ glutEstablishOverlay(void)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutRemoveOverlay(void)
|
||||
{
|
||||
GLUTwindow *window = __glutCurrentWindow;
|
||||
|
|
@ -481,7 +481,7 @@ glutRemoveOverlay(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutUseLayer(GLenum layer)
|
||||
{
|
||||
GLUTwindow *window = __glutCurrentWindow;
|
||||
|
|
@ -511,7 +511,7 @@ glutUseLayer(GLenum layer)
|
|||
__glutSetWindow(window);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutPostOverlayRedisplay(void)
|
||||
{
|
||||
__glutPostRedisplay(__glutCurrentWindow, GLUT_OVERLAY_REDISPLAY_WORK);
|
||||
|
|
@ -521,13 +521,13 @@ glutPostOverlayRedisplay(void)
|
|||
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) {
|
||||
|
|
@ -537,7 +537,7 @@ glutOverlayDisplayFunc(GLUTdisplayCB displayFunc)
|
|||
__glutCurrentWindow->overlay->display = displayFunc;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutHideOverlay(void)
|
||||
{
|
||||
if (!__glutCurrentWindow->overlay) {
|
||||
|
|
@ -548,7 +548,7 @@ glutHideOverlay(void)
|
|||
__glutCurrentWindow->overlay->shownState = 0;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutShowOverlay(void)
|
||||
{
|
||||
if (!__glutCurrentWindow->overlay) {
|
||||
|
|
@ -559,7 +559,7 @@ glutShowOverlay(void)
|
|||
__glutCurrentWindow->overlay->shownState = 1;
|
||||
}
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutLayerGet(GLenum param)
|
||||
{
|
||||
switch (param) {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ initQuadObj(void)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWireSphere(GLdouble radius, GLint slices, GLint stacks)
|
||||
{
|
||||
QUAD_OBJ_INIT();
|
||||
|
|
@ -77,7 +77,7 @@ glutWireSphere(GLdouble radius, GLint slices, GLint stacks)
|
|||
gluSphere(quadObj, radius, slices, stacks);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSolidSphere(GLdouble radius, GLint slices, GLint stacks)
|
||||
{
|
||||
QUAD_OBJ_INIT();
|
||||
|
|
@ -89,7 +89,7 @@ glutSolidSphere(GLdouble radius, GLint slices, GLint stacks)
|
|||
gluSphere(quadObj, radius, slices, stacks);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWireCone(GLdouble base, GLdouble height,
|
||||
GLint slices, GLint stacks)
|
||||
{
|
||||
|
|
@ -102,7 +102,7 @@ glutWireCone(GLdouble base, GLdouble height,
|
|||
gluCylinder(quadObj, base, 0.0, height, slices, stacks);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSolidCone(GLdouble base, GLdouble height,
|
||||
GLint slices, GLint stacks)
|
||||
{
|
||||
|
|
@ -160,13 +160,13 @@ drawBox(GLfloat size, GLenum type)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWireCube(GLdouble size)
|
||||
{
|
||||
drawBox(size, GL_LINE_LOOP);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSolidCube(GLdouble size)
|
||||
{
|
||||
drawBox(size, GL_QUADS);
|
||||
|
|
@ -216,7 +216,7 @@ doughnut(GLfloat r, GLfloat R, GLint nsides, GLint rings)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWireTorus(GLdouble innerRadius, GLdouble outerRadius,
|
||||
GLint nsides, GLint rings)
|
||||
{
|
||||
|
|
@ -226,7 +226,7 @@ glutWireTorus(GLdouble innerRadius, GLdouble outerRadius,
|
|||
glPopAttrib();
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius,
|
||||
GLint nsides, GLint rings)
|
||||
{
|
||||
|
|
@ -349,13 +349,13 @@ dodecahedron(GLenum type)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWireDodecahedron(void)
|
||||
{
|
||||
dodecahedron(GL_LINE_LOOP);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSolidDodecahedron(void)
|
||||
{
|
||||
dodecahedron(GL_TRIANGLE_FAN);
|
||||
|
|
@ -466,13 +466,13 @@ octahedron(GLenum shadeType)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWireOctahedron(void)
|
||||
{
|
||||
octahedron(GL_LINE_LOOP);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSolidOctahedron(void)
|
||||
{
|
||||
octahedron(GL_TRIANGLES);
|
||||
|
|
@ -537,13 +537,13 @@ icosahedron(GLenum shadeType)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWireIcosahedron(void)
|
||||
{
|
||||
icosahedron(GL_LINE_LOOP);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSolidIcosahedron(void)
|
||||
{
|
||||
icosahedron(GL_TRIANGLES);
|
||||
|
|
@ -581,13 +581,13 @@ tetrahedron(GLenum shadeType)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWireTetrahedron(void)
|
||||
{
|
||||
tetrahedron(GL_LINE_LOOP);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSolidTetrahedron(void)
|
||||
{
|
||||
tetrahedron(GL_TRIANGLES);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include "glutint.h"
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc)
|
||||
{
|
||||
__glutCurrentWindow->spaceMotion = spaceMotionFunc;
|
||||
|
|
@ -16,7 +16,7 @@ glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc)
|
|||
GLUT_DEVICE_MASK_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc)
|
||||
{
|
||||
__glutCurrentWindow->spaceRotate = spaceRotateFunc;
|
||||
|
|
@ -25,7 +25,7 @@ glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc)
|
|||
GLUT_DEVICE_MASK_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc)
|
||||
{
|
||||
__glutCurrentWindow->spaceButton = spaceButtonFunc;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#include "glutint.h"
|
||||
#include "glutstroke.h"
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutStrokeCharacter(GLUTstrokeFont font, int c)
|
||||
{
|
||||
const StrokeCharRec *ch;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ GLint __glutSwapCount = 0;
|
|||
GLint __glutSwapTime = 0;
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSwapBuffers(void)
|
||||
{
|
||||
GLUTwindow *window = __glutCurrentWindow;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include "glutstroke.h"
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutStrokeWidth(GLUTstrokeFont font, int c)
|
||||
{
|
||||
StrokeFontPtr fontinfo;
|
||||
|
|
@ -30,7 +30,7 @@ glutStrokeWidth(GLUTstrokeFont font, int c)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutStrokeLength(GLUTstrokeFont font, const unsigned char *string)
|
||||
{
|
||||
int c, length;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "glutint.h"
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutTabletMotionFunc(GLUTtabletMotionCB tabletMotionFunc)
|
||||
{
|
||||
__glutCurrentWindow->tabletMotion = tabletMotionFunc;
|
||||
|
|
@ -23,7 +23,7 @@ glutTabletMotionFunc(GLUTtabletMotionCB tabletMotionFunc)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutTabletButtonFunc(GLUTtabletButtonCB tabletButtonFunc)
|
||||
{
|
||||
__glutCurrentWindow->tabletButton = tabletButtonFunc;
|
||||
|
|
|
|||
|
|
@ -195,13 +195,13 @@ teapot(GLint grid, GLdouble scale, GLenum type)
|
|||
}
|
||||
|
||||
/* 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);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ __glutWarning(char *format,...)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutReportErrors(void)
|
||||
{
|
||||
GLenum error;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ catchXSGIvcErrors(Display * dpy, XErrorEvent * event)
|
|||
#endif
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutVideoResizeGet(GLenum param)
|
||||
{
|
||||
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
|
||||
|
|
@ -160,7 +160,7 @@ glutVideoResizeGet(GLenum param)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSetupVideoResizing(void)
|
||||
{
|
||||
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
|
||||
|
|
@ -173,7 +173,7 @@ glutSetupVideoResizing(void)
|
|||
__glutFatalError("glutEstablishVideoResizing: video resizing not possible.\n");
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutStopVideoResizing(void)
|
||||
{
|
||||
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
|
||||
|
|
@ -188,7 +188,7 @@ glutStopVideoResizing(void)
|
|||
}
|
||||
|
||||
/* 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)
|
||||
|
|
@ -207,7 +207,7 @@ glutVideoResize(int x, int y, int width, int height)
|
|||
}
|
||||
|
||||
/* 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)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWarpPointer(int x, int y)
|
||||
{
|
||||
XWarpPointer(__glutDisplay, None, __glutCurrentWindow->win,
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ __glutGetWindow(Window win)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutGetWindow(void)
|
||||
{
|
||||
if (__glutCurrentWindow) {
|
||||
|
|
@ -177,7 +177,7 @@ __glutSetWindow(GLUTwindow * window)
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSetWindow(int win)
|
||||
{
|
||||
GLUTwindow *window;
|
||||
|
|
@ -695,7 +695,7 @@ __glutCreateWindow(GLUTwindow * parent,
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutCreateWindow(const char *title)
|
||||
{
|
||||
static int firstWindow = 1;
|
||||
|
|
@ -742,7 +742,7 @@ glutCreateWindow(const char *title)
|
|||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
__glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int))
|
||||
{
|
||||
__glutExitFunc = exitfunc;
|
||||
|
|
@ -750,7 +750,7 @@ __glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int))
|
|||
}
|
||||
#endif
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutCreateSubWindow(int win, int x, int y, int width, int height)
|
||||
{
|
||||
GLUTwindow *window;
|
||||
|
|
@ -842,7 +842,7 @@ __glutDestroyWindow(GLUTwindow * window,
|
|||
}
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutDestroyWindow(int win)
|
||||
{
|
||||
GLUTwindow *window = __glutWindowList[win - 1];
|
||||
|
|
@ -886,7 +886,7 @@ __glutChangeWindowEventMask(long eventMask, Bool add)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutDisplayFunc(GLUTdisplayCB displayFunc)
|
||||
{
|
||||
/* XXX Remove the warning after GLUT 3.0. */
|
||||
|
|
@ -895,7 +895,7 @@ glutDisplayFunc(GLUTdisplayCB displayFunc)
|
|||
__glutCurrentWindow->display = displayFunc;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutMouseFunc(GLUTmouseCB mouseFunc)
|
||||
{
|
||||
if (__glutCurrentWindow->mouse) {
|
||||
|
|
@ -917,7 +917,7 @@ glutMouseFunc(GLUTmouseCB mouseFunc)
|
|||
__glutCurrentWindow->mouse = mouseFunc;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutMotionFunc(GLUTmotionCB motionFunc)
|
||||
{
|
||||
/* Hack. Some window managers (4Dwm by default) will mask
|
||||
|
|
@ -948,7 +948,7 @@ glutMotionFunc(GLUTmotionCB motionFunc)
|
|||
__glutCurrentWindow->motion = motionFunc;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutPassiveMotionFunc(GLUTpassiveCB passiveMotionFunc)
|
||||
{
|
||||
__glutChangeWindowEventMask(PointerMotionMask,
|
||||
|
|
@ -963,7 +963,7 @@ glutPassiveMotionFunc(GLUTpassiveCB passiveMotionFunc)
|
|||
__glutCurrentWindow->passive = passiveMotionFunc;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutEntryFunc(GLUTentryCB entryFunc)
|
||||
{
|
||||
__glutChangeWindowEventMask(EnterWindowMask | LeaveWindowMask,
|
||||
|
|
@ -974,7 +974,7 @@ glutEntryFunc(GLUTentryCB entryFunc)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutWindowStatusFunc(GLUTwindowStatusCB windowStatusFunc)
|
||||
{
|
||||
__glutChangeWindowEventMask(VisibilityChangeMask,
|
||||
|
|
@ -995,7 +995,7 @@ visibilityHelper(int status)
|
|||
__glutCurrentWindow->visibility(GLUT_VISIBLE);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutVisibilityFunc(GLUTvisibilityCB visibilityFunc)
|
||||
{
|
||||
__glutCurrentWindow->visibility = visibilityFunc;
|
||||
|
|
@ -1005,7 +1005,7 @@ glutVisibilityFunc(GLUTvisibilityCB visibilityFunc)
|
|||
glutWindowStatusFunc(NULL);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutReshapeFunc(GLUTreshapeCB reshapeFunc)
|
||||
{
|
||||
if (reshapeFunc) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
#include "glutint.h"
|
||||
|
||||
/* CENTRY */
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSetWindowTitle(const char *title)
|
||||
{
|
||||
XTextProperty textprop;
|
||||
|
|
@ -39,7 +39,7 @@ glutSetWindowTitle(const char *title)
|
|||
XFlush(__glutDisplay);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSetIconTitle(const char *title)
|
||||
{
|
||||
XTextProperty textprop;
|
||||
|
|
@ -55,7 +55,7 @@ glutSetIconTitle(const char *title)
|
|||
XFlush(__glutDisplay);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutPositionWindow(int x, int y)
|
||||
{
|
||||
IGNORE_IN_GAME_MODE();
|
||||
|
|
@ -65,7 +65,7 @@ glutPositionWindow(int x, int y)
|
|||
__glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutReshapeWindow(int w, int h)
|
||||
{
|
||||
IGNORE_IN_GAME_MODE();
|
||||
|
|
@ -78,7 +78,7 @@ glutReshapeWindow(int w, int h)
|
|||
__glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutPopWindow(void)
|
||||
{
|
||||
IGNORE_IN_GAME_MODE();
|
||||
|
|
@ -87,7 +87,7 @@ glutPopWindow(void)
|
|||
__glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutPushWindow(void)
|
||||
{
|
||||
IGNORE_IN_GAME_MODE();
|
||||
|
|
@ -96,7 +96,7 @@ glutPushWindow(void)
|
|||
__glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutIconifyWindow(void)
|
||||
{
|
||||
IGNORE_IN_GAME_MODE();
|
||||
|
|
@ -105,7 +105,7 @@ glutIconifyWindow(void)
|
|||
__glutPutOnWorkList(__glutCurrentWindow, GLUT_MAP_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutShowWindow(void)
|
||||
{
|
||||
IGNORE_IN_GAME_MODE();
|
||||
|
|
@ -113,7 +113,7 @@ glutShowWindow(void)
|
|||
__glutPutOnWorkList(__glutCurrentWindow, GLUT_MAP_WORK);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutHideWindow(void)
|
||||
{
|
||||
IGNORE_IN_GAME_MODE();
|
||||
|
|
|
|||
|
|
@ -29,13 +29,13 @@ static int menuListSize = 0;
|
|||
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;
|
||||
|
|
@ -231,7 +231,7 @@ menuModificationError(void)
|
|||
__glutFatalError("menu manipulation not allowed while menus in use.");
|
||||
}
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutCreateMenu(GLUTselectCB selectFunc)
|
||||
{
|
||||
GLUTmenu *menu;
|
||||
|
|
@ -259,14 +259,14 @@ glutCreateMenu(GLUTselectCB selectFunc)
|
|||
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);
|
||||
|
|
@ -293,7 +293,7 @@ glutDestroyMenu(int menunum)
|
|||
free(menu);
|
||||
}
|
||||
|
||||
int APIENTRY
|
||||
int GLUTAPIENTRY
|
||||
glutGetMenu(void)
|
||||
{
|
||||
if (__glutCurrentMenu) {
|
||||
|
|
@ -303,7 +303,7 @@ glutGetMenu(void)
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutSetMenu(int menuid)
|
||||
{
|
||||
GLUTmenu *menu;
|
||||
|
|
@ -342,7 +342,7 @@ setMenuItem(GLUTmenuItem * item, const char *label,
|
|||
}
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutAddMenuEntry(const char *label, int value)
|
||||
{
|
||||
GLUTmenuItem *entry;
|
||||
|
|
@ -361,7 +361,7 @@ glutAddMenuEntry(const char *label, int value)
|
|||
__glutCurrentMenu->list = entry;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutAddSubMenu(const char *label, int menu)
|
||||
{
|
||||
GLUTmenuItem *submenu;
|
||||
|
|
@ -386,7 +386,7 @@ glutAddSubMenu(const char *label, int menu)
|
|||
__glutCurrentMenu->list = submenu;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutChangeToMenuEntry(int num, const char *label, int value)
|
||||
{
|
||||
GLUTmenuItem *item;
|
||||
|
|
@ -426,7 +426,7 @@ glutChangeToMenuEntry(int num, const char *label, int value)
|
|||
__glutWarning("Current menu has no %d item.", num);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutChangeToSubMenu(int num, const char *label, int menu)
|
||||
{
|
||||
GLUTmenu *popupmenu;
|
||||
|
|
@ -468,7 +468,7 @@ glutChangeToSubMenu(int num, const char *label, int menu)
|
|||
__glutWarning("Current menu has no %d item.", num);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutRemoveMenuItem(int num)
|
||||
{
|
||||
GLUTmenuItem *item, **prev;
|
||||
|
|
@ -501,7 +501,7 @@ glutRemoveMenuItem(int num)
|
|||
__glutWarning("Current menu has no %d item.", num);
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutAttachMenu(int button)
|
||||
{
|
||||
if (__glutCurrentWindow == __glutGameModeWindow) {
|
||||
|
|
@ -517,7 +517,7 @@ glutAttachMenu(int button)
|
|||
__glutCurrentWindow->menu[button] = __glutCurrentMenu->id + 1;
|
||||
}
|
||||
|
||||
void APIENTRY
|
||||
void GLUTAPIENTRY
|
||||
glutDetachMenu(int button)
|
||||
{
|
||||
if (__glutMappedMenu) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue