combined_editor function, and improved dependency handling (removing duplicates), viewer refreshes on events from script manager

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@147 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-22 19:05:52 +00:00
parent 7ba562ea2e
commit cf39deec24
20 changed files with 220 additions and 30 deletions
+2
View File
@@ -13,3 +13,5 @@
// what a waste of a source file...
volatile LONG Age::new_age;
IMPLEMENT_DYNAMIC_ARG(long, last_update_age, 0);
+9 -2
View File
@@ -10,6 +10,7 @@
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <util/dynamic_arg.hpp>
#ifdef _MSC_VER
extern "C" {
@@ -32,6 +33,7 @@ class Age {
Age() {
update();
}
Age(LONG age) : age(age) {}
/// Update the age to become the newest one
inline void update() {
@@ -51,9 +53,14 @@ class Age {
static volatile LONG new_age;
};
// ----------------------------------------------------------------------------- : Aged
/// Age the object currently being processed was last updated
/** NOTE:
* image generating functions have two modes
* if last_update_age > 0 they return whether the image is still up to date
* if last_update_age == 0 they generate the image
*/
DECLARE_DYNAMIC_ARG (long, last_update_age);
// ----------------------------------------------------------------------------- : EOF
#endif