mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 02:31:46 +00:00
Added flag descriptions to glfwinfo -h.
This commit is contained in:
parent
86e50b1044
commit
785e68bb0d
@ -54,9 +54,16 @@
|
|||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
printf("Usage: glfwinfo [-h] [-a API] [-m MAJOR] [-n MINOR] [-d] [-l] [-f] [-p PROFILE] [-r STRATEGY]\n");
|
printf("Usage: glfwinfo [-h] [-a API] [-m MAJOR] [-n MINOR] [-d] [-l] [-f] [-p PROFILE] [-r STRATEGY]\n");
|
||||||
printf("available APIs: " API_OPENGL " " API_OPENGL_ES "\n");
|
printf("Options:\n");
|
||||||
printf("available profiles: " PROFILE_NAME_CORE " " PROFILE_NAME_COMPAT "\n");
|
printf(" -a the client API to use (" API_OPENGL " or " API_OPENGL_ES ")\n");
|
||||||
printf("available strategies: " STRATEGY_NAME_NONE " " STRATEGY_NAME_LOSE "\n");
|
printf(" -d request a debug context\n");
|
||||||
|
printf(" -f require a forward-compatible context\n");
|
||||||
|
printf(" -h show this help\n");
|
||||||
|
printf(" -l list all client API extensions after context creation\n");
|
||||||
|
printf(" -m the major number of the requred client API version\n");
|
||||||
|
printf(" -n the minor number of the requred client API version\n");
|
||||||
|
printf(" -p the OpenGL profile to use (" PROFILE_NAME_CORE " or " PROFILE_NAME_COMPAT ")\n");
|
||||||
|
printf(" -r the robustness strategy to use (" STRATEGY_NAME_NONE " or " STRATEGY_NAME_LOSE ")\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void error_callback(int error, const char* description)
|
static void error_callback(int error, const char* description)
|
||||||
|
Loading…
Reference in New Issue
Block a user