PS2GL
OpenGL*-like API for the PS2
Loading...
Searching...
No Matches
glut.h
1/* Copyright (C) 2000,2001,2002 Sony Computer Entertainment America
2
3 This file is subject to the terms and conditions of the GNU Lesser
4 General Public License Version 2.1. See the file "COPYING" in the
5 main directory of this archive for more details. */
6
7#ifndef ps2gl_glut_h
8#define ps2gl_glut_h
9
10#include "GL/gl.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#define GLUT_NOT_VISIBLE 0
17#define GLUT_VISIBLE 1
18
19#define GLUT_RGB 0
20#define GLUT_RGBA GLUT_RGB
21#define GLUT_INDEX 1
22#define GLUT_SINGLE 0
23#define GLUT_DOUBLE 2
24#define GLUT_ACCUM 4
25#define GLUT_ALPHA 8
26#define GLUT_DEPTH 16
27#define GLUT_STENCIL 32
28
29#define GLUT_KEY_LEFT 100
30#define GLUT_KEY_UP 101
31#define GLUT_KEY_RIGHT 102
32#define GLUT_KEY_DOWN 103
33#define GLUT_KEY_PAGE_UP 104
34#define GLUT_KEY_PAGE_DOWN 105
35#define GLUT_KEY_HOME 106
36#define GLUT_KEY_END 107
37#define GLUT_KEY_INSERT 108
38
39#define GLUT_ELAPSED_TIME 700
40
41extern void glutInit(int* argcp, char** argv);
42extern void glutInitDisplayMode(unsigned int mode);
43extern int glutCreateWindow(const char* title);
44extern void glutInitWindowPosition(int x, int y);
45extern void glutInitWindowSize(int width, int height);
46
47extern void glutMainLoop(void);
48extern void glutPostRedisplay(void);
49extern void glutSwapBuffers(void);
50
51extern int glutGet(GLenum type);
52
53extern void glutDisplayFunc(void (*func)(void));
54extern void glutReshapeFunc(void (*func)(int width, int height));
55extern void glutKeyboardFunc(void (*func)(unsigned char key, int x, int y));
56extern void glutMouseFunc(void (*func)(int button, int state, int x, int y));
57extern void glutMotionFunc(void (*func)(int x, int y));
58extern void glutPassiveMotionFunc(void (*func)(int x, int y));
59extern void glutSpecialFunc(void (*func)(int key, int x, int y));
60extern void glutEntryFunc(void (*func)(int state));
61extern void glutVisibilityFunc(void (*func)(int state));
62extern void glutIdleFunc(void (*func)(void));
63
64// some ps2-specific stuff
65
66extern void* pglutAllocDmaMem(unsigned int num_bytes);
67extern void pglutFreeDmaMem(void* mem);
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif // ps2gl_glut_h
void glutVisibilityFunc(void(*func)(int state))
Definition ps2glut.cpp:170
void glutSpecialFunc(void(*func)(int key, int x, int y))
Definition ps2glut.cpp:189
void glutReshapeFunc(void(*func)(int width, int height))
Definition ps2glut.cpp:150
void glutIdleFunc(void(*func)(void))
Definition ps2glut.cpp:179
void glutInit(int *argcp, char **argv)
Definition ps2glut.cpp:104
void glutMainLoop(void)
Definition ps2glut.cpp:198
void glutDisplayFunc(void(*func)(void))
Definition ps2glut.cpp:140
void glutKeyboardFunc(void(*func)(unsigned char key, int x, int y))
Definition ps2glut.cpp:160