feat: Update ShaderManager to fully qualify ShaderPaths with sdl3cpp::services namespace

This commit is contained in:
2026-01-04 13:58:03 +00:00
parent a5555cf1d8
commit caf8d5402f
3 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ ShaderManager::ShaderManager(lua_State* L) : L_(L) {
sdl3cpp::logging::TraceGuard trace;
}
std::unordered_map<std::string, services::ShaderPaths> ShaderManager::LoadShaderPathsMap() {
std::unordered_map<std::string, sdl3cpp::services::ShaderPaths> ShaderManager::LoadShaderPathsMap() {
lua_getglobal(L_, "get_shader_paths");
if (!lua_isfunction(L_, -1)) {
lua_pop(L_, 1);
@@ -46,7 +46,7 @@ std::unordered_map<std::string, services::ShaderPaths> ShaderManager::LoadShader
return shaderMap;
}
services::ShaderPaths ShaderManager::ReadShaderPathsTable(int index) {
sdl3cpp::services::ShaderPaths ShaderManager::ReadShaderPathsTable(int index) {
ShaderPaths paths;
int absIndex = lua_absindex(L_, index);

View File

@@ -12,12 +12,12 @@ class ShaderManager {
public:
explicit ShaderManager(lua_State* L);
std::unordered_map<std::string, services::ShaderPaths> LoadShaderPathsMap();
std::unordered_map<std::string, sdl3cpp::services::ShaderPaths> LoadShaderPathsMap();
private:
lua_State* L_;
services::ShaderPaths ReadShaderPathsTable(int index);
sdl3cpp::services::ShaderPaths ReadShaderPathsTable(int index);
std::string GetLuaError();
};

View File

@@ -3,7 +3,7 @@
#include <string>
#include <array>
namespace sdl3cpp {
namespace sdl3cpp::services {
/**
* @brief Shader file paths for a shader program.
@@ -24,4 +24,4 @@ struct RenderCommand {
std::array<float, 16> modelMatrix;
};
} // namespace sdl3cpp
} // namespace sdl3cpp::services