add command line interface handler and implement convert command from pano to jpg
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
#include "log.h"
|
||||
#include "node_canvas.h"
|
||||
|
||||
#define RES 2048
|
||||
|
||||
Node* NodeCanvas::clone_instantiate() const
|
||||
{
|
||||
return new NodeCanvas();
|
||||
@@ -13,7 +11,7 @@ void NodeCanvas::init()
|
||||
{
|
||||
m_mouse_ignore = false;
|
||||
m_canvas = std::make_unique<ui::Canvas>();
|
||||
m_canvas->create(RES, RES);
|
||||
m_canvas->create(CANVAS_RES, CANVAS_RES);
|
||||
m_sampler.create(GL_NEAREST);
|
||||
m_sampler_linear.create(GL_LINEAR);
|
||||
m_sampler_stencil.create(GL_LINEAR, GL_REPEAT);
|
||||
@@ -29,7 +27,7 @@ void NodeCanvas::init()
|
||||
void NodeCanvas::restore_context()
|
||||
{
|
||||
Node::restore_context();
|
||||
m_canvas->create(RES, RES);
|
||||
m_canvas->create(CANVAS_RES, CANVAS_RES);
|
||||
m_sampler.create(GL_NEAREST);
|
||||
m_face_plane.create<1>(2, 2);
|
||||
m_canvas->snapshot_restore();
|
||||
|
||||
Reference in New Issue
Block a user