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
Slava Pestov
6c0986f8b2
Add definition mixin in definitions vocab to replace hard-coded union in ui.tools.operations; add ?execute to kernel to replace dup word? [ execute ] when calls in unicode.breaks and opengl
2009-03-26 21:27:45 -05:00
Doug Coleman
8b7fcce399
update code for usages of add-library
2009-03-25 23:00:19 -05:00
Slava Pestov
ea60f8ae93
Changing : foo ; parsing to SYNTAX: foo ;
2009-03-21 01:27:50 -05:00
Slava Pestov
667eca9410
Fix unit tests and help lint for 'see' move
2009-03-11 17:33:54 -05:00
Slava Pestov
2f26d5f3da
images.viewer can now display some un-normalized images
2009-03-10 16:58:35 -05:00
Slava Pestov
375c5e69b5
Various load-everything fixes
2009-03-07 01:22:21 -06:00
U-SLAVA-DFB8FF805\Slava
2ec3f1c700
Delete ui.text.freetype, opengl.sprites, and Bitstream Vera fonts; move freetype FFI binding from basis to extra since its no longer used by the UI
2009-03-02 01:17:33 -06:00
Slava Pestov
385c4661d6
First attempt at ui.text.pango
2009-02-28 01:31:51 -06:00
Slava Pestov
ce1bc1d6ed
Fixing conflicts from stack checker changes
2009-02-24 01:21:10 -06:00
Slava Pestov
0580b67542
Fix textures with zero width and non-zero height (or vice versa) by not rendering them
2009-02-20 23:30:41 -06:00
Slava Pestov
fa79803856
Fix text rendering for fonts where the image bounds exceed the metric bounds, such as Zapfino and Arabic fonts
2009-02-20 20:53:51 -06:00
Slava Pestov
58e55d4f45
Working on documentation
2009-02-19 16:54:27 -06:00
Slava Pestov
f843877d35
Clean up basis.opengl and fix tests
2009-02-19 05:01:21 -06:00
Slava Pestov
676806ce39
opengl.textures: clean up code, only create power-of-2 textures, make API nicer
2009-02-19 04:06:57 -06:00
Slava Pestov
758ba5bcea
Remove unused circle rendering code
2009-02-15 06:09:04 -06:00
Slava Pestov
628c219495
opengl.texture-cache is not necessary; simplify code
2009-02-15 04:33:43 -06:00
Slava Pestov
f0bc2e1176
Update core-graphics, core-text, opengl.textures for Doug's images API change; core-graphics:with-bitmap-context is now core-graphics:make-bitmap-image
2009-02-13 19:11:07 -06:00
Slava Pestov
ea2a3d6758
Split off opengl.textures from opengl.texture-cache; use image tuples instead of texture-info
2009-02-12 03:58:05 -06:00
Slava Pestov
cfa285a646
Refactor texture cache
2009-02-11 04:54:06 -06:00
Slava Pestov
d6872af3e7
cache: don't require values to have an age slot anymore
2009-02-10 22:05:13 -06:00
Slava Pestov
d1a5bf2073
Working on ui.images; change draw-gadget to translate to origin for you
2009-02-10 18:47:34 -06:00
Slava Pestov
5be7a6777b
Clean up Core Text rendering code, and factor our basis/cache and basis/opengl/texture-cache
2009-02-10 02:45:43 -06:00
Slava Pestov
dd9cf39467
Fix conflict in libc
2009-02-06 05:10:41 -06:00
Slava Pestov
d6aa376ed0
Removing now-redundant underlying>> calls
2009-02-06 04:37:28 -06:00
Slava Pestov
6906fad725
Fixing help-lint issues
2009-01-30 03:45:39 -06:00
Slava Pestov
447d30be62
Update opengl docs
2009-01-30 03:37:20 -06:00
Slava Pestov
505c9a77c2
Merge branch 'master' into new_ui
2009-01-29 22:11:34 -06:00
Slava Pestov
858299c31f
Add support for GL_BGRA_ext
2009-01-29 22:08:28 -06:00
Slava Pestov
0568915bca
Generalize make-texture
2009-01-29 22:08:07 -06:00
Slava Pestov
1951d739a0
Stack effect declarations are mandatory on all words now
...
define-temp now takes an effect parameter
Fix compiler bug that Dan found
Stricter enforcement of * effects
Move compile-call from compiler.units to compiler
2009-02-23 20:27:05 -06:00
Slava Pestov
2a7d353251
Debugging Core Text, get colored text working and fix memory management issue
2009-01-21 19:34:42 -06:00
Slava Pestov
7fdf7cc906
Clean up OpenGL code a bit
2009-01-18 20:10:08 -06:00
Slava Pestov
63382b6e81
Fix capitalization
2009-01-06 17:00:30 -06:00
Slava Pestov
058ba127cb
Cleaning up more -rot usages
2008-12-22 05:41:01 -06:00
Slava Pestov
34792a9f23
Remove >r/r>
2008-12-17 19:17:37 -06:00
Slava Pestov
c5160d76e9
Merge qualified, alias, symbols, constants into core
2008-12-17 18:10:01 -06:00
Slava Pestov
daf2857d7b
define-inline now takes an effect parameter
...
C: now sets the stack effect of the new word to slot names
add new basis/constants vocab; CONSTANT: foo bar is equivalent to : foo bar ; inline
(going to fold CONSTANT:, ALIAS: and qualified into core soon perhaps)
tighten the screws: inline words now need a stack declaration too
update some usages of inline words
2008-12-15 19:44:56 -06:00
Slava Pestov
42b580c80a
Remove .lib dependencies from opengl.{shaders,framebuffers,capabilities} and move them to basis
2008-12-13 07:14:11 -06:00
Slava Pestov
402da00390
Fixing bootstrap with specialized arrays
2008-12-02 02:44:19 -06:00
Slava Pestov
f51708386d
Fix conflicts
2008-12-01 20:39:43 -06:00
Slava Pestov
3e25d14e54
Code cleanup: refactoring usages of rot and -rot to use newer idioms instead
2008-11-30 17:47:29 -06:00
Slava Pestov
594751381e
Fix bootstrap
2008-11-29 15:21:12 -06:00
Slava Pestov
e8a69a3aea
Fix conflict
2008-11-29 05:14:49 -06:00
Slava Pestov
ca12d46820
Don't use >r/r> in opengl
2008-11-29 00:20:29 -06:00
Slava Pestov
69d5628944
Workaround bug in Apple X3100 driver
2008-11-26 01:41:13 -06:00
Slava Pestov
1b47e80994
Clean up some specialized array usage
2008-11-18 22:18:35 -06:00
Slava Pestov
281657dd82
Fix conflict
2008-11-18 22:18:14 -06:00
Slava Pestov
d0e53db5fc
Rendering tweaks
2008-11-18 14:15:38 -06:00
Slava Pestov
b609ca7d01
Tweak gl-rect to generate the correct output on Windows with Intel graphics
2008-11-18 11:48:06 -06:00
U-SLAVA-DFB8FF805\Slava
0eee4f89d4
Mess around with tags
2008-11-17 06:59:17 -06:00
Slava Pestov
b4ae47dfc8
More OpenGL tweaks
2008-11-17 05:56:53 -06:00
Slava Pestov
3f85a4e727
OpenGL rendering tweaks
2008-11-17 05:16:34 -06:00
Slava Pestov
2fe364a7bb
Specialized arrays work in progress
2008-11-14 20:18:16 -06:00
Slava Pestov
d50f4275d4
Fix help lint
2008-11-11 08:53:11 -06:00
Slava Pestov
d579628d61
More OpenGL rendering tweaks
2008-11-11 02:31:56 -06:00
Slava Pestov
f0c61b9499
Rewrite OpenGL rendering code
...
- Don't use glPolygonMode to draw outline rectangles
- Use vertex arrays instead of glBegin/glVertex/glEnd
- Remove dead code from opengl vocabulary
- draw-interior and draw-boundary are now called with origin get [ ... ] with-translation
2008-11-11 00:28:37 -06:00
Joe Groff
6189bfd1f0
bring cairo bindings back from the dead
2008-11-10 17:01:14 -08:00
Slava Pestov
c19f2257f4
Fix permission bits
2008-10-02 08:34:49 -05:00
Slava Pestov
d592106e93
Fix inference
2008-09-19 01:08:27 -05:00
Slava Pestov
aea0fed14c
Fixing basis -> extra dependencies
2008-09-05 19:29:14 -05:00
Joe Groff
9dbe18e07d
remove obsolete reference to "construct" in bunny.outlined. clean up >r imbalance in opengl.capabilities
2008-09-01 08:53:32 -07:00
Doug Coleman
06a8e418c4
fix accessor docs
2008-08-29 16:59:57 -05:00
Doug Coleman
8f84b4ba32
new accessors
2008-08-29 16:42:12 -05:00
Slava Pestov
4bc54497fa
Move vocabularies which use delegation to unmaintained, and delete older unmaintained stuff
2008-08-27 16:23:35 -05:00
Slava Pestov
e96228b24c
Move a few UI dependencies into basis
2008-08-22 22:10:49 -05:00