RobLoach / raylib-duktape

zlib License
32 stars 0 forks source link

Struct Objects #2

Open RobLoach opened 5 years ago

RobLoach commented 5 years ago

Switch to full blown classes instead of object structs.

RobLoach commented 2 years ago
struct vec3 {
    float x{};
    float y{};
    float z{};
};
    dukglue_register_property(ctx, &vec3::x, "x");