matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
engine::graphics::GraphicsPlatformEventObserver Class Referencefinal

Observers change in window size in order to update the projection matrix. More...

#include <GraphicsController.hpp>

Inheritance diagram for engine::graphics::GraphicsPlatformEventObserver:
Inheritance graph
[legend]
Collaboration diagram for engine::graphics::GraphicsPlatformEventObserver:
Collaboration graph
[legend]

Public Member Functions

 GraphicsPlatformEventObserver (GraphicsController *graphics)
 
void on_window_resize (int width, int height) override
 Called by PlatformController when the window is resized.
 
- Public Member Functions inherited from engine::platform::PlatformEventObserver
virtual void on_mouse_move (MousePosition position)
 Called by PlatformController for every frame in which the mouse moved.
 
virtual void on_key (Key key)
 Called by PlatformController for every frame in an event occured on the keyboard or mouse key.
 
virtual ~PlatformEventObserver ()=default
 

Private Attributes

GraphicsControllerm_graphics
 

Detailed Description

Observers change in window size in order to update the projection matrix.

Constructor & Destructor Documentation

◆ GraphicsPlatformEventObserver()

engine::graphics::GraphicsPlatformEventObserver::GraphicsPlatformEventObserver ( GraphicsController graphics)
inlineexplicit

Member Function Documentation

◆ on_window_resize()

void engine::graphics::GraphicsPlatformEventObserver::on_window_resize ( int  width,
int  height 
)
overridevirtual

Called by PlatformController when the window is resized.

Reimplemented from engine::platform::PlatformEventObserver.

Member Data Documentation

◆ m_graphics

GraphicsController* engine::graphics::GraphicsPlatformEventObserver::m_graphics
private

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