This commit is contained in:
Ben Kyd
2020-01-14 16:57:08 +00:00
parent e8c82af202
commit ed5e264b0c
13 changed files with 1993 additions and 66 deletions

27
src/framebuffer.hpp Normal file
View 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;
};