mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
17 lines
358 B
C++
17 lines
358 B
C++
#pragma once
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
enum class logtype : unsigned int {
|
|
shader
|
|
};
|
|
|
|
// gl::shader reports #texture/#param parse errors through ErrorLog; the validator counts them as failures
|
|
inline bool ErrorLogged = false;
|
|
|
|
inline void ErrorLog(const std::string &str, logtype const)
|
|
{
|
|
std::cerr << str << std::endl;
|
|
ErrorLogged = true;
|
|
}
|