| 724 | } |
| 725 | |
| 726 | void zUIRenderAll() |
| 727 | { |
| 728 | // non-matching: floats are epic |
| 729 | |
| 730 | ushift += 0.05f; |
| 731 | |
| 732 | if (ushift >= 2.0f) |
| 733 | { |
| 734 | ushift -= 2.0f; |
| 735 | } |
| 736 | |
| 737 | if (!sSortedCount) |
| 738 | { |
| 739 | zSceneForAllBase(zUIRenderIteratorInsert, eBaseTypeUI, NULL); |
| 740 | zSceneForAllBase(zUIRenderIteratorInsert, eBaseTypeUIFont, NULL); |
| 741 | |
| 742 | if (sSortedCount > 1) |
| 743 | { |
| 744 | qsort(sSorted, sSortedCount, sizeof(_zUI*), iRenderQSort_Face); |
| 745 | } |
| 746 | } |
| 747 | |
| 748 | bool rendering_models = false; |
| 749 | |
| 750 | for (S32 i = 0; i < (S32)sSortedCount; i++) |
| 751 | { |
| 752 | if (xEntIsVisible(sSorted[i])) |
| 753 | { |
| 754 | if (sSorted[i]->baseType == eBaseTypeUI) |
| 755 | { |
| 756 | if (!rendering_models && !sSorted[i]->sasset->textureID) |
| 757 | { |
| 758 | zRenderState(SDRS_AlphaModels); |
| 759 | rendering_models = true; |
| 760 | } |
| 761 | |
| 762 | zUI_Render(sSorted[i]); |
| 763 | } |
| 764 | else |
| 765 | { |
| 766 | if (zGameIsPaused()) |
| 767 | { |
| 768 | if (!(((zUIFontAsset*)sSorted[i]->sasset)->uiFontFlags & 0x100)) |
| 769 | { |
| 770 | zUIFont_Render(sSorted[i]); |
| 771 | } |
| 772 | } |
| 773 | else |
| 774 | { |
| 775 | zUIFont_Render(sSorted[i]); |
| 776 | } |
| 777 | } |
| 778 | } |
| 779 | } |
| 780 | |
| 781 | debug_render(); |
| 782 | } |
| 783 |
no test coverage detected