LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 628 forks source link

Skia API #969

Closed FlysoftBeta closed 2 months ago

FlysoftBeta commented 2 months ago

Library

Skia

Project page

https://skia.org/

Source repository

https://skia.googlesource.com/skia

Platforms

Linux x64, Linux arm64, Linux arm32, macOS x64, macOS arm64, Windows x64, Windows x86, Windows arm64

Description

IMO, Skia is a neat graphics library and can benefit java UI framework development. It has been used in Chromium, Firefox and many other projects.

The JetBrains one only provides awt support, but i want full access of it.

TheMrMilchmann commented 2 months ago

Hi @FlysoftBeta, Skiko should already be usable with LWJGL (and GLFW). For Compose Multiplatform, JetBrains provides an (experimental) example showing how to use both together to create a Skia surface for a GLFW window.

Have a look at the sample. If you ignore the Compose-specific set-up, you should still have a Skia surface you can use for drawing.

FlysoftBeta commented 2 months ago

Thanks! That's helpful, didn't find this example before :)