-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engine and test app #14
base: no-engine-files
Are you sure you want to change the base?
Conversation
template<typename TController> | ||
static TController *get(std::source_location location = std::source_location::current()) { | ||
static_assert(std::is_base_of_v<Controller, TController>); | ||
static TController *controller = create_if_absent<TController>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @returns Return value if the `glfun` has it, otherwise void. | ||
*/ | ||
template<typename TResult, typename... TOpenGLArgs, typename... Args> | ||
static TResult call(std::source_location location, TResult (*glfun)(TOpenGLArgs...), Args... args) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @returns The value of the argument. | ||
*/ | ||
template<typename T> | ||
std::optional<T> arg(std::string_view name, std::optional<T> default_value = {}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
util::ArgParser::instance()->initialize(argc, argv); | ||
util::Configuration::instance()->initialize(); | ||
|
||
// register engine controllers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* } <-- defer statement is executed here | ||
* @endcode | ||
*/ | ||
#define defer auto CONCAT(defer_stmt_, __LINE__) = MakeDeferImpl() << [&] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivan-cukic-matf I've tagged the points of interest :)
@ivan-cukic-matf I've tagged points of interest :)