Re: Patch for OpenGL 3+ contexts via OSMesa
"Mike C. Fletcher" <[email protected]> Tue, 22 Jan 2019 22:54:46 -0500
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============8959018554479374991==
Content-Type: multipart/alternative;
boundary="------------6E0A84DBA476BF11E59F6804"
Content-Language: en-CA
This is a multi-part message in MIME format.
--------------6E0A84DBA476BF11E59F6804
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
On 2019-01-19 6:42 p.m., Matthew Matl wrote:
> Hi Mike,
>
> Big fan of PyOpenGL! Just wanted to offer this simple patch for the
> most recent version of master, which adds a handle for OSMesa's
> OSMesaCreateContextAttribs
> <https://github.com/anholt/mesa/blob/01e511233b24872b08bff862ff692dfb5b22c1f4/include/GL/osmesa.h#L167> function.
> This function allows for users to create OSMesa contexts with core
> profiles, which is hugely useful for supporting offscreen rendering
> with modern (>=3.3) shaders.
>
> My only concern is that this function is new in Mesa 11.2, which was
> released on April 4, 2016, so this might not work with older Mesa
> versions. Not sure if the compilation system will handle this smoothly
> or not. Suggestions are welcome, happy to help modify this as needed.
Hi Matthew,
Thanks for the patch. It's merged to master. I've also filled in couple
of other missing functions from my local osmesa.h file. There's no
compilation system, entry points are looked up at run-time, so there's
no problem having entry points that aren't universally available. I
don't actually have any osmesa test-code to run with, so at the moment I
can't confirm that the changes work, but hopefully you can confirm after
the next release.
Take care,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--------------6E0A84DBA476BF11E59F6804
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2019-01-19 6:42 p.m., Matthew Matl
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOu37t0-2KiaUbCRytDDmGH_pdzYLxjByb_vv524P7oxHCZSRg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Mike,
<div><br>
</div>
<div>Big fan of PyOpenGL! Just wanted to offer this simple patch
for the most recent version of master, which adds a handle for
OSMesa's <a
href="https://github.com/anholt/mesa/blob/01e511233b24872b08bff862ff692dfb5b22c1f4/include/GL/osmesa.h#L167"
target="_blank" moz-do-not-send="true">OSMesaCreateContextAttribs</a> function.
This function allows for users to create OSMesa contexts with
core profiles, which is hugely useful for supporting offscreen
rendering with modern (>=3.3) shaders.</div>
<div><br>
</div>
<div>My only concern is that this function is new in Mesa 11.2,
which was released on April 4, 2016, so this might not work
with older Mesa versions. Not sure if the compilation system
will handle this smoothly or not. Suggestions are welcome,
happy to help modify this as needed.</div>
</div>
</blockquote>
<p><br>
</p>
<p>Hi Matthew,</p>
<p>Thanks for the patch. It's merged to master. I've also filled in
couple of other missing functions from my local osmesa.h file.
There's no compilation system, entry points are looked up at
run-time, so there's no problem having entry points that aren't
universally available. I don't actually have any osmesa test-code
to run with, so at the moment I can't confirm that the changes
work, but hopefully you can confirm after the next release.</p>
<p>Take care,<br>
Mike<br>
</p>
<br>
<pre class="moz-signature" cols="72">--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
<a class="moz-txt-link-freetext" href="http://www.vrplumber.com">http://www.vrplumber.com</a>
<a class="moz-txt-link-freetext" href="http://blog.vrplumber.com">http://blog.vrplumber.com</a>
</pre>
</body>
</html>
--------------6E0A84DBA476BF11E59F6804--
--===============8959018554479374991==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============8959018554479374991==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-devel
--===============8959018554479374991==--