aboutsummaryrefslogtreecommitdiffstats
path: root/src/glut/os2/glutOverlay.cpp
blob: d57c4e74182eddb5b8e6fd99067ee6c3fe705ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/***********************************************************
 *     Copyright (C) 1997, Be Inc.  All rights reserved.
 *
 *  FILE:      glutOverlay.cpp
 *
 *     DESCRIPTION:    we don't support overlays, so this code is
 *             really simple
 ***********************************************************/

/***********************************************************
 *     Headers
 ***********************************************************/
#include <GL/glut.h>
#include "glutint.h"
#include "glutbitmap.h"
#include "glutstroke.h"

GLUTAPI void GLUTAPIENTRY
glutEstablishOverlay(void)
{
       __glutFatalError("OS2PM lacks overlay support.");
}

GLUTAPI void GLUTAPIENTRY
glutUseLayer(GLenum layer) {
       // ignore
}

GLUTAPI void GLUTAPIENTRY
glutRemoveOverlay(void) {
       // ignore
}

GLUTAPI void GLUTAPIENTRY
glutPostOverlayRedisplay(void) {
       // ignore
}

GLUTAPI void GLUTAPIENTRY
glutShowOverlay(void) {
       // ignore
}

GLUTAPI void GLUTAPIENTRY glutHideOverlay(void)
{
       // ignore
}

int GLUTAPIENTRY
glutLayerGet(GLenum param)
{
       // ignore
}

/***********************************************************
 *     Unsupported callbacks
 ***********************************************************/
GLUTAPI void GLUTAPIENTRY
glutOverlayDisplayFunc(GLUTdisplayCB displayFunc)
{
}

GLUTAPI void GLUTAPIENTRY
glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc)
{
}

GLUTAPI void GLUTAPIENTRY
glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc)
{
}

GLUTAPI void GLUTAPIENTRY
glutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc)
{
}

GLUTAPI void GLUTAPIENTRY
glutButtonBoxFunc(GLUTbuttonBoxCB buttonBoxFunc)
{
}

GLUTAPI void GLUTAPIENTRY
glutDialsFunc(GLUTdialsCB dialsFunc)
{
}

GLUTAPI void GLUTAPIENTRY
glutTabletMotionFunc(GLUTtabletMotionCB tabletMotionFunc)
{
}

GLUTAPI void GLUTAPIENTRY
glutTabletButtonFunc(GLUTtabletButtonCB tabletButtonFunc)
{
}
GLUTAPI void GLUTAPIENTRY
glutPostWindowOverlayRedisplay(int win)
{ //
}

void GLUTAPIENTRY
glutInitDisplayString(const char *string)
{ //
}
void GLUTAPIENTRY
glutJoystickFunc(GLUTjoystickCB joystickFunc, int pollInterval)
{ //
}

void GLUTAPIENTRY
glutForceJoystickFunc(void)
{ //
}


int  GLUTAPIENTRY
glutBitmapWidth(GLUTbitmapFont font, int c)
{  return 0;
}
int  GLUTAPIENTRY
glutBitmapLength(GLUTbitmapFont font, const unsigned char *string)
{ //
  return 0;
}
int GLUTAPIENTRY
glutStrokeWidth(GLUTstrokeFont font, int c)
{  return 0;
}
int GLUTAPIENTRY
glutStrokeLength(GLUTstrokeFont font, const unsigned char *string)
{ return 0;
}