#include #include #ifdef LIGHT_PLATFORM_WINDOWS #include #include #endif #include namespace Light { Scope RenderCommand::Create( GLFWwindow *windowHandle, Ref sharedContext ) { switch (GraphicsContext::GetGraphicsAPI()) { case GraphicsAPI::OpenGL: return CreateScope(windowHandle); case GraphicsAPI::DirectX: LT_WIN(return CreateScope( (std::static_pointer_cast)(sharedContext) );) default: ASSERT( false, "Invalid/unsupported 'GraphicsAPI' {}", static_cast(GraphicsContext::GetGraphicsAPI()) ); return nullptr; } } } // namespace Light