Lots of stuff (Big ones are cam and frame initial features)
There is now a 2D camera in the workspace! We have a basic 'Frame' definition. It doesn't have any interaction yet... I started to define spacial math, mostly for doing conversion and getting a grounding on pixel/points/cm reference. The world space is in cm.
This commit is contained in:
@ -1,25 +1,37 @@
|
||||
package sectr
|
||||
|
||||
import "core:math/linalg"
|
||||
|
||||
Vec2 :: linalg.Vector2f32
|
||||
Vec3 :: linalg.Vector3f32
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
when false {
|
||||
// TODO(Ed) : Evaluate if this is needed
|
||||
|
||||
vec2 :: vec2_f32
|
||||
vec2_f32 :: struct #raw_union {
|
||||
Vec2 :: Vec2_f32
|
||||
Vec2_f32 :: struct #raw_union {
|
||||
basis : [2] f32,
|
||||
using components : struct {
|
||||
x, y : f32
|
||||
}
|
||||
}
|
||||
|
||||
vec3 :: vec3_f32
|
||||
vec3_f32 :: struct #raw_union {
|
||||
// make_vec2 :: proc ( x, y : f32 ) {
|
||||
|
||||
// }
|
||||
|
||||
Vec3 :: Vec3_f32
|
||||
Vec3_f32 :: struct #raw_union {
|
||||
basis : [3] f32,
|
||||
using components : struct {
|
||||
x, y, z : f32
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user