58 Commits

Author SHA1 Message Date
Jaromil
f0da86aded jack: replace deprecated jack_client_new with jack_client_open 2010-10-09 19:49:06 +02:00
Xant
219ceb7166 dumb example script to test filter functionalities 2010-05-19 12:57:31 -07:00
xant
760bb90a50 refactoring the internal Filter implementation
changes don't affect the javascript api
2010-05-17 21:01:02 +02:00
xant
5d602d0ba0 stop changing scripts so that they work only on linux , please
we shouldn't never specify a specific screen implementation in the
examples, otherwise they won't run on platforms where that
implementation is not available.

We should always try asking for the default implemenation for the
platform we are running on (by omitting the argument when requesting for
the screen pointer)
2010-04-23 12:22:45 +02:00
Jaromil
59de73ecbb added properties to screen
now screen.w and screen.h give back size
and screen.initialized says if init() was succesfull
plus the array layers[] contains the list of currently added layers
2010-04-02 18:23:43 +02:00
xant
9aac363e63 allow to use this script on other screens as well 2010-03-28 21:33:26 +02:00
Jaromil
1b5cdeba5c fix to ImageLayer to work in js
also added a little tests/ directory for javascripts
2010-03-20 15:30:53 +01:00
Jaromil
aceaf1d7f1 new Screen.save_frame() method for screenshots
using libGD (when detected at configure) enables each screen to
take a screenshot at any moment and save it into a file

this is useful for thumbnailing and demos of plugin effects
2010-02-12 21:09:46 +01:00
Jaromil
ae7b1ad056 progresses on processing script
processing-js 0.4 has been merged in some relevant parts
basic and topic scripts added for test
color handling fixed, more scripts show up now
2010-02-12 18:36:54 +01:00
Jaromil
ea0d4a4329 new experimental support for processing scripts
a -p flag is added on commandline to run .pde scripts directly
it makes use of the included processing.js glue
a new scripts/processing directory is added with some examples to experiment with
so far only a few processing scripts work
2010-02-12 14:02:53 +01:00
Jaromil
5787520c12 new Color class (mostly useful to javascript),
fix and debug of numeric conversions in javascript,
more progress on the Cairo layer,
more processing test scripts

still a pending problem with visualization on most scripts
so far only ventaglio.pjs works...
2010-01-18 15:22:47 +01:00
Xant
89be3a9cd3 layer must be started explicitly 2010-01-16 06:48:05 -08:00
Jaromil
a25b6b0814 new VectorLayer
linking cairo library
ready for serving processing.js wrapper, also imported
2009-12-28 00:33:03 +01:00
Jaromil
1820a4f3fe imported processing.js in javascript libs 2009-12-22 11:20:37 +01:00
Jaromil
a4c73b60b7 joystick rumble in linux ;) 2009-11-07 12:28:48 +01:00
Jaromil
bb85a58216 fix to VideoLayer
now correctly opens files from Factory
still todo a cleanup of namespace:
s/VideoLayer/FFmpegLayer/
2009-10-18 17:50:28 +02:00
Jaromil
4a413114da small fixes to Screen
scripts now use new Screen() factory
good coords calculations, better aa options
2009-10-07 13:40:16 +02:00
buZz
27c067478f made it actually (sorta) work again ... 2009-10-06 20:52:25 +02:00
buZz
21944adcd4 added a TODO and some code for a slider 2009-09-18 02:32:03 +02:00
Xant
9b805c0354 don't use hardcoded values for screen size, query the screen instead
(and initialize it if necessary)
2009-09-13 04:35:03 +02:00
Xant
ef35239eae allow to query the screen for 'initialized' status.
So javascripts can know if they need to initilize the screen
(definining the size as well) or if they have been provided a
running screen and there is no need to change size or reinitialize it
2009-09-13 04:17:45 +02:00
Xant
71fca9cfa7 allow to get the default screen instance
Instead of being forced to always specify the type
The screen_js constructor now behaves properly
(reusing already initialized screens properly ...so also the ones
not created by the javascript, where jsobj is still NULL while
initilized is true)
2009-09-13 04:10:49 +02:00
Bastiaan vd Berg (buZz)
de2c025c4d added a javascript widgetclass and an example application that uses it (both quite unfinished) 2009-09-02 19:59:41 +02:00
Jaromil
fd11f832e3 little fixes
testing python scripts after cleanup
2009-08-31 01:42:32 +02:00
Jaromil
ad8e5ca2fd some more adjustements and fixes 2009-08-30 22:48:57 +02:00
Jaromil
9f0774f30c Context::screen is back (back-compat)
some more fixes to the cleanup
2009-08-30 22:03:00 +02:00
Jaromil
16ea26558c Merge branch 'singleton' into cleanup_aug09
still needs testing as things got shaked quite a bit
now stabilizing this branch and then merge into trunk

Conflicts:

	src/gl_screen.cpp
	src/include/factory.h
	src/include/freeframe_freej.h
	src/include/frei0r_freej.h
	src/kbd_ctrl_js.cpp
	src/layer.cpp
	src/mouse_ctrl.cpp
2009-08-30 19:11:21 +02:00
Jaromil
f608aeff1f some stabilization after cleanup
preparing to merge singleton branch
it will solve unique screen and controllers for multiple javascripts
2009-08-30 17:33:11 +02:00
Jaromil
f3c72894fc screated screen_js
now screens are also present in JS
still tasks pending:
	backwards compatibility with scripts
	resolution of multiple screens in startup/reset logic
	testing
2009-08-30 04:28:49 +02:00
Xant
7c8fe8f6a1 ops 2009-08-29 17:02:39 +02:00
Xant
dc939ae8bf don't use hardcoded values, but query the environment for screen size 2009-08-29 17:02:38 +02:00
Jaromil
89d97e5228 change width/height() to get_width/get_height()
later on will be methods attached to the screen class
2009-08-28 22:03:31 +02:00
Pablo Martin
6888a312e1 dont override global functions. 2009-08-27 18:00:53 +02:00
Xant
689308ac83 query the environment for screen resolution
(instead of using hardcoded values)
2009-08-21 10:15:40 +02:00
Xant
a58d35b61c Allow to query the context for actual screen size
Don't let acid_geo to change screen resolution (affecting all
other running layers) but initialize it to fit actual size.
2009-08-20 22:13:47 +02:00
Jaromil
36441ddd55 acid geometry script by buZz 2009-08-19 23:32:56 +02:00
Jaromil
d6c7ac935b some cleanup and test
audio works! can hear the sound of videos on jack
just sometimes the audio jumps a little, must check that buffers are tight
2009-07-24 12:33:42 +02:00
Robin Gareus
c0126d7f42 added example script for jack audio testing. 2009-07-24 12:33:42 +02:00
Jaromil
8aeeb41862 complete parameters in blits
fixes for parameter change in blits
2009-06-25 15:05:27 +02:00
xant
1700370d4a allow to use this script on osx (where textlayer hasn't been implemented yet) 2009-05-22 12:35:36 +02:00
xant
3f8716168a dumb script to test filesaving an encoded video stream 2009-05-22 12:09:17 +02:00
xant
a20853a56a - report the correct bytesize in video_encoder
- osx-only fixes and tests
2009-05-21 16:28:00 +02:00
Jaromil
59de5745a2 cleanup and streaming debugging
detecting and linking system wide libshout
2009-05-21 14:06:18 +02:00
Jaromil
4948563a84 experimenting on engine reset()
plus some cleanup and indestructible flag for controllers
2009-05-20 15:51:45 +02:00
xant
748625c7be a back copy of this script was erroneously added to the repository 2009-05-18 22:48:04 +02:00
Jaromil
a190f3f4e2 refactoring of garbage collection
testing that multiple scripts can be included from a main one
removed js garbage collection in controllers (was called after script load)
included JSON as a standard library (it works!)
modified example scripts to avoid namespace clash
2009-05-16 17:00:37 +02:00
Jaromil
9b42368574 fixed mouse controller
fixed JSCall in controller
cleanup of various controllers
2009-05-16 03:02:11 +02:00
Jaromil
4f1500e7df cleanup and debugging of last changes
also trying to figure out why quit messed up
old jsparser's SIGINT catch was removed
2009-05-15 21:48:15 +02:00
Jaromil
b8cd88e7b5 don't use alpha blitting in simple star.js example script 2009-05-15 20:32:54 +02:00
xant
29c9777586 - fix in geo_layer to avoid race conditions when accessing the surface
- use ARGB as pixelformat if HAVE_COCOA is true
- updated cynosure to explicitly activate the geo_layer once created
2009-05-15 12:21:26 +02:00