mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 09:59:18 +02:00
maintenance: settings item refactoring, include dependencies fixes
This commit is contained in:
6
moon.cpp
6
moon.cpp
@@ -3,7 +3,7 @@
|
||||
#include "moon.h"
|
||||
#include "globals.h"
|
||||
#include "mtable.h"
|
||||
#include "usefull.h"
|
||||
#include "utilities.h"
|
||||
#include "world.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -36,7 +36,7 @@ void
|
||||
cMoon::update() {
|
||||
|
||||
move();
|
||||
glm::vec3 position( 0.f, 0.f, -2000.f * Global::fDistanceFactor );
|
||||
glm::vec3 position( 0.f, 0.f, -2000.f * Global.fDistanceFactor );
|
||||
position = glm::rotateX( position, glm::radians( static_cast<float>( m_body.elevref ) ) );
|
||||
position = glm::rotateY( position, glm::radians( static_cast<float>( -m_body.hrang ) ) );
|
||||
|
||||
@@ -54,7 +54,7 @@ cMoon::render() {
|
||||
::glEnd();
|
||||
::glPushMatrix();
|
||||
::glTranslatef( m_position.x, m_position.y, m_position.z );
|
||||
::gluSphere( moonsphere, /* (float)( Global::iWindowHeight / Global::FieldOfView ) * 0.5 * */ ( m_body.distance / 60.2666 ) * 9.037461, 12, 12 );
|
||||
::gluSphere( moonsphere, /* (float)( Global.iWindowHeight / Global.FieldOfView ) * 0.5 * */ ( m_body.distance / 60.2666 ) * 9.037461, 12, 12 );
|
||||
::glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user