g2o
Toggle main menu visibility
Loading...
Searching...
No Matches
g2o
EXTERNAL
freeglut
freeglut_minimal.h
Go to the documentation of this file.
1
#ifndef __FREEGLUT_EXT_H__
2
#define __FREEGLUT_EXT_H__
3
4
/*
5
* freeglut_ext.h
6
*
7
* The non-GLUT-compatible extensions to the freeglut library include file
8
*
9
* Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
10
* Written by Pawel W. Olszta, <olszta@sourceforge.net>
11
* Creation date: Thu Dec 2 1999
12
*
13
* Permission is hereby granted, free of charge, to any person obtaining a
14
* copy of this software and associated documentation files (the "Software"),
15
* to deal in the Software without restriction, including without limitation
16
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
17
* and/or sell copies of the Software, and to permit persons to whom the
18
* Software is furnished to do so, subject to the following conditions:
19
*
20
* The above copyright notice and this permission notice shall be included
21
* in all copies or substantial portions of the Software.
22
*
23
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26
* PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
27
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
*/
30
31
#include "g2o/config.h"
32
33
#ifdef WINDOWS
34
#include <windows.h>
35
#endif
36
37
#ifdef __APPLE__
38
#include <OpenGL/gl.h>
39
#else
40
#include <GL/gl.h>
41
#endif
42
43
#ifdef _MSC_VER
44
// We are using a Microsoft compiler:
45
#ifdef G2O_SHARED_LIBS
46
#ifdef freeglut_minimal_EXPORTS
47
#define G2O_FGAPI __declspec(dllexport)
48
#else
49
#define G2O_FGAPI __declspec(dllimport)
50
#endif
51
#else
52
#define G2O_FGAPI
53
#endif
54
#else
55
// Not Microsoft compiler so set empty definition:
56
#define G2O_FGAPI
57
#endif
58
59
namespace
freeglut_minimal
{
60
61
enum
FontID
{
GLUT_STROKE_ROMAN
,
GLUT_STROKE_MONO_ROMAN
};
62
63
/* The stroke font structures */
64
65
typedef
struct
tagSFG_StrokeVertex
SFG_StrokeVertex
;
66
struct
tagSFG_StrokeVertex
{
67
GLfloat
X
,
Y
;
68
};
69
70
typedef
struct
tagSFG_StrokeStrip
SFG_StrokeStrip
;
71
struct
tagSFG_StrokeStrip
{
72
int
Number
;
73
const
SFG_StrokeVertex
*
Vertices
;
74
};
75
76
typedef
struct
tagSFG_StrokeChar
SFG_StrokeChar
;
77
struct
tagSFG_StrokeChar
{
78
GLfloat
Right
;
79
int
Number
;
80
const
SFG_StrokeStrip
*
Strips
;
81
};
82
83
typedef
struct
tagSFG_StrokeFont
SFG_StrokeFont
;
84
struct
tagSFG_StrokeFont
{
85
char
*
Name
;
/* The source font name */
86
int
Quantity
;
/* Number of chars in font */
87
GLfloat
Height
;
/* Height of the characters */
88
const
SFG_StrokeChar
**
Characters
;
/* The characters mapping */
89
};
90
91
extern
const
SFG_StrokeFont
fgStrokeRoman
;
92
extern
const
SFG_StrokeFont
fgStrokeMonoRoman
;
93
94
G2O_FGAPI
void
glutStrokeString
(
FontID
font,
const
char
*
string
);
95
96
/*
97
* Font stuff, see freeglut_font.c
98
*/
99
G2O_FGAPI
GLfloat
glutStrokeHeight
(
FontID
font);
100
101
/*
102
* Return the width of a string drawn using a stroke font
103
*/
104
G2O_FGAPI
int
glutStrokeLength
(
FontID
fontID,
const
char
*
string
);
105
106
}
// namespace freeglut_minimal
107
108
/*** END OF FILE ***/
109
110
#endif
/* __FREEGLUT_EXT_H__ */
G2O_FGAPI
#define G2O_FGAPI
Definition
freeglut_minimal.h:56
freeglut_minimal
Definition
freeglut_font.cpp:37
freeglut_minimal::SFG_StrokeChar
struct tagSFG_StrokeChar SFG_StrokeChar
Definition
freeglut_minimal.h:76
freeglut_minimal::fgStrokeMonoRoman
const SFG_StrokeFont fgStrokeMonoRoman
Definition
freeglut_stroke_mono_roman.cpp:1473
freeglut_minimal::SFG_StrokeVertex
struct tagSFG_StrokeVertex SFG_StrokeVertex
Definition
freeglut_minimal.h:65
freeglut_minimal::FontID
FontID
Definition
freeglut_minimal.h:61
freeglut_minimal::GLUT_STROKE_MONO_ROMAN
@ GLUT_STROKE_MONO_ROMAN
Definition
freeglut_minimal.h:61
freeglut_minimal::GLUT_STROKE_ROMAN
@ GLUT_STROKE_ROMAN
Definition
freeglut_minimal.h:61
freeglut_minimal::glutStrokeString
void glutStrokeString(FontID fontID, const char *string_)
Definition
freeglut_font.cpp:52
freeglut_minimal::fgStrokeRoman
const SFG_StrokeFont fgStrokeRoman
Definition
freeglut_stroke_roman.cpp:1438
freeglut_minimal::SFG_StrokeFont
struct tagSFG_StrokeFont SFG_StrokeFont
Definition
freeglut_minimal.h:83
freeglut_minimal::SFG_StrokeStrip
struct tagSFG_StrokeStrip SFG_StrokeStrip
Definition
freeglut_minimal.h:70
freeglut_minimal::glutStrokeLength
int glutStrokeLength(FontID fontID, const char *string_)
Definition
freeglut_font.cpp:97
freeglut_minimal::glutStrokeHeight
GLfloat glutStrokeHeight(FontID fontID)
Definition
freeglut_font.cpp:127
freeglut_minimal::tagSFG_StrokeChar
Definition
freeglut_minimal.h:77
freeglut_minimal::tagSFG_StrokeChar::Number
int Number
Definition
freeglut_minimal.h:79
freeglut_minimal::tagSFG_StrokeChar::Right
GLfloat Right
Definition
freeglut_minimal.h:78
freeglut_minimal::tagSFG_StrokeChar::Strips
const SFG_StrokeStrip * Strips
Definition
freeglut_minimal.h:80
freeglut_minimal::tagSFG_StrokeFont
Definition
freeglut_minimal.h:84
freeglut_minimal::tagSFG_StrokeFont::Height
GLfloat Height
Definition
freeglut_minimal.h:87
freeglut_minimal::tagSFG_StrokeFont::Quantity
int Quantity
Definition
freeglut_minimal.h:86
freeglut_minimal::tagSFG_StrokeFont::Characters
const SFG_StrokeChar ** Characters
Definition
freeglut_minimal.h:88
freeglut_minimal::tagSFG_StrokeFont::Name
char * Name
Definition
freeglut_minimal.h:85
freeglut_minimal::tagSFG_StrokeStrip
Definition
freeglut_minimal.h:71
freeglut_minimal::tagSFG_StrokeStrip::Vertices
const SFG_StrokeVertex * Vertices
Definition
freeglut_minimal.h:73
freeglut_minimal::tagSFG_StrokeStrip::Number
int Number
Definition
freeglut_minimal.h:72
freeglut_minimal::tagSFG_StrokeVertex
Definition
freeglut_minimal.h:66
freeglut_minimal::tagSFG_StrokeVertex::X
GLfloat X
Definition
freeglut_minimal.h:67
freeglut_minimal::tagSFG_StrokeVertex::Y
GLfloat Y
Definition
freeglut_minimal.h:67
Generated on
for g2o by
1.17.0