A fail-safe interactive command-line console for OpenGL applications
hdon/oglconsole
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
What follows is the old README file. Apparently the claim of "never fail" is not entirely true. I'll be working toward fixing that, and then I'll remove this message. Licensed under the GNU GPL 2. Donny Viszneki <donny.viszneki@gmail.com> ******************************* NEVER FAIL ******************************* The primary directive of OGLCONSOLE is to NEVER FAIL (unless you can't initialize your OpenGL context.) OGLCONSOLE Mission Statement: OGLCONSOLE will provide text-based user I/O even when no resources can be found or loaded by the application embedding it. As long as you successfully initialize your OpenGL context, OGLCONSOLE can report any and all errors to the user, and at the discretion of the programmer, can allow the user to repair the problem, or take any other actions provided by the programmer through the console interface. Additionally, putting a console in your application makes troubleshooting and various debugging efforts much easier. *************************** MULTIPLE CONSOLES *************************** There are two very small subsets of the API. For an application that uses multiple consoles, you must be responsible for the variable representing each console. Call Render(), Destroy(), Focus() and Edit() to select for options changes. If you have one console you are responsible for much less. Just call Create() once, and throw away the return value. Whenever you need, just call Draw(), or change options, and Quit() when you're done. ******************************* Other Crap ******************************* OGLCONSOLE Features: OGLCONSOLE supports scrolling up and down to see past output from the application. OGLCONSOLE also supports scrolling up and down the "history" of user input. The primary purpose of having "history" is to be able to re-execute complex commands that have already been issued with little or no modification, saving the time of re-entering a complex command. OGLCONSOLE Extras: Since OGLCONSOLE's functionality requires text-drawing functionality, you too are able to leverage that functionality. However it is a very ugly font. OGLCONSOLE Limitations: OGLCONSOLE makes the slightly wasteful decision of compiling its font directly into its binary target. To amend this waste, the very simplest of fonts has been chosen. OGLCONSOLE Quirks: OGLCONSOLE allows for multiple consoles to exist within an application, however it is geared toward applications with a single console. Functions which operate on consoles do not specify the console they are to operate on within their parameters. Instead, a separate function is used to select a console, and all subsequent console operations are directed toward that console.
About
A fail-safe interactive command-line console for OpenGL applications
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published