This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/freestyle/intern/app_blender/api.cpp

41 lines
653 B
C++
Raw Normal View History

#include "AppGLWidget.h"
#include "Controller.h"
#include "AppConfig.h"
#include "test_config.h"
#include <iostream>
using namespace std;
#ifdef __cplusplus
extern "C" {
#endif
void FRS_execute() {
cout << "Freestyle start" << endl;
Config::Path pathconfig;
Controller *c = new Controller;
AppGLWidget *view = new AppGLWidget;
c->SetView(view);
view->setWidth(640);
view->setHeight(640);
c->Load3DSFile( TEST_3DS_FILE );
c->InsertStyleModule( 0, TEST_STYLE_MODULE_FILE );
c->toggleLayer(0, true);
c->ComputeViewMap();
c->DrawStrokes();
cout << "Freestyle end" << endl;
}
#ifdef __cplusplus
}
#endif