16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 17:09:19 +02:00

merge, with tmj renderer

This commit is contained in:
milek7
2017-08-18 00:56:05 +02:00
85 changed files with 6815 additions and 3770 deletions

View File

@@ -1,7 +1,7 @@
#include "stdafx.h"
#include "stars.h"
#include "Globals.h"
#include "MdlMngr.h"
//////////////////////////////////////////////////////////////////////////////////////////
// cStars -- simple starfield model, simulating appearance of starry sky
@@ -9,25 +9,5 @@
void
cStars::init() {
m_stars.LoadFromFile( "models/skydome_stars.t3d", false );
}
void
cStars::render() {
//m7todo: restore
/*
// setup
::glPushMatrix();
::glRotatef( m_latitude, 1.0f, 0.0f, 0.0f ); // ustawienie osi OY na północ
::glRotatef( -std::fmod( (float)Global::fTimeAngleDeg, 360.0f ), 0.0f, 1.0f, 0.0f ); // obrót dobowy osi OX
::glPointSize( 2.0f );
// render
GfxRenderer.Render( &m_stars, nullptr, 1.0 );
// post-render cleanup
::glPointSize( 3.0f );
::glPopMatrix();
*/
m_stars = TModelsManager::GetModel( "models\\skydome_stars.t3d", false );
}