2022-03-29 16:09:50 +00:00
|
|
|
/* date = March 27th 2022 0:50 pm */
|
|
|
|
|
|
|
|
#ifndef LUMENARIUM_EDITOR_H
|
|
|
|
#define LUMENARIUM_EDITOR_H
|
|
|
|
|
2022-04-17 14:24:22 +00:00
|
|
|
typedef struct Editor_Desc Editor_Desc;
|
|
|
|
struct Editor_Desc
|
|
|
|
{
|
|
|
|
v2 content_scale;
|
|
|
|
v2 init_window_dim;
|
|
|
|
};
|
|
|
|
|
2022-04-16 11:00:32 +00:00
|
|
|
typedef struct Editor Editor;
|
2022-03-29 16:09:50 +00:00
|
|
|
struct Editor
|
|
|
|
{
|
2022-04-16 11:00:32 +00:00
|
|
|
v2 content_scale;
|
2022-03-29 16:09:50 +00:00
|
|
|
v2 window_dim;
|
|
|
|
Editor_Renderer renderer;
|
2022-04-06 18:29:32 +00:00
|
|
|
UI ui;
|
2022-04-12 05:53:32 +00:00
|
|
|
|
|
|
|
v3 camera_pos;
|
|
|
|
|
2022-04-16 11:00:32 +00:00
|
|
|
Geometry_Buffer sculpture_geo;
|
|
|
|
Shader sculpture_shd;
|
|
|
|
Texture sculpture_tex;
|
2022-03-29 16:09:50 +00:00
|
|
|
};
|
|
|
|
|
2022-04-12 05:53:32 +00:00
|
|
|
// NOTE(PS): call this any time sculpture data is updated if
|
|
|
|
// you want to see the sculpture in the visualizer
|
2022-04-16 11:00:32 +00:00
|
|
|
internal void ed_sculpture_updated(App_State* state, r32 scale, r32 led_size);
|
2022-04-12 05:53:32 +00:00
|
|
|
|
2022-03-29 16:09:50 +00:00
|
|
|
#endif //LUMENARIUM_EDITOR_H
|