-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 93a53c5
Showing
165 changed files
with
140,715 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
|
||
add_subdirectory("glew") | ||
add_subdirectory("glfw") | ||
add_subdirectory("imgui") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
|
||
get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME) | ||
project(${PROJECT_NAME}) | ||
|
||
|
||
|
||
add_library(${PROJECT_NAME} STATIC src/glew.c) | ||
|
||
|
||
target_compile_definitions(${PROJECT_NAME} PRIVATE GLEW_STATIC) | ||
|
||
target_include_directories(${PROJECT_NAME} PRIVATE ${EASY3D_glew_INCLUDE_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
The OpenGL Extension Wrangler Library | ||
Copyright (C) 2002-2007, Milan Ikits <milan ikits[]ieee org> | ||
Copyright (C) 2002-2007, Marcelo E. Magallon <mmagallo[]debian org> | ||
Copyright (C) 2002, Lev Povalahev | ||
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. | ||
* The name of the author 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 THE COPYRIGHT OWNER OR CONTRIBUTORS 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. | ||
|
||
|
||
Mesa 3-D graphics library | ||
Version: 7.0 | ||
|
||
Copyright (C) 1999-2007 Brian Paul All Rights Reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
to deal in the Software without restriction, including without limitation | ||
the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included | ||
in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
|
||
Copyright (c) 2007 The Khronos Group Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and/or associated documentation files (the | ||
"Materials"), to deal in the Materials without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Materials, and to | ||
permit persons to whom the Materials are furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included | ||
in all copies or substantial portions of the Materials. | ||
|
||
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
# GLEW - The OpenGL Extension Wrangler Library | ||
|
||
 | ||
|
||
http://glew.sourceforge.net/ | ||
|
||
https://github.com/nigels-com/glew | ||
|
||
[](https://travis-ci.org/nigels-com/glew) | ||
[](https://gitter.im/nigels-com/glew?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) | ||
[](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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="src\glew.c" /> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<VCProjectVersion>15.0</VCProjectVersion> | ||
<ProjectGuid>{EE0CA6C2-EAE2-4C71-9F4A-77F2805BF9BD}</ProjectGuid> | ||
<Keyword>Win32Proj</Keyword> | ||
<RootNamespace>easygui</RootNamespace> | ||
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
<ConfigurationType>StaticLibrary</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
<ConfigurationType>StaticLibrary</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="Shared"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<LinkIncremental>true</LinkIncremental> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<LinkIncremental>false</LinkIncremental> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>Disabled</Optimization> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;WIN32_LEAN_AND_MEAN;GLEW_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
<AdditionalIncludeDirectories>$(SolutionDir)\3rd_party\glfw\include;$(SolutionDir)\3rd_party\glew\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Console</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
</Link> | ||
<Lib /> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;WIN32_LEAN_AND_MEAN;GLEW_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
<AdditionalIncludeDirectories>$(SolutionDir)\3rd_party\glfw\include;$(SolutionDir)\3rd_party\glew\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Console</SubSystem> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
</Link> | ||
<Lib /> | ||
</ItemDefinitionGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<Filter Include="Source Files"> | ||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> | ||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> | ||
</Filter> | ||
<Filter Include="Header Files"> | ||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> | ||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions> | ||
</Filter> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="src\glew.c"> | ||
<Filter>Source Files</Filter> | ||
</ClCompile> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.