Hamish Marson wrote:
-----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

That is intentional. The token "main(" has the type 'void function'. This saves space since it only takes one bit if it is done this way rather than 8 bits for a separate token.

<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...

OTOH, that appears to be a typo.

--
JRT
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to