Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
MaterialBindings.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
15#pragma once
16
17
18#include "../core/Types.hpp"
19#include <string>
20
21namespace esengine {
22
32u32 material_compileEsshader(const std::string& source, const std::string& featuresCsv);
33
40void material_define(u32 materialId, u32 shaderHandle, u32 blendMode, u32 flags,
41 i32 depthBias);
42
45void material_setUniform(u32 materialId, const std::string& name, u32 arity,
46 f32 v0, f32 v1, f32 v2, f32 v3);
47
50void material_setTexture(u32 materialId, const std::string& name, u32 textureHandle);
51
52void material_undefine(u32 materialId);
53
54} // namespace esengine
Core type definitions and utilities for ESEngine.
void material_setUniform(u32 materialId, const std::string &name, u32 arity, f32 v0, f32 v1, f32 v2, f32 v3)
u32 material_compileEsshader(const std::string &source, const std::string &featuresCsv)
std::int32_t i32
Signed 32-bit integer.
Definition Types.hpp:54
void material_setTexture(u32 materialId, const std::string &name, u32 textureHandle)
void material_define(u32 materialId, u32 shaderHandle, u32 blendMode, u32 flags, i32 depthBias)
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45
void material_undefine(u32 materialId)
float f32
32-bit floating point
Definition Types.hpp:59