Skip to content

Commit

Permalink
breaking ground on SDL backend
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Mar 20, 2024
1 parent 35c40f4 commit a20b937
Show file tree
Hide file tree
Showing 4 changed files with 577 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ endif()
add_definitions(
-DFNA3D_DRIVER_VULKAN
-DFNA3D_DRIVER_OPENGL
-DFNA3D_DRIVER_SDL
)
add_definitions(
-DMOJOSHADER_NO_VERSION_INCLUDE
Expand Down Expand Up @@ -101,6 +102,7 @@ add_library(FNA3D
src/FNA3D.c
src/FNA3D_Driver_D3D11.c
src/FNA3D_Driver_OpenGL.c
src/FNA3D_Driver_SDL.c
src/FNA3D_Driver_Vulkan.c
src/FNA3D_Image.c
src/FNA3D_CommandBuffer.c
Expand Down
3 changes: 3 additions & 0 deletions src/FNA3D.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ static const FNA3D_Driver *drivers[] = {
#if FNA3D_DRIVER_VULKAN /* TODO: Bump this to the top when Vulkan is done! */
&VulkanDriver,
#endif
#if FNA3D_DRIVER_SDL
&SDLGPUDriver,
#endif
#if FNA3D_DRIVER_GNMX
&GNMXDriver,
#endif
Expand Down
1 change: 1 addition & 0 deletions src/FNA3D_Driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ typedef struct FNA3D_Driver
FNA3D_SHAREDINTERNAL FNA3D_Driver VulkanDriver;
FNA3D_SHAREDINTERNAL FNA3D_Driver D3D11Driver;
FNA3D_SHAREDINTERNAL FNA3D_Driver OpenGLDriver;
FNA3D_SHAREDINTERNAL FNA3D_Driver SDLGPUDriver;
FNA3D_SHAREDINTERNAL FNA3D_Driver GNMXDriver;

#endif /* FNA3D_DRIVER_H */
Expand Down
Loading

0 comments on commit a20b937

Please sign in to comment.