MCPcopy Create free account
hub / github.com/dfranx/SHADERed / SearchShaders

Method SearchShaders

src/SHADERed/Objects/WebAPI.cpp:428–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 m_updateThread = new std::thread(checkUpdates, onUpdate);
427 }
428 void WebAPI::SearchShaders(const std::string& query, int page, const std::string& sort, const std::string& language, const std::string& owner, bool excludeGodotShaders, bool includeCPPShaders, bool includeRustShaders, std::function<void(const std::vector<ShaderResult>&)> onFetch)
429 {
430 Logger::Get().Log("Searching shaders with WebAPI");
431
432 if (m_shadersThread != nullptr && m_shadersThread->joinable())
433 m_shadersThread->join();
434 delete m_shadersThread;
435 m_shadersThread = new std::thread(searchShaders, query, page, sort, language, owner, excludeGodotShaders, includeCPPShaders, includeRustShaders, onFetch);
436 }
437 void WebAPI::AllocateShaderThumbnail(const std::string& id, std::function<void(unsigned char*, int, int)> onFetch)
438 {
439 if (m_thumbnailThread != nullptr && m_thumbnailThread->joinable())

Callers 1

m_onlineSearchShadersMethod · 0.80

Calls 1

LogMethod · 0.80

Tested by

no test coverage detected