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

#include <tfGlfwWindow.h>

Inheritance diagram for TissueForge::rendering::GlfwWindow:
Collaboration diagram for TissueForge::rendering::GlfwWindow:

Public Member Functions

 GlfwWindow (GLFWwindow *win)
 
iVector2 windowSize () const override
 
void redraw () override
 
void setTitle (const char *title)
 
Magnum::GL::AbstractFramebuffer & framebuffer () override
 
const float & getFloatField ()
 
void setFloatField (const float &value)
 

Public Attributes

GLFWwindow * _window
 
float f
 

Additional Inherited Members

- Public Types inherited from TissueForge::rendering::Window
enum  MouseButton {
  MouseButton1 = GLFW_MOUSE_BUTTON_1 , MouseButton2 = GLFW_MOUSE_BUTTON_2 , MouseButton3 = GLFW_MOUSE_BUTTON_3 , MouseButton4 = GLFW_MOUSE_BUTTON_4 ,
  MouseButton5 = GLFW_MOUSE_BUTTON_5 , MouseButton6 = GLFW_MOUSE_BUTTON_6 , MouseButton7 = GLFW_MOUSE_BUTTON_7 , MouseButton8 = GLFW_MOUSE_BUTTON_8 ,
  MouseButtonLast = GLFW_MOUSE_BUTTON_LAST , MouseButtonLeft = GLFW_MOUSE_BUTTON_LEFT , MouseButtonRight = GLFW_MOUSE_BUTTON_RIGHT , MouseButtonMiddle = GLFW_MOUSE_BUTTON_MIDDLE
}
 
enum  State { Release = GLFW_RELEASE , Press = GLFW_PRESS , Repeat = GLFW_REPEAT }
 

Detailed Description

The GLFWWindow provides a glue to connect generate Tissue Forge events from glfw events.

Constructor & Destructor Documentation

◆ GlfwWindow()

TissueForge::rendering::GlfwWindow::GlfwWindow ( GLFWwindow * win)

attach to an existing GLFW Window

Member Function Documentation

◆ framebuffer()

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

◆ redraw()

void TissueForge::rendering::GlfwWindow::redraw ( )
overridevirtual

◆ windowSize()

iVector2 TissueForge::rendering::GlfwWindow::windowSize ( ) const
overridevirtual

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