[Scummvm-git-logs] scummvm master -> d8d42bf2fe47fd0dcc571127bcdac0ee8f336110
aquadran
noreply at scummvm.org
Sat Jun 18 16:56:34 UTC 2022
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:
d8d42bf2fe GRIM: Ported debug shadow plane draw from opengl to tinygl
Commit: d8d42bf2fe47fd0dcc571127bcdac0ee8f336110
https://github.com/scummvm/scummvm/commit/d8d42bf2fe47fd0dcc571127bcdac0ee8f336110
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-06-18T18:56:30+02:00
Commit Message:
GRIM: Ported debug shadow plane draw from opengl to tinygl
Changed paths:
engines/grim/gfx_opengl.cpp
engines/grim/gfx_tinygl.cpp
diff --git a/engines/grim/gfx_opengl.cpp b/engines/grim/gfx_opengl.cpp
index a235ce38863..576e9e7f931 100644
--- a/engines/grim/gfx_opengl.cpp
+++ b/engines/grim/gfx_opengl.cpp
@@ -625,8 +625,7 @@ void GfxOpenGL::drawShadowPlanes() {
glVertex3f(shadowSector->getVertices()[k].x(), shadowSector->getVertices()[k].y(), shadowSector->getVertices()[k].z());
}
glEnd();
- }
-*/
+ }*/
glPushMatrix();
diff --git a/engines/grim/gfx_tinygl.cpp b/engines/grim/gfx_tinygl.cpp
index d6df0a764a8..ecb6bdfb7f0 100644
--- a/engines/grim/gfx_tinygl.cpp
+++ b/engines/grim/gfx_tinygl.cpp
@@ -550,6 +550,17 @@ void GfxTinyGL::finishActorDraw() {
}
void GfxTinyGL::drawShadowPlanes() {
+/* tglColor3f(1.0f, 1.0f, 1.0f);
+ _currentShadowArray->planeList.begin();
+ for (SectorListType::iterator i = _currentShadowArray->planeList.begin(); i != _currentShadowArray->planeList.end(); i++) {
+ Sector *shadowSector = i->sector;
+ tglBegin(TGL_POLYGON);
+ for (int k = 0; k < shadowSector->getNumVertices(); k++) {
+ tglVertex3f(shadowSector->getVertices()[k].x(), shadowSector->getVertices()[k].y(), shadowSector->getVertices()[k].z());
+ }
+ tglEnd();
+ }*/
+
tglPushMatrix();
if (g_grim->getGameType() == GType_MONKEY4) {
More information about the Scummvm-git-logs
mailing list