Browse Source

SDL now added automatically by gamelib build step

master
Macoy Madson 2 years ago
parent
commit
e37efe817b
  1. 4
      .gitignore
  2. 3
      .gitmodules
  3. 1
      Dependencies/SDL
  4. 2
      Dependencies/gamelib
  5. 8
      src/TownCoding.cake

4
.gitignore

@ -60,4 +60,6 @@ test/data/Models/*.skeleton.xml
test/data/Models/*.skeleton
test/data/Materials/Textures/*.dds
test/data/Models/*
test/data/Models/*
town-coding

3
.gitmodules

@ -4,3 +4,6 @@
[submodule "Dependencies/cakelisp"]
path = Dependencies/cakelisp
url = gitea@macoy.me:macoy/cakelisp.git
[submodule "Dependencies/SDL"]
path = Dependencies/SDL
url = https://github.com/libsdl-org/SDL

1
Dependencies/SDL

@ -0,0 +1 @@
Subproject commit 07ba13b7a9eb6bd53dae6849ce6ca4977304dd65

2
Dependencies/gamelib

@ -1 +1 @@
Subproject commit 5afe9653bc26b881accde7f42fbfb8a841861983
Subproject commit 0a9235af87bd991eb943c4665c9ab33868354ff7

8
src/TownCoding.cake

@ -8,9 +8,13 @@
(module-use-sdl-build-options)
(defun main (&return int)
(printf "Hello, SDL!\n")
(SDL_Log "Town Coding\n\n
Created by Macoy Madson <macoy@macoy.me>.\n
https://macoy.me/code/macoy/town-coding\n
Copyright (c) 2021 Macoy Madson.\n
Licensed under GPL-3.0-or-later.\n\n")
(var window (* SDL_Window) null)
(unless (sdl-initialize-for-2d (addr window) "GameLib" 640 480) (return 1))
(unless (sdl-initialize-for-2d (addr window) "Town Coding" 1920 1080) (return 1))
;; (var window-surface (* SDL_Surface) (SDL_GetWindowSurface window))

Loading…
Cancel
Save