| version 1.2 | | version 1.3 |
|---|
| | |
| * Drawing routines | | * Drawing routines |
| * | | * |
| * $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/09/21 04:05:54 donut | | * Revision 1.2 1999/09/21 04:05:54 donut |
| * mostly complete OGL implementation (still needs bitmap handling (reticle), and door/fan textures are corrupt) | | * mostly complete OGL implementation (still needs bitmap handling (reticle), and door/fan textures are corrupt) |
| * | | * |
| | |
| flat_drawer_ptr = (flat_drawer)?flat_drawer:gr_upoly_tmap; | | flat_drawer_ptr = (flat_drawer)?flat_drawer:gr_upoly_tmap; |
| line_drawer_ptr = (line_drawer)?line_drawer:gr_line; | | line_drawer_ptr = (line_drawer)?line_drawer:gr_line; |
| } | | } |
| | | #ifndef OGL |
| //deal with a clipped line | | //deal with a clipped line |
| bool must_clip_line(g3s_point *p0,g3s_point *p1,ubyte codes_or) | | bool must_clip_line(g3s_point *p0,g3s_point *p1,ubyte codes_or) |
| { | | { |
| | |
| | | |
| return (bool) (*line_drawer_ptr)(p0->p3_sx,p0->p3_sy,p1->p3_sx,p1->p3_sy); | | return (bool) (*line_drawer_ptr)(p0->p3_sx,p0->p3_sy,p1->p3_sx,p1->p3_sy); |
| } | | } |
| | | #endif |
| | | |
| //returns true if a plane is facing the viewer. takes the unrotated surface | | //returns true if a plane is facing the viewer. takes the unrotated surface |
| //normal of the plane, and a point on it. The normal need not be normalized | | //normal of the plane, and a point on it. The normal need not be normalized |
| | |
| int checkmuldiv(fix *r,fix a,fix b,fix c); | | int checkmuldiv(fix *r,fix a,fix b,fix c); |
| #endif | | #endif |
| | | |
| | | #ifndef OGL |
| //draw a sortof sphere - i.e., the 2d radius is proportional to the 3d | | //draw a sortof sphere - i.e., the 2d radius is proportional to the 3d |
| //radius, but not to the distance from the eye | | //radius, but not to the distance from the eye |
| int g3_draw_sphere(g3s_point *pnt,fix rad) | | int g3_draw_sphere(g3s_point *pnt,fix rad) |
| | |
| | | |
| return 0; | | return 0; |
| } | | } |
| | | #endif |
| | | |