Commit Graph

215 Commits (81c6196dc488d73c9c47e5ccf94e6e8c94e75ad4)

Author SHA1 Message Date
Joe Groff 9040ee37e0 Merge remote-tracking branch 'Blei/gtk-image-loader'
Conflicts:
	basis/alien/enums/enums-tests.factor
	basis/alien/enums/enums.factor
	basis/alien/parser/parser.factor
	basis/gdk/pixbuf/ffi/ffi.factor
	basis/glib/ffi/ffi.factor
	basis/tools/deploy/shaker/shaker.factor
	basis/ui/backend/gtk/gtk.factor
	basis/windows/nt/nt.factor
2011-08-27 14:07:18 -07:00
Joe Groff 44ba9e086e opengl.gl.extensions: annoying hack to make gpu.* demos work in Lion. opengl 3 entry points such as glGenVertexArrays are available, but they only actually work in core profile contexts which factor doesn't support yet, so favor extension entry points such as glGenVertexArraysAPPLE instead of standard entry points 2011-07-29 14:15:59 -07:00
Anton Gorenko 8f297055d6 Merge branch 'master' of git://github.com/slavapestov/factor 2011-01-16 13:38:04 +06:00
Slava Pestov 75560699ea Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object> 2010-12-25 16:55:36 -08:00
Doug Coleman 67c37591ca Remove <uint> *uint and friends. Hopefully remove the last usages of these words 2010-10-25 15:54:42 -05:00
Doug Coleman 1f57dc326e Remove many uses of <int> and *int etc 2010-10-25 12:49:12 -05:00
Anton Gorenko d5a7f99bea Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/cairo/ffi/ffi.factor
	basis/pango/cairo/cairo.factor
	basis/pango/layouts/layouts.factor
2010-09-26 23:24:30 +06:00
Joe Groff 50c3f2e03e opengl.gl: typo in the FFI bindings for some obscure gl functions 2010-08-13 10:16:47 -07:00
Joe Groff c2c5a87b0f opengl.gl: some opengl 4 functions were accidentally still presented as -EXT 2010-08-11 10:05:03 -07:00
Philipp Brüschweiler d2530a4365 Merge remote branch 'origin/native-image-loader' into gtk-image-loader 2010-07-17 11:26:45 +02:00
Anton Gorenko 65362a67e8 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/pango/cairo/cairo.factor
2010-07-17 14:11:06 +06:00
Slava Pestov 446ee6896d alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary 2010-07-16 17:32:05 -04:00
Joe Groff 0d35e277ea images, opengl.textures, images.cocoa: add support for premultiplied alpha so we can use data from cocoa images 2010-06-27 13:44:25 -07:00
Anton Gorenko 17192dee7c change directories structure (add */ffi/ffi.factor files) 2010-05-27 00:17:14 +06:00
Anton Gorenko ab9e851bed Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/opengl/gl/extensions/extensions.factor
	basis/pango/cairo/cairo.factor
2010-05-24 19:43:05 +06:00
Anton Gorenko c6d2f4956a add opengl.gl.gtk backend 2010-05-24 19:22:29 +06:00
Slava Pestov 6b87f0d0d9 opengl.gl.unix renamed to opengl.gl.x11 2010-05-23 22:25:17 -04:00
Slava Pestov 70a99e1cdb Updating code to use with-out-parameters 2010-05-23 03:07:47 -04:00
Slava Pestov ea726f5680 Move remaining sequence operations from generalizations to sequences.generalizations where they belong 2010-05-18 18:36:47 -04:00
Joe Groff 010b5069bd opengl.textures: borrow get-texture-float and get-texture-int helper words from gpu.textures 2010-05-15 12:09:50 -07:00
Slava Pestov 145e6428ba Fixing load errors 2010-04-10 17:24:44 -07:00
Joe Groff f3dd625de6 "stdcall" -> stdcall 2010-03-31 19:29:04 -07:00
Joe Groff 65c3259761 "cdecl" -> cdecl 2010-03-31 19:20:35 -07:00
Joe Groff 632c199636 opengl 3.3, 4.0 2010-03-16 18:35:46 -07:00
Joe Groff fce55c7bb3 opengl 3.2; EXT_geometry_shader4 => ARB_geometry_shader4 2010-03-16 17:25:34 -07:00
Joe Groff 9412fe8297 update GL-FUNCTION: to use new FUNCTION: factors 2010-02-28 16:40:34 -08:00
Slava Pestov 7826543d2e sequences: add cartesian-each, cartesian-map, cartesian-product words to eliminate some duplication throughout the codebase 2010-02-25 20:54:57 +13:00
Joe Groff cdc17e38e8 opengl.gl: all those GLchar* should be c-string[ascii] 2010-02-23 20:29:31 -08:00
Joe Groff 4cfa1a6c77 rename current string-mangling "char*" to "c-string". char* is now just a boring old pointer to char 2010-02-23 11:42:02 -08:00
Joe Groff cdde1aa92a opengl.gl: TYPEDEF: void* GLvoid* => C-TYPE: GLvoid 2010-02-21 23:13:56 -08:00
Joe Groff a2c9563bb7 opengl.gl.extensions: scan return type of GL-FUNCTION: as c-type 2010-02-21 11:46:17 -08:00
Slava Pestov 95bfc8a240 vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases 2010-02-20 13:30:49 +13:00
Slava Pestov 220dd88a2c Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Erik Charlebois 8861dfb834 Merge up with Joe's earlier change that added s3tc 2010-02-13 02:43:42 -08:00
Erik Charlebois 6a039cdc76 Merge up with Joe's earlier change that added s3tc 2010-02-13 02:41:03 -08:00
Erik Charlebois ba493063fb Constants for GL_EXT_texture_compression_s3tc and GL_EXT_texture_compression_latc 2010-02-13 02:34:26 -08:00
Joe Groff 83d10d8135 gpu.textures: add compressed texture support 2010-02-11 14:22:54 -08:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman cc194416f9 Merge branch 'master' into startup
Conflicts:
	core/bootstrap/primitives.factor
	vm/run.hpp
2009-11-15 02:52:50 -06:00
Slava Pestov 78bd41ae97 opengl: fix stack effect error in (all-enabled) combinator and add a unit test 2009-11-09 00:54:39 -06:00
Joe Groff 7e88ead665 fix build errors 2009-10-28 19:28:16 -05: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 7ce4b746e5 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Doug Coleman 6b6e56a179 change add-init-hook to add-startup-hook, new add-shutdown-hook word 2009-10-19 22:17:02 -04:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Joe Groff 4f82861bf3 update windows vocabs to load without c-type strings 2009-09-27 18:19:53 -05:00
Joe Groff 5054c954be add USING:s and rearrange definitions so macosx can compile without parsing c-type strings 2009-09-26 23:14:57 -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 fa60d96ae4 fix "float" ambiguities in math.blas, opengl vocabs 2009-09-16 21:25:46 -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
Slava Pestov 46045c882e Disposables are now registered in a global disposables set. To take advantage of this, subclass disposable instead of providing a disposed slot and call new-disposable instead of new. tools.disposables defines two words, 'disposable.' and 'leaks', to help track down resource lifetime problems 2009-08-24 02:26:13 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Joe Groff eeb02815bc set transform feedback format at program link 2009-07-25 21:19:56 -05:00
Joe Groff ac2c65e920 OR gl extension testing 2009-07-22 12:06:30 -05:00
Slava Pestov fca74191ce Split off annotation code from opengl into opengl.annotations to reduce deployed image size 2009-07-17 01:06:34 -05:00
Joe Groff e90c947062 gl-break word and interactive debugging aids 2009-07-15 22:44:03 -05:00
Joe Groff b7dd3d5d35 report opengl function name in gl-errors 2009-07-15 13:53:57 -05:00
Joe Groff 8bf1fd5f2a throw-gl-errors, log-gl-errors annotations for all OpenGL functions 2009-07-14 12:00:37 -05:00
Joe Groff 97adae24f0 pardon my dust 2009-07-01 17:57:21 -05:00
Joe Groff d077d52968 opengl helper words for ARB/APPLE vertex array objects 2009-07-01 13:53:28 -05:00
Joe Groff 327311b7a2 opengl.gl3 vocab containing only forward-compatible symbols. fill in some holes in opengl.gl 2009-06-24 18:27:54 -05:00
Joe Groff 845e9532ba update demos using GL_EXT_framebuffer_object and GL_ARB_texture_float to use suffixless opengl 3 symbol names 2009-06-24 17:59:25 -05:00
Joe Groff ab8b99d4fd opengl 3.1 2009-06-24 17:28:37 -05:00
Joe Groff eaddd1fdd4 provide image component-orders and component-types for all GPU texture formats 2009-06-24 08:26:30 -05:00
Joe Groff c051665efb throw in image component-orders for some more opengl formats 2009-06-23 20:01:53 -05:00
Joe Groff 7de264c028 GL_BGR and GL_BGRA are standard these days 2009-06-22 18:07:46 -05:00
Joe Groff ac3ec67c6a separate component format from component order in image objects 2009-06-22 11:20:54 -05:00
Joe Groff 2b3d62821e Merge branch 'master' of git://factorcode.org/git/factor 2009-06-17 21:45:04 -05:00
Joe Groff 19d77c5193 let gl-error know about GL_INVALID_FRAMEBUFFER_OPERATION_EXT error. add <mrt-gl-program> helper word to link a GL program with named multiple render targets 2009-06-16 18:14:22 -05:00
Slava Pestov 37b01357ec Remove unused words discovered by Samuel Tardieu 2009-06-16 16:38:39 -05:00
Doug Coleman 95234ae15c dont use paren names when there's not a word with that name already 2009-06-10 16:23:57 -04:00
Joe Groff 6599beefd6 typo in opengl.gl 2009-06-03 11:02:41 -05:00
Slava Pestov 132249660d Fix conflict 2009-05-16 09:48:42 -05:00
Slava Pestov 66a9416473 Update documentation for stricter vocabulary search path semantics 2009-05-16 00:29:21 -05:00
Joe Groff 480870e367 add some more opengl extension bindings:
GL_EXT_framebuffer_blit
	GL_EXT_framebuffer_multisample
	GL_EXT_gpu_shader4
	GL_EXT_geometry_shader4
	GL_EXT_transform_feedback
2009-05-15 11:00:39 -05:00
Slava Pestov b31fe9b8f2 Implement stricter vocab search path semantics, with a new API for vocabs.parser. Add map-find-last to sequences vocab 2009-05-14 22:31:29 -05:00
Slava Pestov fb6df472a2 Cleaning up USING: lists for new strict semantics 2009-05-14 16:54:16 -05:00
Slava Pestov 0c1e519dcb Rename use+ to add-use, move search to vocabs.parser, EXCLUDE: bombs out if word doesn't exist 2009-05-13 22:15:48 -05:00
Joe Groff a8231893ec un-private some useful words 2009-05-07 19:46:42 -05:00
Joe Groff 8db397f9de work around macosx-x86-64 bug where it tries to write glGetAttachedShaders param as a GLuint64 array instead of a GLuint. this should fix bunny/spheres crash 2009-05-04 15:15:36 -05:00
Joe Groff 3edd57aaa4 eliminate windows.opengl32 dependency from opengl.gl.windows so we can use opengl.gl.extensions to define wgl extensions 2009-04-30 20:38:18 -05:00
Slava Pestov 3148429e0c Fix texture resizing on S3 hardware on Windows. Reported by Kobi Lurie 2009-04-19 03:06:05 -05:00
Slava Pestov fba80949eb draw-scaled-texture now uses the display list if there's no scaling to be done 2009-04-16 23:14:41 -05:00
Slava Pestov db3818814d Refactor GLU usages in basis, and move opengl.glu to extra, and don't like VM with GLU 2009-04-11 15:17:08 -05:00
Slava Pestov 713ab02337 Don't use GL_ARB_texture_non_power_of_two on ATI hardware to fix bug reported by Andy Turner and Caesar Hu 2009-04-10 06:18:29 -05:00
Doug Coleman 4f64ea414b Merge branch 'master' of git://factorcode.org/git/factor 2009-04-09 10:45:19 -05:00
Doug Coleman 1551eacfa2 add support for tiff grayscale images 2009-04-09 10:44:50 -05:00
Slava Pestov 9efa1e0c31 Don't use glTexSubImage2D unless we really have to 2009-04-09 08:23:05 -05:00
Slava Pestov 87e4598581 opengl.textures: use GL_ARB_texture_non_power_of_two if available 2009-04-07 21:32:45 -05:00
Slava Pestov b0b77cf744 Fixes for recent changes 2009-04-05 17:32:53 -05:00
U-SLAVA-DFB8FF805\Slava 52060e6253 Oops dead code 2009-04-04 22:45:02 -05:00
U-SLAVA-DFB8FF805\Slava fb6c5141ec Fixing this for Windows 2009-04-04 22:38:49 -05:00
Slava Pestov 0affe96d95 opengl.textures: pad image up to a power of 2 using glTexSubImage2D instead of doing it in Factor code 2009-04-04 20:04:35 -05:00
Slava Pestov e84cc5f82d Simplify do-matrix 2009-04-04 20:03:30 -05:00
U-SLAVA-DFB8FF805\Slava 1731b57249 Add textures without alpha channels, cropping; update usages of <texture>; don't ignore trailing in x>offset 2009-04-03 07:01:22 -05:00
U-SLAVA-DFB8FF805\Slava 9c3054c84a More progress on Uniscribe 2009-04-02 13:05:26 -05:00
Slava Pestov 3bf5d2bfd4 Implement image tesselation in image.tesselation. This is used by opengl.textures to break up large bitmaps into multiple smaller textures. The gl-rect and gl-fill-rect words have different stack effects now, so usages were updated. 2009-03-27 18:31:25 -05:00