mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-27 15:14:58 +00:00
28 lines
817 B
C++
28 lines
817 B
C++
#include "null_gui_service.hpp"
|
|
|
|
#include "../interfaces/gui_types.hpp"
|
|
|
|
#include <string>
|
|
|
|
namespace sdl3cpp::services::impl {
|
|
|
|
NullGuiService::NullGuiService(std::shared_ptr<ILogger> logger)
|
|
: logger_(std::move(logger)) {
|
|
if (logger_) {
|
|
logger_->Trace("NullGuiService", "NullGuiService");
|
|
}
|
|
}
|
|
|
|
void NullGuiService::PrepareFrame(const std::vector<GuiCommand>& commands,
|
|
uint32_t width,
|
|
uint32_t height) {
|
|
if (logger_) {
|
|
logger_->Trace("NullGuiService", "PrepareFrame",
|
|
"commands.size=" + std::to_string(commands.size()) +
|
|
", width=" + std::to_string(width) +
|
|
", height=" + std::to_string(height));
|
|
}
|
|
}
|
|
|
|
} // namespace sdl3cpp::services::impl
|