f***ed up and needed to rework packages
This commit is contained in:
parent
b43ab1702f
commit
f7a87d7519
78 changed files with 3713 additions and 0 deletions
10
src/graphics/circle.c
Normal file
10
src/graphics/circle.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/circle.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Circle_Render(ARC_Circle *circle, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_GRAPHICS
|
||||
10
src/graphics/config.c
Normal file
10
src/graphics/config.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/config.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_GraphicsConfig_Init(ARC_Config *config, ARC_Renderer *renderer){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif //ARC_NONE_GRAPHICS
|
||||
10
src/graphics/line.c
Normal file
10
src/graphics/line.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/line.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Line_Render(int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_GRAPHICS
|
||||
14
src/graphics/obround.c
Normal file
14
src/graphics/obround.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/obround.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Obround_Render(ARC_Obround *obround, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_FObround_Render(ARC_FObround *obround, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // ARC_NONE_GRAPHICS
|
||||
22
src/graphics/rectangle.c
Normal file
22
src/graphics/rectangle.c
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/rectangle.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Rect_Render(ARC_Rect *rect, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Rect_RenderFill(ARC_Rect *rect, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_FRect_Render(ARC_FRect *rect, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_FRect_RenderFill(ARC_FRect *rect, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_GRAPHICS
|
||||
22
src/graphics/renderer.c
Normal file
22
src/graphics/renderer.c
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/renderer.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Renderer_CreateWithEngineData(ARC_Renderer **renderer, ARC_EngineData *data){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Renderer_Destroy(ARC_Renderer *renderer){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Renderer_Clear(ARC_Renderer *renderer){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Renderer_Render(ARC_Renderer *renderer){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_GRAPHICS
|
||||
48
src/graphics/sprite.c
Normal file
48
src/graphics/sprite.c
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/sprite.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Sprite_Create(ARC_Sprite **sprite, ARC_Spritesheet *spritesheet, ARC_Array *frames){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Sprite_Destroy(ARC_Sprite *sprite){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Sprite_Copy(ARC_Sprite **newSprite, ARC_Sprite *oldSprite){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Sprite_Render(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Sprite_RenderFlip(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds, enum ARC_Sprite_Axis axis){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Sprite_RenderRotated(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds, ARC_Point *center, double angle){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Sprite_SetFrameIndex(ARC_Sprite *sprite, uint32_t index){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Sprite_IterateFrame(ARC_Sprite *sprite){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
ARC_Rect *ARC_Sprite_GetBounds(ARC_Sprite *sprite){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ARC_Array *ARC_Sprite_GetAllBounds(ARC_Sprite *sprite){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_GRAPHICS
|
||||
21
src/graphics/spritesheet.c
Normal file
21
src/graphics/spritesheet.c
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/spritesheet.h"
|
||||
#include "arc/math/point.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Spritesheet_RenderArea(ARC_Spritesheet *spritesheet, ARC_Rect *sheetBounds, ARC_Renderer *renderer, ARC_Rect *renderBounds){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
ARC_Point ARC_Spritesheet_GetSize(ARC_Spritesheet *spritesheet){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
return (ARC_Point){ 0, 0 };
|
||||
}
|
||||
|
||||
uint32_t *ARC_Spritesheet_GetTileSize(ARC_Spritesheet *spritesheet){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_GRAPHICS
|
||||
26
src/graphics/text.c
Normal file
26
src/graphics/text.c
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/text.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Text_Create(ARC_Text **text, ARC_String *path, int32_t size, ARC_Color color){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Text_Destroy(ARC_Text *font){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Text_SetString(ARC_Text *text, ARC_Renderer *renderer, ARC_String *string){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Text_Render(ARC_Text *text, ARC_Renderer *renderer){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Text_SetPos(ARC_Text *text, ARC_Point pos){
|
||||
printf("No Graphics Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_GRAPHICS
|
||||
14
src/graphics/window.c
Normal file
14
src/graphics/window.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifdef ARC_NONE_WINDOW
|
||||
|
||||
#include "arc/graphics/window.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Window_Create(ARC_Window **window, ARC_WindowInfo *info){
|
||||
printf("No Window Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Window_Destroy(ARC_Window *window){
|
||||
printf("No Window Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_WINDOW
|
||||
26
src/input/input.c
Normal file
26
src/input/input.c
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include "arc/input/input.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Input_CreateWithEngineData(ARC_Input **input, ARC_EngineData *data){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Input_Destroy(ARC_Input *input){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Input_Update(ARC_Input *input){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
ARC_Keyboard *ARC_Input_GetKeyboard(ARC_Input *input){
|
||||
printf("No Input Backend Selected\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ARC_Mouse *ARC_Input_GetMouse(ARC_Input *input){
|
||||
printf("No Input Backend Selected\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
23
src/input/keyboard.c
Normal file
23
src/input/keyboard.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifdef ARC_NONE_INPUT
|
||||
|
||||
#include "arc/input/keyboard.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Keyboard_CreateWithInput(ARC_Keyboard **keyboard, ARC_Input *input){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Keyboard_Destroy(ARC_Keyboard *keyboard){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Keyboard_Update(ARC_Keyboard *keyboard){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
ARC_KeyboardState ARC_Keyboard_GetState(ARC_Keyboard *keyboard, enum ARC_KeyboardKey key){
|
||||
printf("No Input Backend Selected\n");
|
||||
return ARC_KEY_NONE;
|
||||
}
|
||||
|
||||
#endif // !ARC_NONE_INPUT
|
||||
37
src/input/mouse.c
Normal file
37
src/input/mouse.c
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#ifdef ARC_NONE_INPUT
|
||||
|
||||
#include "arc/input/mouse.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Mouse_CreateWithInput(ARC_Mouse **mouse, ARC_Input *input){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Mouse_Destroy(ARC_Mouse *mouse){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Mouse_UpdateButton(ARC_Mouse *mouse, uint8_t button, uint32_t *buttons, uint32_t mask){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Mouse_Update(ARC_Mouse *mouse){
|
||||
printf("No Input Backend Selected\n");
|
||||
}
|
||||
|
||||
ARC_Point *ARC_Mouse_GetCoords(ARC_Mouse *mouse){
|
||||
printf("No Input Backend Selected\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ARC_MouseState ARC_Mouse_GetState(ARC_Mouse *mouse, ARC_MouseButton button){
|
||||
printf("No Input Backend Selected\n");
|
||||
return ARC_MOUSE_NONE;
|
||||
}
|
||||
|
||||
int32_t *ARC_Mouse_GetScrollY(ARC_Mouse *mouse){
|
||||
printf("No Input Backend Selected\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif // !ARC_INPUT_NONE
|
||||
18
src/std/time.c
Normal file
18
src/std/time.c
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "arc/std/time.h"
|
||||
|
||||
ARC_Time ARC_Time_CopyFromStructTmPtr(struct tm *time){
|
||||
return (ARC_Time){
|
||||
time->tm_sec,
|
||||
time->tm_min,
|
||||
time->tm_hour,
|
||||
|
||||
time->tm_yday,
|
||||
time->tm_mon,
|
||||
time->tm_year,
|
||||
|
||||
time->tm_wday,
|
||||
time->tm_mday,
|
||||
|
||||
time->tm_isdst
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue