20#ifndef _SOURCE_RENDERING_TFWINDOWLESSAPPLICATION_H_
21#define _SOURCE_RENDERING_TFWINDOWLESSAPPLICATION_H_
25#include "tfApplication.h"
26#include <Magnum/GL/Context.h>
28#include <Magnum/GL/Buffer.h>
29#include <Magnum/GL/Framebuffer.h>
30#include <Magnum/GL/Mesh.h>
31#include <Magnum/GL/Renderbuffer.h>
32#include <Magnum/GL/RenderbufferFormat.h>
36 #include "Magnum/Platform/WindowlessCglApplication.h"
37#elif defined(TF_LINUX)
38 #include "Magnum/Platform/WindowlessEglApplication.h"
48#elif defined(TF_WINDOWS)
49#include "Magnum/Platform/WindowlessWglApplication.h"
51#error no windowless application available on this platform
63 private Magnum::Platform::WindowlessApplication
67 typedef Magnum::Platform::WindowlessApplication::Arguments Arguments;
69 typedef Magnum::Platform::WindowlessApplication::Configuration Configuration;
144 HRESULT setSwapInterval(
int si)
override {
return E_NOTIMPL;};
146 HRESULT mainLoopIteration(
double timeout)
override;
150 int windowAttribute(WindowAttributes attr)
override;
152 HRESULT setWindowAttribute(WindowAttributes attr,
int val)
override;
162 HRESULT messageLoop(
double et)
override;
164 Magnum::GL::AbstractFramebuffer& framebuffer()
override;
167 bool contextMakeCurrent()
override;
169 bool contextHasCurrent()
override;
171 bool contextRelease()
override;
175 virtual int exec()
override {
return 0; };
178 Magnum::GL::Renderbuffer renderBuffer;
181 Magnum::GL::Renderbuffer depthStencil;
183 Magnum::GL::Framebuffer frameBuffer;
186 struct WindowlessWindow *window;
189 friend struct WindowlessWindow;
Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
Definition tfAngleConfig.h:26
Definition tfSimulator.h:368
Definition tfApplication.h:189
Definition tfGlfwWindow.h:38
Definition tfUniverseRenderer.h:115
Definition tfWindowlessApplication.h:64
HRESULT pollEvents() override
HRESULT postEmptyEvent() override
HRESULT waitEvents() override
HRESULT waitEventsTimeout(double timeout) override
WindowlessApplication(const Arguments &args)
HRESULT redraw() override
int32_t HRESULT
Definition tf_port.h:255