Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
636bf3db
Commit
636bf3db
authored
14 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
A few fixes to GL interop support. (not yet working again)
parent
16a5b304
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bpl-subset
+1
-1
1 addition, 1 deletion
bpl-subset
doc/source/runtime.rst
+6
-0
6 additions, 0 deletions
doc/source/runtime.rst
examples/gl_interop_demo.py
+3
-3
3 additions, 3 deletions
examples/gl_interop_demo.py
with
10 additions
and
4 deletions
bpl-subset
@
19b13cae
Subproject commit
fe17a8572ec0fe5bec36460f4e5ec712c269a502
Subproject commit
19b13cae1f63e75dbf18b90020e4877639ab9f0e
This diff is collapsed.
Click to expand it.
doc/source/runtime.rst
+
6
−
0
View file @
636bf3db
...
@@ -710,6 +710,12 @@ with GL support. See :func:`have_gl`.
...
@@ -710,6 +710,12 @@ with GL support. See :func:`have_gl`.
Return *True* if PyOpenCL was compiled with OpenGL interoperability, otherwise *False*.
Return *True* if PyOpenCL was compiled with OpenGL interoperability, otherwise *False*.
.. function:: get_gl_sharing_context_properties()
Return a :class:`list` of :class:`context_properties` that will
allow a newly created context to share the currently active GL
context.
.. function:: get_apple_cgl_share_group()
.. function:: get_apple_cgl_share_group()
Get share group handle for current CGL context.
Get share group handle for current CGL context.
...
...
This diff is collapsed.
Click to expand it.
examples/gl_interop_demo.py
+
3
−
3
View file @
636bf3db
...
@@ -24,9 +24,9 @@ def initialize():
...
@@ -24,9 +24,9 @@ def initialize():
plats
=
cl
.
get_platforms
()
plats
=
cl
.
get_platforms
()
from
pyopencl.tools
import
get_gl_sharing_context_properties
from
pyopencl.tools
import
get_gl_sharing_context_properties
ctx
=
cl
.
Context
(
properties
=
props
ctx
=
cl
.
Context
(
properties
=
[
[(
ctx_prop
s
.
PLATFORM
,
plats
[
0
])]
(
cl
.
context_propertie
s
.
PLATFORM
,
plats
[
0
])]
+
get_gl_sharing_context_properties
())
+
get_gl_sharing_context_properties
())
glClearColor
(
1
,
1
,
1
,
1
)
glClearColor
(
1
,
1
,
1
,
1
)
glColor
(
0
,
0
,
1
)
glColor
(
0
,
0
,
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment