core/vgui/internals/vgui_draw_line.h
Go to the documentation of this file.
00001 // This is core/vgui/internals/vgui_draw_line.h
00002 #ifndef vgui_draw_line_h_
00003 #define vgui_draw_line_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \author fsm
00010 // \brief  Draw infinite lines.
00011 
00012 //------------------------------------------------------------------------------
00013 
00014 //: draw infinite line spanned in space by two points.
00015 // From total projection matrix $T = P \cdot M$.
00016 bool vgui_draw_line(double const T[4][4], double const X[4], double const Y[4]);
00017 
00018 //: draw infinite line spanned in space by two points.
00019 // From projection and modelview matrices, P and M.
00020 bool vgui_draw_line(double const P[4][4], double const M[4][4], double const X[4], double const Y[4]);
00021 
00022 //: draw infinite line spanned in space by two points (easy)
00023 bool vgui_draw_line(double const X[4], double const Y[4]);
00024 
00025 //------------------------------------------------------------------------------
00026 
00027 //: draw infinite line $ax+by+cw=0, z=0$ from total projection matrix $T=P \cdot M$.
00028 bool vgui_draw_line(double const T[4][4], double a, double b, double c);
00029 
00030 //: draw infinite line $ax+by+cw=0, z=0$ from projection and modelview matrices, P and M.
00031 bool vgui_draw_line(double const P[4][4], double const M[4][4], double a, double b, double c);
00032 
00033 //: draw infinite line $ax+by+cw=0, z=0$ (easy)
00034 bool vgui_draw_line(double a, double b, double c);
00035 
00036 #endif // vgui_draw_line_h_