hi all,
im trying to port a unity UI code into a straight C++ OpenGL rendering, and i am in the part where i need to integrate the animation/transition part of the UI.
Im not really much of a unity developer, but i found out that animations in unity uses some form of a curve where you can set control points(keyframe) for interpolation, etc.
Do you guys know what the formula used for animation curve in unity?
doing a little google myself returns the same two stackoverflow result and the codes samples are hard to comprehend.
basically, what im trying to achieve is, to simulate unity's animation curve and get current value based on time,
something like
interpolator.AddKeyframe(time, value);
int value = interpolator.GetValue(time);