[Scummvm-git-logs] scummvm master -> ebb6206f4bb3879daf454846bdd3119922e64432
neuromancer
noreply at scummvm.org
Wed Mar 5 08:16:11 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ebb6206f4b FREESCAPE: enable drawCelestialBody in TinyGL
Commit: ebb6206f4bb3879daf454846bdd3119922e64432
https://github.com/scummvm/scummvm/commit/ebb6206f4bb3879daf454846bdd3119922e64432
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2025-03-05T09:18:32+01:00
Commit Message:
FREESCAPE: enable drawCelestialBody in TinyGL
Changed paths:
engines/freescape/gfx_tinygl.cpp
diff --git a/engines/freescape/gfx_tinygl.cpp b/engines/freescape/gfx_tinygl.cpp
index c78a0284778..bc1d5cb73d0 100644
--- a/engines/freescape/gfx_tinygl.cpp
+++ b/engines/freescape/gfx_tinygl.cpp
@@ -436,12 +436,12 @@ void TinyGLRenderer::renderFace(const Common::Array<Math::Vector3d> &vertices) {
}
void TinyGLRenderer::drawCelestialBody(Math::Vector3d position, float radius, byte color) {
- /*uint8 r1, g1, b1, r2, g2, b2;
+ uint8 r1, g1, b1, r2, g2, b2;
byte *stipple = nullptr;
getRGBAt(color, 0, r1, g1, b1, r2, g2, b2, stipple);
int triangleAmount = 20;
- float twicePi = (float)(2.0 * M_PI);*/
+ float twicePi = (float)(2.0 * M_PI);
// Quick billboard effect inspired from this code:
// http://www.lighthouse3d.com/opengl/billboarding/index.php?billCheat
@@ -460,7 +460,7 @@ void TinyGLRenderer::drawCelestialBody(Math::Vector3d position, float radius, by
}
glLoadMatrixf(m);*/
- /*tglDisable(TGL_DEPTH_TEST);
+ tglDisable(TGL_DEPTH_TEST);
tglDepthMask(TGL_FALSE);
setStippleData(stipple);
@@ -504,7 +504,7 @@ void TinyGLRenderer::drawCelestialBody(Math::Vector3d position, float radius, by
tglEnable(TGL_DEPTH_TEST);
tglDepthMask(TGL_TRUE);
- //tglPopMatrix();*/
+ //tglPopMatrix();
}
void TinyGLRenderer::depthTesting(bool enabled) {
More information about the Scummvm-git-logs
mailing list