-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Richard Tyrer wrote:
[deleted]
> uniform mat4 gl_ModelViewMatrix;
> uniform mat4 gl_ProjectionMatrix;
> attribute vec4 gl_Vertex;
> void main()
> {
> gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;
> }
>
> ==============================================================================
>
> Pseudo Code (each token is enclosed in "<" ">"):
>
> <void><main(><)>
Small nit, Shouldn't that be
<void><main><(><)>
(Separating the funcion name (Token) from the open parenthesis
token... Sorry, wasn't sure if that was deliberate or not. It doesn't
make sense to me to have the open paren as part of the token previous...
> <{>
> <GL mat4><gl_Position><=><<uniform mat4><gl_ProjectionMatrix>
> <*><uniform mat4><gl_ModelViewMatrix><*><attribute vec4>
> <gl_Vertex><;>
> <}>
>
> NOTE that this can be improved by reordering the operations to RPN to
> reduce the amount of op stack usage.
>
I don't understand the extra < after the <=> you have... It's not
balanced & I don't see that it's required...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEVeVS/3QXwQQkZYwRAiGRAJ9Wg0RwbLCyJd/ZeIW7+dgbEHe/YQCg2L54
E8zOZeDcjkPpKrGX0YhUUjE=
=rZ8d
-----END PGP SIGNATURE-----
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)