mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
35 lines
729 B
C++
35 lines
729 B
C++
#pragma once
|
|
|
|
#include "gl/shader.h"
|
|
#include "renderer.h"
|
|
#include "Texture.h"
|
|
|
|
class map
|
|
{
|
|
std::unique_ptr<gl::program> m_shader;
|
|
std::unique_ptr<gl::framebuffer> m_msaa_fb;
|
|
std::unique_ptr<gl::renderbuffer> m_msaa_rb;
|
|
|
|
std::unique_ptr<gl::framebuffer> m_fb;
|
|
std::unique_ptr<opengl_texture> m_tex;
|
|
|
|
std::unique_ptr<gl::ubo> scene_ubo;
|
|
gl::scene_ubs scene_ubs;
|
|
|
|
std::vector<gfx::geometrybank_handle> m_section_handles;
|
|
|
|
const int fb_size = 1024;
|
|
|
|
glm::vec2 translate;
|
|
float zoom = 1.0f / 1000.0f;
|
|
float get_vehicle_rotation();
|
|
|
|
bool init();
|
|
|
|
cFrustum frustum;
|
|
public:
|
|
bool map_opened = false;
|
|
void render(scene::basic_region *Region);
|
|
void toggle_window();
|
|
};
|