#pragma once #include <vector> #include "Rect.h" class VectorTexture { public: enum ShapeType { // Circle: x, y, r Circle, // Line: x1, y1, x2, y2, width Line, // Rectangle: x, y, width, height Rectangle, // Square: x, y, a Square, // Polygon: x[n], y[n] Polygon }; struct Shape { public: ShapeType type; float data[]; }; Rect rect; std::vector<Shape> shapes; };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)