mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
renderer can now load a path
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/04 01:07:08 by tomoron #+# #+# */
|
||||
/* Updated: 2025/02/04 03:10:58 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/02/04 17:04:59 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -26,10 +26,14 @@ class Arguments
|
||||
{
|
||||
public :
|
||||
Arguments(int argc, char **argv);
|
||||
bool getHeadless(void) const;
|
||||
std::string &getSceneName(void);
|
||||
std::string getRenderPathName(void);
|
||||
bool error(void) const;
|
||||
|
||||
bool getHeadless(void) const;
|
||||
bool error(void) const;
|
||||
void show(void);
|
||||
|
||||
std::string &getSceneName(void);
|
||||
std::string *getRenderPath(void);
|
||||
bool getHeadless(void);
|
||||
|
||||
private:
|
||||
void printUsage();
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/22 16:29:26 by tomoron #+# #+# */
|
||||
/* Updated: 2025/02/04 00:41:10 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/02/04 18:46:22 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -36,8 +36,7 @@ typedef struct s_pathPoint
|
||||
class Renderer
|
||||
{
|
||||
public:
|
||||
Renderer(Scene *scene, Window *win);
|
||||
Renderer(Scene *scene, Window *win, std::string filename);
|
||||
Renderer(Scene *scene, Window *win, Arguments &args);
|
||||
void renderImgui(void);
|
||||
void update(Shader &shader);
|
||||
int rendering(void) const;
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/13 16:15:41 by TheRed #+# #+# */
|
||||
/* Updated: 2025/01/25 03:09:23 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/02/04 16:46:37 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -20,7 +20,7 @@ class Scene;
|
||||
class Window
|
||||
{
|
||||
public:
|
||||
Window(Scene *scene, int width, int height, const char *title, int sleep);
|
||||
Window(Scene *scene, int width, int height, const char *title, int sleep, Arguments &args);
|
||||
~Window(void);
|
||||
|
||||
void display();
|
||||
|
Reference in New Issue
Block a user