-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ISerialization serialization interface
- Loading branch information
1 parent
685a260
commit 48a332e
Showing
47 changed files
with
831 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Hint files help the Visual Studio IDE interpret Visual C++ identifiers | ||
// such as names of functions and macros. | ||
// For more information see https://go.microsoft.com/fwlink/?linkid=865984 | ||
#define DECLARE_$NEW(T, __VA_ARGS__) T* T##_$new(E) { void* pObject = malloc(sizeof(T)); if (pObject) { memset(pObject, 0, sizeof(T)); T##_$init((T*)pObject, __VA_ARGS__); } return (T*)pObject; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef PANITENT_GRIMSTROKE_BASICPLOTTER_H | ||
#define PANITENT_GRIMSTROKE_BASICPLOTTER_H | ||
|
||
typedef struct BasicPlotter BasicPlotter; | ||
|
||
struct BasicPlotter_vtbl { | ||
void (*DrawPixel)(BasicPlotter* plotterContext, float xPos, float yPos); | ||
}; | ||
|
||
struct BasicPlotter { | ||
struct BasicPlotter_vtbl* pVtbl; | ||
}; | ||
|
||
void __impl_BasicPlotter_DrawPixel(BasicPlotter* plotterContext, float xPos, float yPos); | ||
|
||
struct BasicPlotter_vtbl __g_BasicPlotter_vtbl = { | ||
.DrawPixel = __impl_BasicPlotter_DrawPixel | ||
}; | ||
|
||
void BasicPlotter_Init(BasicPlotter* plotterContext) | ||
{ | ||
plotterContext->pVtbl = &__g_BasicPlotter_vtbl; | ||
} | ||
|
||
inline BasicPlotter_DrawPixel(BasicPlotter* plotterContext, float xPos, float yPos) | ||
{ | ||
plotterContext->pVtbl->DrawPixel(plotterContext, xPos, yPos); | ||
} | ||
|
||
void __impl_BasicPlotter_DrawPixel(BasicPlotter* plotterContext, float xPos, float yPos) | ||
{ | ||
|
||
} | ||
|
||
#endif // PANITENT_GRIMSTROKE_BASICPLOTTER |
Oops, something went wrong.