#pragma once

#include "pch.h"

#include <cstdint>

namespace pp::legacy_canvas_mode {

void set_canvas_mode_active_texture_unit(std::uint32_t unit_index);
void apply_canvas_mode_capability(std::uint32_t state, bool enabled);
bool query_canvas_mode_capability(std::uint32_t state);
void apply_canvas_mode_viewport(std::int32_t x, std::int32_t y, std::int32_t width, std::int32_t height);
std::uint32_t query_canvas_mode_read_framebuffer();
void read_canvas_mode_pixel(std::int32_t x, std::int32_t y, glm::u8vec4& pixel);

}
