version 1.1 | | version 1.2 |
---|
| | |
* Graphical routines for drawing lines. | | * Graphical routines for drawing lines. |
* | | * |
* $Log$ | | * $Log$ |
* Revision 1.1 1999/06/14 21:57:25 donut | | * Revision 1.2 1999/09/30 23:02:27 donut |
* Initial revision | | * opengl direct support for ingame and normal menus, fonts as textures, and automap support |
| | * |
| | * Revision 1.1.1.1 1999/06/14 21:57:25 donut |
| | * Import of d1x 1.37 source. |
* | | * |
* Revision 1.10 1994/11/18 22:50:02 john | | * Revision 1.10 1994/11/18 22:50:02 john |
* Changed shorts to ints in parameters. | | * Changed shorts to ints in parameters. |
| | |
{ | | { |
int a1,b1,a2,b2; | | int a1,b1,a2,b2; |
a1 = f2i(_a1); b1 = f2i(_b1); a2 = f2i(_a2); b2 = f2i(_b2); | | a1 = f2i(_a1); b1 = f2i(_b1); a2 = f2i(_a2); b2 = f2i(_b2); |
#ifdef __MSDOS__ | | |
switch(TYPE) | | switch(TYPE) |
{ | | { |
case BM_LINEAR: | | #ifdef OGL |
| | case BM_OGL: |
| | ogl_ulinec(a1,b1,a2,b2,COLOR); |
| | return 0; |
#endif | | #endif |
| | case BM_LINEAR: |
#ifdef NO_ASM | | #ifdef NO_ASM |
gr_universal_uline( a1,b1,a2,b2); | | gr_universal_uline( a1,b1,a2,b2); |
#else | | #else |
| | |
default: | | default: |
gr_universal_uline( a1, b1, a2, b2 ); | | gr_universal_uline( a1, b1, a2, b2 ); |
return 0; | | return 0; |
} | | |
#endif | | #endif |
| | } |
| | return 2; |
} | | } |
| | |
// Returns 0 if drawn with no clipping, 1 if drawn but clipped, and | | // Returns 0 if drawn with no clipping, 1 if drawn but clipped, and |