version 1.2 | | version 1.3 |
---|
| | |
* Graphical routines for drawing rectangles. | | * Graphical routines for drawing rectangles. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.3 1999/09/30 23:02:27 donut |
| | * opengl direct support for ingame and normal menus, fonts as textures, and automap support |
| | * |
* Revision 1.2 1999/08/05 22:53:40 sekmu | | * Revision 1.2 1999/08/05 22:53:40 sekmu |
* | | * |
* D3D patch(es) from ADB | | * D3D patch(es) from ADB |
| | |
{ | | { |
int i; | | int i; |
| | |
| | #ifdef OGL |
| | if (TYPE == BM_OGL) { |
| | ogl_urect(left,top,right,bot); |
| | return; |
| | } |
| | #endif |
#ifdef D1XD3D | | #ifdef D1XD3D |
if (TYPE == BM_DIRECTX) { | | if (TYPE == BM_DIRECTX) { |
if (left <= right && top <= bot) | | if (left <= right && top <= bot) |
| | |
{ | | { |
int i; | | int i; |
| | |
| | #ifdef OGL |
| | if (TYPE == BM_OGL) { |
| | ogl_urect(left,top,right,bot); |
| | return; |
| | } |
| | #endif |
#ifdef D1XD3D | | #ifdef D1XD3D |
if (TYPE == BM_DIRECTX) { | | if (TYPE == BM_DIRECTX) { |
if (left <= right && top <= bot) | | if (left <= right && top <= bot) |
| | |
for ( i=top; i<=bot; i++ ) | | for ( i=top; i<=bot; i++ ) |
gr_scanline( left, right, i ); | | gr_scanline( left, right, i ); |
} | | } |
| | |