Commit Graph

175 Commits

Author SHA1 Message Date
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
Luca Bigliardi
544f912198 Logging example for python
Provide a small example for logging.

Signed-off-by: Luca Bigliardi <shammash@artha.org>
2009-09-03 19:52:19 +01: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
bc3bdfedf3 print objects as tooltip or by double clicking.
change reset to use the internal broken one.
hide the stop button.
2009-09-01 02:21:59 +02:00
Jaromil
a716a6a58a Factory template in swig bindings
(thanks caedes for the tip)
2009-08-31 21:24:53 +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
b409820950 Factory is now used also for Screens
Screen API changed a bit: now size args are taken from init(w,h)
screen implementations should provide an _init(w,h) as well
constructors are without arguments (as in the rest of freej)
2009-08-29 11:53:48 +02:00
Pablo Martin
0dd31d7463 removed some cruft. 2009-08-29 04:00:22 +02:00
Pablo Martin
df0279fc14 adding a folder for example python scripts, as well as an initial sample
script.
2009-08-29 03:55:58 +02:00
Pablo Martin
f98c501fc7 made language mode switch automatically when loading a file with the
appropriate extension.
2009-08-29 03:52:06 +02:00
Pablo Martin
40350d6292 added a python opengl test using glut (intended to be used with the gtk
scripting gui).
2009-08-29 03:52:06 +02:00
Pablo Martin
35586464ff a little bit of cleanup. 2009-08-29 00:11:22 +02:00
Pablo Martin
f69378766b add python mode to the editor (can execute and run python scripts). 2009-08-28 22:11:42 +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
20c11fa7cc updating wishlist. 2009-08-28 08:31:15 +02:00
Pablo Martin
b11ff44ad4 adding some preview functionality, a statusbar, and a few more editor
commands.
2009-08-28 08:29:14 +02:00
Pablo Martin
2b15a97d2f adding cut, copy and paste accelerators. 2009-08-28 04:20:29 +02:00
Pablo Martin
adfcb44e94 add try catch except statement to test experimental function. 2009-08-28 04:06:33 +02:00
Pablo Martin
ed9c709f9d improving tree view:
- add set debug option on menu
  - add menu to remove layers, controllers and filters
  - fix details here and there
  - added a gtksourceview2 js editor (cant save or run from here yet :P)
2009-08-28 04:06:33 +02:00
Jaromil
6b43d14908 some more on the gtkgui wishlist 2009-08-27 18:28:40 +02:00
Pablo Martin
6f92bb3db8 add your own wishes for the gtk editor here. 2009-08-27 18:10:22 +02:00
Pablo Martin
6888a312e1 dont override global functions. 2009-08-27 18:00:53 +02:00
Pablo Martin
00ba1700be change some blit mode as a test. 2009-08-27 18:00:53 +02:00