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

terrain drawing moved to renderer

This commit is contained in:
tmj-fstate
2017-03-12 01:04:41 +01:00
parent 5439fd86f3
commit 54a9642221
7 changed files with 220 additions and 74 deletions

View File

@@ -14,6 +14,7 @@ http://mozilla.org/MPL/2.0/.
#include "lightarray.h"
#include "dumb3d.h"
#include "frustum.h"
#include "ground.h"
struct opengl_light {
@@ -78,6 +79,8 @@ public:
inline
void
update_frustum() { m_frustum.calculate(); }
bool
visible( bounding_area const &Area ) const;
bool
visible( TDynamicObject const *Dynamic ) const;
@@ -98,6 +101,8 @@ public:
// main draw call. returns false on error
bool
Render();
bool
Render( TGround *Ground );
bool
Render( TDynamicObject *Dynamic );
bool