1 ! (c)2009 Joe Groff bsd license
2 USING: gpu.buffers gpu.render gpu.shaders gpu.textures images kernel
4 FROM: alien.c-types => float ;
5 SPECIALIZED-ARRAY: float
8 CONSTANT: environment-cube-map-mv-matrices
48 VERTEX-FORMAT: window-vertex
49 { "vertex" float-components 2 f } ;
51 CONSTANT: window-vertexes
59 : <window-vertex-buffer> ( -- buffer )
61 static-upload draw-usage vertex-buffer
64 : <window-vertex-array> ( program-instance -- vertex-array )
65 [ <window-vertex-buffer> ] dip window-vertex buffer>vertex-array ;