Files
penpot/frontend/resources/public/wasm/labs/vector.cpp
Aitor 7d8e985877 wip
2023-03-15 17:28:15 +01:00

26 lines
348 B
C++

#include <emscripten.h>
#include <iostream>
#include <vector>
#include <memory>
enum ShapeType
{
FRAME = 0,
RECT,
ELLIPSE,
};
struct Shape {
ShapeType type;
Shape() : type(FRAME) {};
};
static std::shared_ptr<Shape> root;
void EMSCRIPTEN_KEEPALIVE resize(const std::shared_ptr<Shape> ptr)
{
std::cout << "resize" << std::endl;
}