[HOpenGL] How to send matrices to GLSL uniform variables

Jason Dagit dagitj at gmail.com
Thu Sep 13 05:21:27 CEST 2012


On Fri, Aug 24, 2012 at 11:40 PM, L Corbijn <aspergesoepje at gmail.com> wrote:

> On Fri, Aug 24, 2012 at 6:56 PM, Myles C. Maxfield
> <myles.maxfield at gmail.com> wrote:
> > According to http://hackage.haskell.org/package/OpenGL, it claims to
> support
> > version 3.2, so a lack of glUniformMatrix seems like a huge oversight.
> This
> > makes me think that one of two things is the case:
> >
> > 1. There is a way to do it, but it's non-obvious. Hopefully documentation
> > could fix this.
> > 2. There isn't a way to do it, so either
> >   a. the OpenGL package shouldn't claim to be 3.2 compliant, or
> >   b. the functionality should be added ;-)
> >
> > Does anyone know which case the current package falls into? And/or what
> can
> > be done about making sure no one else in the future has the same problem
> > that Yusuke has? I'd be willing to help out, but I don't know where to
> > start.
> >
> > Thanks,
> > Myles
>
> It's point 2. The cabal package claims 3.2 compliance, though it's at
> most 2.1 compliant (HOpenGLRaw is 3.2 compliant). I've written code
> for 3.0 compliance (see github [pull request]), but that doens't
> include it either yet. It should be incorporated in the Uniform
> typeclass (see Shaders.hs or Sharders/Uniform.hs), but there should be
> a extra typeclass for matrices or it should be added to the tensor
> package.
>
> Lars
>
> [pull request] https://github.com/haskell-opengl/OpenGL/pull/27


Merged. The reminder helped, otherwise I would have continued to forget
about it.

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/hopengl/attachments/20120912/20a74ee3/attachment.htm>


More information about the HOpenGL mailing list