Started working on the ObjectStore

This commit is contained in:
abdelrahman committed 2022-09-11 01:20:16 +01:00
1 parent 33066b381e
commit 6b1197bfca
3 files changed
+17 -2

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#ifndef OBJECT_STORE_H
#define OBJECT_STORE_H
#include "Renderer.h"
typedef void (*UpdateFuncPtr)(float delta, void *object);
typedef void (*RenderFuncPtr)(Renderer *renderer, void *object);
typedef struct object_store ObjectStore;
void add_object_to_store(ObjectStore *os, UpdateFuncPtr uf, RenderFuncPtr rf);
#endif // !OBJECT_STORE_H