mcpp index

compat.khrplatform

#include

Khronos KHR platform header for OpenGL/EGL compat packages

#include <KHR/khrplatform.h>
mcpp add compat.khrplatform@2026.05.31

Usage

From this repository's own test project — built and run by CI, not written for the website.

// Faithful migration of smoke_compat_core.sh: gtest + ftxui + lua + mbedtls +
// OpenGL/KHR headers. main() comes from the gtest "main" feature.
#include <array>
#include <string>

#include <GL/gl.h>
#include <KHR/khrplatform.h>
#include <ftxui/dom/elements.hpp>
#include <ftxui/screen/screen.hpp>
#include <gtest/gtest.h>
#include <mbedtls/sha256.h>

extern "C" {
#include <lauxlib.h>
#include <lua.h>
#include <lualib.h>
}

static bool check_ftxui() {
    using namespace ftxui;
    Element document = hbox({text("compat"), separator(), text("ftxui")});
    Screen screen = Screen::Create(Dimension::Fit(document), Dimension::Fit(document));
// …

tests/examples/core/tests/runtime.cpp · project tests/examples/core

Build

targets
khrplatform (lib)
language
c++23
C standard
c11
import std
no
include dirs
*/api

Sources (1)

  • mcpp_generated/khrplatform_empty.c

Generated files

  • mcpp_generated/khrplatform_empty.c

Versions

VersionPlatforms Mirrorssha256
2026.05.31 latest LinuxWindowsmacOS CN GLOBAL f303c6a92480…