testapp.cpp 547 Bytes
Newer Older
1
2
3
4
5
6
7
#include "modules/pipelinefactory.h"
#include "luapipeline.h"


using namespace campvis;


8
9
int main()
{
10
    PipelineFactory& pipelineFactory = PipelineFactory::getRef();
11
    pipelineFactory.registerPipeline<LuaPipeline>([] (DataContainer* dc) -> AbstractPipeline* {
12
        return new LuaPipeline(CAMPVIS_SOURCE_DIR "/scripting/script.lua", dc);
13
14
15
16
17
18
19
    });

    DataContainer* dc = new DataContainer("Test Data Container");
    AbstractPipeline* p = pipelineFactory.createPipeline("LuaPipeline", dc);
    p->init();
    p->deinit();

20
21
    return 0;
}