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
35e69a1e
Commit
35e69a1e
authored
Nov 27, 2011
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed build with Qt
parent
467f9364
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
CMakeLists.txt
CMakeLists.txt
+1
-1
window.cpp
modules/highgui/src/window.cpp
+6
-2
window_w32.cpp
modules/highgui/src/window_w32.cpp
+0
-8
No files found.
CMakeLists.txt
View file @
35e69a1e
...
@@ -1125,7 +1125,7 @@ if(WIN32)
...
@@ -1125,7 +1125,7 @@ if(WIN32)
endif
()
endif
()
endif
()
endif
()
if
(
WITH_OPENGL
)
if
(
WITH_OPENGL
AND NOT HAVE_QT_OPENGL
)
find_package
(
OpenGL QUIET
)
find_package
(
OpenGL QUIET
)
if
(
OPENGL_FOUND
)
if
(
OPENGL_FOUND
)
...
...
modules/highgui/src/window.cpp
View file @
35e69a1e
...
@@ -126,8 +126,9 @@ CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
...
@@ -126,8 +126,9 @@ CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
break
;
break
;
case
CV_WND_PROP_OPENGL
:
case
CV_WND_PROP_OPENGL
:
#if defined WIN32 || defined _WIN32
#if defined (HAVE_QT)
#elif defined WIN32 || defined _WIN32
return
cvGetOpenGlProp_W32
(
name
);
return
cvGetOpenGlProp_W32
(
name
);
#else
#else
return
-
1
;
return
-
1
;
...
@@ -137,6 +138,7 @@ CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
...
@@ -137,6 +138,7 @@ CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
default:
default:
return
-
1
;
return
-
1
;
}
}
return
-
1
;
}
}
void
cv
::
namedWindow
(
const
string
&
winname
,
int
flags
)
void
cv
::
namedWindow
(
const
string
&
winname
,
int
flags
)
...
@@ -591,10 +593,12 @@ void cv::pointCloudShow(const string& winname, const gpu::GlCamera& camera, Inpu
...
@@ -591,10 +593,12 @@ void cv::pointCloudShow(const string& winname, const gpu::GlCamera& camera, Inpu
#ifndef HAVE_OPENGL
#ifndef HAVE_OPENGL
#ifndef HAVE_QT
CV_IMPL
void
cvCreateOpenGLCallback
(
const
char
*
,
CvOpenGLCallback
,
void
*
,
double
,
double
,
double
)
CV_IMPL
void
cvCreateOpenGLCallback
(
const
char
*
,
CvOpenGLCallback
,
void
*
,
double
,
double
,
double
)
{
{
CV_Error
(
CV_OpenGlNotSupported
,
"The library is compiled without OpenGL support"
);
CV_Error
(
CV_OpenGlNotSupported
,
"The library is compiled without OpenGL support"
);
}
}
#endif
CV_IMPL
void
cvSetOpenGlContext
(
const
char
*
)
CV_IMPL
void
cvSetOpenGlContext
(
const
char
*
)
{
{
...
...
modules/highgui/src/window_w32.cpp
View file @
35e69a1e
...
@@ -581,14 +581,6 @@ double cvGetOpenGlProp_W32(const char* name)
...
@@ -581,14 +581,6 @@ double cvGetOpenGlProp_W32(const char* name)
typedef
ptrdiff_t
GLsizeiptr
;
typedef
ptrdiff_t
GLsizeiptr
;
#endif
#endif
#ifndef GL_BGR
#define GL_BGR 0x80E0
#endif
#ifndef GL_BGRA
#define GL_BGRA 0x80E1
#endif
namespace
namespace
{
{
typedef
void
(
APIENTRYP
PFNGLGENBUFFERSPROC
)
(
GLsizei
n
,
GLuint
*
buffers
);
typedef
void
(
APIENTRYP
PFNGLGENBUFFERSPROC
)
(
GLsizei
n
,
GLuint
*
buffers
);
...
...
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