basic rendering for both opengl and vulkan

This commit is contained in:
Lorenzo Torres 2026-01-07 02:43:00 +01:00
parent 4b18afa040
commit dadd2edaf1
29 changed files with 1140 additions and 38 deletions

21
rendering/gl/context.h Normal file
View file

@ -0,0 +1,21 @@
/* SPDX-License-Identifier:BSD-3-Clause */
#ifndef GL_CONTEXT_H
#define GL_CONTEXT_H
#include "gl.h"
#include "../../core/types.h"
#define RGFW_OPENGL
#ifndef RGFW_IMPLEMENTATION
#define RGFW_IMPORT
#endif
#include "../../rgfw.h"
struct renderer_context {
RGFW_window *window;
GLuint shader_program;
GLuint vao;
GLuint vbo;
GLuint ebo;
};
#endif