BRuh
This commit is contained in:
27
src/framebuffer.hpp
Normal file
27
src/framebuffer.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
class FrameBuffer
|
||||
{
|
||||
public:
|
||||
|
||||
FrameBuffer( int width, int height );
|
||||
|
||||
void SetPixel( int x, int y, glm::vec3 col );
|
||||
|
||||
// Will clear the framebuffers current state
|
||||
void Resize( int width, int height );
|
||||
|
||||
void DumpToFile( std::string file );
|
||||
|
||||
uint32_t* Data;
|
||||
|
||||
~FrameBuffer();
|
||||
|
||||
private:
|
||||
|
||||
int mWidth, mHeight;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user