Added frame buffer support.
This commit is contained in:
@ -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"
|
||||
|
16
include/dawn/display/framebuffer.h
Normal file
16
include/dawn/display/framebuffer.h
Normal 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;
|
@ -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;
|
||||
|
Reference in New Issue
Block a user