Commit Graph

37 Commits

Author SHA1 Message Date
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
Jaromil
e203d72b50 small fixes to plumi_generator and fps 2009-03-27 13:57:12 +01:00
andy
2e1c0ae5ce small fix for javascript text layer, in javascript template 2009-03-06 17:58:58 +01:00
andy
169657ce31 Adding new scripts. An example python script playing video, and a python script which parses RSS2 feeds and
produces JavaScript for playing the videos from the "enclosures" in the feed.

layer.cpp - small check to avoid a segmentation fault on a null pointer.
2009-03-06 14:33:05 +01:00
xant
14444f3570 cynosure now works properly on osx as well (an it's very fast !!) 2009-03-05 01:45:34 +01:00
Luca Bigliardi
ed0c3408f5 Fix text-scroller javascript
Do not print if word has no length.
2009-02-16 21:01:21 +01:00
xant
f5590f89d6 fixes to compile on osx (xant) 2009-02-08 11:37:59 +01:00
Luca Bigliardi
7a5473c7a7 Fix text_scroller.js
We can set font size only after a font is used.
2009-01-31 01:09:42 +01:00
Jaromil
baec800d0f script directory re-organisation 2008-12-02 01:47:39 +01:00