Minor - Improves scene editor and adds audio support - V13.1.0
Improves the scene editor by adding an inspector window to view and modify entity components. Adds audio component support with basic playback controls integrated into the inspector. Adds default audio files.
This commit is contained in:
@@ -110,6 +110,27 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnImGuiRender() override {
|
||||
ShaderType currentShader = GetActiveShader();
|
||||
int shaderIndex = static_cast<int>(currentShader);
|
||||
const char* shaderNames[] = {
|
||||
"CEL_SHADING",
|
||||
"LIGHTING",
|
||||
"NORMAL_MAPPING",
|
||||
"SPECULAR_MAPPING",
|
||||
"REFLECTION",
|
||||
"REFRACTION",
|
||||
"TEXTURE",
|
||||
"SKYBOX",
|
||||
"SUNLIGHT",
|
||||
"ALPHA_MAPPING"
|
||||
};
|
||||
|
||||
if (ImGui::Combo("Active Shader", &shaderIndex, shaderNames, IM_ARRAYSIZE(shaderNames))) {
|
||||
SetActiveShader(static_cast<ShaderType>(shaderIndex));
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
ShaderType m_activeShader;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user