draw a sortof sphere - i.e., the 2d radius is proportional to the 3d radius, but not to the distance from the eye
| 234 | // draw a sortof sphere - i.e., the 2d radius is proportional to the 3d |
| 235 | // radius, but not to the distance from the eye |
| 236 | void g3_DrawSphere(ddgr_color color, g3Point *pnt, float rad) { |
| 237 | if (!(pnt->p3_codes & CC_BEHIND)) { |
| 238 | if (!(pnt->p3_flags & PF_PROJECTED)) |
| 239 | g3_ProjectPoint(pnt); |
| 240 | |
| 241 | rend_FillCircle(color, pnt->p3_sx, pnt->p3_sy, (rad * Matrix_scale.x * Window_w2 / pnt->p3_z)); |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | // draws a bitmap with the specified 3d width & height |
| 246 | // If offsets are not -1, then the blitter draws not from the upper left hand |
no test coverage detected