The entry library is used to set up system agnostic entry-point routines.
This library creates a window that is suitable for Vulkan rendering. This
window is presented to the user, and passed to the main_entry in the
entry_data field as described below.
You must, somewhere in your program, define a function with the signature
int main_entry(const entry_data* data); This function will get called
by the entry point library.
Command line options that are supported by entry at this time are:
-w=NThis will set the width of the window to N-h=NThis will set the height of the window to N-output-frame=NThis will instruct any VulkanApplication to use a virtual swapchain instead fo the real swapchain. This will output the contents of the swapchain after frameNand instruct the application to exit.-1will turn this off.-1is the default.-output-file=filenameThis will set the name of the file that-output-framewrites to. The default isoutput.ppm-separate-presentThis prefers a separate presentation queue instead of the default if possible.-fixedThis will instruct the application to simulate a fixed framerate. This is particularly useful when outputting frames, since the times should be consistent.
Each of the command-line arguments has a CMake build option that will affect the default value.
OUTPUT_FRAMESets the default value of-output-frame.-1normally.OUTPUT_FILESets the default value of-output-file.output.ppmnormally.DEFAULT_WINDOW_WIDTHSets the default value of-w=.100normally.DEFAULT_WINDOW_HEIGHTSets the default value of-h=.100normally.FIXED_TIMESTEPTurns on-fixedby default.PREFER_SEPARATE_PRESENTTurns on-separate-presentby default.
Notes for Android, since there is no way of providing command-line arguments to Android, only the CMake configuration options can be used to affect behavior.