[HOpenGL] (not?) using preservingMatrix

jamin1001 jamin1001 at yahoo.com
Fri Jan 5 14:30:22 EST 2007




Sebastian Sylvan wrote:
> 
> On 1/5/07, jamin1001 <jamin1001 at yahoo.com> wrote:
>>
>> Right, I buy that.  But I don't see how the C line
>>
>> glGetFloatv (GL_MODELVIEW_MATRIX, your_matrix_result) ;
>>
>> can be done, since it writes a result into your_matrix_result, so I would
>> need something like:
>>
>> preservingMatrix $ do
>>     loadIdentity
>>     -- do whatever you want with your your matrix
>>     rs <- get ((matrix $ Just $ Modelview 0)::StateVar(GLmatrix
>> GLdouble))
> 
> This does indeed compile for me. GHC 6.6.
> 
> -- 
> Sebastian Sylvan
> +46(0)736-818655
> UIN: 44640862
> _______________________________________________
> HOpenGL mailing list
> HOpenGL at haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
> 
> 

-- 
View this message in context: http://www.nabble.com/%28not-%29-using-preservingMatrix-tf2926697.html#a8184318
Sent from the Haskell - HOpenGL mailing list archive at Nabble.com.



More information about the HOpenGL mailing list