├── .gitattributes ├── .gitignore ├── LICENSE.md ├── README.md ├── include └── c4g_runtime.h ├── lib ├── ios │ └── c4grt_ios.framework │ │ ├── Headers │ │ └── c4g_runtime.h │ │ ├── Info.plist │ │ ├── Modules │ │ └── module.modulemap │ │ ├── _CodeSignature │ │ └── CodeResources │ │ └── c4grt_ios ├── macos │ └── c4grt_macos.framework │ │ ├── Headers │ │ ├── Modules │ │ ├── Resources │ │ ├── Versions │ │ ├── A │ │ │ ├── Headers │ │ │ │ └── c4g_runtime.h │ │ │ ├── Modules │ │ │ │ └── module.modulemap │ │ │ ├── Resources │ │ │ │ └── Info.plist │ │ │ └── c4grt_macos │ │ └── Current │ │ └── c4grt_macos ├── x64 │ ├── c4grt.dll │ ├── freeglut.dll │ └── glew32.dll └── x86 │ ├── c4grt.dll │ ├── freeglut.dll │ └── glew32.dll ├── redist └── vc_redist.x64.exe ├── src ├── c4grt.sln ├── c4grt.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── c4grt_ios │ ├── c4grt_ios.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ └── c4grt_ios │ │ ├── Info.plist │ │ └── c4grt_ios.h ├── c4grt_macos │ ├── c4grt_macos.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ └── c4grt_macos │ │ ├── Info.plist │ │ └── c4grt_macos.h ├── data │ └── comp.vert ├── makefile ├── runtime │ ├── c4g_context_ios.h │ ├── c4g_context_ios.mm │ ├── c4g_context_linux.cpp │ ├── c4g_context_linux.hpp │ ├── c4g_context_macos.h │ ├── c4g_context_macos.mm │ ├── c4g_context_win.cpp │ ├── c4g_context_win.hpp │ ├── c4g_gl.cpp │ ├── c4g_gl.hpp │ ├── c4g_glpass.cpp │ ├── c4g_glpass.hpp │ ├── c4g_glsl.cpp │ ├── c4g_glsl.hpp │ ├── c4g_runtime.cpp │ ├── c4g_runtime.h │ ├── c4g_utils.cpp │ ├── c4g_utils.hpp │ ├── freeglut │ │ ├── Copying.txt │ │ ├── Readme.txt │ │ ├── bin │ │ │ ├── freeglut.dll │ │ │ └── x64 │ │ │ │ └── freeglut.dll │ │ ├── include │ │ │ └── GL │ │ │ │ ├── freeglut.h │ │ │ │ ├── freeglut_ext.h │ │ │ │ ├── freeglut_std.h │ │ │ │ └── glut.h │ │ └── lib │ │ │ ├── freeglut.lib │ │ │ └── x64 │ │ │ └── freeglut.lib │ ├── glew │ │ ├── LICENSE.txt │ │ ├── bin │ │ │ └── Release │ │ │ │ ├── Win32 │ │ │ │ ├── glew32.dll │ │ │ │ ├── glewinfo.exe │ │ │ │ └── visualinfo.exe │ │ │ │ └── x64 │ │ │ │ ├── glew32.dll │ │ │ │ ├── glewinfo.exe │ │ │ │ └── visualinfo.exe │ │ ├── doc │ │ │ ├── advanced.html │ │ │ ├── basic.html │ │ │ ├── build.html │ │ │ ├── credits.html │ │ │ ├── github.png │ │ │ ├── glew.css │ │ │ ├── glew.html │ │ │ ├── glew.png │ │ │ ├── glew.txt │ │ │ ├── glxew.html │ │ │ ├── gpl.txt │ │ │ ├── index.html │ │ │ ├── install.html │ │ │ ├── khronos.txt │ │ │ ├── log.html │ │ │ ├── mesa.txt │ │ │ ├── new.png │ │ │ ├── ogl_sm.jpg │ │ │ ├── travis.png │ │ │ └── wglew.html │ │ ├── include │ │ │ └── GL │ │ │ │ ├── eglew.h │ │ │ │ ├── glew.h │ │ │ │ ├── glxew.h │ │ │ │ └── wglew.h │ │ └── lib │ │ │ └── Release │ │ │ ├── Win32 │ │ │ ├── glew32.lib │ │ │ └── glew32s.lib │ │ │ └── x64 │ │ │ ├── glew32.lib │ │ │ └── glew32s.lib │ ├── runtime.vcxproj │ └── runtime.vcxproj.filters └── shell │ ├── c4g.cpp │ ├── c4g.vcxproj │ └── c4g.vcxproj.filters └── test ├── c4grt.dll ├── c4grt_eval.exe ├── c_eval.exe ├── c_eval └── c_eval.c ├── cs_eval.exe ├── freeglut.dll ├── glew32.dll ├── prog.bas ├── prog.cs ├── prog.vert ├── test.bas └── test.vert /.gitattributes: -------------------------------------------------------------------------------- 1 | src/runtime/freeglut/include/GL/* linguist-vendored 2 | src/runtime/freeglut/* linguist-vendored 3 | src/runtime/glew/include/GL/* linguist-vendored 4 | src/runtime/glew/* linguist-vendored 5 | lib/ios/c4grt_ios.framework/Headers/* linguist-vendored 6 | lib/macos/c4grt_macos.framework/Versions/A/Headers/* linguist-vendored 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /output 2 | /src/c4grt.VC.db 3 | /src/.vs 4 | /src/.vs/c4g/v14/.suo 5 | /temp 6 | /test/c4grt_eval.log 7 | .DS_Store 8 | *.user 9 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | # C4GPU Runtime 2 | 3 | ## The MIT License 4 | 5 | **Copyright (C) 2017 [Wang Renxin](https://github.com/paladin-t). All rights reserved.** 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | this software and associated documentation files (the "Software"), to deal in 9 | the Software without restriction, including without limitation the rights to 10 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 11 | the Software, and to permit persons to whom the Software is furnished to do so, 12 | subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 19 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 20 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 21 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The C4GPU Runtime 2 | 3 | [](http://opensource.org/licenses/MIT) 4 | [](http://makeapullrequest.com) 5 | 6 |