]> gitweb.factorcode.org Git - factor.git/commitdiff
update gpu.util.wasd to match uniform tuple changes
authorJoe Groff <arcata@gmail.com>
Thu, 23 Jul 2009 19:58:45 +0000 (14:58 -0500)
committerJoe Groff <arcata@gmail.com>
Thu, 23 Jul 2009 19:58:45 +0000 (14:58 -0500)
extra/gpu/render/render-docs.factor
extra/gpu/util/wasd/wasd.factor

index 8e761be13cf8c55c99502228a900a941452e18d9..f198558b06a0992c563fc16a265d18273739a3bc 100755 (executable)
@@ -72,7 +72,7 @@ $nl
 "Rectangular matrix type names are column x row."
 }
 { "Uniform slots can also be defined as other " { $snippet "uniform-tuple" } " types to bind uniform structures. The uniform structure will take its value from the slots of a tuple of the given type." }
-{ "Array uniforms are passed as Factor sequences of the corresponding value types above." }
+{ "Array uniforms are passed as Factor sequences of the corresponding value type above." }
 }
 $nl
 "A value of a uniform tuple type is a standard Factor tuple. Uniform tuples are constructed with " { $link new } " or " { $link boa } ", and values are placed inside them using standard slot accessors."
@@ -130,7 +130,7 @@ HELP: define-vertex-struct
 { $description "Defines a new struct C type from a " { $link vertex-format } ". The runtime equivalent of " { $link POSTPONE: VERTEX-STRUCT: } ". This word must be called inside a compilation unit." } ;
 
 HELP: float-uniform
-{ $class-description "This " { $link uniform-type } " value indicates a uniform parameter whose components are " { $snippet "float" } "s." } ;
+{ $class-description "This " { $link uniform-type } " indicates that a slot of a " { $link uniform-tuple } " corresponds to a float uniform parameter." } ;
 
 { index-elements index-range multi-index-elements multi-index-range } related-words
 
index 34051730fbf72ccf0f4d831e5f085881f6233af3..b0a3d8179a874d81bba9fd25cf06c383b9c22f20 100644 (file)
@@ -8,8 +8,8 @@ specialized-arrays.float ui ui.gadgets.worlds ;
 IN: gpu.util.wasd
 
 UNIFORM-TUPLE: mvp-uniforms
-    { "mv_matrix"  float-uniform   { 4 4 } }
-    { "p_matrix"   float-uniform   { 4 4 } } ;
+    { "mv_matrix"  mat4-uniform f }
+    { "p_matrix"   mat4-uniform f } ;
 
 CONSTANT: -pi/2 $[ pi -2.0 / ]
 CONSTANT:  pi/2 $[ pi  2.0 / ]