| 859 | } |
| 860 | } |
| 861 | void rend_StartFrame(int x1, int y1, int x2, int y2, int clear_flags) { |
| 862 | switch (Renderer_type) { |
| 863 | case RENDERER_SOFTWARE_16BIT: |
| 864 | case RENDERER_SOFTWARE_8BIT: |
| 865 | #ifdef USE_SOFTWARE |
| 866 | tex_StartFrame(x1, y1, x2, y2); |
| 867 | #endif |
| 868 | break; |
| 869 | case RENDERER_OPENGL: |
| 870 | #ifdef USE_OPENGL |
| 871 | opengl_BeginFrame(x1, y1, x2, y2, clear_flags); |
| 872 | #endif |
| 873 | break; |
| 874 | case RENDERER_GLIDE: |
| 875 | #ifdef USE_GLIDE |
| 876 | glide_BeginFrame(x1, y1, x2, y2, clear_flags); |
| 877 | #endif |
| 878 | break; |
| 879 | case RENDERER_DIRECT3D: |
| 880 | #ifdef USE_D3D |
| 881 | d3d_BeginFrame(x1, y1, x2, y2, clear_flags); |
| 882 | #endif |
| 883 | break; |
| 884 | default: |
| 885 | Int3(); |
| 886 | break; |
| 887 | } |
| 888 | } |
| 889 | // Flips the screen |
| 890 | void rend_Flip() { |
| 891 | switch (Renderer_type) { |
no test coverage detected