mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 21:29:19 +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.
59 lines
867 B
C++
59 lines
867 B
C++
module;
|
|
#include <array>
|
|
#include <chrono>
|
|
#include <cstddef>
|
|
#include <deque>
|
|
#include <limits>
|
|
#include <mutex>
|
|
#include <ostream>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <type_traits>
|
|
#include <unordered_map>
|
|
#include <utility>
|
|
#include <vector>
|
|
#include "glad/glad.h"
|
|
#include <cstdint>
|
|
#include <optional>
|
|
|
|
export module eu07.gl.query;
|
|
import eu07.gl.object;
|
|
|
|
export {
|
|
|
|
|
|
namespace gl
|
|
{
|
|
class query : public object
|
|
{
|
|
public:
|
|
enum targets
|
|
{
|
|
SAMPLES_PASSED = 0,
|
|
ANY_SAMPLES_PASSED,
|
|
ANY_SAMPLES_PASSED_CONSERVATIVE,
|
|
PRIMITIVES_GENERATED,
|
|
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN,
|
|
TIME_ELAPSED
|
|
};
|
|
|
|
private:
|
|
targets target;
|
|
thread_local static query* active_queries[6];
|
|
|
|
protected:
|
|
GLenum glenum_target(targets target);
|
|
|
|
public:
|
|
query(targets target);
|
|
~query();
|
|
|
|
void begin();
|
|
void end();
|
|
|
|
std::optional<int64_t> result();
|
|
};
|
|
}
|
|
|
|
} // export
|