MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
InkPress.hpp File Reference
+ Include dependency graph for InkPress.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Portal::Text::PressParams
 Construction parameters for press(). More...
 

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Portal
 
namespace  MayaFlux::Portal::Text
 

Enumerations

enum class  MayaFlux::Portal::Text::ImpressResult : uint8_t { MayaFlux::Portal::Text::Ok , MayaFlux::Portal::Text::Overflow }
 Result of an impress() call. More...
 
enum class  MayaFlux::Portal::Text::RedrawPolicy : uint8_t { MayaFlux::Portal::Text::Clip , MayaFlux::Portal::Text::Fit }
 Policy controlling TextBuffer reuse behaviour in repress(). More...
 

Functions

ImpressResult MayaFlux::Portal::Text::impress (const std::shared_ptr< Buffers::TextBuffer > &target, std::string_view text, glm::vec4 color={ 1.F, 1.F, 1.F, 1.F })
 Append a UTF-8 string into an existing TextBuffer at the current cursor.
 
void MayaFlux::Portal::Text::ink_quads (const std::shared_ptr< Buffers::TextBuffer > &target, std::span< const GlyphQuad > quads, glm::vec4 color)
 Rasterize a mutated quad span into an existing TextBuffer.
 
std::shared_ptr< Buffers::TextBufferMayaFlux::Portal::Text::press (std::string_view text, const PressParams &params={})
 Composite a UTF-8 string into a new TextBuffer.
 
void MayaFlux::Portal::Text::rasterize_quads (std::span< const GlyphQuad > quads, GlyphAtlas &atlas, glm::vec4 color, uint8_t *dst, uint32_t buf_w, uint32_t buf_h)
 Write glyph quads into a caller-provided RGBA8 pixel buffer.
 
bool MayaFlux::Portal::Text::repress (const std::shared_ptr< Buffers::TextBuffer > &target, std::string_view text, glm::vec4 color={ 1.F, 1.F, 1.F, 1.F }, RedrawPolicy policy=RedrawPolicy::Clip)
 Re-composite a UTF-8 string into an existing TextBuffer.