Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132//// Created by kam on 9/14/26.//
#pragma once
#include <any>
#include "types.h"
namespace Snail { class Uniform { public: enum class Type { S32, F32, Bool, Vec3, Mat4 };
Type type; std::any value; s32 id;
explicit Uniform(s32 shader, const char* name, s32 value); explicit Uniform(s32 shader, const char* name, f32 value); explicit Uniform(s32 shader, const char* name, bool value); explicit Uniform(s32 shader, const char* name, vec3 value); explicit Uniform(s32 shader, const char* name, mat4 value); };}