Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::LinuxAppBase Class Referenceabstract

Base class for iOS applications. More...

#include <LinuxAppBase.hpp>

Inheritance diagram for Diligent::LinuxAppBase:
Diligent::AppBase

Public Member Functions

virtual bool OnGLContextCreated (Display *display, Window window)=0
 Called when GL context is initialized.
 
virtual int HandleXEvent (XEvent *xev)
 Handles an XLib event.
 
- Public Member Functions inherited from Diligent::AppBase
virtual CommandLineStatus ProcessCommandLine (int argc, const char *const *argv)=0
 Processes the command line arguments.
 
virtual const char * GetAppTitle () const =0
 Returns the application tile.
 
virtual void Update (double CurrTime, double ElapsedTime)
 Updates the application state.
 
virtual void Render ()=0
 Renders the frame.
 
virtual void Present ()=0
 Presents the frame.
 
virtual void WindowResize (int width, int height)=0
 Called when the window resizes.
 
virtual void GetDesiredInitialWindowSize (int &width, int &height)
 Called by the framework to request the desired initial window size.
 
virtual GoldenImageMode GetGoldenImageMode () const
 Returns the golden image mode, see Diligent::AppBase::GoldenImageMode.
 
virtual int GetExitCode () const
 Returns the exit code.
 
virtual bool IsReady () const
 Returns true if the app is initialized and ready to run.
 
virtual HOT_KEY_FLAGS GetHotKeyFlags () const
 Returns the hot key handling flags.
 

Additional Inherited Members

- Public Types inherited from Diligent::AppBase
enum class  GoldenImageMode { None = 0 , Capture , Compare , CompareUpdate }
 Golden image capture mode. More...
 
enum class  CommandLineStatus { OK , Help , Error }
 Command line processing result. More...
 

Detailed Description

Base class for iOS applications.

Member Function Documentation

◆ HandleXEvent()

virtual int Diligent::LinuxAppBase::HandleXEvent ( XEvent * xev)
inlinevirtual

Handles an XLib event.

An application may override this method to handle XLib events.

Parameters
[in]xev- XLib event

◆ OnGLContextCreated()

virtual bool Diligent::LinuxAppBase::OnGLContextCreated ( Display * display,
Window window )
pure virtual

Called when GL context is initialized.

An application must override this method to perform required initialization operations after OpenGL context has been initialized by the framework

Parameters
[in]display- XLib display.
[in]window- XLib window.
Returns
true if the initialization was successful and false otherwise