Copying from gitlab
This commit is contained in:
29
includes/render.hpp
Normal file
29
includes/render.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* / ) */
|
||||
/* render.hpp (\__/) ( ( */
|
||||
/* ) ( ) ) */
|
||||
/* By: lejulien <leo.julien.42@gmail.com> ={ }= / / */
|
||||
/* ) `-------/ / */
|
||||
/* Created: 2023/01/09 12:44:54 by lejulien ( / */
|
||||
/* Updated: 2023/01/14 16:51:15 by lejulien \ | */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "world.hpp"
|
||||
|
||||
#pragma once
|
||||
|
||||
class Render {
|
||||
public:
|
||||
// Constructor
|
||||
Render(int cell_size);
|
||||
|
||||
// Member function
|
||||
void display(World *world);
|
||||
void updateCellSize(int new_size);
|
||||
|
||||
private:
|
||||
void display_world(std::vector<bool> *data, int width, int height);
|
||||
int cell_size_;
|
||||
};
|
||||
Reference in New Issue
Block a user