# GLEW - The OpenGL Extension Wrangler Library
![](http://glew.sourceforge.net/glew.png)
http://glew.sourceforge.net/
https://github.com/nigels-com/glew
[![Build Status](https://travis-ci.org/nigels-com/glew.svg?branch=master)](https://travis-ci.org/nigels-com/glew)
[![Gitter](https://badges.gitter.im/nigels-com/glew.svg)](https://gitter.im/nigels-com/glew?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Download](https://img.shields.io/sourceforge/dm/glew.svg)](https://sourceforge.net/projects/glew/files/latest/download)
## Downloads
Current release is [2.1.0](https://sourceforge.net/projects/glew/files/glew/2.1.0/).
[(Change Log)](http://glew.sourceforge.net/log.html)
Sources available as
[ZIP](https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip/download) or
[TGZ](https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.tgz/download).
Windows binaries for [32-bit and 64-bit](https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0-win32.zip/download).
### Recent snapshots
Snapshots may contain new features, bug-fixes or new OpenGL extensions ahead of tested, official releases.
## Build
It is highly recommended to build from a tgz or zip release snapshot.
The code generation workflow is a complex brew of gnu make, perl and python, that works best on Linux or Mac.
For most end-users of GLEW the official releases are the best choice, with first class support.
### Linux and Mac
#### Using GNU Make
##### Install build tools
Debian/Ubuntu/Mint: `$ sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev libosmesa-dev`
RedHat/CentOS/Fedora: `$ sudo yum install libXmu-devel libXi-devel libGL-devel`
##### Build
$ make
$ sudo make install
$ make clean
Targets: `all, glew.lib (sub-targets: glew.lib.shared, glew.lib.static), glew.bin, clean, install, uninstall`
Variables: `SYSTEM=linux-clang, GLEW_DEST=/usr/local, STRIP=`
_Note: may need to make **auto** folder_
#### Using cmake
*CMake 2.8.12 or higher is required.*
##### Install build tools
Debian/Ubuntu/Mint: `$ sudo apt-get install build-essential libXmu-dev libXi-dev libgl-dev cmake`
RedHat/CentOS/Fedora: `$ sudo yum install libXmu-devel libXi-devel libGL-devel cmake`
##### Build
$ cd build
$ cmake ./cmake
$ make -j4
| Target | Description |
| ---------- | ----------- |
| glew | Build the glew shared library. |
| glew_s | Build the glew static library. |
| glewinfo | Build the `glewinfo` executable (requires `BUILD_UTILS` to be `ON`). |
| visualinfo | Build the `visualinfo` executable (requires `BUILD_UTILS` to be `ON`). |
| install | Install all enabled targets into `CMAKE_INSTALL_PREFIX`. |
| clean | Clean up build artifacts. |
| all | Build all enabled targets (default target). |
| Variables | Description |
| --------------- | ----------- |
| BUILD_UTILS | Build the `glewinfo` and `visualinfo` executables. |
| GLEW_REGAL | Build in Regal mode. |
| GLEW_OSMESA | Build in off-screen Mesa mode. |
| BUILD_FRAMEWORK | Build as MacOSX Framework. Setting `CMAKE_INSTALL_PREFIX` to `/Library/Frameworks` is recommended. |
### Windows
#### Visual Studio
Use the provided Visual Studio project file in build/vc12/
Projects for vc6 and vc10 are also provided
#### MSYS/Mingw
Available from [Mingw](http://www.mingw.org/)
Requirements: bash, make, gcc
$ mingw32-make
$ mingw32-make install
$ mingw32-make install.all
Alternative toolchain: `SYSTEM=mingw-win32`
#### MSYS2/Mingw-w64
Available from [Msys2](http://msys2.github.io/) and/or [Mingw-w64](http://mingw-w64.org/)
Requirements: bash, make, gcc
$ pacman -S gcc make mingw-w64-i686-gcc mingw-w64-x86_64-gcc
$ make
$ make install
$ make install.all
Alternative toolchain: `SYSTEM=msys, SYSTEM=msys-win32, SYSTEM=msys-win64`
## glewinfo
`glewinfo` is a command-line tool useful for inspecting the capabilities of an
OpenGL implementation and GLEW support for that. Please include `glewinfo.txt`
with bug reports, as appropriate.
---------------------------
GLEW Extension Info
---------------------------
GLEW version 2.0.0
Reporting capabilities of pixelformat 3
Running on a Intel(R) HD Graphics 3000 from Intel
OpenGL version 3.1.0 - Build 9.17.10.4229 is supported
GL_VERSION_1_1: OK
---------------
GL_VERSION_1_2: OK
---------------
glCopyTexSubImage3D: OK
glDrawRangeElements: OK
glTexImage3D: OK
glTexSubImage3D: OK
...
## Code Generation
A Unix or Mac environment is needed for building GLEW from scratch to
include new extensions, or customize the code generation. The extension
data is regenerated from the top level source directory with:
make extensions
An alternative to generating the GLEW sources from scratch is to
download a pre-generated (unsupported) snapshot:
https://sourceforge.net/projects/glew/files/glew/snapshots/
Travis-built snapshots are also available:
https://glew.s3.amazonaws.com/index.html
## Authors
GLEW is currently maintained by [Nigel Stewart](https://github.com/nigels-com)
with bug fixes, new OpenGL extension support and new releases.
GLEW was developed by [Milan Ikits](http://www.cs.utah.edu/~ikits/)
and [Marcelo Magallon](http://wwwvis.informatik.uni-stuttgart.de/~magallon/).
Aaron Lefohn, Joe Kniss, and Chris Wyman were the first users and also
assisted with the design and debugging process.
The acronym GLEW originates from Aaron Lefohn.
Pasi Kärkkäinen identified and fixed several problems with
GLX and SDL. Nate Robins created the `wglinfo` utility, to
which modifications were made by Michael Wimmer.
## Copyright and Licensing
GLEW is originally derived from the EXTGL project by Lev Povalahev.
The source code is licensed under the
[Modified BSD License](http://glew.sourceforge.net/glew.txt), the
[Mesa 3-D License](http://glew.sourceforge.net/mesa.txt) (MIT) and the
[Khronos License](http://glew.sourceforge.net/khronos.txt) (MIT).
The automatic code generation scripts are released under the
[GNU GPL](http://glew.sourceforge.net/gpl.txt).
没有合适的资源?快使用搜索试试~ 我知道了~
人機介面模擬3d物體在空間旋轉的姿態變化範例原始碼 可加以修改與擴充手機陀螺感測器結合運算傾斜角度 適合科研實作面試的小作品集~
共1385个文件
h:28个
c:22个
html:20个
需积分: 10 0 下载量 40 浏览量
2022-06-28
11:01:55
上传
评论
收藏 1.26MB ZIP 举报
温馨提示
使用c++語言撰寫人機介面模擬3d物體在空間旋轉的姿態變化範例原始碼 依賴函數庫 imgui glfw圖形庫 人機介面功能 提供 3D 旋轉的主要表示之間的轉換並可視化剛體的方向 提供以下 3D 旋轉表示之間的轉換並可視化剛體方向 { 旋轉矩陣 旋轉矢量 軸角 四元數 歐拉角(本徵;移動) 歐拉角(外在;固定) } 轉換功能: 更改輸入區域中的值 有兩種方法可以改變值 鼠標按鍵拖動 Ctrl + 鼠標按鈕單擊 自動選擇一個表示,但您可以使用單選按鈕手動選擇另一個表示 所選表示的輸入值被轉換為所有其他表示,結果顯示在轉換值區域 相機控制 Revolution模式:相機圍繞原點移動 鼠標右鍵拖動:旋轉相機 滾動鼠標滾輪:向前/向後移動相機 Free模式:相機自由移動 鼠標右鍵拖動:旋轉相機 鼠標中鍵拖動:移動相機 滾動鼠標滾輪:向前/向後移動相機 注意 Rotation Matrix、Axis-angle 和 Quaternion 的輸入值自動歸一化
资源详情
资源评论
资源推荐
收起资源包目录
人機介面模擬3d物體在空間旋轉的姿態變化範例原始碼 可加以修改與擴充手機陀螺感測器結合運算傾斜角度 適合科研實作面試的小作品集~ (1385个子文件)
blacklist 352B
glew.c 1.18MB
glewinfo.c 651KB
visualinfo.c 40KB
glewinfo_tail.c 17KB
glew_head.c 8KB
glew_init_gl.c 6KB
glewinfo_head.c 2KB
glew_init_tail.c 2KB
glew_init_egl.c 2KB
glew_init_wgl.c 2KB
glew_init_glx.c 2KB
main.c 650B
glew_str_glx.c 478B
glew_str_wgl.c 380B
glew_str_egl.c 323B
glew_str_head.c 261B
glewinfo_gl.c 190B
glewinfo_wgl.c 178B
glewinfo_glx.c 93B
main.c 80B
glew_str_tail.c 69B
glewinfo_egl.c 55B
CopyImportedTargetProperties.cmake 3KB
glew-config.cmake 2KB
compile_option.cmake 1KB
FindGLEW.cmake 286B
ui.cpp 20KB
rotation_matrix.cpp 15KB
window.cpp 12KB
main.cpp 10KB
test_rotation_matrix.cpp 9KB
object_data.cpp 9KB
test_transformation_matrix.cpp 6KB
matrix.cpp 6KB
shape.cpp 5KB
shader.cpp 5KB
test_matrix.cpp 4KB
transformation_matrix.cpp 4KB
test_gl_helper.cpp 3KB
projection_matrix.cpp 2KB
test_projection_matrix.cpp 2KB
test_main.cpp 1KB
glew.css 3KB
Makefile.cygming 690B
Makefile.cygwin 514B
Makefile.darwin 789B
Makefile.darwin-gcc6 960B
Makefile.darwin-ppc 906B
Makefile.darwin-universal 952B
Makefile.darwin-x86_64 831B
glew_shared.dsp 4KB
visualinfo.dsp 4KB
glewinfo.dsp 4KB
glew_static.dsp 3KB
glew.dsw 1KB
.dummy 0B
EGL_ANDROID_blob_cache 215B
EGL_ANDROID_create_native_client_buffer 437B
EGL_ANDROID_framebuffer_target 161B
EGL_ANDROID_front_buffer_auto_refresh 182B
EGL_ANDROID_image_native_buffer 158B
EGL_ANDROID_native_fence_sync 353B
EGL_ANDROID_presentation_time 222B
EGL_ANDROID_recordable 137B
EGL_ANGLE_d3d_share_handle_client_buffer 188B
EGL_ANGLE_device_d3d 163B
EGL_ANGLE_query_surface_pointer 238B
EGL_ANGLE_surface_d3d_texture_2d_share_handle 198B
EGL_ANGLE_window_fixed_size 145B
EGL_ARM_implicit_external_sync 176B
EGL_ARM_pixmap_multisample_discard 162B
EGL_EXT_buffer_age 125B
EGL_EXT_client_extensions 112B
EGL_EXT_create_context_robustness 308B
EGL_EXT_device_base 189B
EGL_EXT_device_drm 130B
EGL_EXT_device_enumeration 214B
EGL_EXT_device_openwf 137B
EGL_EXT_device_query 458B
EGL_EXT_gl_colorspace_bt2020_linear 176B
EGL_EXT_gl_colorspace_bt2020_pq 164B
EGL_EXT_gl_colorspace_scrgb_linear 173B
EGL_EXT_image_dma_buf_import 897B
EGL_EXT_image_dma_buf_import_modifiers 883B
EGL_EXT_multiview_window 147B
EGL_EXT_output_base 1KB
EGL_EXT_output_drm 179B
EGL_EXT_output_openwf 170B
EGL_EXT_pixel_format_float 237B
EGL_EXT_platform_base 481B
EGL_EXT_platform_device 140B
EGL_EXT_platform_wayland 143B
EGL_EXT_platform_x11 167B
EGL_EXT_protected_content 146B
EGL_EXT_protected_surface 146B
EGL_EXT_stream_consumer_egloutput 234B
EGL_EXT_surface_SMPTE2086_metadata 560B
EGL_EXT_swap_buffers_with_damage 239B
EGL_EXT_yuv_surface 924B
共 1385 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14
INANANG
- 粉丝: 0
- 资源: 59
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0