Proper frametimes handling

This commit is contained in:
2022-08-03 15:51:56 +02:00
parent 374cc9fa9a
commit 5d630b66f0
2 changed files with 17 additions and 5 deletions

View File

@ -10,8 +10,7 @@ struct xyz {
int x, y, z;
};
/*** Thanks to <https://gist.github.com/jordwest/8a12196436ebcf8df98a2745251915b5> for the maths! ***/
// <https://gist.github.com/jordwest/8a12196436ebcf8df98a2745251915b5>
struct xyz OrthoToIso ( int x, int y, int z, int Multiply ) {
struct xyz xyz;
xyz.x = x * 1 * 0.5 * Multiply + z * -1 * 0.5 * Multiply;
@ -20,5 +19,3 @@ struct xyz OrthoToIso ( int x, int y, int z, int Multiply ) {
return xyz;
}
/*** ******************************************************************************************** ***/