mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
further pruning of legacy render code, now runs on opengl 3.3 core
profile
This commit is contained in:
13
sun.cpp
13
sun.cpp
@@ -50,18 +50,7 @@ cSun::update() {
|
||||
void
|
||||
cSun::render() {
|
||||
|
||||
::glColor4f( 255.f / 255.f, 242.f / 255.f, 231.f / 255.f, 1.f );
|
||||
// debug line to locate the sun easier
|
||||
auto const position { m_position * 2000.f };
|
||||
::glBegin( GL_LINES );
|
||||
::glVertex3fv( glm::value_ptr( position ) );
|
||||
::glVertex3f( position.x, 0.f, position.z );
|
||||
::glEnd();
|
||||
::glPushMatrix();
|
||||
::glTranslatef( position.x, position.y, position.z );
|
||||
// radius is a result of scaling true distance down to 2km -- it's scaled by equal ratio
|
||||
::gluSphere( sunsphere, m_body.distance * 9.359157, 12, 12 );
|
||||
::glPopMatrix();
|
||||
//m7t
|
||||
}
|
||||
/*
|
||||
glm::vec3
|
||||
|
||||
Reference in New Issue
Block a user