[Bf-committers] problem when expanding BGL to deal with (GLchar **)
jason.a.wilkins at gmail.com
Wed Apr 18 03:49:13 CEST 2012
It seems to me that if bgl is going to support these kinds of types
such as pointers to pointers then it really needs to do it in a Python
type way. Pulling up low level C-isms seems like a bad idea.
And as for not supporting display lists. That is an OpenGL 1.0
feature. If something crashes because it does not implement display
lists then it is not actually OpenGL! (at least not any version of
OpenGL that Blender currently supports). Shaders however are actually
On Tue, Apr 17, 2012 at 8:06 PM, Dalai Felinto <dfelinto at gmail.com> wrote:
>>Your patch doesn't account for machines that do not support shaders.
> Why would it? bgl currently supports DisplayList but computers that don't
> support it will crash blender just as well.
> I do agree that will be nice to allow bgl to query the supported features
> in the graphic card. But it will be up to the (py) developer to implement
> it correctly.
> *My problem is that I need to create a pointer of pointers as it seems. I
> hope it's doable.*
> (and if you are wondering what computer nowadays do not support DL try to
> remote desktop in a computer and you get a system that doesn't support even
>> Have you thought of trying to use PyOpenGL?
> I want a solution easy to use in add ons, thus the idea of extending bgl.
> 2012/4/17 Mitchell Stokes <mogurijin at gmail.com>
>> Your patch doesn't account for machines that do not support shaders.
>> Have you thought of trying to use PyOpenGL? It has some experimental
>> Py3k support now.
>> --Mitchell Stokes
>> On Tue, Apr 17, 2012 at 3:28 PM, Dalai Felinto <dfelinto at gmail.com> wrote:
>> > Hi there,
>> > I'm trying to build GLSL shaders for an addon using bgl.
>> > I started by adding the basic opengl functionst to bgl .
>> > The problem is that glShaderSource  requires a (GLchar **) which we
>> > no macro for.
>> > I tried to implement it as the GLcharP but it's not working .
>> > (the rest of the bgl patch is working as it seems. I can even gather some
>> > glsl error with glGetShaderInfoLog)
>> > Thanks,
>> > Dalai
>> > (note, I would love to have that in time for 2.63, so addons using the
>> > stable 2.63 could benefit from it)
>> >  - http://www.pasteall.org/30984/diff
>> >  - http://www.opengl.org/sdk/docs/man/xhtml/glShaderSource.xml
>> >  - backtrace - http://www.pasteall.org/30985
>> > _______________________________________________
>> > Bf-committers mailing list
>> > Bf-committers at blender.org
>> > http://lists.blender.org/mailman/listinfo/bf-committers
>> Bf-committers mailing list
>> Bf-committers at blender.org
> Bf-committers mailing list
> Bf-committers at blender.org
More information about the Bf-committers