vn/code/vn_scene_view.h

57 lines
1.2 KiB
C
Raw Normal View History

2023-08-22 03:19:51 +00:00
/* date = August 14th 2023 5:00 pm */
#ifndef VN_SCENE_VIEW_H
#define VN_SCENE_VIEW_H
struct textbox
{
string String;
s64 Capacity;
r32 CharsRevealed;
};
2023-10-04 17:21:15 +00:00
struct scene_view_character_data
{
string Name;
b32 Active;
b32 Talking;
render_handle Texture;
r32 TextureScale;
r32 ActiveT;
r32 TalkingT;
r32 PctP;
};
2023-08-22 03:19:51 +00:00
struct scene_view
{
memory_arena *SceneArena;
2023-10-04 17:21:15 +00:00
// sixten: input
platform_event_list *EventList;
r32 dtForFrame;
2023-08-22 03:19:51 +00:00
scene_runtime Runtime;
textbox Textbox;
render_handle BackgroundTexture;
2023-10-04 17:21:15 +00:00
s32 TargetCharacter;
render_handle TestHappy;
render_handle TestNormal;
s32 CharacterCount;
scene_view_character_data OnscreenCharacters[16];
2023-08-22 03:19:51 +00:00
};
static void SV_SetState(scene_view *View);
static scene_view *SV_GetState();
2023-10-04 17:21:15 +00:00
static void SV_NewFrame(scene_view *View, platform_event_list *EventList, r32 dtForFrame);
2023-08-22 03:19:51 +00:00
static void SV_SetCurrentSource(compiled_scene *Compiled);
static void SV_Init(scene_view *View, memory_arena *TextboxArena);
static void SV_BuildSceneView(vn_input *Input);
2023-10-04 17:21:15 +00:00
static void SV_Update(memory_arena *FrameArena);
2023-08-22 03:19:51 +00:00
#endif //VN_SCENE_VIEW_H