36 #include <GLFW/glfw3.h> 47 CORE = GLFW_OPENGL_CORE_PROFILE,
65 clearColor(glm::vec4(0.15f, 0.15f, 0.15f, 1.0f)) {
68 OGLConfig(
int versionMajor0,
int versionMinor0, GLboolean forwardCompatible0,
253 void createWindow_(
const char* title,
int width,
int height,
bool fullscreenMode);
268 static void errorCB_(
int error,
const char* description);
Viewer * setOpenGLConfig(const OGLConfig &oglConfig)
static bool isInstantiated_
Viewer * setWindowSize(int width, int height)
OGLProfile
Profile definitions for OGLConfig.
Base class for all cameras (composite node, abstract).
Viewer * startAnimations()
void processAnimations_()
SCG_DISALLOW_COPY_AND_ASSIGN(Viewer)
A light to be applied to all nodes of its sub-tree (composite node).
Viewer * addAnimation(AnimationSP animation)
Central viewer managing window, controllers, animations, and main loop.
A group node to be used as root of a sub-tree of nodes (composite node).
Viewer * addController(ControllerSP controller)
static void framebufferSizeCB_(GLFWwindow *window, int width, int height)
void createWindow_(const char *title, int width, int height, bool fullscreenMode)
OpenGL configuration, may be set by user before calling Viewer::init().
void processControllers_()
Frame buffer size, to be set by renderer in Renderer::initViewer(), called by Viewer::init().
Local header file for GLEW library.
Viewer * initSimpleRenderer(CameraSP &camera, GroupSP &scene)
Base class for all animations (abstract), providing general functionality.
OGLConfig(int versionMajor0, int versionMinor0, GLboolean forwardCompatible0, OGLProfile profile0, glm::vec4 clearColor0)
GLbitfield frameBufferClearMask_
Viewer * createWindow(const char *title, int width, int height)
The view state of the application, managed by Viewer and accessible by Controller::checkInput() (or d...
Viewer * addAnimations(const std::vector< AnimationSP > &animations)
Viewer * setWindowTitle(const char *title)
Viewer * init(RendererSP renderer)
Viewer * createFullscreenWindow(const char *title)
static void errorCB_(int error, const char *description)
std::vector< AnimationSP > animations_
FrameBufferSize frameBufferSize_
Internal definitions required by most classes.
Viewer * addControllers(const std::vector< ControllerSP > &controllers)
GLboolean forwardCompatible
static bool isWindowResized_
void getWindowSize(int &width, int &height) const
Base class for all controllers (abstract).
std::vector< ControllerSP > controllers_
Base class for all renderers (abstract).