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
21
rendering/gl/context.h
Normal file
21
rendering/gl/context.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue