Timeline for Setting up a Visual Studio project for OpenGL and OpenGL ES
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 11, 2015 at 18:11 | comment | added | Honeybunch | Ping me whenever, I am almost always in chat during the weekdays | |
Aug 11, 2015 at 18:05 | comment | added | Superwayne | Let us continue this discussion in chat. | |
Aug 11, 2015 at 16:45 | comment | added | Honeybunch | That would be able to be done in the library or more specifically whatever you use to manage your window and GL context creation. It would probably be best to use SDL2 to handle that as it supports iOS and Android out of the box. | |
Aug 11, 2015 at 2:04 | comment | added | Superwayne | Also I am confused what to do in which projects. For example will initialization of android be done in the library project or in the game project itself? | |
Aug 11, 2015 at 1:57 | comment | added | Superwayne | Okay I tried it for some hours now but with no success. First I tried the cmake tutorial but I didn't understand how that can help me in visual studio. Then I tried this one: cognitivewaves.wordpress.com/cmake-and-visual-studio but all it seems to do is to create a visual studio project? But I already got one I would like to use. Also I don't understand how to create an android project with cmake. There are only executables and libraries? | |
Aug 10, 2015 at 20:50 | comment | added | Honeybunch | CMake is a bit of a beast. Start off small and build off of it: cmake.org/cmake-tutorial. What I do in my engine is I have a couple flags, GL_SUPPORT and D3D_SUPPORT. If one of them is set, it builds the engine with GL or D3D. If both are set it just uses GL (only on windows of course). What you might do is have a boolean like WEBGL and if that's set to true then CMake should target emscripten instead of g++/clang/msvc | |
Aug 10, 2015 at 20:26 | comment | added | Superwayne | Can you recommend a link/tutorial for this use of CMake? I don't know what to search for as this seems to exceed basic tutorials of CMake. | |
Aug 10, 2015 at 19:12 | comment | added | Honeybunch | CMake is used to determine which dependencies to build against depending on the platform. WebGL isn't HARD it's just going to be a very different project structure to work against. | |
Aug 10, 2015 at 19:06 | comment | added | Superwayne | First of all: Thank you for such a detailed answer! I didn't know WebGL is that much of an effort. It sounded easy in the articles I've read. Is it possible to ignore it for now and port the game later or is it more work to do so? The project organization looks good, but I didn't quite understand the benefits of CMake. I am not familiar with it but wouldn't preprocessor statements be enough to distinguish the platforms? Or do I need CMake because of the different project settings (like which dlls to use)? | |
Aug 10, 2015 at 18:58 | vote | accept | Superwayne | ||
Aug 10, 2015 at 16:58 | history | answered | Honeybunch | CC BY-SA 3.0 |