mcpp index

compat.glfw

#include

GLFW windowing and input library built from upstream sources

#include <GLFW/glfw3.h>
mcpp add compat.glfw@3.4

用法

來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。

#ifdef __linux__
#include <GLFW/glfw3.h>
int main() {
    glfwSetErrorCallback(nullptr);
    if (glfwInit()) glfwTerminate();   // tolerant: headless CI has no display
    return GLFW_VERSION_MAJOR == 3 ? 0 : 1;
}
#else
int main() { return 0; }
#endif

tests/examples/gui-stack/tests/glfw.cpp · 專案 tests/examples/gui-stack

建置

targets
glfw (lib)
language
c++23
C standard
c11
import std
no
include dirs
include, src

原始檔 (13)

  • src/context.c
  • src/init.c
  • src/input.c
  • src/monitor.c
  • src/platform.c
  • src/vulkan.c
  • src/window.c
  • src/egl_context.c
  • src/osmesa_context.c
  • src/null_init.c
  • src/null_monitor.c
  • src/null_window.c
  • src/null_joystick.c

版本

版本平台 鏡像sha256
3.4 最新 LinuxWindowsmacOS CN GLOBAL c038d3420023…