[Meh] Files I obviously forgot to save. :/

This commit is contained in:
Allanis 2017-11-22 23:55:04 +00:00
parent a4faed8854
commit 4f4996d44b
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,6 @@ public:
/* Not valid to SetVelocity on these. If you want them to move, use a DynamicBody. */ /* Not valid to SetVelocity on these. If you want them to move, use a DynamicBody. */
vector3d GetPosition(void); vector3d GetPosition(void);
void TransformToModelCoords(const Frame* camFrame); void TransformToModelCoords(const Frame* camFrame);
void TransformCameraTo(void);
void ViewingRotation(void); void ViewingRotation(void);
void GetRotMatrix(matrix4x4d& m); void GetRotMatrix(matrix4x4d& m);
virtual void SetFrame(Frame* f); virtual void SetFrame(Frame* f);

View File

@ -64,6 +64,7 @@ void WorldView::Draw3D(void) {
float fracH = L3D::GetScrHeight() / (float)L3D::GetScrWidth(); float fracH = L3D::GetScrHeight() / (float)L3D::GetScrWidth();
glFrustum(-1, 1, -fracH, fracH, 1.0f, 10000.0f); glFrustum(-1, 1, -fracH, fracH, 1.0f, 10000.0f);
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glClearColor(0, 0, 0, 0); glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@ -86,7 +87,7 @@ void WorldView::Draw3D(void) {
glCallList(m_bgstarsDlist); glCallList(m_bgstarsDlist);
/* Position light at sol. */ /* Position light at sol. */
vector3d lpos = Frame::GetFramePosRelativeToOther(Space::GetRootFrame(), &cam_frame); vector3d lpos = vector3d::Normalize(Frame::GetFramePosRelativeToOther(Space::GetRootFrame(), &cam_frame));
float lightPos[4]; float lightPos[4];
lightPos[0] = lpos.x; lightPos[0] = lpos.x;
lightPos[1] = lpos.y; lightPos[1] = lpos.y;