Main sections
Multiple source files
Multiple source files
If you want to have multiple source files for your program, open your project in the editor and click on the "files" tab at the bottom of the right pane.
Right click it in the right hand pane, and select either "New file" to create a new file for your project, or "open file" to include an existing file.
GLBasic library files (.gbal) can also be added in this way.
You can find a list of useful files to include in "Samples/COMMON".
Specifying the primary source file
You can select any file, then right click it, and select "Use as main program" to specify this source file as the entry point for the program.