-
Notifications
You must be signed in to change notification settings - Fork 52
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 isometric screenshot feature. #122
base: master
Are you sure you want to change the base?
Conversation
source/client/app/Minecraft.cpp
Outdated
// getOptions()->m_bAmbientOcclusion = !getOptions()->m_bAmbientOcclusion; | ||
// Minecraft::useAmbientOcclusion = getOptions()->m_bAmbientOcclusion; | ||
// m_pLevelRenderer->allChanged(); | ||
|
||
if (m_pGameRenderer->m_bIsometric) | ||
m_pGameRenderer->m_isomStage = 100000; | ||
else | ||
m_pGameRenderer->startIsometricRender(); |
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.
uhm... no ambient occlusion toggle? maybe remap to other button?
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.
This is temporary and will be replaced.
@@ -680,7 +863,7 @@ void GameRenderer::render(float f) | |||
debugText << "ReMinecraftPE " << m_pMinecraft->getVersionString(); | |||
debugText << "\n" << m_shownFPS << " fps, " << m_shownChunkUpdates << " chunk updates"; | |||
|
|||
if (m_pMinecraft->getOptions()->m_bDebugText) | |||
if (m_pMinecraft->getOptions()->m_bDebugText && !m_pMinecraft->getOptions()->m_bDontRenderGui) |
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.
finally! actually it's not part of isometric renderer but anyway
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.
To be honest this condition is redundant, as if m_bDontRenderGui
is true, there's an early return
@@ -641,8 +845,10 @@ void GameRenderer::render(float f) | |||
renderLevel(f); | |||
if (m_pMinecraft->getOptions()->m_bDontRenderGui) | |||
{ | |||
if (!m_pMinecraft->m_pScreen) | |||
if (!m_pMinecraft->m_pScreen) { |
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.
We definitely need to set up something like clang-format, code is using Microsoft-ish style but some code like this formatted incorrectly.
This pull request adds an isometric screenshot feature to the game.
What is there more to do? The following: