Headers Only C++11 CPU Vector Graphics. no std-lib, no FPU and no GPU required !
Headers Only C++11 CPU Vector Graphics. no std-lib, no FPU and no GPU required !
Fast, Super Slim, Embeddable, Headers only C++11 vector graphics library, that can run on any 32/64 bits computer without FPU or GPU. No standard library required.
std::, no external libraries.check out our website at micro-gl.github.io/docs/microgl
A circle with Texture fill and Gradient stroke
…A Rectangle, that samples a circle
using Canvas24= canvas>;
using number = float;
// using number = Q;
circle_sampler sampler{};
sampler.updatePoints({0.50,0.5}, 0.5, 0.10);
sampler.color_fill= {0, 0, 0, 255};
sampler.color_background= {255, 255, 255, 0};
sampler.color_stroke= {255, 255, 255, 255};
Canvas24 canvas(512, 512);
canvas.clear({255,0,255,255});
canvas.drawRect(
sampler,
0, 0, 300, 300);A path tessellation with red color
…Language
C++11, does not use any STL library and standard library.Graphics
porter-duff alpha compositingQ numbers (fixed point), no need to use float pointsGeometry
micro{gl}microgl is a headers only library, which gives the following install possibilities:
cmake to invoke the install target, that will copy everything in your system via$ mkdir cmake-build-release
$ cd cmake-build-release
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ cmake --install .include/microgl to anywhere you want.micro{gl}Following options are available:
CMakeLists.txt addadd_subdirectory(/path/to/microgl)
target_link_libraries(your_app microgl)micro{gl} with option 1 (see above) at your system, you can insteadfind_package(microgl CONFIG REQUIRED)
target_link_libraries(your_app microgl::microgl)CMakeLists.txttarget_include_directories(app path/to/microgl/folder/include/)include/microgl to the default system include path,cmake/Findmicrogl.cmake to automatically create the cmake targetslist(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/path/to/Findmicrogl/folder)
find_package(microgl REQUIRED)
target_link_libraries(your_app microgl::microgl)include/microgl into a sub folder of your project and include the headermicro{gl} using the vcpkg install microgl command, and then you can use option 2 (see above)
to find it. See issue micro-gl/micro-gl#33 for more details.First make sure you have
There are two ways:
CMakeLists.txt file, and then it$ mkdir cmake-build-release
$ cd cmake-build-release
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ cmake --build . --target
$ ../examples/bin/example_nameAuthor: Tomer Shalev, [email protected], all rights reserved (2021)Thanks to JetBrains cLion Support Team for granting this project an OSS license of cLion
No open issues yet, or sync has not completed.