Rename library to AKGL (AKLabs Game Library)
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
#include <SDL3/SDL.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <sdl3game/iterator.h>
|
||||
#include <sdl3game/registry.h>
|
||||
#include <sdl3game/actor.h>
|
||||
#include <sdl3game/heap.h>
|
||||
#include <akgl/iterator.h>
|
||||
#include <akgl/registry.h>
|
||||
#include <akgl/actor.h>
|
||||
#include <akgl/heap.h>
|
||||
|
||||
int UNHANDLED_ERROR_BEHAVIOR;
|
||||
akerr_ErrorContext *unhandled_error_context;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <sdl3game/game.h>
|
||||
#include <sdl3game/actor.h>
|
||||
#include <akgl/game.h>
|
||||
#include <akgl/actor.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#include <SDL3/SDL.h>
|
||||
#include <akerror.h>
|
||||
|
||||
#include <sdl3game/character.h>
|
||||
#include <sdl3game/actor.h>
|
||||
#include <sdl3game/error.h>
|
||||
#include <sdl3game/heap.h>
|
||||
#include <sdl3game/registry.h>
|
||||
#include <sdl3game/iterator.h>
|
||||
#include <akgl/character.h>
|
||||
#include <akgl/actor.h>
|
||||
#include <akgl/error.h>
|
||||
#include <akgl/heap.h>
|
||||
#include <akgl/registry.h>
|
||||
#include <akgl/iterator.h>
|
||||
|
||||
SDL_Window *window;
|
||||
SDL_Renderer *renderer;
|
||||
@@ -199,7 +199,7 @@ int main(void)
|
||||
FAIL_BREAK(errctx, AKGL_ERR_SDL, "Couldn't initialize SDL: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
if (!SDL_CreateWindowAndRenderer("net/aklabs/libsdl3game/test_character", 640, 480, SDL_WINDOW_HIDDEN, &window, &renderer)) {
|
||||
if (!SDL_CreateWindowAndRenderer("net/aklabs/libakgl/test_character", 640, 480, SDL_WINDOW_HIDDEN, &window, &renderer)) {
|
||||
FAIL_BREAK(errctx, AKGL_ERR_SDL, "Couldn't create window/renderer: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
#include <SDL3_mixer/SDL_mixer.h>
|
||||
|
||||
#include <akerror.h>
|
||||
#include <sdl3game/assets.h>
|
||||
#include <sdl3game/iterator.h>
|
||||
#include <sdl3game/tilemap.h>
|
||||
#include <sdl3game/heap.h>
|
||||
#include <sdl3game/game.h>
|
||||
#include <sdl3game/controller.h>
|
||||
#include <sdl3game/draw.h>
|
||||
#include <sdl3game/sprite.h>
|
||||
#include <sdl3game/actor.h>
|
||||
#include <sdl3game/registry.h>
|
||||
#include <sdl3game/error.h>
|
||||
#include <akgl/assets.h>
|
||||
#include <akgl/iterator.h>
|
||||
#include <akgl/tilemap.h>
|
||||
#include <akgl/heap.h>
|
||||
#include <akgl/game.h>
|
||||
#include <akgl/controller.h>
|
||||
#include <akgl/draw.h>
|
||||
#include <akgl/sprite.h>
|
||||
#include <akgl/actor.h>
|
||||
#include <akgl/registry.h>
|
||||
#include <akgl/error.h>
|
||||
|
||||
int numsprites = 8;
|
||||
char *spritepaths[] = {
|
||||
@@ -43,7 +43,7 @@ int main(void)
|
||||
FAIL_BREAK(errctx, AKGL_ERR_SDL, "Couldn't initialize SDL: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
if (!SDL_CreateWindowAndRenderer("net/aklabs/libsdl3game/test_sprite", 640, 480, 0, &window, &renderer)) {
|
||||
if (!SDL_CreateWindowAndRenderer("net/aklabs/libakgl/test_sprite", 640, 480, 0, &window, &renderer)) {
|
||||
FAIL_BREAK(errctx, AKGL_ERR_SDL, "Couldn't create window/renderer: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ int main(void)
|
||||
|
||||
strcpy((char *)&game.name, "charviewer");
|
||||
strcpy((char *)&game.version, "0.0.1");
|
||||
strcpy((char *)&game.uri, "net.aklabs.libsdl3game.charviewer");
|
||||
strcpy((char *)&game.uri, "net.aklabs.libakgl.charviewer");
|
||||
game.screenwidth = 640;
|
||||
game.screenheight = 480;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <SDL3/SDL.h>
|
||||
#include <stdlib.h>
|
||||
#include <akerror.h>
|
||||
#include <sdl3game/registry.h>
|
||||
#include <akgl/registry.h>
|
||||
|
||||
typedef akerr_ErrorContext *(*RegistryFuncPtr)(void);
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
#include <string.h>
|
||||
#include <akerror.h>
|
||||
|
||||
#include <sdl3game/registry.h>
|
||||
#include <sdl3game/sprite.h>
|
||||
#include <sdl3game/heap.h>
|
||||
#include <sdl3game/util.h>
|
||||
#include <sdl3game/error.h>
|
||||
#include <akgl/registry.h>
|
||||
#include <akgl/sprite.h>
|
||||
#include <akgl/heap.h>
|
||||
#include <akgl/util.h>
|
||||
#include <akgl/error.h>
|
||||
|
||||
SDL_Window *window;
|
||||
SDL_Renderer *renderer;
|
||||
@@ -194,7 +194,7 @@ int main(void)
|
||||
FAIL_BREAK(errctx, AKGL_ERR_SDL, "Couldn't initialize SDL: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
if (!SDL_CreateWindowAndRenderer("net/aklabs/libsdl3game/test_sprite", 640, 480, 0, &window, &renderer)) {
|
||||
if (!SDL_CreateWindowAndRenderer("net/aklabs/libakgl/test_sprite", 640, 480, 0, &window, &renderer)) {
|
||||
FAIL_BREAK(errctx, AKGL_ERR_SDL, "Couldn't create window/renderer: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <string.h>
|
||||
#include <akerror.h>
|
||||
#include <sdl3game/heap.h>
|
||||
#include <sdl3game/staticstring.h>
|
||||
#include <akgl/heap.h>
|
||||
#include <akgl/staticstring.h>
|
||||
|
||||
void reset_string_heap(void);
|
||||
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
#include <jansson.h>
|
||||
|
||||
#include <akerror.h>
|
||||
#include <sdl3game/util.h>
|
||||
#include <sdl3game/heap.h>
|
||||
#include <sdl3game/registry.h>
|
||||
#include <sdl3game/tilemap.h>
|
||||
#include <sdl3game/actor.h>
|
||||
#include <sdl3game/game.h>
|
||||
#include <sdl3game/json_helpers.h>
|
||||
#include <akgl/util.h>
|
||||
#include <akgl/heap.h>
|
||||
#include <akgl/registry.h>
|
||||
#include <akgl/tilemap.h>
|
||||
#include <akgl/actor.h>
|
||||
#include <akgl/game.h>
|
||||
#include <akgl/json_helpers.h>
|
||||
|
||||
akerr_ErrorContext *test_tilemap_akgl_get_json_tilemap_property(void)
|
||||
{
|
||||
@@ -398,7 +398,7 @@ int main(void)
|
||||
FAIL_BREAK(errctx, AKGL_ERR_SDL, "Couldn't initialize SDL: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
if (!SDL_CreateWindowAndRenderer("net/aklabs/libsdl3game/test_sprite", 768, 576, 0, &window, &renderer)) {
|
||||
if (!SDL_CreateWindowAndRenderer("net/aklabs/libakgl/test_sprite", 768, 576, 0, &window, &renderer)) {
|
||||
FAIL_BREAK(errctx, AKGL_ERR_SDL, "Couldn't create window/renderer: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <SDL3/SDL.h>
|
||||
#include <akerror.h>
|
||||
#include <sdl3game/util.h>
|
||||
#include <akgl/util.h>
|
||||
|
||||
akerr_ErrorContext *test_akgl_rectangle_points_nullpointers(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user