Skip to content

File base_application.hpp

FileList > gui > magnum > base_application.hpp

Go to the source code of this file

  • #include <mutex>
  • #include <unistd.h>
  • #include <unordered_map>
  • #include <robot_dart/gui/helper.hpp>
  • #include <robot_dart/gui/magnum/drawables.hpp>
  • #include <robot_dart/gui/magnum/gs/camera.hpp>
  • #include <robot_dart/gui/magnum/gs/cube_map.hpp>
  • #include <robot_dart/gui/magnum/gs/cube_map_color.hpp>
  • #include <robot_dart/gui/magnum/gs/phong_multi_light.hpp>
  • #include <robot_dart/gui/magnum/gs/shadow_map.hpp>
  • #include <robot_dart/gui/magnum/gs/shadow_map_color.hpp>
  • #include <robot_dart/gui/magnum/types.hpp>
  • #include <robot_dart/utils_headers_external_gui.hpp>
  • #include <Magnum/GL/CubeMapTextureArray.h>
  • #include <Magnum/GL/Framebuffer.h>
  • #include <Magnum/GL/Mesh.h>
  • #include <Magnum/GL/TextureArray.h>
  • #include <Magnum/Platform/GLContext.h>
  • #include <Magnum/Platform/WindowlessEglApplication.h>
  • #include <Magnum/Shaders/DistanceFieldVector.h>
  • #include <Magnum/Shaders/Flat.h>
  • #include <Magnum/Shaders/VertexColor.h>
  • #include <Magnum/Text/AbstractFont.h>
  • #include <Magnum/Text/DistanceFieldGlyphCache.h>
  • #include <Magnum/Text/Renderer.h>

Namespaces

Type Name
namespace robot_dart
namespace gui
namespace magnum

Classes

Type Name
class BaseApplication
struct DebugDrawData
struct GlobalData
struct GraphicsConfiguration

Macros

Type Name
define get_gl_context (name) get_gl_context_with_sleep(name, 0)
define get_gl_context_with_sleep (name, ms_sleep)
define release_gl_context (name) robot_dart::gui::magnum::GlobalData::instance()->free_gl_context(name);

Macro Definition Documentation

define get_gl_context

#define get_gl_context (
    name
) get_gl_context_with_sleep(name, 0)

define get_gl_context_with_sleep

#define get_gl_context_with_sleep (
    name,
    ms_sleep
) /* Create/Get GLContext */                                                \
    Corrade::Utility::Debug name##_magnum_silence_output{nullptr};            \
    Magnum::Platform::WindowlessGLContext* name = nullptr;                    \
    while (name == nullptr) {                                                 \
        name = robot_dart::gui::magnum::GlobalData::instance()->gl_context(); \
        /* Sleep for some ms */                                               \
        usleep(ms_sleep * 1000);                                              \
    }                                                                         \
    while (!name->makeCurrent()) {                                            \
        /* Sleep for some ms */                                               \
        usleep(ms_sleep * 1000);                                              \
    }                                                                         \
                                                                              \
    Magnum::Platform::GLContext name##_magnum_context;

define release_gl_context

#define release_gl_context (
    name
) robot_dart::gui::magnum::GlobalData::instance()->free_gl_context(name);


The documentation for this class was generated from the following file robot_dart/gui/magnum/base_application.hpp