Extract node canvas events and preview/node geometry shells
This commit is contained in:
@@ -9,13 +9,41 @@
|
||||
#include "rtt.h"
|
||||
#include "texture.h"
|
||||
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace pp::panopainter {
|
||||
|
||||
[[nodiscard]] pp::renderer::RenderDeviceFeatures stroke_preview_render_device_features() noexcept;
|
||||
|
||||
void apply_legacy_node_stroke_preview_viewport(std::int32_t x, std::int32_t y, std::int32_t width, std::int32_t height);
|
||||
[[nodiscard]] pp::renderer::gl::OpenGlViewportRect query_legacy_node_stroke_preview_viewport();
|
||||
[[nodiscard]] std::array<float, 4> query_legacy_node_stroke_preview_clear_color();
|
||||
void apply_legacy_node_stroke_preview_clear_color(std::array<float, 4> color);
|
||||
void apply_legacy_node_stroke_preview_scissor(std::int32_t x, std::int32_t y, std::int32_t width, std::int32_t height);
|
||||
void apply_legacy_node_stroke_preview_capability(std::uint32_t state, bool enabled);
|
||||
|
||||
void bind_legacy_node_stroke_preview_live_samplers(
|
||||
Sampler& mipmap_sampler,
|
||||
Sampler& linear_sampler,
|
||||
Sampler& repeat_sampler);
|
||||
void bind_legacy_node_stroke_preview_dual_pass_textures(const Brush& dual_brush);
|
||||
void bind_legacy_node_stroke_preview_pattern_texture(const Brush& brush);
|
||||
void bind_legacy_node_stroke_preview_destination_texture(Texture2D& texture);
|
||||
void unbind_legacy_node_stroke_preview_destination_texture(Texture2D& texture);
|
||||
void unbind_legacy_node_stroke_preview_mixer_texture(RTT& mixer_rtt);
|
||||
void copy_legacy_node_stroke_preview_destination_texture_region(
|
||||
int src_x,
|
||||
int src_y,
|
||||
int dst_x,
|
||||
int dst_y,
|
||||
int width,
|
||||
int height);
|
||||
|
||||
struct LegacyNodeStrokePreviewBackgroundCaptureRequest {
|
||||
glm::vec2 size {};
|
||||
bool colorize = false;
|
||||
|
||||
Reference in New Issue
Block a user