Takes a bitmap and blits it to the screen using linear frame buffer stuff X and Y are the destination X,Y
| 1948 | // Takes a bitmap and blits it to the screen using linear frame buffer stuff |
| 1949 | // X and Y are the destination X,Y |
| 1950 | void rend_CopyBitmapToFramebuffer(int bm_handle, int x, int y) { |
| 1951 | switch (Renderer_type) { |
| 1952 | case RENDERER_SOFTWARE_16BIT: |
| 1953 | case RENDERER_SOFTWARE_8BIT: |
| 1954 | // tex_GetRenderState (rstate); |
| 1955 | break; |
| 1956 | case RENDERER_GLIDE: |
| 1957 | #ifdef USE_GLIDE |
| 1958 | glide_CopyBitmapToFramebuffer(bm_handle, x, y); |
| 1959 | #endif |
| 1960 | break; |
| 1961 | case RENDERER_OPENGL: |
| 1962 | #ifdef USE_OPENGL |
| 1963 | opengl_CopyBitmapToFramebuffer(bm_handle, x, y); |
| 1964 | #endif |
| 1965 | break; |
| 1966 | case RENDERER_DIRECT3D: |
| 1967 | #ifdef USE_D3D |
| 1968 | d3d_CopyBitmapToFramebuffer(bm_handle, x, y); |
| 1969 | #endif |
| 1970 | break; |
| 1971 | default: |
| 1972 | mprintf(0, "Function not implemented for the lib!\n"); |
| 1973 | Int3(); |
| 1974 | break; |
| 1975 | } |
| 1976 | } |
| 1977 | // Gets a renderer ready for a framebuffer copy, or stops a framebuffer copy |
| 1978 | void rend_SetFrameBufferCopyState(bool state) { |
| 1979 | switch (Renderer_type) { |
nothing calls this directly
no test coverage detected