23 lines
384 B
C++
23 lines
384 B
C++
|
|
#pragma once
|
|
|
|
#include "context.hpp"
|
|
#include "gl/program.hpp"
|
|
#include "window.hpp"
|
|
#include "../world/state.hpp"
|
|
|
|
namespace Graphics {
|
|
struct Pipeline {
|
|
Window m_window;
|
|
GL::Program m_program_model;
|
|
|
|
Pipeline();
|
|
void update() const;
|
|
void render(const World::State& state, const Context& ctx) const;
|
|
bool should_close() const;
|
|
|
|
operator unsigned int() const;
|
|
};
|
|
};
|
|
|