basic rendering for both opengl and vulkan
This commit is contained in:
parent
4b18afa040
commit
dadd2edaf1
29 changed files with 1140 additions and 38 deletions
|
|
@ -1,7 +1,9 @@
|
|||
/* SPDX-License-Identifier:BSD-3-Clause */
|
||||
|
||||
#define RGFW_VULKAN
|
||||
#define RGFW_EXPORT
|
||||
#define RGFW_IMPLEMENTATION
|
||||
#include "../../rgfw.h"
|
||||
#include <vulkan/vulkan.h>
|
||||
#include "../../core/log.h"
|
||||
|
||||
|
|
@ -36,6 +38,7 @@ int platform_run(i32 argc, u8 * *argv)
|
|||
while (RGFW_window_shouldClose(win) == RGFW_FALSE) {
|
||||
RGFW_event event;
|
||||
while (RGFW_window_checkEvent(win, &event));
|
||||
renderer_present(context);
|
||||
}
|
||||
|
||||
renderer_context_deinit(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue