mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
feat: Update ShaderManager to fully qualify ShaderPaths with sdl3cpp::services namespace
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user