资源简介
glfw 3.2.1 源码,使用cmake+vs自行编译
代码片段和文件信息
/* 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 2016-08-18 11:52 glfw-3.2.1\
文件 516 2016-08-18 11:32 glfw-3.2.1\.travis.yml
目录 0 2016-08-18 11:32 glfw-3.2.1\include\
目录 0 2016-08-18 11:32 glfw-3.2.1\include\GLFW\
文件 152470 2016-08-18 11:32 glfw-3.2.1\include\GLFW\glfw3.h
文件 13594 2016-08-18 11:32 glfw-3.2.1\include\GLFW\glfw3native.h
文件 438 2016-08-18 11:32 glfw-3.2.1\.appveyor.yml
文件 928 2016-08-18 11:32 glfw-3.2.1\COPYING.txt
目录 0 2016-08-18 11:32 glfw-3.2.1\examples\
文件 35737 2016-08-18 11:32 glfw-3.2.1\examples\particles.c
文件 4812 2016-08-18 11:32 glfw-3.2.1\examples\simple.c
文件 56 2016-08-18 11:32 glfw-3.2.1\examples\glfw.rc
文件 21630 2016-08-18 11:32 glfw-3.2.1\examples\glfw.ico
文件 16057 2016-08-18 11:32 glfw-3.2.1\examples\heightmap.c
文件 2707 2016-08-18 11:32 glfw-3.2.1\examples\CMakeLists.txt
文件 9817 2016-08-18 11:32 glfw-3.2.1\examples\gears.c
文件 11842 2016-08-18 11:32 glfw-3.2.1\examples\wave.c
文件 15176 2016-08-18 11:32 glfw-3.2.1\examples\splitview.c
文件 19446 2016-08-18 11:32 glfw-3.2.1\examples\boing.c
文件 27988 2016-08-18 11:32 glfw-3.2.1\examples\glfw.icns
目录 0 2016-08-18 11:52 glfw-3.2.1\docs\
文件 20353 2016-08-18 11:32 glfw-3.2.1\docs\moving.dox
文件 6329 2016-08-18 11:32 glfw-3.2.1\docs\monitor.dox
文件 111996 2016-08-18 11:32 glfw-3.2.1\docs\spaces.svg
文件 11204 2016-08-18 11:32 glfw-3.2.1\docs\compile.dox
文件 5935 2016-08-18 11:32 glfw-3.2.1\docs\DoxygenLayout.xm
文件 8551 2016-08-18 11:32 glfw-3.2.1\docs\extra.less
文件 7284 2016-08-18 11:32 glfw-3.2.1\docs\vulkan.dox
文件 13780 2016-08-18 11:32 glfw-3.2.1\docs\build.dox
文件 1417 2016-08-18 11:32 glfw-3.2.1\docs\header.html
文件 12500 2016-08-18 11:32 glfw-3.2.1\docs\context.dox
............此处省略370个文件信息
相关资源
- 广工信工图像处理作业
- 计算机图形学的设计作业。。OpenGl源
- OpenGL绘制3D企鹅
- opengl 实现的机器人行走
- OpenGL 纹理 二重纹理
- Bezier曲面 Coons曲面 B样条曲面绘制(用
- 变网格步长声波方程有限差分数值模
- Opengles2.0地球
- GMM模型实现
- 计算机图形学-基于OpenGL的3D迷宫漫游
- 大量Opengl
- Opengl 太阳系
- 用opengl绘制的兔子
- 基于OpenGL的描点绘制Bezier曲线
- Read_Ionex.rar
- QT实现图书馆管理系统
- opengl天空盒的效果源代码
- Qt5版NeHe OpenGL教程6-10
- 基于opengl下的选择物体局部放大
- OPENGL粒子系统之喷泉
- 3D opengl魔方
- opengles加载3d模型(纹理+光照)
- 武汉理工大学数据结构与算法实验,
- opengl画的小花
- 游戏编程 C小程序 猫捉老鼠
- OpenGL三维图形系统开发与实用技术.
- opengl 立体球体的实现
- loop 细分,结合openGL
- opengl中加载dem方法和贴纹理
- OpenGL写的一个带背景音乐的场景
评论
共有 条评论