Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
07debd6c
Commit
07debd6c
authored
Nov 28, 2011
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix
parent
9817252b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
17 deletions
+71
-17
window.cpp
modules/highgui/src/window.cpp
+0
-15
window_gtk.cpp
modules/highgui/src/window_gtk.cpp
+69
-0
window_w32.cpp
modules/highgui/src/window_w32.cpp
+2
-2
No files found.
modules/highgui/src/window.cpp
View file @
07debd6c
...
@@ -609,21 +609,6 @@ void cv::clearTextOpenGl(const string& winname)
...
@@ -609,21 +609,6 @@ void cv::clearTextOpenGl(const string& winname)
cvClearTextOpenGl
(
winname
.
c_str
());
cvClearTextOpenGl
(
winname
.
c_str
());
}
}
#if (!defined WIN32 && !defined _WIN32) || defined HAVE_QT
CV_IMPL
void
cvAddTextOpenGl
(
const
char
*
,
const
char
*
,
CvPoint
,
CvScalar
,
const
char
*
,
int
,
int
,
int
)
{
CV_Error
(
CV_OpenGlNotSupported
,
"This function works only under WIN32"
);
}
CV_IMPL
void
cvClearTextOpenGl
(
const
char
*
)
{
CV_Error
(
CV_OpenGlNotSupported
,
"This function works only under WIN32"
);
}
#endif // (!defined WIN32 && !defined _WIN32) || defined HAVE_QT
// Without OpenGL
// Without OpenGL
#ifndef HAVE_OPENGL
#ifndef HAVE_OPENGL
...
...
modules/highgui/src/window_gtk.cpp
View file @
07debd6c
...
@@ -1142,6 +1142,75 @@ CV_IMPL void cvSetOpenGlContext(const char* name)
...
@@ -1142,6 +1142,75 @@ CV_IMPL void cvSetOpenGlContext(const char* name)
__END__
;
__END__
;
}
}
CV_IMPL
void
cvAddTextOpenGl
(
const
char
*
name
,
const
char
*
text
,
CvPoint
org
,
CvScalar
color
,
const
char
*
fontName
,
int
fontHeight
,
int
fontWeight
,
int
fontStyle
)
{
CV_FUNCNAME
(
"cvAddTextOpenGl"
);
__BEGIN__
;
CV_ERROR
(
CV_OpenGlNotSupported
,
"Not Implemented"
);
__END__
;
/*__BEGIN__;
CvWindow* window;
if(!name)
CV_ERROR( CV_StsNullPtr, "NULL name string" );
window = icvFindWindowByName( name );
if (!window)
CV_ERROR( CV_StsNullPtr, "NULL window" );
if (!window->useGl)
CV_ERROR( CV_OpenGlNotSupported, "Window doesn't support OpenGL" );
if (!wglMakeCurrent(window->dc, window->hGLRC))
CV_ERROR( CV_OpenGlApiCallError, "Can't Activate The GL Rendering Context" );
if (!window->glText)
window->glText = new OpenGlText(window->dc);
window->glText->add(text, org, color, fontName, fontHeight, fontWeight, fontStyle);
InvalidateRect(window->hwnd, 0, 0);
__END__;*/
}
CV_IMPL
void
cvClearTextOpenGl
(
const
char
*
name
)
{
CV_FUNCNAME
(
"cvClearTextOpenGl"
);
__BEGIN__
;
CV_ERROR
(
CV_OpenGlNotSupported
,
"Not Implemented"
);
__END__
;
/*__BEGIN__;
CvWindow* window;
if(!name)
CV_ERROR( CV_StsNullPtr, "NULL name string" );
window = icvFindWindowByName( name );
if (!window)
CV_ERROR( CV_StsNullPtr, "NULL window" );
if (!window->useGl)
CV_ERROR( CV_OpenGlNotSupported, "Window doesn't support OpenGL" );
if (!wglMakeCurrent(window->dc, window->hGLRC))
CV_ERROR( CV_OpenGlApiCallError, "Can't Activate The GL Rendering Context" );
if (window->glText)
{
window->glText->clear();
InvalidateRect(window->hwnd, 0, 0);
}
__END__;*/
}
CV_IMPL
void
cvUpdateWindow
(
const
char
*
name
)
CV_IMPL
void
cvUpdateWindow
(
const
char
*
name
)
{
{
CV_FUNCNAME
(
"cvUpdateWindow"
);
CV_FUNCNAME
(
"cvUpdateWindow"
);
...
...
modules/highgui/src/window_w32.cpp
View file @
07debd6c
...
@@ -1268,7 +1268,7 @@ CV_IMPL void cvSetOpenGlContext(const char* name)
...
@@ -1268,7 +1268,7 @@ CV_IMPL void cvSetOpenGlContext(const char* name)
CV_IMPL
void
cvAddTextOpenGl
(
const
char
*
name
,
const
char
*
text
,
CvPoint
org
,
CvScalar
color
,
const
char
*
fontName
,
int
fontHeight
,
int
fontWeight
,
int
fontStyle
)
CV_IMPL
void
cvAddTextOpenGl
(
const
char
*
name
,
const
char
*
text
,
CvPoint
org
,
CvScalar
color
,
const
char
*
fontName
,
int
fontHeight
,
int
fontWeight
,
int
fontStyle
)
{
{
CV_FUNCNAME
(
"cv
SetOpenGlContext
"
);
CV_FUNCNAME
(
"cv
AddTextOpenGl
"
);
__BEGIN__
;
__BEGIN__
;
...
@@ -1299,7 +1299,7 @@ CV_IMPL void cvAddTextOpenGl(const char* name, const char* text, CvPoint org, Cv
...
@@ -1299,7 +1299,7 @@ CV_IMPL void cvAddTextOpenGl(const char* name, const char* text, CvPoint org, Cv
CV_IMPL
void
cvClearTextOpenGl
(
const
char
*
name
)
CV_IMPL
void
cvClearTextOpenGl
(
const
char
*
name
)
{
{
CV_FUNCNAME
(
"cv
SetOpenGlContext
"
);
CV_FUNCNAME
(
"cv
ClearTextOpenGl
"
);
__BEGIN__
;
__BEGIN__
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment