Page MenuHomeHEPForge

FROG_GLController.cpp
No OneTemporary

FROG_GLController.cpp

#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

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)

Event Timeline