Robotran C Documentation
Public Member Functions | Private Attributes | List of all members
GlfwWindowManager Class Reference

Implements a MbsWindowManager using the GLFW library. It may be used in association with OglWorldRenderer. More...

#include <GlfwWindowManager.hh>

Inheritance diagram for GlfwWindowManager:
MbsWindowManager

Public Member Functions

virtual void Init (MbsWorld3D *world, int x_width, int y_width, int multi_samp)
 Init the current GlfwWindowManager. More...
 
virtual void SwapBuffers ()
 
virtual double GetTime ()
 
virtual void Terminate ()
 
virtual int CheckClose ()
 
virtual bool Update ()
 Update the window for the current frame Return true if the windows size has changed since the previous frame. More...
 
virtual void PollEvents ()
 
virtual void UpdateViewPoint (MbsViewPoint *curVp)
 
virtual int GetXWidth ()
 get the width along the X axis (in pixels) More...
 
virtual int GetYWidth ()
 get the width along the X axis (in pixels) More...
 

Private Attributes

MbsWorld3D * world
 
GLFWwindow * win
 main visualizatin window More...
 
int x_width
 screen width along the X axis (in pixels) More...
 
int y_width
 screen width along the Y axis (in pixels) More...
 
GlfwViewPointMouseManager * vpManager
 

Detailed Description

Implements a MbsWindowManager using the GLFW library. It may be used in association with OglWorldRenderer.

Member Function Documentation

◆ CheckClose()

int CheckClose ( )
virtual

Implements MbsWindowManager.

◆ GetTime()

double GetTime ( )
virtual

Implements MbsWindowManager.

◆ GetXWidth()

virtual int GetXWidth ( )
inlinevirtual

get the width along the X axis (in pixels)

Implements MbsWindowManager.

◆ GetYWidth()

virtual int GetYWidth ( )
inlinevirtual

get the width along the X axis (in pixels)

Implements MbsWindowManager.

◆ Init()

void Init ( MbsWorld3D *  world,
int  x_width,
int  y_width,
int  multi_samp 
)
virtual

Init the current GlfwWindowManager.

Init the current shape renderer.

Implements MbsWindowManager.

◆ PollEvents()

void PollEvents ( )
virtual

Implements MbsWindowManager.

◆ SwapBuffers()

void SwapBuffers ( )
virtual

Implements MbsWindowManager.

◆ Terminate()

void Terminate ( )
virtual

Implements MbsWindowManager.

◆ Update()

bool Update ( )
virtual

Update the window for the current frame Return true if the windows size has changed since the previous frame.

Implements MbsWindowManager.

◆ UpdateViewPoint()

void UpdateViewPoint ( MbsViewPoint *  curVp)
virtual

Implements MbsWindowManager.

Member Data Documentation

◆ vpManager

GlfwViewPointMouseManager* vpManager
private

◆ win

GLFWwindow* win
private

main visualizatin window

◆ world

MbsWorld3D* world
private

◆ x_width

int x_width
private

screen width along the X axis (in pixels)

◆ y_width

int y_width
private

screen width along the Y axis (in pixels)


The documentation for this class was generated from the following files: