Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8308541
FROG_GLImplementation.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
FROG_GLImplementation.h
View Options
// FROG_GLImplementation.h: definition of the abstract FROG OpenGL interface used by FROG_GLController
//
//////////////////////////////////////////////////////////////////////
#ifndef _FROG_GLIMPLEMENTATION_H__
#define _FROG_GLIMPLEMENTATION_H__
#ifdef FROG_OPENGL
#include
<FL/gl.h>
#include
"GL/glext.h"
#include
"GL2PS/gl2ps.h"
// Abstract FROG OpenGL implementation
class
FROG_GLImplementation
{
public
:
FROG_GLImplementation
();
virtual
~
FROG_GLImplementation
();
// Swap OpenGL buffers (front <-> back)
virtual
void
swapBuffers
()
=
0
;
// Render text to screen
virtual
void
setFont
(
unsigned
int
FontID
,
unsigned
int
FontHeight
)
=
0
;
virtual
void
renderText
(
char
*
text
)
=
0
;
virtual
void
renderText
(
char
*
text
,
int
x
,
int
y
)
=
0
;
virtual
void
renderMultiLineText
(
char
*
text
,
int
x
,
int
y
,
int
height
=
0
)
=
0
;
};
// Default FROG OpenGL interface is FLTK
class
FROG_GLImplementation_FLTK
:
public
FROG_GLImplementation
{
public
:
FROG_GLImplementation_FLTK
();
virtual
~
FROG_GLImplementation_FLTK
();
virtual
void
swapBuffers
();
virtual
void
setFont
(
unsigned
int
FondID
,
unsigned
int
FontHeight
);
virtual
void
renderText
(
char
*
text
);
virtual
void
renderText
(
char
*
text
,
int
x
,
int
y
);
virtual
void
renderMultiLineText
(
char
*
text
,
int
x
,
int
y
,
int
height
);
};
#endif
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Dec 21, 12:22 PM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4022751
Default Alt Text
FROG_GLImplementation.h (1 KB)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment