stuff to get shooty to work, might be temp
This commit is contained in:
parent
d4731d3961
commit
12a28fea88
8 changed files with 102 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ typedef struct ARC_EngineData {
|
|||
|
||||
//NOTE: most work below is temp, and will change once I figure out a better way to write this header
|
||||
|
||||
void ARC_EngineData_Create(ARC_EngineData **data, ARC_Handler_CleanDataFn cleanfn);
|
||||
void ARC_EngineData_Create(ARC_EngineData **data, ARC_Handler_CleanDataFn cleanfn, ARC_Point windowSize);
|
||||
|
||||
void ARC_EngineData_Destroy(ARC_EngineData *data);
|
||||
|
||||
|
|
|
|||
19
include/arc/graphics/color.h
Normal file
19
include/arc/graphics/color.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef ARC_GRAPHICS_COLOR_H_
|
||||
#define ARC_GRAPHICS_COLOR_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct ARC_Color {
|
||||
uint8_t r, g, b, a;
|
||||
} ARC_Color;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !ARC_GRAPHICS_COLOR_H_
|
||||
19
include/arc/graphics/line.h
Normal file
19
include/arc/graphics/line.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef ARC_GRAPHICS_LINE_H_
|
||||
#define ARC_GRAPHICS_LINE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "arc/graphics/color.h"
|
||||
#include "arc/graphics/renderer.h"
|
||||
#include "arc/math/rectangle.h"
|
||||
#include <stdint.h>
|
||||
|
||||
void ARC_Line_Render(int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2, ARC_Renderer *renderer, ARC_Color *color);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !ARC_GRAPHICS_LINE_H_
|
||||
23
include/arc/graphics/rect.h
Normal file
23
include/arc/graphics/rect.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef ARC_GRAPHICS_RECT_H_
|
||||
#define ARC_GRAPHICS_RECT_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "arc/graphics/color.h"
|
||||
#include "arc/graphics/renderer.h"
|
||||
#include "arc/math/rectangle.h"
|
||||
#include <stdint.h>
|
||||
|
||||
void ARC_Rect_Render(ARC_Rect *rect, ARC_Renderer *renderer, ARC_Color *color);
|
||||
|
||||
int32_t ARC_Rect_Intersects(ARC_Rect *rect1, ARC_Rect *rect2);
|
||||
|
||||
int32_t ARC_Rect_LineIntersects(ARC_Rect *rect, int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !ARC_GRAPHICS_RECT_H_
|
||||
|
|
@ -11,4 +11,8 @@ typedef struct ARC_UPoint {
|
|||
uint32_t x, y;
|
||||
} ARC_UPoint;
|
||||
|
||||
typedef struct ARC_FPoint {
|
||||
float x, y;
|
||||
} ARC_FPoint;
|
||||
|
||||
#endif // ARC_MATH_POINT_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue