├── .gitignore ├── App.cpp ├── App.h ├── Info.plist ├── Log.h ├── README ├── SDL 2.0 Basics.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── SDL 2.0 Basics.xccheckout │ └── xcuserdata │ │ └── tim.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── tim.xcuserdatad │ └── xcschemes │ ├── SDL 2.0 Basics.xcscheme │ └── xcschememanagement.plist ├── main.cpp ├── sdl-2.0-basics.cbp ├── sdl-2.0-basics.depend └── sdl-2.0-basics.layout /.gitignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .DS_Store 3 | Build 4 | sdl-2.0-basics.depend 5 | sdl-2.0-basics.layout 6 | -------------------------------------------------------------------------------- /App.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================== 2 | #include "App.h" 3 | #include "Log.h" 4 | 5 | App App::Instance; 6 | 7 | //============================================================================== 8 | App::App() { 9 | } 10 | 11 | //------------------------------------------------------------------------------ 12 | void App::OnEvent(SDL_Event* Event) { 13 | } 14 | 15 | //------------------------------------------------------------------------------ 16 | bool App::Init() { 17 | if(SDL_Init(SDL_INIT_VIDEO) < 0) { 18 | Log("Unable to Init SDL: %s", SDL_GetError()); 19 | return false; 20 | } 21 | 22 | if(!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1")) { 23 | Log("Unable to Init hinting: %s", SDL_GetError()); 24 | } 25 | 26 | if((Window = SDL_CreateWindow( 27 | "My SDL Game", 28 | SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 29 | WindowWidth, WindowHeight, SDL_WINDOW_SHOWN) 30 | ) == NULL) { 31 | Log("Unable to create SDL Window: %s", SDL_GetError()); 32 | return false; 33 | } 34 | 35 | PrimarySurface = SDL_GetWindowSurface(Window); 36 | 37 | if((Renderer = SDL_CreateRenderer(Window, -1, SDL_RENDERER_ACCELERATED)) == NULL) { 38 | Log("Unable to create renderer"); 39 | return false; 40 | } 41 | 42 | SDL_SetRenderDrawColor(Renderer, 0x00, 0x00, 0x00, 0xFF); 43 | 44 | return true; 45 | } 46 | 47 | //------------------------------------------------------------------------------ 48 | void App::Loop() { 49 | } 50 | 51 | //------------------------------------------------------------------------------ 52 | void App::Render() { 53 | SDL_RenderClear(Renderer); 54 | 55 | SDL_RenderPresent(Renderer); 56 | } 57 | 58 | //------------------------------------------------------------------------------ 59 | void App::Cleanup() { 60 | if(Renderer) { 61 | SDL_DestroyRenderer(Renderer); 62 | Renderer = NULL; 63 | } 64 | 65 | if(Window) { 66 | SDL_DestroyWindow(Window); 67 | Window = NULL; 68 | } 69 | 70 | SDL_Quit(); 71 | } 72 | 73 | //------------------------------------------------------------------------------ 74 | int App::Execute(int argc, char* argv[]) { 75 | if(!Init()) return 0; 76 | 77 | SDL_Event Event; 78 | 79 | while(Running) { 80 | while(SDL_PollEvent(&Event) != 0) { 81 | OnEvent(&Event); 82 | 83 | if(Event.type == SDL_QUIT) Running = false; 84 | } 85 | 86 | Loop(); 87 | Render(); 88 | 89 | SDL_Delay(1); // Breath 90 | } 91 | 92 | Cleanup(); 93 | 94 | return 1; 95 | } 96 | 97 | //============================================================================== 98 | App* App::GetInstance() { return &App::Instance; } 99 | 100 | int App::GetWindowWidth() { return WindowWidth; } 101 | int App::GetWindowHeight() { return WindowHeight; } 102 | 103 | //============================================================================== 104 | -------------------------------------------------------------------------------- /App.h: -------------------------------------------------------------------------------- 1 | //============================================================================== 2 | /* 3 | Primary application class 4 | 5 | 3/11/2014 6 | SDLTutorials.com 7 | Tim Jones 8 | */ 9 | //============================================================================== 10 | #include 11 | 12 | #ifndef __APP_H__ 13 | #define __APP_H__ 14 | 15 | class App { 16 | private: 17 | static App Instance; 18 | 19 | bool Running = true; 20 | 21 | SDL_Window* Window = NULL; 22 | SDL_Renderer* Renderer = NULL; 23 | SDL_Surface* PrimarySurface = NULL; 24 | 25 | static const int WindowWidth = 1024; 26 | static const int WindowHeight = 768; 27 | 28 | private: 29 | App(); 30 | 31 | // Capture SDL Events 32 | void OnEvent(SDL_Event* Event); 33 | 34 | // Initialize our SDL game / app 35 | bool Init(); 36 | 37 | // Logic loop 38 | void Loop(); 39 | 40 | // Render loop (draw) 41 | void Render(); 42 | 43 | // Free up resources 44 | void Cleanup(); 45 | 46 | public: 47 | int Execute(int argc, char* argv[]); 48 | 49 | public: 50 | static App* GetInstance(); 51 | 52 | static int GetWindowWidth(); 53 | static int GetWindowHeight(); 54 | }; 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | sdltutorials.com.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | ${MACOSX_DEPLOYMENT_TARGET} 27 | NSHumanReadableCopyright 28 | Copyright © 2014 Tim Jones. All rights reserved. 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /Log.h: -------------------------------------------------------------------------------- 1 | //============================================================================== 2 | /* 3 | Basic macro for logging (can be extended for other target builds; i.e, using 4 | NSLog for OS X / iOS). Could also be modified to log to a file instead of 5 | console. 6 | 7 | 3/11/2014 8 | SDLTutorials.com 9 | Tim Jones 10 | */ 11 | //============================================================================== 12 | #ifndef __LOG_H__ 13 | #define __LOG_H__ 14 | 15 | #include 16 | 17 | #define DEBUG 1 18 | 19 | #ifdef DEBUG 20 | #define Log(...) printf(__VA_ARGS__); printf("\n"); 21 | #else 22 | #define Log(...) ; 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Future updates to happen here under a single repo: 2 | https://github.com/MetaCipher/the-sdl-engine 3 | 4 | ============================================================ 5 | 6 | SDL 2.0 Basics 7 | 3/11/2014 8 | 9 | Foundation for building SDL 2.0 applications and games. 10 | 11 | Build requirements 12 | - SDL 2.0 (http://libsdl.org/download-2.0.php) 13 | 14 | Notes: 15 | - You probably want to use and build against 32-bit build of SDL 16 | - These project files assume SDL is located inside of "SDL2" folder and part of your search paths (SDL2/SDL.h) 17 | - Build files using a compatible c++11 compiler 18 | 19 | This tutorial and code are property of: 20 | Tim Jones 21 | SDLTutorials.com 22 | 23 | You are free to use this code and any included files in your projects (commercial and non-commercial), as long as you credit SDLTutorials.com and the author. 24 | -------------------------------------------------------------------------------- /SDL 2.0 Basics.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 22C3DC3218CE577C00D74CBE /* SDL2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22C3DC3118CE577C00D74CBE /* SDL2.framework */; }; 11 | 22DE683618CE571B007CAE1E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22DE683518CE571B007CAE1E /* Cocoa.framework */; }; 12 | 22DE685518CE571B007CAE1E /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22DE685418CE571B007CAE1E /* XCTest.framework */; }; 13 | 22DE685618CE571B007CAE1E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22DE683518CE571B007CAE1E /* Cocoa.framework */; }; 14 | 22E5E3E218CE57A40073A1E3 /* App.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 22E5E3DE18CE57A40073A1E3 /* App.cpp */; }; 15 | 22E5E3E318CE57A40073A1E3 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 22E5E3E118CE57A40073A1E3 /* main.cpp */; }; 16 | 22E5E3E518CE58C20073A1E3 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 22E5E3E418CE58C20073A1E3 /* Info.plist */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 22DE685718CE571B007CAE1E /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 22DE682A18CE571B007CAE1E /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 22DE683118CE571B007CAE1E; 25 | remoteInfo = "SDL 2.0 Basics"; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 22C3DC3118CE577C00D74CBE /* SDL2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDL2.framework; path = ../../../../../../../Library/Frameworks/SDL2.framework; sourceTree = ""; }; 31 | 22DE683218CE571B007CAE1E /* SDL 2.0 Basics.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SDL 2.0 Basics.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 22DE683518CE571B007CAE1E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 33 | 22DE683818CE571B007CAE1E /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; 34 | 22DE683918CE571B007CAE1E /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; 35 | 22DE683A18CE571B007CAE1E /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 36 | 22DE685318CE571B007CAE1E /* SDL 2.0 BasicsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "SDL 2.0 BasicsTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 22DE685418CE571B007CAE1E /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 38 | 22E5E3DE18CE57A40073A1E3 /* App.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = App.cpp; sourceTree = ""; }; 39 | 22E5E3DF18CE57A40073A1E3 /* App.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = App.h; sourceTree = ""; }; 40 | 22E5E3E018CE57A40073A1E3 /* Log.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Log.h; sourceTree = ""; }; 41 | 22E5E3E118CE57A40073A1E3 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = ""; }; 42 | 22E5E3E418CE58C20073A1E3 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | /* End PBXFileReference section */ 44 | 45 | /* Begin PBXFrameworksBuildPhase section */ 46 | 22DE682F18CE571B007CAE1E /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | 22C3DC3218CE577C00D74CBE /* SDL2.framework in Frameworks */, 51 | 22DE683618CE571B007CAE1E /* Cocoa.framework in Frameworks */, 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | 22DE685018CE571B007CAE1E /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | 22DE685618CE571B007CAE1E /* Cocoa.framework in Frameworks */, 60 | 22DE685518CE571B007CAE1E /* XCTest.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | 22DE682918CE571B007CAE1E = { 68 | isa = PBXGroup; 69 | children = ( 70 | 22E5E3DD18CE579B0073A1E3 /* Code */, 71 | 22DE683418CE571B007CAE1E /* Frameworks */, 72 | 22DE683318CE571B007CAE1E /* Products */, 73 | ); 74 | sourceTree = ""; 75 | }; 76 | 22DE683318CE571B007CAE1E /* Products */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 22DE683218CE571B007CAE1E /* SDL 2.0 Basics.app */, 80 | 22DE685318CE571B007CAE1E /* SDL 2.0 BasicsTests.xctest */, 81 | ); 82 | name = Products; 83 | sourceTree = ""; 84 | }; 85 | 22DE683418CE571B007CAE1E /* Frameworks */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 22C3DC3118CE577C00D74CBE /* SDL2.framework */, 89 | 22DE683518CE571B007CAE1E /* Cocoa.framework */, 90 | 22DE685418CE571B007CAE1E /* XCTest.framework */, 91 | 22DE683718CE571B007CAE1E /* Other Frameworks */, 92 | ); 93 | name = Frameworks; 94 | sourceTree = ""; 95 | }; 96 | 22DE683718CE571B007CAE1E /* Other Frameworks */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 22DE683818CE571B007CAE1E /* AppKit.framework */, 100 | 22DE683918CE571B007CAE1E /* CoreData.framework */, 101 | 22DE683A18CE571B007CAE1E /* Foundation.framework */, 102 | ); 103 | name = "Other Frameworks"; 104 | sourceTree = ""; 105 | }; 106 | 22E5E3DD18CE579B0073A1E3 /* Code */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 22E5E3DE18CE57A40073A1E3 /* App.cpp */, 110 | 22E5E3DF18CE57A40073A1E3 /* App.h */, 111 | 22E5E3E018CE57A40073A1E3 /* Log.h */, 112 | 22E5E3E118CE57A40073A1E3 /* main.cpp */, 113 | 22E5E3E418CE58C20073A1E3 /* Info.plist */, 114 | ); 115 | name = Code; 116 | sourceTree = ""; 117 | }; 118 | /* End PBXGroup section */ 119 | 120 | /* Begin PBXNativeTarget section */ 121 | 22DE683118CE571B007CAE1E /* SDL 2.0 Basics */ = { 122 | isa = PBXNativeTarget; 123 | buildConfigurationList = 22DE686318CE571B007CAE1E /* Build configuration list for PBXNativeTarget "SDL 2.0 Basics" */; 124 | buildPhases = ( 125 | 22DE682E18CE571B007CAE1E /* Sources */, 126 | 22DE682F18CE571B007CAE1E /* Frameworks */, 127 | 22DE683018CE571B007CAE1E /* Resources */, 128 | ); 129 | buildRules = ( 130 | ); 131 | dependencies = ( 132 | ); 133 | name = "SDL 2.0 Basics"; 134 | productName = "SDL 2.0 Basics"; 135 | productReference = 22DE683218CE571B007CAE1E /* SDL 2.0 Basics.app */; 136 | productType = "com.apple.product-type.application"; 137 | }; 138 | 22DE685218CE571B007CAE1E /* SDL 2.0 BasicsTests */ = { 139 | isa = PBXNativeTarget; 140 | buildConfigurationList = 22DE686618CE571B007CAE1E /* Build configuration list for PBXNativeTarget "SDL 2.0 BasicsTests" */; 141 | buildPhases = ( 142 | 22DE684F18CE571B007CAE1E /* Sources */, 143 | 22DE685018CE571B007CAE1E /* Frameworks */, 144 | 22DE685118CE571B007CAE1E /* Resources */, 145 | ); 146 | buildRules = ( 147 | ); 148 | dependencies = ( 149 | 22DE685818CE571B007CAE1E /* PBXTargetDependency */, 150 | ); 151 | name = "SDL 2.0 BasicsTests"; 152 | productName = "SDL 2.0 BasicsTests"; 153 | productReference = 22DE685318CE571B007CAE1E /* SDL 2.0 BasicsTests.xctest */; 154 | productType = "com.apple.product-type.bundle.unit-test"; 155 | }; 156 | /* End PBXNativeTarget section */ 157 | 158 | /* Begin PBXProject section */ 159 | 22DE682A18CE571B007CAE1E /* Project object */ = { 160 | isa = PBXProject; 161 | attributes = { 162 | LastUpgradeCheck = 0500; 163 | ORGANIZATIONNAME = "Tim Jones"; 164 | TargetAttributes = { 165 | 22DE685218CE571B007CAE1E = { 166 | TestTargetID = 22DE683118CE571B007CAE1E; 167 | }; 168 | }; 169 | }; 170 | buildConfigurationList = 22DE682D18CE571B007CAE1E /* Build configuration list for PBXProject "SDL 2.0 Basics" */; 171 | compatibilityVersion = "Xcode 3.2"; 172 | developmentRegion = English; 173 | hasScannedForEncodings = 0; 174 | knownRegions = ( 175 | en, 176 | Base, 177 | ); 178 | mainGroup = 22DE682918CE571B007CAE1E; 179 | productRefGroup = 22DE683318CE571B007CAE1E /* Products */; 180 | projectDirPath = ""; 181 | projectRoot = ""; 182 | targets = ( 183 | 22DE683118CE571B007CAE1E /* SDL 2.0 Basics */, 184 | 22DE685218CE571B007CAE1E /* SDL 2.0 BasicsTests */, 185 | ); 186 | }; 187 | /* End PBXProject section */ 188 | 189 | /* Begin PBXResourcesBuildPhase section */ 190 | 22DE683018CE571B007CAE1E /* Resources */ = { 191 | isa = PBXResourcesBuildPhase; 192 | buildActionMask = 2147483647; 193 | files = ( 194 | 22E5E3E518CE58C20073A1E3 /* Info.plist in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | 22DE685118CE571B007CAE1E /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | /* End PBXResourcesBuildPhase section */ 206 | 207 | /* Begin PBXSourcesBuildPhase section */ 208 | 22DE682E18CE571B007CAE1E /* Sources */ = { 209 | isa = PBXSourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | 22E5E3E318CE57A40073A1E3 /* main.cpp in Sources */, 213 | 22E5E3E218CE57A40073A1E3 /* App.cpp in Sources */, 214 | ); 215 | runOnlyForDeploymentPostprocessing = 0; 216 | }; 217 | 22DE684F18CE571B007CAE1E /* Sources */ = { 218 | isa = PBXSourcesBuildPhase; 219 | buildActionMask = 2147483647; 220 | files = ( 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | /* End PBXSourcesBuildPhase section */ 225 | 226 | /* Begin PBXTargetDependency section */ 227 | 22DE685818CE571B007CAE1E /* PBXTargetDependency */ = { 228 | isa = PBXTargetDependency; 229 | target = 22DE683118CE571B007CAE1E /* SDL 2.0 Basics */; 230 | targetProxy = 22DE685718CE571B007CAE1E /* PBXContainerItemProxy */; 231 | }; 232 | /* End PBXTargetDependency section */ 233 | 234 | /* Begin XCBuildConfiguration section */ 235 | 22DE686118CE571B007CAE1E /* Debug */ = { 236 | isa = XCBuildConfiguration; 237 | buildSettings = { 238 | ALWAYS_SEARCH_USER_PATHS = NO; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_OBJC_ARC = YES; 242 | CLANG_WARN_BOOL_CONVERSION = YES; 243 | CLANG_WARN_CONSTANT_CONVERSION = YES; 244 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 245 | CLANG_WARN_EMPTY_BODY = YES; 246 | CLANG_WARN_ENUM_CONVERSION = YES; 247 | CLANG_WARN_INT_CONVERSION = YES; 248 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 249 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 250 | COPY_PHASE_STRIP = NO; 251 | GCC_C_LANGUAGE_STANDARD = gnu99; 252 | GCC_DYNAMIC_NO_PIC = NO; 253 | GCC_ENABLE_OBJC_EXCEPTIONS = YES; 254 | GCC_OPTIMIZATION_LEVEL = 0; 255 | GCC_PREPROCESSOR_DEFINITIONS = ( 256 | "DEBUG=1", 257 | "$(inherited)", 258 | ); 259 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 260 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 261 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 262 | GCC_WARN_UNDECLARED_SELECTOR = YES; 263 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 264 | GCC_WARN_UNUSED_FUNCTION = YES; 265 | GCC_WARN_UNUSED_VARIABLE = YES; 266 | INFOPLIST_EXPAND_BUILD_SETTINGS = NO; 267 | "INFOPLIST_FILE[sdk=*]" = Info.plist; 268 | MACOSX_DEPLOYMENT_TARGET = 10.9; 269 | ONLY_ACTIVE_ARCH = YES; 270 | SDKROOT = macosx; 271 | }; 272 | name = Debug; 273 | }; 274 | 22DE686218CE571B007CAE1E /* Release */ = { 275 | isa = XCBuildConfiguration; 276 | buildSettings = { 277 | ALWAYS_SEARCH_USER_PATHS = NO; 278 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 279 | CLANG_CXX_LIBRARY = "libc++"; 280 | CLANG_ENABLE_OBJC_ARC = YES; 281 | CLANG_WARN_BOOL_CONVERSION = YES; 282 | CLANG_WARN_CONSTANT_CONVERSION = YES; 283 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 284 | CLANG_WARN_EMPTY_BODY = YES; 285 | CLANG_WARN_ENUM_CONVERSION = YES; 286 | CLANG_WARN_INT_CONVERSION = YES; 287 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 288 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 289 | COPY_PHASE_STRIP = YES; 290 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 291 | ENABLE_NS_ASSERTIONS = NO; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_ENABLE_OBJC_EXCEPTIONS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | INFOPLIST_EXPAND_BUILD_SETTINGS = NO; 301 | "INFOPLIST_FILE[sdk=*]" = Info.plist; 302 | MACOSX_DEPLOYMENT_TARGET = 10.9; 303 | SDKROOT = macosx; 304 | }; 305 | name = Release; 306 | }; 307 | 22DE686418CE571B007CAE1E /* Debug */ = { 308 | isa = XCBuildConfiguration; 309 | buildSettings = { 310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 311 | COMBINE_HIDPI_IMAGES = YES; 312 | FRAMEWORK_SEARCH_PATHS = ( 313 | "$(inherited)", 314 | "$(LOCAL_LIBRARY_DIR)/Frameworks", 315 | ); 316 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 317 | GCC_PREFIX_HEADER = ""; 318 | "HEADER_SEARCH_PATHS[arch=*]" = ( 319 | "$(inherited)", 320 | /Library/Frameworks/SDL2.framework/Headers, 321 | ); 322 | INFOPLIST_FILE = Info.plist; 323 | PRODUCT_NAME = "$(TARGET_NAME)"; 324 | WRAPPER_EXTENSION = app; 325 | }; 326 | name = Debug; 327 | }; 328 | 22DE686518CE571B007CAE1E /* Release */ = { 329 | isa = XCBuildConfiguration; 330 | buildSettings = { 331 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 332 | COMBINE_HIDPI_IMAGES = YES; 333 | FRAMEWORK_SEARCH_PATHS = ( 334 | "$(inherited)", 335 | "$(LOCAL_LIBRARY_DIR)/Frameworks", 336 | ); 337 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 338 | GCC_PREFIX_HEADER = ""; 339 | "HEADER_SEARCH_PATHS[arch=*]" = ( 340 | "$(inherited)", 341 | /Library/Frameworks/SDL2.framework/Headers, 342 | ); 343 | INFOPLIST_FILE = Info.plist; 344 | PRODUCT_NAME = "$(TARGET_NAME)"; 345 | WRAPPER_EXTENSION = app; 346 | }; 347 | name = Release; 348 | }; 349 | 22DE686718CE571B007CAE1E /* Debug */ = { 350 | isa = XCBuildConfiguration; 351 | buildSettings = { 352 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SDL 2.0 Basics.app/Contents/MacOS/SDL 2.0 Basics"; 353 | COMBINE_HIDPI_IMAGES = YES; 354 | FRAMEWORK_SEARCH_PATHS = ( 355 | "$(DEVELOPER_FRAMEWORKS_DIR)", 356 | "$(inherited)", 357 | ); 358 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 359 | GCC_PREFIX_HEADER = ""; 360 | GCC_PREPROCESSOR_DEFINITIONS = ( 361 | "DEBUG=1", 362 | "$(inherited)", 363 | ); 364 | INFOPLIST_FILE = Info.plist; 365 | PRODUCT_NAME = "$(TARGET_NAME)"; 366 | TEST_HOST = "$(BUNDLE_LOADER)"; 367 | WRAPPER_EXTENSION = xctest; 368 | }; 369 | name = Debug; 370 | }; 371 | 22DE686818CE571B007CAE1E /* Release */ = { 372 | isa = XCBuildConfiguration; 373 | buildSettings = { 374 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SDL 2.0 Basics.app/Contents/MacOS/SDL 2.0 Basics"; 375 | COMBINE_HIDPI_IMAGES = YES; 376 | FRAMEWORK_SEARCH_PATHS = ( 377 | "$(DEVELOPER_FRAMEWORKS_DIR)", 378 | "$(inherited)", 379 | ); 380 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 381 | GCC_PREFIX_HEADER = ""; 382 | INFOPLIST_FILE = Info.plist; 383 | PRODUCT_NAME = "$(TARGET_NAME)"; 384 | TEST_HOST = "$(BUNDLE_LOADER)"; 385 | WRAPPER_EXTENSION = xctest; 386 | }; 387 | name = Release; 388 | }; 389 | /* End XCBuildConfiguration section */ 390 | 391 | /* Begin XCConfigurationList section */ 392 | 22DE682D18CE571B007CAE1E /* Build configuration list for PBXProject "SDL 2.0 Basics" */ = { 393 | isa = XCConfigurationList; 394 | buildConfigurations = ( 395 | 22DE686118CE571B007CAE1E /* Debug */, 396 | 22DE686218CE571B007CAE1E /* Release */, 397 | ); 398 | defaultConfigurationIsVisible = 0; 399 | defaultConfigurationName = Release; 400 | }; 401 | 22DE686318CE571B007CAE1E /* Build configuration list for PBXNativeTarget "SDL 2.0 Basics" */ = { 402 | isa = XCConfigurationList; 403 | buildConfigurations = ( 404 | 22DE686418CE571B007CAE1E /* Debug */, 405 | 22DE686518CE571B007CAE1E /* Release */, 406 | ); 407 | defaultConfigurationIsVisible = 0; 408 | defaultConfigurationName = Release; 409 | }; 410 | 22DE686618CE571B007CAE1E /* Build configuration list for PBXNativeTarget "SDL 2.0 BasicsTests" */ = { 411 | isa = XCConfigurationList; 412 | buildConfigurations = ( 413 | 22DE686718CE571B007CAE1E /* Debug */, 414 | 22DE686818CE571B007CAE1E /* Release */, 415 | ); 416 | defaultConfigurationIsVisible = 0; 417 | defaultConfigurationName = Release; 418 | }; 419 | /* End XCConfigurationList section */ 420 | }; 421 | rootObject = 22DE682A18CE571B007CAE1E /* Project object */; 422 | } 423 | -------------------------------------------------------------------------------- /SDL 2.0 Basics.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SDL 2.0 Basics.xcodeproj/project.xcworkspace/xcshareddata/SDL 2.0 Basics.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 8A6EB7CF-623D-461B-8F5C-D463F2AFB2AA 9 | IDESourceControlProjectName 10 | SDL 2.0 Basics 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 3760ED81-707B-4D1D-B3AD-0230B90A4C07 14 | https://github.com/MetaCipher/sdl-2.0-basics.git 15 | 16 | IDESourceControlProjectPath 17 | SDL 2.0 Basics/SDL 2.0 Basics.xcodeproj/project.xcworkspace 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 3760ED81-707B-4D1D-B3AD-0230B90A4C07 21 | ../../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/MetaCipher/sdl-2.0-basics.git 25 | IDESourceControlProjectVersion 26 | 110 27 | IDESourceControlProjectWCCIdentifier 28 | 3760ED81-707B-4D1D-B3AD-0230B90A4C07 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 3760ED81-707B-4D1D-B3AD-0230B90A4C07 36 | IDESourceControlWCCName 37 | sdl-2 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /SDL 2.0 Basics.xcodeproj/project.xcworkspace/xcuserdata/tim.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MetaCipher/sdl-2.0-basics/7c502ac0c271192cd214bf3f0f6ac8a7652993b2/SDL 2.0 Basics.xcodeproj/project.xcworkspace/xcuserdata/tim.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /SDL 2.0 Basics.xcodeproj/xcuserdata/tim.xcuserdatad/xcschemes/SDL 2.0 Basics.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /SDL 2.0 Basics.xcodeproj/xcuserdata/tim.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | SDL 2.0 Basics.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 22DE683118CE571B007CAE1E 16 | 17 | primary 18 | 19 | 20 | 22DE685218CE571B007CAE1E 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /main.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================== 2 | /* 3 | Run the app! 4 | 5 | 3/11/2014 6 | SDLTutorials.com 7 | Tim Jones 8 | */ 9 | //============================================================================== 10 | #include "App.h" 11 | 12 | int main(int argc, char* argv[]) { 13 | return App::GetInstance()->Execute(argc, argv); 14 | } 15 | -------------------------------------------------------------------------------- /sdl-2.0-basics.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 40 | 41 | -------------------------------------------------------------------------------- /sdl-2.0-basics.depend: -------------------------------------------------------------------------------- 1 | # depslib dependency file v1.0 2 | 1394481562 source:/Users/tim/Dropbox/Tutorials/Repositories/SDLTutorials.com/sdl-2.0-basics/App.cpp 3 | "App.h" 4 | "Log.h" 5 | 6 | 1394482679 /Users/tim/Dropbox/Tutorials/Repositories/SDLTutorials.com/sdl-2.0-basics/App.h 7 | 8 | 9 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL.h 10 | "SDL_main.h" 11 | "SDL_stdinc.h" 12 | "SDL_assert.h" 13 | "SDL_atomic.h" 14 | "SDL_audio.h" 15 | "SDL_clipboard.h" 16 | "SDL_cpuinfo.h" 17 | "SDL_endian.h" 18 | "SDL_error.h" 19 | "SDL_events.h" 20 | "SDL_filesystem.h" 21 | "SDL_joystick.h" 22 | "SDL_gamecontroller.h" 23 | "SDL_haptic.h" 24 | "SDL_hints.h" 25 | "SDL_loadso.h" 26 | "SDL_log.h" 27 | "SDL_messagebox.h" 28 | "SDL_mutex.h" 29 | "SDL_power.h" 30 | "SDL_render.h" 31 | "SDL_rwops.h" 32 | "SDL_system.h" 33 | "SDL_thread.h" 34 | "SDL_timer.h" 35 | "SDL_version.h" 36 | "SDL_video.h" 37 | "begin_code.h" 38 | "close_code.h" 39 | 40 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_main.h 41 | "SDL_stdinc.h" 42 | "begin_code.h" 43 | "close_code.h" 44 | 45 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_stdinc.h 46 | "SDL_config.h" 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | "begin_code.h" 65 | 66 | 67 | 68 | 69 | 70 | "close_code.h" 71 | 72 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_config.h 73 | "SDL_platform.h" 74 | "SDL_config_premake.h" 75 | "SDL_config_windows.h" 76 | "SDL_config_macosx.h" 77 | "SDL_config_iphoneos.h" 78 | "SDL_config_android.h" 79 | "SDL_config_psp.h" 80 | "SDL_config_minimal.h" 81 | 82 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_platform.h 83 | "AvailabilityMacros.h" 84 | "TargetConditionals.h" 85 | "begin_code.h" 86 | "close_code.h" 87 | 88 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/begin_code.h 89 | 90 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/close_code.h 91 | 92 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_config_macosx.h 93 | "SDL_platform.h" 94 | 95 | 96 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_assert.h 97 | "SDL_config.h" 98 | "begin_code.h" 99 | 100 | "close_code.h" 101 | 102 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_atomic.h 103 | "SDL_stdinc.h" 104 | "SDL_platform.h" 105 | "begin_code.h" 106 | "close_code.h" 107 | 108 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_audio.h 109 | "SDL_stdinc.h" 110 | "SDL_error.h" 111 | "SDL_endian.h" 112 | "SDL_mutex.h" 113 | "SDL_thread.h" 114 | "SDL_rwops.h" 115 | "begin_code.h" 116 | "close_code.h" 117 | 118 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_error.h 119 | "SDL_stdinc.h" 120 | "begin_code.h" 121 | "close_code.h" 122 | 123 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_endian.h 124 | "SDL_stdinc.h" 125 | 126 | "begin_code.h" 127 | "close_code.h" 128 | 129 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_mutex.h 130 | "SDL_stdinc.h" 131 | "SDL_error.h" 132 | "begin_code.h" 133 | "close_code.h" 134 | 135 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_thread.h 136 | "SDL_stdinc.h" 137 | "SDL_error.h" 138 | "SDL_atomic.h" 139 | "SDL_mutex.h" 140 | "begin_code.h" 141 | 142 | "close_code.h" 143 | 144 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_rwops.h 145 | "SDL_stdinc.h" 146 | "SDL_error.h" 147 | "begin_code.h" 148 | "close_code.h" 149 | 150 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_clipboard.h 151 | "SDL_stdinc.h" 152 | "begin_code.h" 153 | "close_code.h" 154 | 155 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_cpuinfo.h 156 | "SDL_stdinc.h" 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | "begin_code.h" 165 | "close_code.h" 166 | 167 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_events.h 168 | "SDL_stdinc.h" 169 | "SDL_error.h" 170 | "SDL_video.h" 171 | "SDL_keyboard.h" 172 | "SDL_mouse.h" 173 | "SDL_joystick.h" 174 | "SDL_gamecontroller.h" 175 | "SDL_quit.h" 176 | "SDL_gesture.h" 177 | "SDL_touch.h" 178 | "begin_code.h" 179 | "close_code.h" 180 | 181 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_video.h 182 | "SDL_stdinc.h" 183 | "SDL_pixels.h" 184 | "SDL_rect.h" 185 | "SDL_surface.h" 186 | "begin_code.h" 187 | "close_code.h" 188 | 189 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_pixels.h 190 | "SDL_stdinc.h" 191 | "begin_code.h" 192 | "close_code.h" 193 | 194 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_rect.h 195 | "SDL_stdinc.h" 196 | "SDL_error.h" 197 | "SDL_pixels.h" 198 | "SDL_rwops.h" 199 | "begin_code.h" 200 | "close_code.h" 201 | 202 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_surface.h 203 | "SDL_stdinc.h" 204 | "SDL_pixels.h" 205 | "SDL_rect.h" 206 | "SDL_blendmode.h" 207 | "SDL_rwops.h" 208 | "begin_code.h" 209 | "close_code.h" 210 | 211 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_blendmode.h 212 | "begin_code.h" 213 | "close_code.h" 214 | 215 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_keyboard.h 216 | "SDL_stdinc.h" 217 | "SDL_error.h" 218 | "SDL_keycode.h" 219 | "SDL_video.h" 220 | "begin_code.h" 221 | "close_code.h" 222 | 223 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_keycode.h 224 | "SDL_stdinc.h" 225 | "SDL_scancode.h" 226 | 227 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_scancode.h 228 | "SDL_stdinc.h" 229 | 230 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_mouse.h 231 | "SDL_stdinc.h" 232 | "SDL_error.h" 233 | "SDL_video.h" 234 | "begin_code.h" 235 | "close_code.h" 236 | 237 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_joystick.h 238 | "SDL_stdinc.h" 239 | "SDL_error.h" 240 | "begin_code.h" 241 | "close_code.h" 242 | 243 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_gamecontroller.h 244 | "SDL_stdinc.h" 245 | "SDL_error.h" 246 | "SDL_rwops.h" 247 | "SDL_joystick.h" 248 | "begin_code.h" 249 | "close_code.h" 250 | 251 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_quit.h 252 | "SDL_stdinc.h" 253 | "SDL_error.h" 254 | 255 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_gesture.h 256 | "SDL_stdinc.h" 257 | "SDL_error.h" 258 | "SDL_video.h" 259 | "SDL_touch.h" 260 | "begin_code.h" 261 | "close_code.h" 262 | 263 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_touch.h 264 | "SDL_stdinc.h" 265 | "SDL_error.h" 266 | "SDL_video.h" 267 | "begin_code.h" 268 | "close_code.h" 269 | 270 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_filesystem.h 271 | "SDL_stdinc.h" 272 | "begin_code.h" 273 | "close_code.h" 274 | 275 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_haptic.h 276 | "SDL_stdinc.h" 277 | "SDL_error.h" 278 | "SDL_joystick.h" 279 | "begin_code.h" 280 | "close_code.h" 281 | 282 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_hints.h 283 | "SDL_stdinc.h" 284 | "begin_code.h" 285 | "close_code.h" 286 | 287 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_loadso.h 288 | "SDL_stdinc.h" 289 | "SDL_error.h" 290 | "begin_code.h" 291 | "close_code.h" 292 | 293 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_log.h 294 | "SDL_stdinc.h" 295 | "begin_code.h" 296 | "close_code.h" 297 | 298 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_messagebox.h 299 | "SDL_stdinc.h" 300 | "SDL_video.h" 301 | "begin_code.h" 302 | "close_code.h" 303 | 304 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_power.h 305 | "SDL_stdinc.h" 306 | "begin_code.h" 307 | "close_code.h" 308 | 309 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_render.h 310 | "SDL_stdinc.h" 311 | "SDL_rect.h" 312 | "SDL_video.h" 313 | "begin_code.h" 314 | "close_code.h" 315 | 316 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_system.h 317 | "SDL_stdinc.h" 318 | "SDL_keyboard.h" 319 | "SDL_render.h" 320 | "SDL_video.h" 321 | "begin_code.h" 322 | "close_code.h" 323 | 324 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_timer.h 325 | "SDL_stdinc.h" 326 | "SDL_error.h" 327 | "begin_code.h" 328 | "close_code.h" 329 | 330 | 1394253606 /Library/Frameworks/SDL2.framework/Versions/A/Headers/SDL_version.h 331 | "SDL_stdinc.h" 332 | "begin_code.h" 333 | "close_code.h" 334 | 335 | 1394478787 /Users/tim/Dropbox/Tutorials/Repositories/SDLTutorials.com/sdl-2.0-basics/Log.h 336 | 337 | 338 | 1394478353 source:/Users/tim/Dropbox/Tutorials/Repositories/SDLTutorials.com/sdl-2.0-basics/main.cpp 339 | "App.h" 340 | 341 | 1394538953 source:z:\dropbox\tutorials\repositories\sdltutorials.com\sdl-2.0-basics\app.cpp 342 | "App.h" 343 | "Log.h" 344 | 345 | 1394755520 z:\dropbox\tutorials\repositories\sdltutorials.com\sdl-2.0-basics\app.h 346 | 347 | 348 | 1394538636 z:\dropbox\tutorials\repositories\sdltutorials.com\sdl-2.0-basics\log.h 349 | 350 | 351 | 1394538480 source:z:\dropbox\tutorials\repositories\sdltutorials.com\sdl-2.0-basics\main.cpp 352 | "App.h" 353 | 354 | 1394257098 c:\sdl\include\sdl2\sdl.h 355 | "SDL_main.h" 356 | "SDL_stdinc.h" 357 | "SDL_assert.h" 358 | "SDL_atomic.h" 359 | "SDL_audio.h" 360 | "SDL_clipboard.h" 361 | "SDL_cpuinfo.h" 362 | "SDL_endian.h" 363 | "SDL_error.h" 364 | "SDL_events.h" 365 | "SDL_filesystem.h" 366 | "SDL_joystick.h" 367 | "SDL_gamecontroller.h" 368 | "SDL_haptic.h" 369 | "SDL_hints.h" 370 | "SDL_loadso.h" 371 | "SDL_log.h" 372 | "SDL_messagebox.h" 373 | "SDL_mutex.h" 374 | "SDL_power.h" 375 | "SDL_render.h" 376 | "SDL_rwops.h" 377 | "SDL_system.h" 378 | "SDL_thread.h" 379 | "SDL_timer.h" 380 | "SDL_version.h" 381 | "SDL_video.h" 382 | "begin_code.h" 383 | "close_code.h" 384 | 385 | 1394257098 c:\sdl\include\sdl2\sdl_main.h 386 | "SDL_stdinc.h" 387 | "begin_code.h" 388 | "close_code.h" 389 | 390 | 1394257098 c:\sdl\include\sdl2\sdl_stdinc.h 391 | "SDL_config.h" 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | "begin_code.h" 410 | 411 | 412 | 413 | 414 | 415 | "close_code.h" 416 | 417 | 1394257098 c:\sdl\include\sdl2\sdl_config.h 418 | "SDL_platform.h" 419 | 420 | 1394257098 c:\sdl\include\sdl2\sdl_platform.h 421 | "AvailabilityMacros.h" 422 | "TargetConditionals.h" 423 | "begin_code.h" 424 | "close_code.h" 425 | 426 | 1394257098 c:\sdl\include\sdl2\begin_code.h 427 | 428 | 1394257098 c:\sdl\include\sdl2\close_code.h 429 | 430 | 1394257098 c:\sdl\include\sdl2\sdl_assert.h 431 | "SDL_config.h" 432 | "begin_code.h" 433 | 434 | "close_code.h" 435 | 436 | 1394257098 c:\sdl\include\sdl2\sdl_atomic.h 437 | "SDL_stdinc.h" 438 | "SDL_platform.h" 439 | "begin_code.h" 440 | "close_code.h" 441 | 442 | 1394257098 c:\sdl\include\sdl2\sdl_audio.h 443 | "SDL_stdinc.h" 444 | "SDL_error.h" 445 | "SDL_endian.h" 446 | "SDL_mutex.h" 447 | "SDL_thread.h" 448 | "SDL_rwops.h" 449 | "begin_code.h" 450 | "close_code.h" 451 | 452 | 1394257098 c:\sdl\include\sdl2\sdl_error.h 453 | "SDL_stdinc.h" 454 | "begin_code.h" 455 | "close_code.h" 456 | 457 | 1394257098 c:\sdl\include\sdl2\sdl_endian.h 458 | "SDL_stdinc.h" 459 | 460 | "begin_code.h" 461 | "close_code.h" 462 | 463 | 1394257098 c:\sdl\include\sdl2\sdl_mutex.h 464 | "SDL_stdinc.h" 465 | "SDL_error.h" 466 | "begin_code.h" 467 | "close_code.h" 468 | 469 | 1394257098 c:\sdl\include\sdl2\sdl_thread.h 470 | "SDL_stdinc.h" 471 | "SDL_error.h" 472 | "SDL_atomic.h" 473 | "SDL_mutex.h" 474 | "begin_code.h" 475 | 476 | "close_code.h" 477 | 478 | 1394257098 c:\sdl\include\sdl2\sdl_rwops.h 479 | "SDL_stdinc.h" 480 | "SDL_error.h" 481 | "begin_code.h" 482 | "close_code.h" 483 | 484 | 1394257098 c:\sdl\include\sdl2\sdl_clipboard.h 485 | "SDL_stdinc.h" 486 | "begin_code.h" 487 | "close_code.h" 488 | 489 | 1394257098 c:\sdl\include\sdl2\sdl_cpuinfo.h 490 | "SDL_stdinc.h" 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | "begin_code.h" 499 | "close_code.h" 500 | 501 | 1394257098 c:\sdl\include\sdl2\sdl_events.h 502 | "SDL_stdinc.h" 503 | "SDL_error.h" 504 | "SDL_video.h" 505 | "SDL_keyboard.h" 506 | "SDL_mouse.h" 507 | "SDL_joystick.h" 508 | "SDL_gamecontroller.h" 509 | "SDL_quit.h" 510 | "SDL_gesture.h" 511 | "SDL_touch.h" 512 | "begin_code.h" 513 | "close_code.h" 514 | 515 | 1394257098 c:\sdl\include\sdl2\sdl_video.h 516 | "SDL_stdinc.h" 517 | "SDL_pixels.h" 518 | "SDL_rect.h" 519 | "SDL_surface.h" 520 | "begin_code.h" 521 | "close_code.h" 522 | 523 | 1394257098 c:\sdl\include\sdl2\sdl_pixels.h 524 | "SDL_stdinc.h" 525 | "begin_code.h" 526 | "close_code.h" 527 | 528 | 1394257098 c:\sdl\include\sdl2\sdl_rect.h 529 | "SDL_stdinc.h" 530 | "SDL_error.h" 531 | "SDL_pixels.h" 532 | "SDL_rwops.h" 533 | "begin_code.h" 534 | "close_code.h" 535 | 536 | 1394257098 c:\sdl\include\sdl2\sdl_surface.h 537 | "SDL_stdinc.h" 538 | "SDL_pixels.h" 539 | "SDL_rect.h" 540 | "SDL_blendmode.h" 541 | "SDL_rwops.h" 542 | "begin_code.h" 543 | "close_code.h" 544 | 545 | 1394257098 c:\sdl\include\sdl2\sdl_blendmode.h 546 | "begin_code.h" 547 | "close_code.h" 548 | 549 | 1394257098 c:\sdl\include\sdl2\sdl_keyboard.h 550 | "SDL_stdinc.h" 551 | "SDL_error.h" 552 | "SDL_keycode.h" 553 | "SDL_video.h" 554 | "begin_code.h" 555 | "close_code.h" 556 | 557 | 1394257098 c:\sdl\include\sdl2\sdl_keycode.h 558 | "SDL_stdinc.h" 559 | "SDL_scancode.h" 560 | 561 | 1394257098 c:\sdl\include\sdl2\sdl_scancode.h 562 | "SDL_stdinc.h" 563 | 564 | 1394257098 c:\sdl\include\sdl2\sdl_mouse.h 565 | "SDL_stdinc.h" 566 | "SDL_error.h" 567 | "SDL_video.h" 568 | "begin_code.h" 569 | "close_code.h" 570 | 571 | 1394257098 c:\sdl\include\sdl2\sdl_joystick.h 572 | "SDL_stdinc.h" 573 | "SDL_error.h" 574 | "begin_code.h" 575 | "close_code.h" 576 | 577 | 1394257098 c:\sdl\include\sdl2\sdl_gamecontroller.h 578 | "SDL_stdinc.h" 579 | "SDL_error.h" 580 | "SDL_rwops.h" 581 | "SDL_joystick.h" 582 | "begin_code.h" 583 | "close_code.h" 584 | 585 | 1394257098 c:\sdl\include\sdl2\sdl_quit.h 586 | "SDL_stdinc.h" 587 | "SDL_error.h" 588 | 589 | 1394257098 c:\sdl\include\sdl2\sdl_gesture.h 590 | "SDL_stdinc.h" 591 | "SDL_error.h" 592 | "SDL_video.h" 593 | "SDL_touch.h" 594 | "begin_code.h" 595 | "close_code.h" 596 | 597 | 1394257098 c:\sdl\include\sdl2\sdl_touch.h 598 | "SDL_stdinc.h" 599 | "SDL_error.h" 600 | "SDL_video.h" 601 | "begin_code.h" 602 | "close_code.h" 603 | 604 | 1394257098 c:\sdl\include\sdl2\sdl_filesystem.h 605 | "SDL_stdinc.h" 606 | "begin_code.h" 607 | "close_code.h" 608 | 609 | 1394257098 c:\sdl\include\sdl2\sdl_haptic.h 610 | "SDL_stdinc.h" 611 | "SDL_error.h" 612 | "SDL_joystick.h" 613 | "begin_code.h" 614 | "close_code.h" 615 | 616 | 1394257098 c:\sdl\include\sdl2\sdl_hints.h 617 | "SDL_stdinc.h" 618 | "begin_code.h" 619 | "close_code.h" 620 | 621 | 1394257098 c:\sdl\include\sdl2\sdl_loadso.h 622 | "SDL_stdinc.h" 623 | "SDL_error.h" 624 | "begin_code.h" 625 | "close_code.h" 626 | 627 | 1394257098 c:\sdl\include\sdl2\sdl_log.h 628 | "SDL_stdinc.h" 629 | "begin_code.h" 630 | "close_code.h" 631 | 632 | 1394257098 c:\sdl\include\sdl2\sdl_messagebox.h 633 | "SDL_stdinc.h" 634 | "SDL_video.h" 635 | "begin_code.h" 636 | "close_code.h" 637 | 638 | 1394257098 c:\sdl\include\sdl2\sdl_power.h 639 | "SDL_stdinc.h" 640 | "begin_code.h" 641 | "close_code.h" 642 | 643 | 1394257098 c:\sdl\include\sdl2\sdl_render.h 644 | "SDL_stdinc.h" 645 | "SDL_rect.h" 646 | "SDL_video.h" 647 | "begin_code.h" 648 | "close_code.h" 649 | 650 | 1394257098 c:\sdl\include\sdl2\sdl_system.h 651 | "SDL_stdinc.h" 652 | "SDL_keyboard.h" 653 | "SDL_render.h" 654 | "SDL_video.h" 655 | "begin_code.h" 656 | "close_code.h" 657 | 658 | 1394257098 c:\sdl\include\sdl2\sdl_timer.h 659 | "SDL_stdinc.h" 660 | "SDL_error.h" 661 | "begin_code.h" 662 | "close_code.h" 663 | 664 | 1394257098 c:\sdl\include\sdl2\sdl_version.h 665 | "SDL_stdinc.h" 666 | "begin_code.h" 667 | "close_code.h" 668 | 669 | -------------------------------------------------------------------------------- /sdl-2.0-basics.layout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | --------------------------------------------------------------------------------