Simple Triangle (C++)
Change to Lua sample
#include "Supernova.h" using namespace Supernova; Scene scene; Polygon triangle(&scene); void init(){ triangle.addVertex(0, -100); triangle.addVertex(-50, 50); triangle.addVertex(50, 50); triangle.setPosition(Vector3(300,300,0)); triangle.setColor(0.6, 0.2, 0.6, 1); Engine::setCanvasSize(1000,480); Engine::setScene(&scene); }
Copyright © 2024, Supernova Engine
This is an open source project Source code is licensed by MIT License Images, logos, text and website are licensed by CC BY 3.0