! Copyright (C) 2009 Joe Groff.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays combinators.tuple game.loop game.worlds
-generalizations gpu gpu.render gpu.shaders gpu.util gpu.util.wasd
-kernel literals math math.libm math.matrices math.matrices.extras
-math.order math.vectors method-chains sequences ui ui.gadgets
-ui.gadgets.worlds ui.pixel-formats audio.engine audio.loader locals ;
+USING: accessors arrays audio.engine audio.loader game.loop
+game.worlds gpu gpu.render gpu.shaders gpu.util gpu.util.wasd
+kernel literals locals math math.libm math.matrices
+math.matrices.extras math.order math.vectors method-chains
+sequences ui.gadgets.worlds ui.pixel-formats ;
IN: gpu.demos.raytrace
GLSL-SHADER-FILE: raytrace-vertex-shader vertex-shader "raytrace.v.glsl"
! Copyright (C) 2009 Joe Groff.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors alien alien.c-types alien.data arrays
-assocs classes classes.mixin classes.parser classes.singleton classes.struct
-classes.tuple classes.tuple.private combinators combinators.tuple destructors fry
-generic generic.parser gpu gpu.buffers gpu.framebuffers
-gpu.framebuffers.private gpu.shaders gpu.shaders.private gpu.state
-gpu.textures gpu.textures.private math.floats.half images kernel
-lexer locals math math.order math.parser namespaces opengl
-opengl.gl parser quotations sequences slots sorting
-specialized-arrays strings ui.gadgets.worlds variants
-vocabs.parser words math.vectors.simd ;
+USING: accessors alien alien.c-types alien.data arrays assocs
+classes classes.parser classes.struct classes.tuple
+classes.tuple.private combinators combinators.tuple fry generic
+generic.parser gpu.buffers gpu.framebuffers
+gpu.framebuffers.private gpu.shaders gpu.shaders.private
+gpu.textures gpu.textures.private kernel lexer locals math
+math.parser math.vectors.simd opengl.gl parser quotations
+sequences slots sorting specialized-arrays strings variants words ;
FROM: math => float ;
QUALIFIED-WITH: alien.c-types c
SPECIALIZED-ARRAYS: c:float c:int c:uchar c:ushort c:uint c:void* ;
{ transform-feedback-output transform-feedback-output initial: f read-only } ;
: <render-set> ( x quot-assoc -- render-set )
- render-set swap make-tuple ; inline
+ render-set swap 1make-tuple ; inline
: 2<render-set> ( x y quot-assoc -- render-set )
render-set swap 2make-tuple ; inline