Kotlin OpenGL libpangocairo Unicode Font Rendering

Submitted by Dickens A S on Fri, 11/22/2019 - 05:05

Kickstart Kotlin OpenGL using GLEW, libpangocairo using below github code

GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/opengl-pangocairo

Output window with GLFW

Pango+Cairo

libpangocairo offers combined ready made methods to render, save, texture, pattern generate in an image file or in a rendering window

cairo is one of the base libraries used in many open source tool kits

there is no much difference between a C code implementation and Kotlin code, any existing C code can be ported to kotlin with very few tweaks

MSYS2 : https://www.msys2.org/

This is required for windows to download pre-compiled libraries and its headers

pacman -S mingw-w64-x86_64-glew mingw-w64-x86_64-glfw mingw-w64-x86_64-pango mingw-w64-x86_64-cairo

change x86_64 to i686 for 32 bit widows

For GLAD refer this code kotlin glad opengl glsl

For Pango+Cairo SVG refer this code opengl svg pango cairo

For Vulkan refer this code vulkan triangle example

For GLEW refer this code kotlin opengl glsl

For Chipmunk 2D game physics refer this code kotlin svg chipmunk

 

Add new comment