mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-13 15:23:36 +01:00
ignore VS files
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
.DS_Store
|
||||
.gradle
|
||||
build/
|
||||
*.sou
|
||||
*.sdf
|
||||
@@ -8,7 +8,7 @@ sources {
|
||||
include "**/*.c"
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir "../build/include"
|
||||
srcDir "../build/include/SDL2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
5
sdl/02-sdl2-video/packages.config
Normal file
5
sdl/02-sdl2-video/packages.config
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="sdl2" version="2.0.3" targetFramework="Native" />
|
||||
<package id="sdl2.redist" version="2.0.3" targetFramework="Native" />
|
||||
</packages>
|
||||
@@ -2,7 +2,9 @@
|
||||
//
|
||||
|
||||
#include <stdio.h>
|
||||
#include "SDL2/SDL.h"
|
||||
#include "SDL.h"
|
||||
// Linux build will probably need little bit different include
|
||||
//#include "SDL2/SDL.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
SDL_Window *win = NULL;
|
||||
@@ -27,7 +29,7 @@ int main(int argc, char* argv[]) {
|
||||
return 3;
|
||||
}
|
||||
|
||||
bmp = SDL_LoadBMP("./smajlik.bmp");
|
||||
bmp = SDL_LoadBMP("./src/main/resources/smajlik.bmp");
|
||||
if (bmp == NULL){
|
||||
printf("%s\n", SDL_GetError());
|
||||
return 4;
|
||||
|
||||
Reference in New Issue
Block a user