#include "AssetEditorState.h"
#include "../Engine.h"
#include "MainMenuState.h"
#include <imgui.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_log.h>
#include <cstring>

void AssetEditorState::Enter(Engine& engine)
{
}

void AssetEditorState::Exit(Engine& engine)
{
}

void AssetEditorState::HandleEvents(Engine& engine, SDL_Event& event)
{
    if (event.type == SDL_KEYDOWN)
    {
        if (event.key.keysym.sym == SDLK_ESCAPE)
        {
            engine.RequestPopState();
        }
    }
}

void AssetEditorState::Update(Engine& engine, float dt)
{
}

void AssetEditorState::Render(Engine& engine)
{
    SDL_Renderer* r = engine.GetRenderer();
    if (!r) { return; }
    SDL_SetRenderDrawColor(r, 20, 20, 30, 255);
    SDL_RenderClear(r);
}

void AssetEditorState::RenderImGui(Engine& engine)
{
}