File entry_point.h

Parent directory (portal/application)

Portal Framework application entry point.

Detailed Description

This header provides the main entry point for Portal applications. Users include this file in their main.cpp and implement create_application() to instantiate their Application-derived class. The framework handles logging initialization, exception handling, and platform-specific entry points (WinMain on Windows).

Example usage:

#include <portal/application/entry_point.h>

std::unique_ptr<portal::Application> portal::create_application(int argc, char** argv) {
    ApplicationProperties props{.name = STRING_ID("My Game")};
    return std::make_unique<MyGameApp>(props);
}

Definition (portal/application/entry_point.h)

Includes

  • portal/application/application.h (File application.h)

  • portal/application/settings.h (File settings.h)

  • portal/core/defines/preprocessor.h

  • portal/core/files/file_system.h

Namespaces

Functions