zengine-old/engine/3rdparty/zlib/test/refl_01.cpp

16 lines
293 B
C++
Raw Normal View History

2024-04-11 10:13:15 +08:00
#include "refl/vertex.h"
2024-04-16 16:17:13 +08:00
#include <benchmark/benchmark.h>
auto cls = &TypeInfo<vec3>::StaticClass;
2024-06-14 22:24:52 +08:00
int main() {
vec3 v;
float x = sizeof(*cls);
v.x = 333;
v.y = 334;
v.z = 335;
v.name = "336";
void* ptr;
auto rx = Any(ptr);
auto ov = cls->New(&v);
//ov.Get("FName", x);
return -1;
}