ui improvements and texture tests
This commit is contained in:
@@ -15,4 +15,8 @@ namespace VISEQ::HELPER{
|
||||
float rotation = Vector2Angle((Vector2){1,0}, (end - start)) * RAD2DEG;
|
||||
DrawTextPro(GetFontDefault(), text.c_str(), text_position, (Vector2){0,0}, rotation, size, 2.0f, col);
|
||||
}
|
||||
|
||||
inline float GetRotation(Vec2Df start, Vec2Df end){
|
||||
return Vector2Angle((Vector2){1,0}, (end - start)) * RAD2DEG;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user