Commit Graph

152 Commits (eeaffb14b8b85c2bcb0e56f4632e42ebab828b08)

Author SHA1 Message Date
Joe Groff 0ab9046300 rename half-floats vocab to math.floats.half 2010-04-28 15:48:47 -07:00
Daniel Ehrenberg aa6158b366 Changing require-when usages to the new syntax for require-when 2010-04-18 14:29:24 -05:00
Joe Groff 43ab0af1ac Merge branch 'master' of factorcode.org:/git/factor 2010-04-11 15:08:41 -07:00
Erik Charlebois e117300bb4 Fix build breaks 2010-04-10 22:38:17 -07:00
Erik Charlebois faf0418a12 Remove empty quad vocabulary 2010-04-10 00:02:44 -07:00
Joe Groff 181c45209f gpu.shaders: use "counter" instead of reinventing it 2010-04-07 15:33:19 -07:00
Erik Charlebois e6b4e54e2c More work on fluids 2010-04-06 13:12:10 -07:00
Erik Charlebois a91d7a0e7b Get fluids working on Mac 2010-04-05 01:38:39 -07:00
Erik Charlebois 6081abea04 Fix step effect 2010-04-04 20:52:09 -07:00
Erik Charlebois 964f45fc77 Techniques work 2010-04-04 18:57:58 -07:00
Daniel Ehrenberg 240c6819a9 Merge branch 'master' into conditional 2010-03-28 19:49:32 -04:00
Joe Groff 63bb6c4e42 gpu: add geometry shader support 2010-03-23 02:11:57 -07:00
Daniel Ehrenberg eb060443db Updating code to use require-when rather than vocab [ require ] when 2010-03-18 01:13:37 -04:00
Joe Groff 18f3df9d4a more help-lint 2010-03-09 21:02:43 -08:00
Joe Groff 191ac353fd generalize stack effects so we can bootstrap with the stricter stack effect checking 2010-03-08 23:38:10 -08:00
Slava Pestov 220dd88a2c Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Joe Groff 236b2e6dc5 update gpu docs—VAOs no longer required 2010-02-17 12:50:32 -08:00
Joe Groff 31d97a8ff7 fall back to manual gl vertex attribute management when GL_APPLE_vertex_array_object is not present, so gpu can support vanilla GL 2.0 2010-02-17 11:26:32 -08:00
Joe Groff 31029de959 Merge branch 'master' of git://factorcode.org/git/factor 2010-02-16 10:41:15 -08:00
Joe Groff bf7371c32e reduce reflection level on gpu.demos.bunny deployment to hopefully get it back below the tools.deploy test limit size 2010-02-16 10:30:20 -08:00
Slava Pestov 6620a12cde Merge branch 'deploy-resources' of git://factorcode.org/git/factor into deploy-resources 2010-02-17 00:17:09 +13:00
Slava Pestov bd0ca0e2aa Clean up some tags 2010-02-17 00:12:55 +13:00
Joe Groff f37fcf7eb7 add icons for gpu.demos.raytrace 2010-02-15 14:29:36 -08:00
Joe Groff bfa5f5ad9b icon for gpu.demos.bunny 2010-02-15 11:01:00 -08:00
Joe Groff 642d48cd05 gpu.demos.bunny: use images.tiff so that it's present in deployed bundle 2010-02-14 23:27:48 -08:00
Joe Groff f02fb684cd add resources.txt for gpu.demos.bunny 2010-02-14 14:03:19 -08:00
Joe Groff 06f4a21815 gpu.demos.raytrace: add deploy config and resources.txt 2010-02-14 14:02:47 -08:00
Joe Groff 8d9268bcc2 Merge branch 'master' of git://factorcode.org/git/factor 2010-02-14 12:42:37 -08:00
Joe Groff 8a4fb8cbce gpu.textures: add symbolic constants for LATC compression 2010-02-13 18:06:48 -08:00
Erik Charlebois 8861dfb834 Merge up with Joe's earlier change that added s3tc 2010-02-13 02:43:42 -08:00
Joe Groff 83d10d8135 gpu.textures: add compressed texture support 2010-02-11 14:22:54 -08:00
Joe Groff ce11431fdb gpu.shaders: change around vertex-array construction a bit. rename <vertex-array> to <multi-vertex-array> and buffer>vertex-array to <vertex-array*> . add new <vertex-array> that takes a single buffer and reads it with the program's linked vertex-format 2010-02-10 15:27:57 -08:00
Joe Groff 910f1b603c fix gpu.shaders docs 2010-02-10 14:54:37 -08:00
Joe Groff 6aa998ad54 change GLSL-PROGRAM: syntax to allow for vertex formats to be specified for link-time attribute index assignment with glBindAttribLocation. the transform feedback format now needs to be marked with "feedback-format:" 2010-02-10 13:03:44 -08:00
Joe Groff a173171e34 gpu.render: allow uniform-tuples to hand off specialized-arrays, structs, simd types, etc. directly to glUniform*v functions when binding uniforms 2010-02-10 11:24:36 -08:00
Joe Groff a9586de62d gpu.buffers: allocate-byte-array word, equivalent to [ byte-length ] keep allocate-buffer 2010-02-05 14:07:45 -08:00
Joe Groff e8dfc22073 gpu.shaders: don't attempt to bind vertex attributes that don't exist in the compiled shader 2010-01-28 21:48:41 -08:00
Joe Groff de9dad0f08 make sure VAOs are available to gpu library 2010-01-21 10:41:11 -08:00
Joe Groff 90a065e690 rearrange order of <static-audio-clip> args to be consistent with <streaming-audio-clip> . add a streaming noise generator to audio.engine.test to ensure streaming clips work 2010-01-20 12:26:07 -08:00
Joe Groff 87c09af8f3 update game.worlds and gpu.demo.raytrace for audio.engine changes 2010-01-20 11:44:18 -08:00
Joe Groff fc4686eaee downsample gpu.demos.raytrace sound effects to 11kHz so they aren't so pointlessly huge 2010-01-19 19:03:01 -08:00
Joe Groff 2f8180faa6 allow audio-sources to control reference distance and rolloff factor 2010-01-19 17:54:55 -08:00
Joe Groff 7a14b4ce61 add gratuitous audio to gpu.demos.raytrace 2010-01-19 17:54:25 -08:00
Joe Groff e5c44b95aa game.worlds overhaul: add optional support for integrating audio.engine and make game.input integration optional too. add "tick-game-world" generic for extending game-world's tick* method 2010-01-19 16:07:47 -08:00
Joe Groff 893c365912 missing USING:s 2010-01-17 16:07:29 -08:00
Joe Groff 9e0f26f6eb game.loop: fps word to divide a value into 1,000,000 2010-01-16 23:25:40 -08:00
Joe Groff 89f104d8ab add begin-game-world and end-game-world generics so method-chains aren't needed just to do game setup and teardown at the right time 2010-01-16 23:06:54 -08:00
Joe Groff a2e3d64de6 document game.worlds, tweak GAME: syntax 2010-01-16 13:13:13 -08:00
Joe Groff 6bbfa0b6d8 GAME: syntax for defining game entry point with game-loop attributes 2010-01-16 12:18:50 -08:00
Joe Groff bd62fb22aa game-loop: change "tick-length" to more descriptive "tick-interval-micros" 2010-01-15 15:03:33 -08:00
Joe Groff 9131e16f7b bump game demos up to 60fps. we have the technology 2010-01-15 14:36:45 -08:00
Joe Groff 3bc72151a8 squeeze some TYPED: juice on gpu.* 2010-01-15 14:03:15 -08:00
Joe Groff 67cc1c01be Merge branch 'master' into simd-cleanup 2009-11-26 16:14:46 -08:00
Joe Groff 4027002db7 remove SIMD:s 2009-11-25 20:21:54 -08:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman f4450653a9 remove system-millis and update vocabs to use system-micros or nano-count 2009-11-18 20:56:09 -06:00
Joe Groff 6c48852fb0 eliminate most spins from extra 2009-11-05 15:34:31 -06:00
Joe Groff 3fbe722561 Merge branch 'master' of http://factorcode.org/git/factor
Conflicts:
	basis/locals/locals.factor
	basis/peg/peg.factor
	extra/infix/infix.factor
2009-10-28 16:17:24 -05:00
Joe Groff 6e1bffb1c5 update existing code to use :> ( ) when possible 2009-10-28 16:11:33 -05:00
Doug Coleman 93de179c2f over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Joe Groff ab04d4479e clean up some stuff in gpu.util.wasd 2009-10-26 14:25:51 -05:00
Joe Groff eb5a4383e1 gpu.buffers: fix stack effect of with-mapped-buffer 2009-10-26 13:53:33 -05:00
Slava Pestov 00cef34d74 gpu.shaders: '[ empty? not ] filter' is 'harvest' 2009-10-23 07:02:11 -05:00
Joe Groff 15f4196d43 gpu.demos.bunny: tokenize model file as it's read to avoid an extra splitting-and-filtering pass 2009-10-23 00:08:14 -05:00
Joe Groff 34027e46b6 remove a redundant head from parse-bunny-model 2009-10-22 20:26:43 -05:00
Joe Groff 27100ae094 improve gpu.demos.bunny mesh generation performance 2009-10-22 16:54:54 -05:00
Joe Groff 08768d0e2f gpu.render: factor out and make public a "bind-uniforms" word for binding a uniform-tuple to a program-instance independent of a render-set 2009-10-18 18:31:38 -05:00
Joe Groff 09ceb7351e gpu.shaders: carry over instances from old shader/program objects when GLSL-SHADER: or GLSL-PROGRAM: forms get reparsed 2009-10-18 13:44:24 -05:00
Doug Coleman 09e8484777 fix using 2009-10-08 05:03:40 -05:00
Doug Coleman fcc53d174c move game-* to game.* and update all usages 2009-10-08 01:42:54 -05:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Joe Groff 162ae0346f eradicate string c-types from gpu.shaders 2009-09-28 15:32:01 -05:00
Joe Groff 630e5ecc3b update vocabs so a load-all on macosx works without parsing c-type strings 2009-09-27 15:11:21 -05:00
Doug Coleman 5cb34724b7 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/classes/struct/struct-tests.factor
	basis/functors/functors-tests.factor
	basis/specialized-arrays/specialized-arrays-tests.factor
2009-09-20 23:02:49 -05:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Joe Groff 076ab42dc3 move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
Joe Groff 1f04ed01fe fix more ambiguities 2009-09-17 09:29:23 -05:00
Joe Groff 31264538e3 get gpu vocabs to load with c-type changes 2009-09-16 20:55:14 -05:00
Joe Groff 4d16c569f0 struct classes now make their own C type without help from alien.structs. remove alien.structs dependencies from everywhere outside of alien and compiler, and have the FFI handle both alien.structs and classes.struct c-types 2009-09-15 17:38:49 -05:00
Slava Pestov 7f2e2b1777 Specialized array overhaul
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Joe Groff 522f426ba7 fix help lint failures 2009-09-01 13:04:00 -05:00
Joe Groff 02d924f1a5 change gpu VERTEX-STRUCT: to make a struct class 2009-08-30 23:06:15 -05:00
Joe Groff eae92a404a update gpu.demos.bunny for alien.arrays boxing change 2009-08-26 15:05:07 -05:00
Joe Groff 17a08cb07a gpu.shaders docs corrections 2009-08-22 20:15:13 -05:00
Joe Groff a2fe9f1952 [ [ ... ] bi@ <=> ] sort => [ ... ] sort-with 2009-08-02 20:13:59 -05:00
Joe Groff f0f20708cd gpu.render: remove gpu-data-ptr slot specialization on index-elements. it prevents using specialized-arrays or other byte-array wrappers with index-elements 2009-08-02 19:52:33 -05:00
Joe Groff 918b95dfc7 fix some lousy docs in gpu.textures 2009-07-31 15:34:29 -05:00
Joe Groff 9c9132297f no need to call set-gpu-state* directly 2009-07-30 20:57:22 -05:00
Joe Groff c7dde45c2a hyphens>underscores in VERTEX-FORMAT for consistency with UNIFORM-TUPLE 2009-07-30 10:58:34 -05:00
Joe Groff 1e389c921d remove some leftover debug code from bunny shader 2009-07-29 20:06:28 -05:00
Joe Groff 90985ea362 verify transform feedback format matches requested format after linking program-instances 2009-07-27 13:16:41 -05:00
Joe Groff b99b686194 update gpu docs 2009-07-26 23:00:35 -05:00
Joe Groff bfcb95edaf accept transform-feedback-output target from render 2009-07-26 22:24:33 -05:00
Joe Groff eeb02815bc set transform feedback format at program link 2009-07-25 21:19:56 -05:00
Joe Groff 01f172b5be add a buffer-range tuple to represent a subset of a buffer. add support for specifying a transform feedback format to GLSL-PROGRAM: syntax 2009-07-25 15:50:38 -05:00
Joe Groff 33395eeabd move vertex-formats and vertex-arrays to gpu.shaders so we can use them for transform feedback formats 2009-07-25 11:30:59 -05:00
Joe Groff 3759cd7efc update gpu.util.wasd to match uniform tuple changes 2009-07-23 14:58:45 -05:00
Joe Groff 733c208f8c doc updates for uniform-tuple changes 2009-07-23 13:39:28 -05:00
Joe Groff 2a194ea780 bind textures out of uniform structs and arrays 2009-07-23 13:01:21 -05:00
Joe Groff bba46d2b30 improve uniform-tuple interface in gpu.render. uniform-tuples can now contain other uniform-tuples to represent struct uniforms. use glUniform*v to blast uniform arrays in one shot. s/-/_/ in slot names so they look more factorish on the CPU side 2009-07-22 22:32:02 -05:00