Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8308906
FROG_GLController.cpp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
762 B
Subscribers
None
FROG_GLController.cpp
View Options
#include
"FROG_GLController.h"
#ifdef FROG_OPENGL
#include
<assert.h>
FROG_GLController
*
FROG_GLController
::
s_instance
=
0
;
FROG_GLController
::
FROG_GLController
(
FROG_GLImplementation
*
implementation
)
:
m_implementation
(
implementation
)
{
}
FROG_GLController
::~
FROG_GLController
()
{
delete
m_implementation
;
m_implementation
=
0
;
}
FROG_GLController
*
FROG_GLController
::
self
()
{
if
(
!
s_instance
)
s_instance
=
new
FROG_GLController
(
new
FROG_GLImplementation_FLTK
);
return
s_instance
;
}
void
FROG_GLController
::
switchImplementation
(
FROG_GLImplementation
*
implementation
)
{
if
(
!
implementation
||
implementation
==
m_implementation
)
return
;
delete
m_implementation
;
m_implementation
=
implementation
;
}
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Dec 21, 1:34 PM (19 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4022975
Default Alt Text
FROG_GLController.cpp (762 B)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment