Some examples of how you might Dullahan. None of them are meant to be full featured, solid applications - just snippets of how you might do something in your own code.
Contributions showing off different features or ideas would be much appreciated.
Windows command line application to render a given URL to a bitmap and save it as a bitmap called output.bmp
and a PDF called output.pdf
in the current directory when the page finishes loading or stops animating.
Notes:
- Pass a URL as command line parameter to render it
- Some sites are not fully ready when they "complete loading" (when the application saves the bitmap)
Slightly more complex OpenGL application using native Win32 because some of the calls to CEF (and therefore Dullahan) require native Windows messages.
Notes:
- Displays same URL on each side of a cube
- It would be easy to add a different one to each side but make the code longer
- Start page is a local HTML page in
tools
folder
- Move the cube by holding down SHIFT key and using mouse and mouse wheel
- Interact with pages via mouse and keyboard (somewhat) normally
- Press ESC key to exit
- Enter any URL into the top edit control
- Expose some features via menu - e.g. Print to PDF
Simple macOS OpenGL app that displays a 2D bitmap rendered by Dullahan.
Notes:
- Needs some work to improve shutdown correctly (any macOS devs want to help?)
An unusual C++ example that doesn't use Dullahan. Rather, it just initializes CEF directly and renders a page. Used as a test bed for fixing issues - most recently a crash on shutdown - without requiring consumers download and set up Dullahan.
Notes:
- Works on Windows but could be made to work on macOS very easily by replacing the message loop