• y8_351496
    了解作者
  • 5.1MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-18 07:59
    上传日期
OpenGL前向渲染器。 经过Zig 0.6.0测试 演示1: (农场资产的贷方位于DemoAssets目录中) 模组 WindowGraphicsInput:窗口创建(GLFW 3),用户输入(GLFW 3)和图形API(OpenGL 3.3,GLAD)的抽象。 取决于:GLFW,GLAD,stb_image,RefCount.zig,Files.zig 数学:矩阵和向量类型 ModelFiles:从自定义文件格式加载模型和动画 RTRenderEngine:场景的实时渲染。 取决于:WindowGraphicsInput,数学,ModelFiles,Assets,Files.zig,R
Game-Engine-master.zip
内容介绍
# GLFW ## Introduction GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan application development. It provides a simple, platform-independent API for creating windows, contexts and surfaces, reading input, handling events, etc. GLFW natively supports Windows, macOS and Linux and other Unix-like systems. On Linux both X11 and Wayland is supported. GLFW is licensed under the [zlib/libpng license](http://www.glfw.org/license.html). You can [download](http://www.glfw.org/download.html) the latest stable release as source or Windows binaries, or fetch the `latest` branch from GitHub. Each release starting with 3.0 also has a corresponding [annotated tag](https://github.com/glfw/glfw/releases) with source and binary archives. The [documentation](http://www.glfw.org/docs/latest/) is available online and is included in all source and binary archives. See the [release notes](https://www.glfw.org/docs/latest/news.html) for new features, caveats and deprecations in the latest release. For more details see the [version history](http://www.glfw.org/changelog.html). The `master` branch is the stable integration branch and _should_ always compile and run on all supported platforms, although details of newly added features may change until they have been included in a release. New features and many bug fixes live in [other branches](https://github.com/glfw/glfw/branches/all) until they are stable enough to merge. If you are new to GLFW, you may find the [tutorial](http://www.glfw.org/docs/latest/quick.html) for GLFW 3 useful. If you have used GLFW 2 in the past, there is a [transition guide](http://www.glfw.org/docs/latest/moving.html) for moving to the GLFW 3 API. ## Compiling GLFW GLFW itself requires only the headers and libraries for your OS and window system. It does not need the headers for any context creation API (WGL, GLX, EGL, NSGL, OSMesa) or rendering API (OpenGL, OpenGL ES, Vulkan) to enable support for them. GLFW supports compilation on Windows with Visual C++ 2010 and later, MinGW and MinGW-w64, on macOS with Clang and on Linux and other Unix-like systems with GCC and Clang. It will likely compile in other environments as well, but this is not regularly tested. There are [pre-compiled Windows binaries](http://www.glfw.org/download.html) available for all supported compilers. See the [compilation guide](http://www.glfw.org/docs/latest/compile.html) for more information about how to compile GLFW yourself. ## Using GLFW See the [documentation](http://www.glfw.org/docs/latest/) for tutorials, guides and the API reference. ## Contributing to GLFW See the [contribution guide](https://github.com/glfw/glfw/blob/master/docs/CONTRIBUTING.md) for more information. ## System requirements GLFW supports Windows XP and later and macOS 10.8 and later. Linux and other Unix-like systems running the X Window System are supported even without a desktop environment or modern extensions, although some features require a running window or clipboard manager. The OSMesa backend requires Mesa 6.3. See the [compatibility guide](http://www.glfw.org/docs/latest/compat.html) in the documentation for more information. ## Dependencies GLFW itself depends only on the headers and libraries for your window system. The (experimental) Wayland backend also depends on the `extra-cmake-modules` package, which is used to generated Wayland protocol headers. The examples and test programs depend on a number of tiny libraries. These are located in the `deps/` directory. - [getopt\_port](https://github.com/kimgr/getopt_port/) for examples with command-line options - [TinyCThread](https://github.com/tinycthread/tinycthread) for threaded examples - [glad2](https://github.com/Dav1dde/glad) for loading OpenGL and Vulkan functions - [linmath.h](https://github.com/datenwolf/linmath.h) for linear algebra in examples - [Nuklear](https://github.com/vurtun/nuklear) for test and example UI - [stb\_image\_write](https://github.com/nothings/stb) for writing images to disk The documentation is generated with [Doxygen](http://doxygen.org/) if CMake can find that tool. ## Reporting bugs Bugs are reported to our [issue tracker](https://github.com/glfw/glfw/issues). Please check the [contribution guide](https://github.com/glfw/glfw/blob/master/docs/CONTRIBUTING.md) for information on what to include when reporting a bug. ## Changelog - Added `glfwGetError` function for querying the last error code and its description (#970) - Added `glfwUpdateGamepadMappings` function for importing gamepad mappings in SDL\_GameControllerDB format (#900) - Added `glfwJoystickIsGamepad` function for querying whether a joystick has a gamepad mapping (#900) - Added `glfwGetJoystickGUID` function for querying the SDL compatible GUID of a joystick (#900) - Added `glfwGetGamepadName` function for querying the name provided by the gamepad mapping (#900) - Added `glfwGetGamepadState` function, `GLFW_GAMEPAD_*` and `GLFWgamepadstate` for retrieving gamepad input state (#900) - Added `glfwGetWindowContentScale`, `glfwGetMonitorContentScale` and `glfwSetWindowContentScaleCallback` for DPI-aware rendering (#235,#439,#677,#845,#898) - Added `glfwRequestWindowAttention` function for requesting attention from the user (#732,#988) - Added `glfwGetMonitorWorkarea` function for retrieving the monitor work area (#920,#989,#1322) - Added `glfwGetKeyScancode` function that allows retrieving platform dependent scancodes for keys (#830) - Added `glfwSetWindowMaximizeCallback` and `GLFWwindowmaximizefun` for receiving window maximization events (#778) - Added `glfwSetWindowAttrib` function for changing window attributes (#537) - Added `glfwGetJoystickHats` function for querying joystick hats (#889,#906,#934) - Added `glfwInitHint` for setting initialization hints - Added `glfwWindowHintString` for setting string type window hints (#893,#1139) - Added `glfwGetWindowOpacity` and `glfwSetWindowOpacity` for controlling whole window transparency (#1089) - Added `glfwSetMonitorUserPointer` and `glfwGetMonitorUserPointer` for per-monitor user pointers - Added `glfwSetJoystickUserPointer` and `glfwGetJoystickUserPointer` for per-joystick user pointers - Added `glfwGetX11SelectionString` and `glfwSetX11SelectionString` functions for accessing X11 primary selection (#894,#1056) - Added `glfwRawMouseMotionSupported` function for querying raw motion support (#125,#1400,#1401) - Added headless [OSMesa](http://mesa3d.org/osmesa.html) backend (#850) - Added definition of `GLAPIENTRY` to public header - Added `GLFW_TRANSPARENT_FRAMEBUFFER` window hint and attribute for controlling per-pixel framebuffer transparency (#197,#663,#715,#723,#1078) - Added `GLFW_HOVERED` window attribute for polling cursor hover state (#1166) - Added `GLFW_CENTER_CURSOR` window hint for controlling cursor centering (#749,#842) - Added `GLFW_FOCUS_ON_SHOW` window hint and attribute to control input focus on calling show window (#1189) - Added `GLFW_SCALE_TO_MONITOR` window hint for automatic window resizing (#676,#1115) - Added `GLFW_JOYSTICK_HAT_BUTTONS` init hint (#889) - Added `GLFW_LOCK_KEY_MODS` input mode and `GLFW_MOD_*_LOCK` mod bits (#946) - Added `GLFW_RAW_MOUSE_MOTION` input mode for selecting raw motion input (#125,#1400,#1401) - Added macOS specific `GLFW_COCOA_RETINA_FRAMEBUFFER` window hint - Added macOS specific `GLFW_COCOA_FRAME_NAME` window hint (#195) - Added macOS specific `GLFW_COCOA_GRAPHICS_SWITCHING` window hint (#377,#935) - Added macOS specific `GLFW_COCOA_CHDIR_RESOURCES` init hint - Added macOS specific `GLFW_COCOA_MENUBAR` init hint - Added X11 specific `GLFW_X11_CLASS_NAME` and `GLFW_X11_INSTANCE_NAME` window hints (#893,#1139) - Added `GLFW_INCLUDE_ES32` for including the OpenGL ES 3.2 header - Added `GLFW_OSMESA_CONTEXT_API` for creating OpenGL contexts with [OSMesa](https://www.mesa3d.org/osmesa.html) (#281) - Added
评论
    相关推荐