Skip to content

Instantly share code, notes, and snippets.

View colonelzkiller's full-sized avatar

zkiller colonelzkiller

View GitHub Profile
@colonelzkiller
colonelzkiller / gist:4721858b1cc4da0f579feac6a4c2e4fb
Last active April 20, 2024 21:31
SFML 2.6, Skia 0.34.0, Yoga Layout 3.0 Example
#define SK_GL
// Compile command:
// This project uses the Skia graphics library along with SFML, EGL, and other libraries.
// Compilation requires linking against these libraries as specified below.
// g++ -o test test.cpp -I/usr/include/skia -lskia -lsfml-graphics -lsfml-window -lsfml-system -lyogacore -lEGL -lGLESv2
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>
#define SK_GL
// g++ -o test main.cpp -I/usr/include/skia -lskia -lsfml-graphics -lsfml-window -lsfml-system -lyogacore
#include <memory>
#include <cmath>
#include <iostream>
#include <map>
#include <functional>
#include <any>