Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::editor::imgui Namespace Reference

Classes

class  StringCache
 

Functions

void text_unformatted (std::string_view text)
 
void image_with_fallback (ImTextureID textureID, const math::Vector2F &sizePx, const math::Vector4F &tintColorRGBA, const math::Vector4F &borderColorRGBA)
 
bool image_button_with_fallback (const char *strId, ImTextureID textureID, const math::Vector2F &sizePx, const math::Vector4F &backgroundColorRGBA, const math::Vector4F &tintColorRGBA)
 
void copy_to (TSpan< char > dstBuffer, std::string_view srcStr)
 Copy string to a buffer. The result is always null-terminated.
 

Function Documentation

◆ copy_to()

void ph::editor::imgui::copy_to ( TSpan< char > dstBuffer,
std::string_view srcStr )

Copy string to a buffer. The result is always null-terminated.

Parameters
dstBufferThe buffer to copy into. Its size should never be 0.

◆ image_button_with_fallback()

bool ph::editor::imgui::image_button_with_fallback ( const char * strId,
ImTextureID textureID,
const math::Vector2F & sizePx,
const math::Vector4F & backgroundColorRGBA,
const math::Vector4F & tintColorRGBA )

◆ image_with_fallback()

void ph::editor::imgui::image_with_fallback ( ImTextureID textureID,
const math::Vector2F & sizePx,
const math::Vector4F & tintColorRGBA,
const math::Vector4F & borderColorRGBA )

◆ text_unformatted()

void ph::editor::imgui::text_unformatted ( std::string_view text)