|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Implementation of the material / .esshader entry points. More...
#include "MaterialBindings.hpp"#include "ActiveContext.hpp"#include "../core/Log.hpp"#include "../renderer/store/MaterialStore.hpp"#include "../renderer/frame/RenderContext.hpp"#include "../renderer/rhi/Shader.hpp"#include "../renderer/rhi/Texture.hpp"#include "../resource/ResourceManager.hpp"#include "../resource/ShaderParser.hpp"#include <algorithm>#include <cstdlib>
Go to the source code of this file.
Namespaces | |
| namespace | esengine |
Macros | |
| #define | g_renderContext (ctx().tryGet<RenderContext>()) |
| #define | g_resourceManager (ctx().tryGet<resource::ResourceManager>()) |
Functions | |
| static EstellaContext & | esengine::ctx () |
| u32 | esengine::material_compileEsshader (const std::string &source, const std::string &featuresCsv) |
| void | esengine::material_define (u32 materialId, u32 shaderHandle, u32 blendMode, u32 flags, i32 depthBias) |
| void | esengine::material_setUniform (u32 materialId, const std::string &name, u32 arity, f32 v0, f32 v1, f32 v2, f32 v3) |
| void | esengine::material_setTexture (u32 materialId, const std::string &name, u32 textureHandle) |
| void | esengine::material_undefine (u32 materialId) |
Implementation of the material / .esshader entry points.
Definition in file MaterialBindings.cpp.
| #define g_renderContext (ctx().tryGet<RenderContext>()) |
Definition at line 26 of file MaterialBindings.cpp.
| #define g_resourceManager (ctx().tryGet<resource::ResourceManager>()) |
Definition at line 27 of file MaterialBindings.cpp.