51 std::shared_ptr<Material> m_opaqueImageMaterial;
52 std::shared_ptr<Material> m_transparentImageMaterial;
53 std::shared_ptr<Material> m_opaqueTextMaterial;
54 std::shared_ptr<Material> m_transparentTextMaterial;
55 std::shared_ptr<Material> m_opaqueBackgroundMaterial;
56 std::shared_ptr<Material> m_transparentBackgroundMaterial;
57 std::shared_ptr<Geometry> m_geometry;
58 std::shared_ptr<Geometry> m_backgroundGeometry;
59 std::shared_ptr<Sampler> m_sampler;
62 Decals(
const int fontSize,
const std::shared_ptr<Color3f>& fontColor,
const std::string& fontFile);
65 void set(
const int fontSize,
const std::shared_ptr<Color3f>& fontColor,
const std::string& fontFile);
66 std::shared_ptr<Decal>
add(
const std::shared_ptr<Image2D>& image,
const std::shared_ptr<Vector3f>& position,
68 std::shared_ptr<Decal>
add(
const std::string& text,
const std::shared_ptr<Vector3f>& position,
69 const std::shared_ptr<Color3f>& backgroundColor =
nullptr,
const std::shared_ptr<Color3f>& borderColor =
nullptr,
71 std::shared_ptr<Decal>
add(
const std::wstring& text,
const std::shared_ptr<Vector3f>& position,
72 const std::shared_ptr<Color3f>& backgroundColor =
nullptr,
const std::shared_ptr<Color3f>& borderColor =
nullptr,
74 void remove(
const std::shared_ptr<Decal>& decal);
76 std::shared_ptr<Decal>
hit(
int x,
int y,
const std::shared_ptr<Background>& background,
const std::shared_ptr<Camera>& camera,
float devicePixelRatio);