huge core redesign
This commit is contained in:
parent
85d0bad350
commit
c614c679a9
23 changed files with 457 additions and 0 deletions
10
src/graphics/none/circle.c
Normal file
10
src/graphics/none/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/none/config.c
Normal file
10
src/graphics/none/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/none/line.c
Normal file
10
src/graphics/none/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/none/obround.c
Normal file
14
src/graphics/none/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/none/rectangle.c
Normal file
22
src/graphics/none/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/none/renderer.c
Normal file
22
src/graphics/none/renderer.c
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifdef ARC_NONE_GRAPHICS
|
||||
|
||||
#include "arc/graphics/renderer.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Renderer_Create(ARC_Renderer **renderer, ARC_RenderInfo *info){
|
||||
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/none/sprite.c
Normal file
48
src/graphics/none/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/none/spritesheet.c
Normal file
21
src/graphics/none/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/none/text.c
Normal file
26
src/graphics/none/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/none/window.c
Normal file
14
src/graphics/none/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
|
||||
23
src/input/none/keyboard.c
Normal file
23
src/input/none/keyboard.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifdef ARC_NONE_INPUT
|
||||
|
||||
#include "arc/input/keyboard.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Keyboard_Create(ARC_Keyboard **keyboard, ARC_KeyboardInfo *info){
|
||||
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/none/mouse.c
Normal file
37
src/input/none/mouse.c
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#ifdef ARC_NONE_INPUT
|
||||
|
||||
#include "arc/input/mouse.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Mouse_Create(ARC_Mouse **mouse, ARC_MouseInfo *info){
|
||||
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
|
||||
3
src/std/errno.c
Normal file
3
src/std/errno.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include "arc/std/errno.h"
|
||||
|
||||
int32_t arc_errno = 0;
|
||||
Loading…
Add table
Add a link
Reference in a new issue