mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 06:39:18 +02:00
partial render code revert, oerlikon brakes fix, sound fixes
This commit is contained in:
93
Model3d.cpp
93
Model3d.cpp
@@ -2164,39 +2164,7 @@ void TModel3d::BreakHierarhy()
|
||||
Error("Not implemented yet :(");
|
||||
};
|
||||
|
||||
/*
|
||||
void TModel3d::Render(vector3 pPosition,double fAngle,GLuint
|
||||
ReplacableSkinId,int iAlpha)
|
||||
{
|
||||
// glColor3f(1.0f,1.0f,1.0f);
|
||||
// glColor3f(0.0f,0.0f,0.0f);
|
||||
glPushMatrix();
|
||||
|
||||
glTranslated(pPosition.x,pPosition.y,pPosition.z);
|
||||
if (fAngle!=0)
|
||||
glRotatef(fAngle,0,1,0);
|
||||
/*
|
||||
matrix4x4 Identity;
|
||||
Identity.Identity();
|
||||
|
||||
matrix4x4 CurrentMatrix;
|
||||
glGetdoublev(GL_MODELVIEW_MATRIX,CurrentMatrix.getArray());
|
||||
vector3 pos=vector3(0,0,0);
|
||||
pos=CurrentMatrix*pos;
|
||||
fSquareDist=SquareMagnitude(pos);
|
||||
* /
|
||||
fSquareDist=SquareMagnitude(pPosition-Global::GetCameraPosition());
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (Root)
|
||||
Root->Render(ReplacableSkinId,iAlpha);
|
||||
#else
|
||||
Root->Render(ReplacableSkinId,iAlpha);
|
||||
#endif
|
||||
glPopMatrix();
|
||||
};
|
||||
*/
|
||||
/*
|
||||
#ifdef EU07_USE_OLD_RENDERCODE
|
||||
void TModel3d::Render(double fSquareDistance, texture_manager::size_type *ReplacableSkinId, int iAlpha)
|
||||
{
|
||||
iAlpha ^= 0x0F0F000F; // odwrócenie flag tekstur, aby wyłapać nieprzezroczyste
|
||||
@@ -2217,40 +2185,6 @@ void TModel3d::RenderAlpha(double fSquareDistance, texture_manager::size_type *R
|
||||
Root->RenderAlphaDL();
|
||||
}
|
||||
};
|
||||
*/
|
||||
/*
|
||||
void TModel3d::RaRender(vector3 pPosition,double fAngle,GLuint
|
||||
*ReplacableSkinId,int
|
||||
iAlpha)
|
||||
{
|
||||
// glColor3f(1.0f,1.0f,1.0f);
|
||||
// glColor3f(0.0f,0.0f,0.0f);
|
||||
glPushMatrix(); //zapamiętanie matrycy przekształcenia
|
||||
glTranslated(pPosition.x,pPosition.y,pPosition.z);
|
||||
if (fAngle!=0)
|
||||
glRotatef(fAngle,0,1,0);
|
||||
/*
|
||||
matrix4x4 Identity;
|
||||
Identity.Identity();
|
||||
|
||||
matrix4x4 CurrentMatrix;
|
||||
glGetdoublev(GL_MODELVIEW_MATRIX,CurrentMatrix.getArray());
|
||||
vector3 pos=vector3(0,0,0);
|
||||
pos=CurrentMatrix*pos;
|
||||
fSquareDist=SquareMagnitude(pos);
|
||||
*/
|
||||
/*
|
||||
fSquareDist=SquareMagnitude(pPosition-Global::GetCameraPosition()); //zmienna
|
||||
globalna!
|
||||
if (StartVBO())
|
||||
{//odwrócenie flag, aby wyłapać nieprzezroczyste
|
||||
Root->ReplacableSet(ReplacableSkinId,iAlpha^0x0F0F000F);
|
||||
Root->RaRender();
|
||||
EndVBO();
|
||||
}
|
||||
glPopMatrix(); //przywrócenie ustawień przekształcenia
|
||||
};
|
||||
*/
|
||||
|
||||
void TModel3d::RaRender(double fSquareDistance, texture_manager::size_type *ReplacableSkinId, int iAlpha)
|
||||
{ // renderowanie specjalne, np. kabiny
|
||||
@@ -2282,30 +2216,10 @@ void TModel3d::RaRenderAlpha(double fSquareDistance, texture_manager::size_type
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
void TModel3d::RaRenderAlpha(vector3 pPosition,double fAngle,GLuint
|
||||
*ReplacableSkinId,int
|
||||
iAlpha)
|
||||
{
|
||||
glPushMatrix();
|
||||
glTranslatef(pPosition.x,pPosition.y,pPosition.z);
|
||||
if (fAngle!=0)
|
||||
glRotatef(fAngle,0,1,0);
|
||||
fSquareDist=SquareMagnitude(pPosition-Global::GetCameraPosition()); //zmienna
|
||||
globalna!
|
||||
if (StartVBO())
|
||||
{Root->ReplacableSet(ReplacableSkinId,iAlpha);
|
||||
Root->RaRenderAlpha();
|
||||
EndVBO();
|
||||
}
|
||||
glPopMatrix();
|
||||
};
|
||||
*/
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// 2011-03-16 cztery nowe funkcje renderowania z możliwością pochylania obiektów
|
||||
//-----------------------------------------------------------------------------
|
||||
/*
|
||||
|
||||
void TModel3d::Render(vector3 *vPosition, vector3 *vAngle, texture_manager::size_type *ReplacableSkinId, int iAlpha)
|
||||
{ // nieprzezroczyste, Display List
|
||||
glPushMatrix();
|
||||
@@ -2340,7 +2254,7 @@ void TModel3d::RenderAlpha(vector3 *vPosition, vector3 *vAngle, texture_manager:
|
||||
Root->RenderAlphaDL();
|
||||
glPopMatrix();
|
||||
};
|
||||
*/
|
||||
|
||||
void TModel3d::RaRender(vector3 *vPosition, vector3 *vAngle, texture_manager::size_type *ReplacableSkinId, int iAlpha)
|
||||
{ // nieprzezroczyste, VBO
|
||||
glPushMatrix();
|
||||
@@ -2382,6 +2296,7 @@ void TModel3d::RaRenderAlpha(vector3 *vPosition, vector3 *vAngle, texture_manage
|
||||
}
|
||||
glPopMatrix();
|
||||
};
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// 2012-02 funkcje do tworzenia terenu z E3D
|
||||
|
||||
Reference in New Issue
Block a user