New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add standalone formspec renderer #9188
Add standalone formspec renderer #9188
Conversation
c68eae6
to
ec21540
Compare
ec21540
to
7fdb9df
Compare
This is an interesting option for debugging. Can you provide a video of it in action ? |
There's nothing to show in a video - it renders a single frame to a file and exits |
Co-authored-by: Thomas--S <Thomas--S@users.noreply.github.com>
#pragma once | ||
|
||
#ifdef __ANDROID__ | ||
#error formspectestexecutor.h should not be included on Android |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#error formspectestexecutor.h should not be included on Android | |
#error StandaloneFormspecRenderer.h should not be included on Android |
ISimpleTextureSource *m_texture_source; | ||
FormspecFormSource *m_formspecgui; | ||
TextDest *m_buttonhandler; | ||
IMenuManager *menuManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use unique_ptr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And irr_ptr
for the things below. ↓
Tested, works. 👍 |
The aim of this PR is to introduce a new way to create formspec screenshots, for use in automated testing. This is done by adding a new formspec environment called
StandaloneFormspecRenderer
, and command line options to use itTo do
How to test