basic_sdl2_gl
所属分类:OpenGL
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2017-12-21 08:42:11
上 传 者:
sh-1993
说明: 无忧无虑的现代SDL2 OpenGL GLEW Boilerplate,
(No-fuss Modern SDL2 OpenGL GLEW Boilerplate,)
文件列表:
CMakeLists.txt (760, 2017-12-21)
cmake/ (0, 2017-12-21)
cmake/FindSDL2.cmake (6367, 2017-12-21)
logo.h (1616625, 2017-12-21)
main.c (8327, 2017-12-21)
screenshot.png (152275, 2017-12-21)
Modern SDL2 OpenGL Boilerplate for C/C++
========================================
Want to just dive in and get your SDL2/GL application going? Me too. Here's
a no-fuss boilerplate for you.
Short and sweet:
* Create a window
* Create an OpenGL context
* Initialize basic shaders, geometry, and a texture
* Render a couple textured triangles
* Handle main window close event
![ScreenShot](https://github.com/mborgerson/basic_sdl2_gl/blob/master/screenshot.png)
Based on inline code snippets from the tutorials at [https://open.gl](https://github.com/mborgerson/basic_sdl2_gl/blob/master/https://open.gl).
License
-------
[CC0 (DWTFYW)](https://github.com/mborgerson/basic_sdl2_gl/blob/master/https://creativecommons.org/publicdomain/zero/1.0/legalcode)
Build Instructions
------------------
You can use the provided CMake setup if you want to keep it simple. On macOS,
it looks like:
```
$ brew install cmake sdl2 glew
$ mkdir build; cd build
$ cmake .. && make
$ ./sdl_app
```
近期下载者:
相关文件:
收藏者: