Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
flext
Commits
895c964f
Commit
895c964f
authored
Feb 25, 2002
by
thomas
Browse files
no message
git-svn-id:
https://svn.grrrr.org/ext/trunk@67
4d9ac71a-51e6-0310-8455-cad1006bcd31
parent
ec222764
Changes
3
Hide whitespace changes
Inline
Side-by-side
readme.txt
View file @
895c964f
...
...
@@ -45,10 +45,14 @@ for PD you need the pd source code (which is most likely part of the distributio
Goals/features of the package:
pros:
- better readability of code compared to straight C externals
- faster development, more robust coding
- sharing of common methods and data by using base classes
cons:
- introduces a small overhead to speed (esp. to messages)
see flext.h for the documented base classes
...
...
@@ -58,9 +62,10 @@ Version history:
0.1.2:
- defines for callback-to-method functions and method setup (FLEXT_CALLBACK*, FLEXT_ADD*)
- deprecated support for default arguments (A_DEFFLOAT and A_DEFSYMBOL)
- flext now uses PD's or Max's memory allocation functions
- deprecated support for default arguments (A_DEFFLOAT and A_DEFSYMBOL)
.. use GIMME instead!
- flext now uses PD's or Max's memory allocation functions
(for safety in Max's overdrive)
- added outlets for anythings
- better graphics update behavior for PD
0.1.1:
- documentation for flext.h
...
...
@@ -102,11 +107,13 @@ TODO list:
general:
- documentation
- add log messages for debugging version
- exchange more preprocessor definitions for C++ base class code
- add #defines to exclude unwanted features
- exchange more preprocessor definitions for C++ base class code (esp. pd and max calls)
- cleaner makefile for BCC
- makefile for MS VC++ 6
- should we use a namespace?
- Apple MPW project
- where to put flext source/lib in linux: /usr/local/lib,/usr/local/include ?
bugs:
none known
...
...
@@ -115,11 +122,13 @@ tests:
- test loadbang upon object creation in Max/MSP
features:
- proxy object for any non-leftmost inlets (see existing gate object, Krzysztof Czajas spy))
- abstraction for parsing argument lists
- abstraction for creating lists and anythings
- simulate loadbang on object creation for PD
- abstraction for clock functions
- sending messages to own inlet
- message queue? (for multithreaded operation)
- sending messages to own inlet (passing computation to other patch objects)
premature thoughts:
- explore jMax interface style
...
...
source/flbuf.cpp
View file @
895c964f
...
...
@@ -102,16 +102,33 @@ I flext_base::buffer::Set(t_symbol *s,BL nameonly)
return
ret
;
}
#ifdef PD
V
flext_base
::
buffer
::
SetRefrIntv
(
F
intv
)
{
interval
=
intv
;
if
(
interval
==
0
&&
ticking
)
{
clock_unset
(
tick
);
ticking
=
false
;
}
}
#else
V
flext_base
::
buffer
::
SetRefrIntv
(
F
)
{}
#endif
V
flext_base
::
buffer
::
Dirty
(
BL
force
)
{
if
(
sym
)
{
#ifdef PD
if
((
!
ticking
)
&&
(
interval
||
force
))
{
ticking
=
true
;
c
lock_delay
(
tick
,
0
);
c
b_tick
(
this
);
// immediately redraw
}
else
else
{
if
(
force
)
clock_delay
(
tick
,
0
);
isdirty
=
true
;
}
#elif defined(MAXMSP)
if
(
sym
->
s_thing
)
{
_buffer
*
p
=
(
_buffer
*
)
sym
->
s_thing
;
...
...
source/flext.h
View file @
895c964f
...
...
@@ -90,11 +90,7 @@ public:
I
Frames
()
const
{
return
frames
;
}
// graphic auto refresh interval
#ifdef PD
V
SetRefrIntv
(
F
intv
)
{
interval
=
intv
;
}
#else
V
SetRefrIntv
(
F
)
{}
#endif
V
SetRefrIntv
(
F
intv
);
protected:
t_symbol
*
sym
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment