TRX/lib/glrage/GLRage.hpp

25 lines
338 B
C++
Raw Normal View History

2021-11-12 20:03:04 +01:00
#pragma once
#include "ContextImpl.hpp"
namespace glrage {
#ifdef _LIB
#define GLRAPI
#elif defined(GLR_EXPORTS)
#define GLRAPI __declspec(dllexport)
#else
#define GLRAPI __declspec(dllimport)
#endif
2021-11-14 23:59:19 +01:00
class GLRage
{
2021-11-12 20:03:04 +01:00
public:
static GLRAPI Context& getContext();
private:
static ContextImpl m_context;
};
} // namespace glrage