Mercurial > mm7
comparison mm7_4.cpp @ 1640:afc1c3514dd5
Some common code from ODM and BLV RenderParams moved to IndoorCameraD3D
author | Nomad |
---|---|
date | Tue, 17 Sep 2013 17:40:59 +0200 |
parents | ccde94f02b75 |
children | 7182930263b3 |
comparison
equal
deleted
inserted
replaced
1639:b60ddd777d50 | 1640:afc1c3514dd5 |
---|---|
428 { | 428 { |
429 // float X.Yf -> int XXXX YYYY | 429 // float X.Yf -> int XXXX YYYY |
430 int left = floorf((val - 0.5f) + 0.5f); | 430 int left = floorf((val - 0.5f) + 0.5f); |
431 int right = floorf((val - left) * 65536.0f); | 431 int right = floorf((val - left) * 65536.0f); |
432 return (left << 16) | right; | 432 return (left << 16) | right; |
433 } | |
434 | |
435 int fixpoint_from_int(int lhv, int rhv) | |
436 { | |
437 return (lhv << 16) | rhv; | |
433 } | 438 } |
434 | 439 |
435 //----- (00491E3A) -------------------------------------------------------- | 440 //----- (00491E3A) -------------------------------------------------------- |
436 void sub_491E3A() | 441 void sub_491E3A() |
437 { | 442 { |