#include #include #ifdef LIGHT_PLATFORM_WINDOWS #include #include #endif #include namespace Light { Scope RenderCommand::create( GLFWwindow *windowHandle, Ref sharedContext ) { switch (GraphicsContext::get_graphics_api()) { case GraphicsAPI::OpenGL: return create_scope(windowHandle); case GraphicsAPI::DirectX: lt_win(return create_scope( (std::static_pointer_cast)(sharedContext) );) default: lt_assert( false, "Invalid/unsupported 'GraphicsAPI' {}", static_cast(GraphicsContext::get_graphics_api()) ); return nullptr; } } } // namespace Light