Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
TissueForge::rendering::WindowlessApplication Struct Reference
Inheritance diagram for TissueForge::rendering::WindowlessApplication:
Collaboration diagram for TissueForge::rendering::WindowlessApplication:

Public Types

typedef Magnum::Platform::WindowlessApplication::Arguments Arguments
 
typedef Magnum::Platform::WindowlessApplication::Configuration Configuration
 

Public Member Functions

 WindowlessApplication (const Arguments &args)
 
UniverseRenderergetRenderer () override
 
HRESULT createContext (const Simulator::Config &conf) override
 
HRESULT pollEvents () override
 
HRESULT waitEvents () override
 
HRESULT waitEventsTimeout (double timeout) override
 
HRESULT postEmptyEvent () override
 
HRESULT setSwapInterval (int si) override
 
HRESULT mainLoopIteration (double timeout) override
 
struct GlfwWindowgetWindow () override
 
int windowAttribute (WindowAttributes attr) override
 
HRESULT setWindowAttribute (WindowAttributes attr, int val) override
 
HRESULT redraw () override
 
HRESULT close () override
 
HRESULT destroy () override
 
HRESULT show () override
 
HRESULT messageLoop (double et) override
 
Magnum::GL::AbstractFramebuffer & framebuffer () override
 
bool contextMakeCurrent () override
 
bool contextHasCurrent () override
 
bool contextRelease () override
 
- Public Member Functions inherited from TissueForge::rendering::Application
virtual HRESULT run (double et)
 
virtual HRESULT simulationStep ()
 

Friends

struct WindowlessWindow
 

Additional Inherited Members

- Public Attributes inherited from TissueForge::rendering::Application
std::vector< GlfwWindow * > windows
 
- Protected Attributes inherited from TissueForge::rendering::Application
bool _dynamicBoundary = true
 
Magnum::Float _boundaryOffset = 0.0f
 
int currentStep = 0
 

Constructor & Destructor Documentation

◆ WindowlessApplication()

TissueForge::rendering::WindowlessApplication::WindowlessApplication ( const Arguments & args)

Set up the app, but don't create a context just yet.

Member Function Documentation

◆ close()

HRESULT TissueForge::rendering::WindowlessApplication::close ( )
overridevirtual

◆ contextHasCurrent()

bool TissueForge::rendering::WindowlessApplication::contextHasCurrent ( )
overridevirtual

◆ contextMakeCurrent()

bool TissueForge::rendering::WindowlessApplication::contextMakeCurrent ( )
overridevirtual

◆ contextRelease()

bool TissueForge::rendering::WindowlessApplication::contextRelease ( )
overridevirtual

◆ createContext()

HRESULT TissueForge::rendering::WindowlessApplication::createContext ( const Simulator::Config & conf)
overridevirtual

◆ destroy()

HRESULT TissueForge::rendering::WindowlessApplication::destroy ( )
overridevirtual

◆ framebuffer()

Magnum::GL::AbstractFramebuffer & TissueForge::rendering::WindowlessApplication::framebuffer ( )
overridevirtual

◆ getRenderer()

UniverseRenderer * TissueForge::rendering::WindowlessApplication::getRenderer ( )
overridevirtual

◆ getWindow()

struct GlfwWindow * TissueForge::rendering::WindowlessApplication::getWindow ( )
overridevirtual

◆ mainLoopIteration()

HRESULT TissueForge::rendering::WindowlessApplication::mainLoopIteration ( double timeout)
overridevirtual

◆ messageLoop()

HRESULT TissueForge::rendering::WindowlessApplication::messageLoop ( double et)
overridevirtual

◆ pollEvents()

HRESULT TissueForge::rendering::WindowlessApplication::pollEvents ( )
overridevirtual

This function processes only those events that are already in the event queue and then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.

On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the window refresh callback to redraw the contents of your window when necessary during such operations.

Implements TissueForge::rendering::Application.

◆ postEmptyEvent()

HRESULT TissueForge::rendering::WindowlessApplication::postEmptyEvent ( )
overridevirtual

This function posts an empty event from the current thread to the event queue, causing waitEvents or waitEventsTimeout to return.

Implements TissueForge::rendering::Application.

◆ redraw()

HRESULT TissueForge::rendering::WindowlessApplication::redraw ( )
overridevirtual

post a re-draw event, to tell the renderer that it should re-draw

Implements TissueForge::rendering::Application.

◆ setSwapInterval()

HRESULT TissueForge::rendering::WindowlessApplication::setSwapInterval ( int si)
inlineoverridevirtual

◆ setWindowAttribute()

HRESULT TissueForge::rendering::WindowlessApplication::setWindowAttribute ( WindowAttributes attr,
int val )
overridevirtual

◆ show()

HRESULT TissueForge::rendering::WindowlessApplication::show ( )
overridevirtual

◆ waitEvents()

HRESULT TissueForge::rendering::WindowlessApplication::waitEvents ( )
overridevirtual

This function puts the calling thread to sleep until at least one event is available in the event queue. Once one or more events are available, it behaves exactly like glfwPollEvents, i.e. the events in the queue are processed and the function then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.

Since not all events are associated with callbacks, this function may return without a callback having been called even if you are monitoring all callbacks.

On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the window refresh callback to redraw the contents of your window when necessary during such operations.

Implements TissueForge::rendering::Application.

◆ waitEventsTimeout()

HRESULT TissueForge::rendering::WindowlessApplication::waitEventsTimeout ( double timeout)
overridevirtual

This function puts the calling thread to sleep until at least one event is available in the event queue, or until the specified timeout is reached. If one or more events are available, it behaves exactly like pollEvents, i.e. the events in the queue are processed and the function then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.

The timeout value must be a positive finite number. Since not all events are associated with callbacks, this function may return without a callback having been called even if you are monitoring all callbacks.

On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the window refresh callback to redraw the contents of your window when necessary during such operations.

Implements TissueForge::rendering::Application.

◆ windowAttribute()

int TissueForge::rendering::WindowlessApplication::windowAttribute ( WindowAttributes attr)
overridevirtual

The documentation for this struct was generated from the following file: