资源简介
opengl的GLFW库,版本3.3,网上也有免费下载的网址,只是给大家提供方便
代码片段和文件信息
/* Copyright (c) 2012 Kim Gräsman
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of Kim Gräsman nor the names of contributors may be used
* to endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL KIM GRÄSMAN BE LIABLE FOR ANY DIRECT
* INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES
* (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include “getopt.h“
#include
#include
const int no_argument = 0;
const int required_argument = 1;
const int optional_argument = 2;
char* optarg;
int optopt;
/* The variable optind [...] shall be initialized to 1 by the system. */
int optind = 1;
int opterr;
static char* optcursor = NULL;
/* Implemented based on [1] and [2] for optional arguments.
optopt is handled FreeBSD-style per [3].
Other GNU and FreeBSD extensions are purely accidental.
[1] http://pubs.opengroup.org/onlinepubs/000095399/functions/getopt.html
[2] http://www.kernel.org/doc/man-pages/online/pages/man3/getopt.3.html
[3] http://www.freebsd.org/cgi/man.cgi?query=getopt&sektion=3&manpath=FreeBSD+9.0-RELEASE
*/
int getopt(int argc char* const argv[] const char* optstring) {
int optchar = -1;
const char* optdecl = NULL;
optarg = NULL;
opterr = 0;
optopt = 0;
/* Unspecified but we need it to avoid overrunning the argv bounds. */
if (optind >= argc)
goto no_more_optchars;
/* If when getopt() is called argv[optind] is a null pointer getopt()
shall return -1 without changing optind. */
if (argv[optind] == NULL)
goto no_more_optchars;
/* If when getopt() is called *argv[optind] is not the character ‘-‘
getopt() shall return -1 without changing optind. */
if (*argv[optind] != ‘-‘)
goto no_more_optchars;
/* If when getopt() is called argv[optind] points to the string “-“
getopt() shall retu
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-16 00:32 glfw-3.3\
目录 0 2019-04-15 23:40 glfw-3.3\CMake\
文件 1054 2019-04-15 23:40 glfw-3.3\CMake\GenerateMappings.cmake
文件 596 2019-04-15 23:40 glfw-3.3\CMake\i686-w64-mingw32-clang.cmake
文件 588 2019-04-15 23:40 glfw-3.3\CMake\i686-w64-mingw32.cmake
文件 1297 2019-04-15 23:40 glfw-3.3\CMake\MacOSXBundleInfo.plist.in
目录 0 2019-04-15 23:40 glfw-3.3\CMake\modules\
文件 747 2019-04-15 23:40 glfw-3.3\CMake\modules\FindEpollShim.cmake
文件 445 2019-04-15 23:40 glfw-3.3\CMake\modules\FindOSMesa.cmake
文件 915 2019-04-15 23:40 glfw-3.3\CMake\modules\FindWaylandProtocols.cmake
文件 1043 2019-04-15 23:40 glfw-3.3\CMake\modules\FindXKBCommon.cmake
文件 606 2019-04-15 23:40 glfw-3.3\CMake\x86_64-w64-mingw32-clang.cmake
文件 598 2019-04-15 23:40 glfw-3.3\CMake\x86_64-w64-mingw32.cmake
文件 12874 2019-04-15 23:40 glfw-3.3\CMakeLists.txt
文件 1142 2019-04-15 23:40 glfw-3.3\cmake_uninstall.cmake.in
目录 0 2019-04-15 23:40 glfw-3.3\deps\
文件 8053 2019-04-15 23:40 glfw-3.3\deps\getopt.c
文件 2136 2019-04-15 23:40 glfw-3.3\deps\getopt.h
目录 0 2019-04-15 23:40 glfw-3.3\deps\glad\
文件 206323 2019-04-15 23:40 glfw-3.3\deps\glad\gl.h
文件 10037 2019-04-15 23:40 glfw-3.3\deps\glad\khrplatform.h
文件 3318 2019-04-15 23:40 glfw-3.3\deps\glad\vk_platform.h
文件 179624 2019-04-15 23:40 glfw-3.3\deps\glad\vulkan.h
文件 109362 2019-04-15 23:40 glfw-3.3\deps\glad_gl.c
文件 37298 2019-04-15 23:40 glfw-3.3\deps\glad_vulkan.c
文件 12708 2019-04-15 23:40 glfw-3.3\deps\linmath.h
目录 0 2019-04-15 23:40 glfw-3.3\deps\mingw\
文件 112560 2019-04-15 23:40 glfw-3.3\deps\mingw\dinput.h
文件 7950 2019-04-15 23:40 glfw-3.3\deps\mingw\xinput.h
文件 3111 2019-04-15 23:40 glfw-3.3\deps\mingw\_mingw_dxhelper.h
文件 980614 2019-04-15 23:40 glfw-3.3\deps\nuklear.h
............此处省略352个文件信息
- 上一篇:qq_43340440_10704141.zip
- 下一篇:cad植物图例
相关资源
- OpenGL所有库OpenGL,freeglut、glu、glut、
- opengl实现光线跟踪算法
- OpenGL编程指南第九版红宝书
- 三维迷宫游戏源代码及可执行文件
- OpenGL_读取PLY文件+光照
- 研究生计算机图形学课件OpenGL
- OPENGL扫描线填充算法
- OpenGL ES 3.x游戏开发 上卷 吴亚峰.pdf
- 用OpenGL绘制的二维动物
- opengl编写3D的CS小游戏,可运行
- 基于opengl的粒子系统
- 利用OpenGL自编程实现球体源码——网
- OpenGL Development Cookbook PDF + vs2015源碼
- OpenGL.Superbible.7th.Edition(pdfandsourceco
- OpenGL着色语言(中文版
- OpenGL编程指南第九版英文
- 计算机图形学OpenGL第三版带完整目录
- 一个用 opengl 开发的雪花动画
- Computer Graphics Using OpenGL (3rd Edition)
- opengl导入3ds模型和场景漫游
- OpenCV实现SfM:双目三维重建
- OpenGL显示任意Stl文件
- OpenGL计算机图形作业立方体旋转+六个
- 曾涛地形模型和NeHeOpenGL教程
- Opengl 导入3Dmax制作的.3ds模型 并显示出
- OpenGL游戏程序设计.pdf
- 一个opengl+粒子系统模拟雪效的简单程
- OpenGL ES 2.0 编程指南中英文+源码
- 《LearnOpengl CN》中文最新版-2018年11月
- OpenGL三维场景绘制3D模型读取
评论
共有 条评论