J3DMatBlock start

This commit is contained in:
Jasper St. Pierre
2023-09-23 15:52:17 -07:00
parent f04f4f219f
commit 5e43515ca7
13 changed files with 892 additions and 906 deletions
+1 -23
View File
@@ -351,19 +351,8 @@ void J3DShapePacket::draw() {
if (!checkFlag(J3DShpFlag_Hidden) && mpShape != NULL) {
prepareDraw();
#if 0
if (mpTexMtxObj != NULL) {
J3DMaterial* material = mpShape->getMaterial();
J3DDifferedTexMtx::sTexGenBlock = material->getTexGenBlock();
J3DDifferedTexMtx::sTexMtxObj = getTexMtxObj();
} else {
J3DDifferedTexMtx::sTexGenBlock = NULL;
}
#endif
if (mpDisplayListObj != NULL) {
if (mpDisplayListObj != NULL)
mpDisplayListObj->callDL();
}
mpShape->draw();
}
@@ -373,17 +362,6 @@ void J3DShapePacket::draw() {
void J3DShapePacket::drawFast() {
if (!checkFlag(J3DShpFlag_Hidden) && mpShape != NULL) {
prepareDraw();
#if 0
if (mpTexMtxObj != NULL) {
J3DMaterial* material = mpShape->getMaterial();
J3DDifferedTexMtx::sTexGenBlock = material->getTexGenBlock();
J3DDifferedTexMtx::sTexMtxObj = getTexMtxObj();
} else {
J3DDifferedTexMtx::sTexGenBlock = NULL;
}
#endif
mpShape->drawFast();
}
}