00001 #ifndef OSDL_BEZIER_H_ 00002 #define OSDL_BEZIER_H_ 00003 00004 00005 #include "OSDLPixel.h" // for Pixels::Pixel 00006 #include "OSDLPolygon.h" // for listPoint2D 00007 00008 00009 namespace OSDL 00010 { 00011 00012 00013 namespace Video 00014 { 00015 00016 00017 // Bezier curves are drawn in Surfaces. 00018 class Surface ; 00019 00020 00021 namespace TwoDimensional 00022 { 00023 00024 00060 OSDL_DLL bool drawBezierCurve( 00061 Surface & targetSurface, 00062 const listPoint2D & controlPoints, 00063 Ceylan::Uint16 numberOfSteps, 00064 Pixels::ColorElement red, 00065 Pixels::ColorElement green, 00066 Pixels::ColorElement blue, 00067 Pixels::ColorElement alpha = Pixels::AlphaOpaque ) 00068 throw() ; 00069 00070 00071 00101 OSDL_DLL bool drawBezierCurve( 00102 Surface & targetSurface, 00103 const listPoint2D & controlPoints, 00104 Ceylan::Uint16 numberOfSteps, 00105 Pixels::ColorDefinition colorDef ) throw() ; 00106 00107 00108 } 00109 00110 } 00111 00112 } 00113 00114 00115 #endif // OSDL_BEZIER_H_ 00116