mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 19:09:25 +02:00
AnimModel.cpp reaches cParser through the simulation core, not a direct import, so the previous pass missed it; the propagation now follows the whole import closure. Train.cpp, drivermode.cpp and Globals.cpp call Console:: inside _WIN32 guards without importing eu07.console - invisible on Linux, where those blocks are skipped.
46 lines
852 B
C++
46 lines
852 B
C++
module;
|
|
#include <array>
|
|
#include <chrono>
|
|
#include <deque>
|
|
#include <limits>
|
|
#include <mutex>
|
|
#include <ostream>
|
|
#include <sstream>
|
|
#include <type_traits>
|
|
#include <unordered_map>
|
|
#include <utility>
|
|
#include <cstddef>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
export module eu07.gl.postfx;
|
|
import eu07.gl.shader;
|
|
import eu07.gl.vao;
|
|
import eu07.gl.framebuffer;
|
|
import eu07.model.texture;
|
|
|
|
export {
|
|
|
|
|
|
namespace gl
|
|
{
|
|
class postfx
|
|
{
|
|
private:
|
|
gl::program program;
|
|
static std::shared_ptr<gl::shader> vertex;
|
|
static std::shared_ptr<gl::vao> vao;
|
|
|
|
public:
|
|
postfx(const std::string &s);
|
|
postfx(const shader &s);
|
|
|
|
void attach();
|
|
void apply(opengl_texture &src, framebuffer *dst);
|
|
void apply(std::vector<opengl_texture*> src, framebuffer *dst);
|
|
};
|
|
}
|
|
|
|
} // export
|