10 #ifndef RV_TextRender_h
11 #define RV_TextRender_h
88 bool hasText()
const {
return !myTextEntries.isEmpty(); }
91 int numEntries()
const {
return myTextEntries.entries(); }
96 static void renderText(
117 renderText(r, font, text, x, y, 0.0
f, color, alpha, viewport);
121 static void renderTextWithShadow(
144 renderTextWithShadow(
145 r, font, text, x, y, 0.0
f, text_color, shadow_color,
146 alpha_scale, viewport);
161 TextEntry() =
default;
184 TextDeferData(TextDeferData &&other) noexcept;
185 TextDeferData &operator=(TextDeferData &&other) noexcept;
187 TextDeferData(const TextDeferData &) = delete;
188 TextDeferData &operator=(const TextDeferData &) = delete;
196 UT_Array<TextDeferData> myDeferData;
200 bool myEnableBlending;
201 bool myPreserveDepthState;
A collection of Vulkan UBO, SSBO, and Image shader bindings (descriptor set)
static void renderText(RV_Render *r, RE_Font &font, const char *text, fpreal32 x, fpreal32 y, const UT_Color &color, fpreal32 alpha, const UT_DimRect &viewport)
GLdouble GLdouble GLdouble z
Object that represents drawable geometry. This object holds vertex, instancing and index buffers for ...
static void renderTextWithShadow(RV_Render *r, RE_Font &font, const char *text, fpreal32 x, fpreal32 y, const UT_Color &text_color, const UT_Color &shadow_color, fpreal32 alpha_scale, const UT_DimRect &viewport)
IFDmantra you can see code vm_image_mplay_direction endcode When SOHO starts a render
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
Vulkan text rendering class for viewport UI elements.
void setEnableBlending(bool val)
GLfloat GLfloat GLfloat alpha
Handle to the main interface of Vulkan.
FS_API bool cleanup(UT_StringArray &removed, UT_StringArray &error_files, exint &memory_freed, bool dry_run, const char *override_path=nullptr)
int numEntries() const
Get the number of text entries awaiting rendering.
LeafData & operator=(const LeafData &)=delete
void setPreserveDepthState(bool val)
SIM_API const UT_StringHolder position
bool hasText() const
Check if there is any text to render.