al_open_native_text_log

ALLEGRO_TEXTLOG *al_open_native_text_log(char const *title, int flags)
Introduced in 5.0.0

Opens a window to which you can append log messages with al_append_native_text_log. This can be useful for debugging if you don't want to depend on a console being available.

Use al_close_native_text_log to close the window again.

The flags available are:

ALLEGRO_TEXTLOG_NO_CLOSE

Prevent the window from having a close button. Otherwise if the close button is pressed an event is generated; see al_get_native_text_log_event_source.

ALLEGRO_TEXTLOG_MONOSPACE

Use a monospace font to display the text.

Returns NULL if there was an error opening the window, or if text log windows are not implemented on the platform.

See also: al_append_native_text_log, al_close_native_text_log

Examples: ex_native_filechooser


Most helpful discussions: