Vivid
Loading...
Searching...
No Matches
FrameBuffer.h
1
#pragma once
2
3
#include <iostream>
4
#include "Renderer.h"
5
10
class
FrameBuffer
11
{
12
public
:
13
FrameBuffer
() =
default
;
14
FrameBuffer
(
float
width,
float
height);
15
~FrameBuffer
();
16
17
unsigned
int
getFrameTexture();
18
void
RescaleFrameBuffer(
float
width,
float
height);
19
20
void
Bind()
const
;
21
void
Unbind()
const
;
22
23
private
:
24
unsigned
int
fbo;
25
unsigned
int
texture;
26
unsigned
int
rbo;
27
};
FrameBuffer
Handles the creation and management of a frame buffer.
Definition:
FrameBuffer.h:11
src
core
renderer
FrameBuffer.h
Generated by
1.9.6