MainLoop

Inherits: Object

Inherited By: SceneTree

Category: Core

Brief Description

Main loop is the abstract main loop base class.

Member Functions

void _finalize ( ) virtual
void _idle ( float delta ) virtual
void _initialize ( ) virtual
void _input_event ( InputEvent ev ) virtual
void _input_text ( String text ) virtual
void _iteration ( float delta ) virtual
void finish ( )
bool idle ( float delta )
void init ( )
void input_event ( InputEvent ev )
void input_text ( String text )
bool iteration ( float delta )

Numeric Constants

  • NOTIFICATION_WM_MOUSE_ENTER = 3
  • NOTIFICATION_WM_MOUSE_EXIT = 4
  • NOTIFICATION_WM_FOCUS_IN = 5
  • NOTIFICATION_WM_FOCUS_OUT = 6
  • NOTIFICATION_WM_QUIT_REQUEST = 7
  • NOTIFICATION_WM_UNFOCUS_REQUEST = 8
  • NOTIFICATION_OS_MEMORY_WARNING = 9

Description

Main loop is the abstract main loop base class. All other main loop classes are derived from it. Upon application start, a MainLoop has to be provided to OS, else the application will exit. This happens automatically (and a SceneTree is created), unless a main Script is supplied, which may or not create and return a MainLoop.

Member Function Description

  • void _finalize ( ) virtual
  • void _idle ( float delta ) virtual
  • void _initialize ( ) virtual
  • void _input_text ( String text ) virtual
  • void _iteration ( float delta ) virtual
  • void finish ( )
  • void init ( )
  • void input_text ( String text )