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
packages/graphics/opengl/circle.c
Normal file
10
packages/graphics/opengl/circle.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
|
||||
#include "arc/graphics/circle.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Circle_Render(ARC_Circle *circle, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("OpenGL Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // !ARC_OPENGL_GRAPHICS
|
||||
8
packages/graphics/opengl/line.c
Normal file
8
packages/graphics/opengl/line.c
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
#include "arc/graphics/line.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
void ARC_Line_Render(int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2, ARC_Renderer *renderer, ARC_Color *color){
|
||||
}
|
||||
|
||||
#endif // ARC_OPENGL_GRAPHICS
|
||||
14
packages/graphics/opengl/obround.c
Normal file
14
packages/graphics/opengl/obround.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
|
||||
#include "arc/graphics/obround.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void ARC_Obround_Render(ARC_Obround *obround, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("OpenGL Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_FObround_Render(ARC_FObround *obround, ARC_Renderer *renderer, ARC_Color *color){
|
||||
printf("OpenGL Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // ARC_OPENGL_GRAPHICS
|
||||
11
packages/graphics/opengl/rectangle.c
Normal file
11
packages/graphics/opengl/rectangle.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
#include "arc/graphics/rectangle.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
void ARC_Rect_Render(ARC_Rect *rect, ARC_Renderer *renderer, ARC_Color *color){
|
||||
}
|
||||
|
||||
void ARC_Rect_RenderFill(ARC_Rect *rect, ARC_Renderer *renderer, ARC_Color *color){
|
||||
}
|
||||
|
||||
#endif // ARC_OPENGL_GRAPHICS
|
||||
29
packages/graphics/opengl/sprite.c
Normal file
29
packages/graphics/opengl/sprite.c
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
#include "arc/graphics/sprite.h"
|
||||
#include "arc/math/point.h"
|
||||
#include "arc/math/rectangle.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
void ARC_Sprite_Create(ARC_Sprite **sprite, ARC_Spritesheet *spritesheet, ARC_Array *frames){
|
||||
}
|
||||
|
||||
void ARC_Sprite_Destroy(ARC_Sprite *sprite){
|
||||
}
|
||||
|
||||
void ARC_Sprite_Copy(ARC_Sprite **newSprite, ARC_Sprite *oldSprite){
|
||||
}
|
||||
|
||||
void ARC_Sprite_Render(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds){
|
||||
}
|
||||
|
||||
void ARC_Sprite_RenderRotated(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds, ARC_Point *center, double angle){
|
||||
}
|
||||
|
||||
void ARC_Sprite_IterateFrame(ARC_Sprite *sprite){
|
||||
}
|
||||
|
||||
ARC_Rect *ARC_Sprite_GetBounds(ARC_Sprite *sprite){
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif // ARC_OPENGL_GRAPHICS
|
||||
13
packages/graphics/opengl/sprite.h
Normal file
13
packages/graphics/opengl/sprite.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef ARC_OPENGL_SPRITE_H_
|
||||
#define ARC_OPENGL_SPRITE_H_
|
||||
|
||||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
|
||||
#include "arc/graphics/sprite.h"
|
||||
|
||||
struct ARC_Sprite {
|
||||
};
|
||||
|
||||
#endif // !ARC_OPENGL_GRAPHICS
|
||||
|
||||
#endif // !ARC_OPENGL_SPRITE_H_
|
||||
17
packages/graphics/opengl/spritesheet.c
Normal file
17
packages/graphics/opengl/spritesheet.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
#include "arc/graphics/spritesheet.h"
|
||||
#include "arc/math/point.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
void ARC_Spritesheet_RenderArea(ARC_Spritesheet *spritesheet, ARC_Rect *sheetBounds, ARC_Renderer *renderer, ARC_Rect *renderBounds){
|
||||
}
|
||||
|
||||
ARC_Point ARC_Spritesheet_GetSize(ARC_Spritesheet *spritesheet){
|
||||
return (ARC_Point){0, 0};
|
||||
}
|
||||
|
||||
uint32_t *ARC_Spritesheet_GetTileSize(ARC_Spritesheet *spritesheet){
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif // ARC_OPENGL_GRAPHICS
|
||||
13
packages/graphics/opengl/spritesheet.h
Normal file
13
packages/graphics/opengl/spritesheet.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef ARC_OPENGL_SPRITESHEET_H_
|
||||
#define ARC_OPENGL_SPRITESHEET_H_
|
||||
|
||||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
|
||||
#include "arc/graphics/spritesheet.h"
|
||||
|
||||
struct ARC_Spritesheet {
|
||||
};
|
||||
|
||||
#endif // !ARC_OPENGL_GRAPHICS
|
||||
|
||||
#endif // !ARC_OPENGL_SPRITESHEET_H_
|
||||
26
packages/graphics/opengl/text.c
Normal file
26
packages/graphics/opengl/text.c
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifdef ARC_OPENGL_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("OpenGL Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Text_Destroy(ARC_Text *font){
|
||||
printf("OpenGL Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Text_SetString(ARC_Text *text, ARC_Renderer *renderer, ARC_String *string){
|
||||
printf("OpenGL Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Text_Render(ARC_Text *text, ARC_Renderer *renderer){
|
||||
printf("OpenGL Backend Selected\n");
|
||||
}
|
||||
|
||||
void ARC_Text_SetPos(ARC_Text *text, ARC_Point pos){
|
||||
printf("OpenGL Backend Selected\n");
|
||||
}
|
||||
|
||||
#endif // !ARC_OPENGL_GRAPHICS
|
||||
14
packages/graphics/opengl/text.h
Normal file
14
packages/graphics/opengl/text.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef ARC_OPENGL_TEXT_H_
|
||||
#define ARC_OPENGL_TEXT_H_
|
||||
|
||||
#include "arc/std/string.h"
|
||||
#include "arc/graphics/color.h"
|
||||
#include "arc/math/rectangle.h"
|
||||
|
||||
#ifdef ARC_OPENGL_GRAPHICS
|
||||
|
||||
typedef struct ARC_Text {} ARC_Text;
|
||||
|
||||
#endif // !ARC_OPENGL_GRAPHICS
|
||||
|
||||
#endif // !ARC_OPENGL_TEXT_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue