Skip to content

Commit

Permalink
Updated roadmap and simplified examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadeweka committed Sep 5, 2022
1 parent 0997923 commit f8a9a6f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,23 @@ If you encounter any problems while generating the bindings, please open an issu

#### Features

* [X] Binding generator
* [X] Working bindings
* [X] Bindings for sdl_image, sdl_mixer and sdl_ttf
* Binding generator
* Working bindings
* Bindings for sdl_image, sdl_mixer and sdl_ttf
* Basic set of examples

#### Todo list
### Version 0.1.0

#### Features

* [ ] More examples
* [ ] Continuous integration

#### Breaking changes

* [ ] Examples in separate submodule
* [ ] Decoupling of the different libraries

#### Usability

* [ ] Link SDL as submodule
* [ ] Add more examples
* [ ] Add CI
* [ ] Put examples in separate submodule
* [ ] Fix weird formatting in some header files
* [ ] Maybe separate the different SDL libraries?
1 change: 0 additions & 1 deletion examples/06/main.cr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ g_window = LibSDL.create_window("SDL Tutorial", LibSDL::WINDOWPOS_UNDEFINED, Lib
raise "Window could not be created! Error: #{String.new(LibSDL.get_error)}" if !g_window

img_flags = LibSDL::IMGInitFlags::IMG_INIT_PNG

if (LibSDL.img_init(img_flags) | img_flags.to_i) == 0
raise "SDL_image could not initialize! SDL_image Error: #{String.new(LibSDLMacro.img_get_error)}"
end
Expand Down
3 changes: 2 additions & 1 deletion examples/07/main.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ raise "Renderer could not be created! SDL Error: #{String.new(LibSDL.get_error)}

LibSDL.set_render_draw_color(g_renderer, 0xFF, 0xFF, 0xFF, 0xFF)

if (LibSDL.img_init(LibSDL::IMGInitFlags::IMG_INIT_PNG) | LibSDL::IMGInitFlags::IMG_INIT_PNG.to_i) == 0
img_flags = LibSDL::IMGInitFlags::IMG_INIT_PNG
if (LibSDL.img_init(img_flags) | img_flags.to_i) == 0
raise "SDL_image could not initialize! SDL_image Error: #{String.new(LibSDLMacro.img_get_error)}"
end

Expand Down
3 changes: 2 additions & 1 deletion examples/08/main.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ raise "Renderer could not be created! SDL Error: #{String.new(LibSDL.get_error)}

LibSDL.set_render_draw_color(g_renderer, 0xFF, 0xFF, 0xFF, 0xFF)

if (LibSDL.img_init(LibSDL::IMGInitFlags::IMG_INIT_PNG) | LibSDL::IMGInitFlags::IMG_INIT_PNG.to_i) == 0
img_flags = LibSDL::IMGInitFlags::IMG_INIT_PNG
if (LibSDL.img_init(img_flags) | img_flags.to_i) == 0
raise "SDL_image could not initialize! SDL_image Error: #{String.new(LibSDLMacro.img_get_error)}"
end

Expand Down

0 comments on commit f8a9a6f

Please sign in to comment.