[HOpenGL] How to send matrices to GLSL uniform variables

Jason Dagit dagitj at gmail.com
Thu Aug 23 20:47:45 CEST 2012


On Thu, Aug 23, 2012 at 9:32 AM, 梶本 裕介 <usk at lunaticengine.org> wrote:

> Hi everyone,
>
> In OpenGL 3.2, there is no fixed pipeline functionalities.
> So I would like to send my model-view-projection matrix to GLSL through an
> uniform variable.
> But I seem that there is no glUniformMatrix* family in HOpenGL.
>

In general, if you can't find it in HOpenGL, look at OpenGLRaw:
http://hackage.haskell.org/package/OpenGLRaw

(
> http://hackage.haskell.org/packages/archive/OpenGL/2.5.0.0/doc/html/Graphics-Rendering-OpenGL-GL-Shaders.html
> )
> How can I achieve this?
>

I don't have an example handy, but I believe this is possible. Perhaps
someone else will have an example.

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/hopengl/attachments/20120823/1ddb0e61/attachment.htm>


More information about the HOpenGL mailing list