refactor: removed unused code
This commit is contained in:
@@ -28,52 +28,3 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*#include <SDL2/SDL.h>
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, const char* argv[]){
|
|
||||||
SDL_Window* window;
|
|
||||||
SDL_Renderer* renderer;
|
|
||||||
SDL_Texture* texture;
|
|
||||||
int done;
|
|
||||||
SDL_Event event;
|
|
||||||
|
|
||||||
if (SDL_CreateWindowAndRenderer(0, 0, 0, &window, &renderer) < 0) {
|
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
|
||||||
"SDL_CreateWindowAndRenderer() failed: %s", SDL_GetError());
|
|
||||||
return(2);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!texture) {
|
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
|
||||||
"Couldn't load texture: %s", SDL_GetError());
|
|
||||||
return(2);
|
|
||||||
}
|
|
||||||
SDL_SetWindowSize(window, 800, 480);
|
|
||||||
|
|
||||||
SDL_Rect rectangle;
|
|
||||||
rectangle.x = 100;
|
|
||||||
rectangle.y = 100;
|
|
||||||
rectangle.w = 300;
|
|
||||||
rectangle.h = 300;
|
|
||||||
|
|
||||||
done = 0;
|
|
||||||
while (!done) {
|
|
||||||
while (SDL_PollEvent(&event)) {
|
|
||||||
if (event.type == SDL_QUIT)
|
|
||||||
done = 1;
|
|
||||||
}
|
|
||||||
SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255);
|
|
||||||
SDL_RenderDrawRect(renderer, &rectangle);
|
|
||||||
SDL_RenderPresent(renderer);
|
|
||||||
SDL_Delay(100);
|
|
||||||
}
|
|
||||||
SDL_DestroyTexture(texture);
|
|
||||||
|
|
||||||
SDL_Quit();
|
|
||||||
return 0;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user