{"payload":{"allShortcutsEnabled":false,"fileTree":{"Xcode-iOS/Demos/src":{"items":[{"name":"accelerometer.c","path":"Xcode-iOS/Demos/src/accelerometer.c","contentType":"file"},{"name":"common.c","path":"Xcode-iOS/Demos/src/common.c","contentType":"file"},{"name":"common.h","path":"Xcode-iOS/Demos/src/common.h","contentType":"file"},{"name":"fireworks.c","path":"Xcode-iOS/Demos/src/fireworks.c","contentType":"file"},{"name":"happy.c","path":"Xcode-iOS/Demos/src/happy.c","contentType":"file"},{"name":"keyboard.c","path":"Xcode-iOS/Demos/src/keyboard.c","contentType":"file"},{"name":"mixer.c","path":"Xcode-iOS/Demos/src/mixer.c","contentType":"file"},{"name":"rectangles.c","path":"Xcode-iOS/Demos/src/rectangles.c","contentType":"file"},{"name":"touch.c","path":"Xcode-iOS/Demos/src/touch.c","contentType":"file"}],"totalCount":9},"Xcode-iOS/Demos":{"items":[{"name":"Demos.xcodeproj","path":"Xcode-iOS/Demos/Demos.xcodeproj","contentType":"directory"},{"name":"data","path":"Xcode-iOS/Demos/data","contentType":"directory"},{"name":"src","path":"Xcode-iOS/Demos/src","contentType":"directory"},{"name":"Default.png","path":"Xcode-iOS/Demos/Default.png","contentType":"file"},{"name":"Icon.png","path":"Xcode-iOS/Demos/Icon.png","contentType":"file"},{"name":"Info.plist","path":"Xcode-iOS/Demos/Info.plist","contentType":"file"},{"name":"README","path":"Xcode-iOS/Demos/README","contentType":"file"},{"name":"iOS Launch Screen.storyboard","path":"Xcode-iOS/Demos/iOS Launch Screen.storyboard","contentType":"file"}],"totalCount":8},"Xcode-iOS":{"items":[{"name":"Demos","path":"Xcode-iOS/Demos","contentType":"directory"},{"name":"SDL","path":"Xcode-iOS/SDL","contentType":"directory"},{"name":"SDLtest","path":"Xcode-iOS/SDLtest","contentType":"directory"},{"name":"Template","path":"Xcode-iOS/Template","contentType":"directory"},{"name":"Test","path":"Xcode-iOS/Test","contentType":"directory"}],"totalCount":5},"":{"items":[{"name":"VisualC-WinRT","path":"VisualC-WinRT","contentType":"directory"},{"name":"VisualC","path":"VisualC","contentType":"directory"},{"name":"Xcode-iOS","path":"Xcode-iOS","contentType":"directory"},{"name":"Xcode","path":"Xcode","contentType":"directory"},{"name":"acinclude","path":"acinclude","contentType":"directory"},{"name":"android-project","path":"android-project","contentType":"directory"},{"name":"build-scripts","path":"build-scripts","contentType":"directory"},{"name":"cmake","path":"cmake","contentType":"directory"},{"name":"debian","path":"debian","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"include","path":"include","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"visualtest","path":"visualtest","contentType":"directory"},{"name":".hgignore","path":".hgignore","contentType":"file"},{"name":"Android.mk","path":"Android.mk","contentType":"file"},{"name":"BUGS.txt","path":"BUGS.txt","contentType":"file"},{"name":"CMakeLists.txt","path":"CMakeLists.txt","contentType":"file"},{"name":"COPYING.txt","path":"COPYING.txt","contentType":"file"},{"name":"CREDITS.txt","path":"CREDITS.txt","contentType":"file"},{"name":"INSTALL.txt","path":"INSTALL.txt","contentType":"file"},{"name":"Makefile.in","path":"Makefile.in","contentType":"file"},{"name":"Makefile.minimal","path":"Makefile.minimal","contentType":"file"},{"name":"Makefile.pandora","path":"Makefile.pandora","contentType":"file"},{"name":"Makefile.psp","path":"Makefile.psp","contentType":"file"},{"name":"Makefile.wiz","path":"Makefile.wiz","contentType":"file"},{"name":"README-SDL.txt","path":"README-SDL.txt","contentType":"file"},{"name":"README.txt","path":"README.txt","contentType":"file"},{"name":"SDL2.spec.in","path":"SDL2.spec.in","contentType":"file"},{"name":"TODO.txt","path":"TODO.txt","contentType":"file"},{"name":"VisualC.html","path":"VisualC.html","contentType":"file"},{"name":"WhatsNew.txt","path":"WhatsNew.txt","contentType":"file"},{"name":"autogen.sh","path":"autogen.sh","contentType":"file"},{"name":"cmake_uninstall.cmake.in","path":"cmake_uninstall.cmake.in","contentType":"file"},{"name":"configure","path":"configure","contentType":"file"},{"name":"configure.in","path":"configure.in","contentType":"file"},{"name":"sdl2-config.cmake.in","path":"sdl2-config.cmake.in","contentType":"file"},{"name":"sdl2-config.in","path":"sdl2-config.in","contentType":"file"},{"name":"sdl2.m4","path":"sdl2.m4","contentType":"file"},{"name":"sdl2.pc.in","path":"sdl2.pc.in","contentType":"file"}],"totalCount":40}},"fileTreeProcessingTime":6.568046,"foldersToFetch":[],"repo":{"id":330008801,"defaultBranch":"main","name":"SDL","ownerLogin":"libsdl-org","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-01-15T19:55:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/77683370?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"00da0824f5a0a5ca2f8d08e4ab1d169477b973fe","listCacheKey":"v0:1709678518.0","canEdit":false,"refType":"tree","currentOid":"00da0824f5a0a5ca2f8d08e4ab1d169477b973fe"},"path":"Xcode-iOS/Demos/src/touch.c","currentUser":null,"blob":{"rawLines":["/*"," * touch.c"," * written by Holmes Futrell"," * use however you want"," */","","#include \"SDL.h\"","#include \"math.h\"","#include \"common.h\"","","#define BRUSH_SIZE 32 /* width and height of the brush */","#define PIXELS_PER_ITERATION 5 /* number of pixels between brush blots when forming a line */","","static SDL_Texture *brush = 0; /* texture for the brush */","","/*"," draws a line from (startx, starty) to (startx + dx, starty + dy)"," this is accomplished by drawing several blots spaced PIXELS_PER_ITERATION apart","*/","void","drawLine(SDL_Renderer *renderer, float startx, float starty, float dx, float dy)","{",""," float distance = sqrt(dx * dx + dy * dy); /* length of line segment (pythagoras) */"," int iterations = distance / PIXELS_PER_ITERATION + 1; /* number of brush sprites to draw for the line */"," float dx_prime = dx / iterations; /* x-shift per iteration */"," float dy_prime = dy / iterations; /* y-shift per iteration */"," SDL_Rect dstRect; /* rect to draw brush sprite into */"," float x;"," float y;"," int i;",""," dstRect.w = BRUSH_SIZE;"," dstRect.h = BRUSH_SIZE;",""," /* setup x and y for the location of the first sprite */"," x = startx - BRUSH_SIZE / 2.0f;"," y = starty - BRUSH_SIZE / 2.0f;",""," /* draw a series of blots to form the line */"," for (i = 0; i < iterations; i++) {"," dstRect.x = x;"," dstRect.y = y;"," /* shift x and y for next sprite location */"," x += dx_prime;"," y += dy_prime;"," /* draw brush blot */"," SDL_RenderCopy(renderer, brush, NULL, &dstRect);"," }","}","","/*"," loads the brush texture","*/","void","initializeTexture(SDL_Renderer *renderer)","{"," SDL_Surface *bmp_surface;"," bmp_surface = SDL_LoadBMP(\"stroke.bmp\");"," if (bmp_surface == NULL) {"," fatalError(\"could not load stroke.bmp\");"," }"," brush ="," SDL_CreateTextureFromSurface(renderer, bmp_surface);"," SDL_FreeSurface(bmp_surface);"," if (brush == 0) {"," fatalError(\"could not create brush texture\");"," }"," /* additive blending -- laying strokes on top of eachother makes them brighter */"," SDL_SetTextureBlendMode(brush, SDL_BLENDMODE_ADD);"," /* set brush color (red) */"," SDL_SetTextureColorMod(brush, 255, 100, 100);","}","","int","main(int argc, char *argv[])","{",""," int x, y, dx, dy; /* mouse location */"," Uint8 state; /* mouse (touch) state */"," SDL_Event event;"," SDL_Window *window; /* main window */"," SDL_Renderer *renderer;"," int done; /* does user want to quit? */"," int w, h;",""," /* initialize SDL */"," if (SDL_Init(SDL_INIT_VIDEO) < 0) {"," fatalError(\"Could not initialize SDL\");"," }",""," /* create main window and renderer */"," window = SDL_CreateWindow(NULL, 0, 0, 320, 480, SDL_WINDOW_BORDERLESS | SDL_WINDOW_ALLOW_HIGHDPI);"," renderer = SDL_CreateRenderer(window, 0, 0);",""," SDL_GetWindowSize(window, &w, &h);"," SDL_RenderSetLogicalSize(renderer, w, h);",""," /* load brush texture */"," initializeTexture(renderer);",""," /* fill canvass initially with all black */"," SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);"," SDL_RenderClear(renderer);"," SDL_RenderPresent(renderer);",""," done = 0;"," while (!done && SDL_WaitEvent(&event)) {"," switch (event.type) {"," case SDL_QUIT:"," done = 1;"," break;"," case SDL_MOUSEMOTION:"," state = SDL_GetMouseState(&x, &y); /* get its location */"," SDL_GetRelativeMouseState(&dx, &dy); /* find how much the mouse moved */"," if (state & SDL_BUTTON_LMASK) { /* is the mouse (touch) down? */"," drawLine(renderer, x - dx, y - dy, dx, dy); /* draw line segment */"," SDL_RenderPresent(renderer);"," }"," break;"," }"," }",""," /* cleanup */"," SDL_DestroyTexture(brush);"," SDL_Quit();",""," return 0;","}"],"stylingDirectives":[[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":11,"cssClass":"pl-c"}],[{"start":0,"end":29,"cssClass":"pl-c"}],[{"start":0,"end":24,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[],[{"start":0,"end":8,"cssClass":"pl-k"},{"start":9,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":8,"cssClass":"pl-k"},{"start":9,"end":17,"cssClass":"pl-s"}],[{"start":0,"end":8,"cssClass":"pl-k"},{"start":9,"end":19,"cssClass":"pl-s"}],[],[{"start":0,"end":7,"cssClass":"pl-k"},{"start":8,"end":18,"cssClass":"pl-c1"}],[{"start":0,"end":7,"cssClass":"pl-k"},{"start":8,"end":28,"cssClass":"pl-c1"}],[],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":18,"cssClass":"pl-smi"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":20,"end":25,"cssClass":"pl-s1"},{"start":26,"end":27,"cssClass":"pl-c1"},{"start":28,"end":29,"cssClass":"pl-c1"},{"start":37,"end":64,"cssClass":"pl-c"}],[],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":68,"cssClass":"pl-c"}],[{"start":0,"end":83,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-smi"}],[{"start":0,"end":8,"cssClass":"pl-en"},{"start":9,"end":21,"cssClass":"pl-smi"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":23,"end":31,"cssClass":"pl-s1"},{"start":33,"end":38,"cssClass":"pl-smi"},{"start":39,"end":45,"cssClass":"pl-s1"},{"start":47,"end":52,"cssClass":"pl-smi"},{"start":53,"end":59,"cssClass":"pl-s1"},{"start":61,"end":66,"cssClass":"pl-smi"},{"start":67,"end":69,"cssClass":"pl-s1"},{"start":71,"end":76,"cssClass":"pl-smi"},{"start":77,"end":79,"cssClass":"pl-s1"}],[],[],[{"start":4,"end":9,"cssClass":"pl-smi"},{"start":10,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":25,"cssClass":"pl-en"},{"start":26,"end":28,"cssClass":"pl-s1"},{"start":29,"end":30,"cssClass":"pl-c1"},{"start":31,"end":33,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":36,"end":38,"cssClass":"pl-s1"},{"start":39,"end":40,"cssClass":"pl-c1"},{"start":41,"end":43,"cssClass":"pl-s1"},{"start":48,"end":89,"cssClass":"pl-c"}],[{"start":4,"end":7,"cssClass":"pl-smi"},{"start":8,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":29,"cssClass":"pl-s1"},{"start":32,"end":52,"cssClass":"pl-c1"},{"start":53,"end":54,"cssClass":"pl-c1"},{"start":55,"end":56,"cssClass":"pl-c1"},{"start":64,"end":114,"cssClass":"pl-c"}],[{"start":4,"end":9,"cssClass":"pl-smi"},{"start":10,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":23,"cssClass":"pl-s1"},{"start":26,"end":36,"cssClass":"pl-s1"},{"start":40,"end":67,"cssClass":"pl-c"}],[{"start":4,"end":9,"cssClass":"pl-smi"},{"start":10,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":23,"cssClass":"pl-s1"},{"start":26,"end":36,"cssClass":"pl-s1"},{"start":40,"end":67,"cssClass":"pl-c"}],[{"start":4,"end":12,"cssClass":"pl-smi"},{"start":13,"end":20,"cssClass":"pl-s1"},{"start":32,"end":68,"cssClass":"pl-c"}],[{"start":4,"end":9,"cssClass":"pl-smi"},{"start":10,"end":11,"cssClass":"pl-s1"}],[{"start":4,"end":9,"cssClass":"pl-smi"},{"start":10,"end":11,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-smi"},{"start":8,"end":9,"cssClass":"pl-s1"}],[],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":12,"end":13,"cssClass":"pl-c1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":16,"end":26,"cssClass":"pl-c1"}],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":12,"end":13,"cssClass":"pl-c1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":16,"end":26,"cssClass":"pl-c1"}],[],[{"start":4,"end":60,"cssClass":"pl-c"}],[{"start":4,"end":5,"cssClass":"pl-s1"},{"start":6,"end":7,"cssClass":"pl-c1"},{"start":8,"end":14,"cssClass":"pl-s1"},{"start":15,"end":16,"cssClass":"pl-c1"},{"start":17,"end":27,"cssClass":"pl-c1"},{"start":30,"end":34,"cssClass":"pl-c1"}],[{"start":4,"end":5,"cssClass":"pl-s1"},{"start":6,"end":7,"cssClass":"pl-c1"},{"start":8,"end":14,"cssClass":"pl-s1"},{"start":15,"end":16,"cssClass":"pl-c1"},{"start":17,"end":27,"cssClass":"pl-c1"},{"start":30,"end":34,"cssClass":"pl-c1"}],[],[{"start":4,"end":49,"cssClass":"pl-c"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":9,"end":10,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-c1"},{"start":13,"end":14,"cssClass":"pl-c1"},{"start":16,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":30,"cssClass":"pl-s1"},{"start":32,"end":33,"cssClass":"pl-s1"},{"start":33,"end":35,"cssClass":"pl-c1"}],[{"start":8,"end":15,"cssClass":"pl-s1"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":15,"cssClass":"pl-s1"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":52,"cssClass":"pl-c"}],[{"start":8,"end":9,"cssClass":"pl-s1"},{"start":10,"end":12,"cssClass":"pl-c1"},{"start":13,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":9,"cssClass":"pl-s1"},{"start":10,"end":12,"cssClass":"pl-c1"},{"start":13,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":29,"cssClass":"pl-c"}],[{"start":8,"end":22,"cssClass":"pl-en"},{"start":23,"end":31,"cssClass":"pl-s1"},{"start":33,"end":38,"cssClass":"pl-s1"},{"start":40,"end":44,"cssClass":"pl-c1"},{"start":46,"end":47,"cssClass":"pl-c1"},{"start":47,"end":54,"cssClass":"pl-s1"}],[],[],[],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":27,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-smi"}],[{"start":0,"end":17,"cssClass":"pl-en"},{"start":18,"end":30,"cssClass":"pl-smi"},{"start":31,"end":32,"cssClass":"pl-c1"},{"start":32,"end":40,"cssClass":"pl-s1"}],[],[{"start":4,"end":15,"cssClass":"pl-smi"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":17,"end":28,"cssClass":"pl-s1"}],[{"start":4,"end":15,"cssClass":"pl-s1"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":18,"end":29,"cssClass":"pl-en"},{"start":30,"end":42,"cssClass":"pl-s"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":8,"end":19,"cssClass":"pl-s1"},{"start":20,"end":22,"cssClass":"pl-c1"},{"start":23,"end":27,"cssClass":"pl-c1"}],[{"start":8,"end":18,"cssClass":"pl-en"},{"start":19,"end":46,"cssClass":"pl-s"}],[],[{"start":4,"end":9,"cssClass":"pl-s1"},{"start":10,"end":11,"cssClass":"pl-c1"}],[{"start":8,"end":36,"cssClass":"pl-en"},{"start":37,"end":45,"cssClass":"pl-s1"},{"start":47,"end":58,"cssClass":"pl-s1"}],[{"start":4,"end":19,"cssClass":"pl-en"},{"start":20,"end":31,"cssClass":"pl-s1"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":8,"end":13,"cssClass":"pl-s1"},{"start":14,"end":16,"cssClass":"pl-c1"},{"start":17,"end":18,"cssClass":"pl-c1"}],[{"start":8,"end":18,"cssClass":"pl-en"},{"start":19,"end":51,"cssClass":"pl-s"}],[],[{"start":4,"end":85,"cssClass":"pl-c"}],[{"start":4,"end":27,"cssClass":"pl-en"},{"start":28,"end":33,"cssClass":"pl-s1"},{"start":35,"end":52,"cssClass":"pl-c1"}],[{"start":4,"end":31,"cssClass":"pl-c"}],[{"start":4,"end":26,"cssClass":"pl-en"},{"start":27,"end":32,"cssClass":"pl-s1"},{"start":34,"end":37,"cssClass":"pl-c1"},{"start":39,"end":42,"cssClass":"pl-c1"},{"start":44,"end":47,"cssClass":"pl-c1"}],[],[],[{"start":0,"end":3,"cssClass":"pl-smi"}],[{"start":0,"end":4,"cssClass":"pl-en"},{"start":5,"end":8,"cssClass":"pl-smi"},{"start":9,"end":13,"cssClass":"pl-s1"},{"start":15,"end":19,"cssClass":"pl-smi"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":21,"end":25,"cssClass":"pl-s1"}],[],[],[{"start":4,"end":7,"cssClass":"pl-smi"},{"start":8,"end":9,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-s1"},{"start":14,"end":16,"cssClass":"pl-s1"},{"start":18,"end":20,"cssClass":"pl-s1"},{"start":32,"end":61,"cssClass":"pl-c"}],[{"start":4,"end":9,"cssClass":"pl-smi"},{"start":10,"end":15,"cssClass":"pl-s1"},{"start":32,"end":57,"cssClass":"pl-c"}],[{"start":4,"end":13,"cssClass":"pl-smi"},{"start":14,"end":19,"cssClass":"pl-s1"}],[{"start":4,"end":14,"cssClass":"pl-smi"},{"start":15,"end":16,"cssClass":"pl-c1"},{"start":16,"end":22,"cssClass":"pl-s1"},{"start":32,"end":49,"cssClass":"pl-c"}],[{"start":4,"end":16,"cssClass":"pl-smi"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":18,"end":26,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-smi"},{"start":8,"end":12,"cssClass":"pl-s1"},{"start":32,"end":61,"cssClass":"pl-c"}],[{"start":4,"end":7,"cssClass":"pl-smi"},{"start":8,"end":9,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-s1"}],[],[{"start":4,"end":24,"cssClass":"pl-c"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":8,"end":16,"cssClass":"pl-en"},{"start":17,"end":31,"cssClass":"pl-c1"},{"start":33,"end":34,"cssClass":"pl-c1"},{"start":35,"end":36,"cssClass":"pl-c1"}],[{"start":8,"end":18,"cssClass":"pl-en"},{"start":19,"end":45,"cssClass":"pl-s"}],[],[],[{"start":4,"end":41,"cssClass":"pl-c"}],[{"start":4,"end":10,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-c1"},{"start":13,"end":29,"cssClass":"pl-en"},{"start":30,"end":34,"cssClass":"pl-c1"},{"start":36,"end":37,"cssClass":"pl-c1"},{"start":39,"end":40,"cssClass":"pl-c1"},{"start":42,"end":45,"cssClass":"pl-c1"},{"start":47,"end":50,"cssClass":"pl-c1"},{"start":52,"end":73,"cssClass":"pl-c1"},{"start":76,"end":100,"cssClass":"pl-c1"}],[{"start":4,"end":12,"cssClass":"pl-s1"},{"start":13,"end":14,"cssClass":"pl-c1"},{"start":15,"end":33,"cssClass":"pl-en"},{"start":34,"end":40,"cssClass":"pl-s1"},{"start":42,"end":43,"cssClass":"pl-c1"},{"start":45,"end":46,"cssClass":"pl-c1"}],[],[{"start":4,"end":21,"cssClass":"pl-en"},{"start":22,"end":28,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":31,"end":32,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":35,"end":36,"cssClass":"pl-s1"}],[{"start":4,"end":28,"cssClass":"pl-en"},{"start":29,"end":37,"cssClass":"pl-s1"},{"start":39,"end":40,"cssClass":"pl-s1"},{"start":42,"end":43,"cssClass":"pl-s1"}],[],[{"start":4,"end":28,"cssClass":"pl-c"}],[{"start":4,"end":21,"cssClass":"pl-en"},{"start":22,"end":30,"cssClass":"pl-s1"}],[],[{"start":4,"end":47,"cssClass":"pl-c"}],[{"start":4,"end":26,"cssClass":"pl-en"},{"start":27,"end":35,"cssClass":"pl-s1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":40,"end":41,"cssClass":"pl-c1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":46,"end":49,"cssClass":"pl-c1"}],[{"start":4,"end":19,"cssClass":"pl-en"},{"start":20,"end":28,"cssClass":"pl-s1"}],[{"start":4,"end":21,"cssClass":"pl-en"},{"start":22,"end":30,"cssClass":"pl-s1"}],[],[{"start":4,"end":8,"cssClass":"pl-s1"},{"start":9,"end":10,"cssClass":"pl-c1"},{"start":11,"end":12,"cssClass":"pl-c1"}],[{"start":4,"end":9,"cssClass":"pl-k"},{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":19,"cssClass":"pl-c1"},{"start":20,"end":33,"cssClass":"pl-en"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":35,"end":40,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":16,"end":21,"cssClass":"pl-s1"},{"start":22,"end":26,"cssClass":"pl-c1"}],[{"start":8,"end":12,"cssClass":"pl-k"},{"start":13,"end":21,"cssClass":"pl-c1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":19,"end":20,"cssClass":"pl-c1"}],[{"start":12,"end":17,"cssClass":"pl-k"}],[{"start":8,"end":12,"cssClass":"pl-k"},{"start":13,"end":28,"cssClass":"pl-c1"}],[{"start":12,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":37,"cssClass":"pl-en"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":39,"end":40,"cssClass":"pl-s1"},{"start":42,"end":43,"cssClass":"pl-c1"},{"start":43,"end":44,"cssClass":"pl-s1"},{"start":48,"end":70,"cssClass":"pl-c"}],[{"start":12,"end":37,"cssClass":"pl-en"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":39,"end":41,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":44,"end":46,"cssClass":"pl-s1"},{"start":56,"end":91,"cssClass":"pl-c"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":16,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":40,"cssClass":"pl-c1"},{"start":48,"end":80,"cssClass":"pl-c"}],[{"start":16,"end":24,"cssClass":"pl-en"},{"start":25,"end":33,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-s1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":39,"end":41,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-s1"},{"start":45,"end":46,"cssClass":"pl-c1"},{"start":47,"end":49,"cssClass":"pl-s1"},{"start":51,"end":53,"cssClass":"pl-s1"},{"start":55,"end":57,"cssClass":"pl-s1"},{"start":66,"end":89,"cssClass":"pl-c"}],[{"start":16,"end":33,"cssClass":"pl-en"},{"start":34,"end":42,"cssClass":"pl-s1"}],[],[{"start":12,"end":17,"cssClass":"pl-k"}],[],[],[],[{"start":4,"end":17,"cssClass":"pl-c"}],[{"start":4,"end":22,"cssClass":"pl-en"},{"start":23,"end":28,"cssClass":"pl-s1"}],[{"start":4,"end":12,"cssClass":"pl-en"}],[],[{"start":4,"end":10,"cssClass":"pl-k"},{"start":11,"end":12,"cssClass":"pl-c1"}],[]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/libsdl-org/SDL/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"touch.c","displayUrl":"https://github.com/libsdl-org/SDL/blame/00da0824f5a0a5ca2f8d08e4ab1d169477b973fe/Xcode-iOS/Demos/src/touch.c?raw=true","headerInfo":{"blobSize":"3.8 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"32e6cea","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Flibsdl-org%2FSDL%2Fblame%2F00da0824f5a0a5ca2f8d08e4ab1d169477b973fe%2FXcode-iOS%2FDemos%2Fsrc%2Ftouch.c","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"129","truncatedSloc":"110"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"C","languageID":41,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/libsdl-org/SDL/blame/00da0824f5a0a5ca2f8d08e4ab1d169477b973fe/Xcode-iOS/Demos/src/touch.c","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/libsdl-org/SDL/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/libsdl-org/SDL/raw/00da0824f5a0a5ca2f8d08e4ab1d169477b973fe/Xcode-iOS/Demos/src/touch.c","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"BRUSH_SIZE","kind":"macro","ident_start":139,"ident_end":149,"extent_start":131,"extent_end":199,"fully_qualified_name":"BRUSH_SIZE","ident_utf16":{"start":{"line_number":10,"utf16_col":8},"end":{"line_number":10,"utf16_col":18}},"extent_utf16":{"start":{"line_number":10,"utf16_col":0},"end":{"line_number":11,"utf16_col":0}}},{"name":"PIXELS_PER_ITERATION","kind":"macro","ident_start":207,"ident_end":227,"extent_start":199,"extent_end":295,"fully_qualified_name":"PIXELS_PER_ITERATION","ident_utf16":{"start":{"line_number":11,"utf16_col":8},"end":{"line_number":11,"utf16_col":28}},"extent_utf16":{"start":{"line_number":11,"utf16_col":0},"end":{"line_number":13,"utf16_col":0}}},{"name":"drawLine","kind":"function","ident_start":525,"ident_end":533,"extent_start":525,"extent_end":605,"fully_qualified_name":"drawLine","ident_utf16":{"start":{"line_number":20,"utf16_col":0},"end":{"line_number":20,"utf16_col":8}},"extent_utf16":{"start":{"line_number":20,"utf16_col":0},"end":{"line_number":20,"utf16_col":80}}},{"name":"initializeTexture","kind":"function","ident_start":1617,"ident_end":1634,"extent_start":1617,"extent_end":1658,"fully_qualified_name":"initializeTexture","ident_utf16":{"start":{"line_number":55,"utf16_col":0},"end":{"line_number":55,"utf16_col":17}},"extent_utf16":{"start":{"line_number":55,"utf16_col":0},"end":{"line_number":55,"utf16_col":41}}},{"name":"main","kind":"function","ident_start":2241,"ident_end":2245,"extent_start":2241,"extent_end":2269,"fully_qualified_name":"main","ident_utf16":{"start":{"line_number":75,"utf16_col":0},"end":{"line_number":75,"utf16_col":4}},"extent_utf16":{"start":{"line_number":75,"utf16_col":0},"end":{"line_number":75,"utf16_col":28}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"blame":{"ranges":{"1":{"start":1,"oldStart":1,"end":28,"oldEnd":28,"commitOid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","reblamePath":null},"29":{"start":29,"oldStart":29,"end":31,"oldEnd":31,"commitOid":"f3ca4e4d50d507318a2cac45ed35fc61306b7948","reblamePath":"Xcode-iOS/Demos/src/touch.c"},"32":{"start":32,"oldStart":29,"end":36,"oldEnd":33,"commitOid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","reblamePath":null},"37":{"start":37,"oldStart":37,"end":38,"oldEnd":38,"commitOid":"f3ca4e4d50d507318a2cac45ed35fc61306b7948","reblamePath":"Xcode-iOS/Demos/src/touch.c"},"39":{"start":39,"oldStart":36,"end":84,"oldEnd":82,"commitOid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","reblamePath":null},"85":{"start":85,"oldStart":85,"end":85,"oldEnd":85,"commitOid":"a8b033d7c42ba200989a0a018ac6fdac0635cedb","reblamePath":"Xcode-iOS/Demos/src/touch.c"},"86":{"start":86,"oldStart":83,"end":92,"oldEnd":89,"commitOid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","reblamePath":null},"93":{"start":93,"oldStart":93,"end":93,"oldEnd":93,"commitOid":"a8b033d7c42ba200989a0a018ac6fdac0635cedb","reblamePath":"Xcode-iOS/Demos/src/touch.c"},"94":{"start":94,"oldStart":93,"end":95,"oldEnd":94,"commitOid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","reblamePath":null},"96":{"start":96,"oldStart":96,"end":98,"oldEnd":98,"commitOid":"a8b033d7c42ba200989a0a018ac6fdac0635cedb","reblamePath":"Xcode-iOS/Demos/src/touch.c"},"99":{"start":99,"oldStart":95,"end":129,"oldEnd":125,"commitOid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","reblamePath":null}},"commits":{"0e45984fa036fff1912c62fee3ed4f5481f3c324":{"oid":"0e45984fa036fff1912c62fee3ed4f5481f3c324","message":"Fixed crash if initialization of EGL failed but was tried again later.\n\nThe internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly\nuninitialized data structure if loading the library first failed. A later try to\nuse EGL then skipped initialization and assumed it was previously successful\nbecause the data structure now already existed. This led to at least one crash\nin the internal function SDL_EGL_ChooseConfig() because a NULL pointer was\ndereferenced to make a call to eglBindAPI().","shortMessageHtmlLink":"Fixed crash if initialization of EGL failed but was tried again later.","authorAvatarUrl":"https://avatars.githubusercontent.com/u/5358527?s=80&v=4","committerName":"Philipp Wiesemann","committerEmail":"philipp.wiesemann@arcor.de","committedDate":"2015-06-21T17:33:46.000+02:00","firstParentOid":null},"f3ca4e4d50d507318a2cac45ed35fc61306b7948":{"oid":"f3ca4e4d50d507318a2cac45ed35fc61306b7948","message":"iOS: Fixed compiling demos on C89 compilers.","shortMessageHtmlLink":"iOS: Fixed compiling demos on C89 compilers.","authorAvatarUrl":"https://avatars.githubusercontent.com/u/5358527?s=80&v=4","committerName":"Philipp Wiesemann","committerEmail":"philipp.wiesemann@arcor.de","committedDate":"2016-04-01T21:14:49.000+02:00","firstParentOid":"831597f71482cdaaa4793d7ef3d77d92f144ad33"},"a8b033d7c42ba200989a0a018ac6fdac0635cedb":{"oid":"a8b033d7c42ba200989a0a018ac6fdac0635cedb","message":"Update the code for the iOS demos to handle modern devices. Fixes bug #3337","shortMessageHtmlLink":"Update the code for the iOS demos to handle modern devices. Fixes bug #…","authorAvatarUrl":"https://avatars.githubusercontent.com/u/2662?s=80&v=4","committerName":"Alex Szpakowski","committerEmail":"slime73@gmail.com","committedDate":"2016-09-25T00:23:35.000-03:00","firstParentOid":"40ecac8e602dfdd06ffc5ad6d3a6daae19bec43e"}},"ignoreRevs":{"path":".git-blame-ignore-revs","present":false,"timedOut":null}},"csrf_tokens":{"/libsdl-org/SDL/branches":{"post":"lsA2FilXSShN0wVyEqZonhrkd3bGZjQUzVigz94Z0sdVfOrwWmjzh9F6TEnOAqLwGe-WmHHJcehwakaS8FbB8A"},"/repos/preferences":{"post":"h27WG4BfFIYY7bT7PYy7PtgGhOI4wLoIeeLDLZiLM-wGdziGZ9l6WUouociCq5jN4Tb-FfC4_KFaJ-vp5NLetA"}}},"title":"Blaming SDL/Xcode-iOS/Demos/src/touch.c at 00da0824f5a0a5ca2f8d08e4ab1d169477b973fe · libsdl-org/SDL"}