Added frame buffer support.

This commit is contained in:
2021-05-05 07:37:25 -07:00
parent 469750b0a0
commit c3244274ce
10 changed files with 168 additions and 44 deletions

View File

@ -8,6 +8,7 @@
// Display / Rendering
#include "display/camera.h"
#include "display/framebuffer.h"
#include "display/primitive.h"
#include "display/render.h"
#include "display/shader.h"

View File

@ -0,0 +1,16 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../libs.h"
#include "texture.h"
typedef struct {
GLuint fboId;
GLuint rboId;
texture_t *texture;
} framebuffer_t;

View File

@ -19,5 +19,5 @@ typedef struct {
/** Information about a single pixel. */
typedef struct {
uint8_t r, g, b, a ;
uint8_t r, g, b, a;
} pixel_t;