added addTextOpenGl function
This commit is contained in:
@@ -151,6 +151,11 @@ CV_EXPORTS void pointCloudShow(const string& winname, const gpu::GlCamera& camer
|
||||
CV_EXPORTS void pointCloudShow(const string& winname, const gpu::GlCamera& camera, InputArray points,
|
||||
InputArray colors = noArray());
|
||||
|
||||
CV_EXPORTS void addTextOpenGl(const string& winname, const string& text, Point org, Scalar color = Scalar::all(255),
|
||||
const string& fontName = "Courier New", int fontHeight = 12,
|
||||
int fontWeight = CV_FONT_NORMAL, int fontStyle = CV_STYLE_NORMAL);
|
||||
CV_EXPORTS void clearTextOpenGl(const string& winname);
|
||||
|
||||
//Only for Qt
|
||||
|
||||
CV_EXPORTS CvFont fontQt(const string& nameFont, int pointSize=-1,
|
||||
|
||||
@@ -63,7 +63,8 @@ enum { CV_FONT_LIGHT = 25,//QFont::Light,
|
||||
|
||||
enum { CV_STYLE_NORMAL = 0,//QFont::StyleNormal,
|
||||
CV_STYLE_ITALIC = 1,//QFont::StyleItalic,
|
||||
CV_STYLE_OBLIQUE = 2 //QFont::StyleOblique
|
||||
CV_STYLE_OBLIQUE = 2,//QFont::StyleOblique
|
||||
CV_STYLE_UNDERLINE = 4
|
||||
};
|
||||
/* ---------*/
|
||||
|
||||
@@ -257,6 +258,12 @@ CVAPI(void) cvCreateOpenGLCallback( const char* window_name, CvOpenGLCallback ca
|
||||
CVAPI(void) cvSetOpenGlContext(const char* window_name);
|
||||
CVAPI(void) cvUpdateWindow(const char* window_name);
|
||||
|
||||
CVAPI(void) cvAddTextOpenGl(const char* winname, const char* text, CvPoint org, CvScalar color CV_DEFAULT(cvScalar(255.0, 255.0, 255.0, 255.0)),
|
||||
const char* fontName CV_DEFAULT("Courier New"), int fontHeight CV_DEFAULT(12),
|
||||
int fontWeight CV_DEFAULT(CV_FONT_NORMAL), int fontStyle CV_DEFAULT(CV_STYLE_NORMAL));
|
||||
|
||||
CVAPI(void) cvClearTextOpenGl(const char* winname);
|
||||
|
||||
/****************************************************************************************\
|
||||
* Working with Video Files and Cameras *
|
||||
\****************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user