mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 14:39:18 +02:00
completed basic separation of visual renderer from simulation
This commit is contained in:
15
sky.cpp
15
sky.cpp
@@ -9,24 +9,22 @@ http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "sky.h"
|
||||
#include "Logs.h"
|
||||
#include "Globals.h"
|
||||
#include "MdlMngr.h"
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
GLfloat lightPos[4] = {0.0f, 0.0f, 0.0f, 1.0f};
|
||||
//GLfloat lightPos[4] = {0.0f, 0.0f, 0.0f, 1.0f};
|
||||
|
||||
TSky::~TSky(){};
|
||||
void TSky::Init() {
|
||||
|
||||
TSky::TSky(){};
|
||||
if( ( Global::asSky != "1" )
|
||||
&& ( Global::asSky != "0" ) ) {
|
||||
|
||||
void TSky::Init()
|
||||
{
|
||||
WriteLog( "Clouds init" );
|
||||
if ((Global::asSky != "1") && (Global::asSky != "0"))
|
||||
mdCloud = TModelsManager::GetModel( Global::asSky );
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef EU07_USE_OLD_RENDERCODE
|
||||
void TSky::Render( glm::vec3 const &Tint )
|
||||
{
|
||||
if (mdCloud)
|
||||
@@ -45,5 +43,6 @@ void TSky::Render( glm::vec3 const &Tint )
|
||||
::glDisable( GL_LIGHTING );
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user