Simple Directmedia Layer and C++

Answered

Hi ! I'm new to software programming and C/C++ Game Development. I'm interesting in writing games with C/C++, but have discovered that I didn't have the framework to implement graphics in my code. I added the [ SDL2.framework ] file to to my /Library/Frameworks folder in my OS X El Capitan. Is this sufficient enough to begin creating graphics in my game codes; etc ? Thank you !!!



Attachment(s):
Screen Shot 2015-12-04 at 11.42.58 PM.png
0
1 comment

Hi Frederick.

CLion uses a concept of a project and relies on CMake as a build system for it. All the includes paths, variables and more is taken from CMake files and are used by CLion to understand your project better and to resolve your code correctly. It means that you need to configure your CMakeLists.txt for using SDL2. Please see this conversation. Also this article may help: http://stackoverflow.com/questions/23850472/how-to-use-sdl2-and-sdl-image-with-cmake.

0

Please sign in to leave a comment.