2017-09-19 23:32:04 +00:00
|
|
|
#ifndef __GSK_VULKAN_GLYPH_CACHE_PRIVATE_H__
|
|
|
|
#define __GSK_VULKAN_GLYPH_CACHE_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <pango/pango.h>
|
|
|
|
#include "gskvulkanrendererprivate.h"
|
|
|
|
#include "gskvulkanimageprivate.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GSK_TYPE_VULKAN_GLYPH_CACHE (gsk_vulkan_glyph_cache_get_type ())
|
|
|
|
|
|
|
|
G_DECLARE_FINAL_TYPE(GskVulkanGlyphCache, gsk_vulkan_glyph_cache, GSK, VULKAN_GLYPH_CACHE, GObject)
|
|
|
|
|
2017-09-20 14:01:58 +00:00
|
|
|
GskVulkanGlyphCache *gsk_vulkan_glyph_cache_new (GdkVulkanContext *vulkan);
|
2017-09-19 23:32:04 +00:00
|
|
|
|
|
|
|
GskVulkanImage * gsk_vulkan_glyph_cache_get_glyph_image (GskVulkanGlyphCache *cache,
|
|
|
|
GskVulkanUploader *uploader,
|
|
|
|
guint index);
|
|
|
|
|
|
|
|
GskVulkanCachedGlyph *gsk_vulkan_glyph_cache_lookup (GskVulkanGlyphCache *cache,
|
|
|
|
gboolean create,
|
|
|
|
PangoFont *font,
|
2017-10-28 17:13:31 +00:00
|
|
|
PangoGlyph glyph,
|
|
|
|
float scale);
|
2017-09-19 23:32:04 +00:00
|
|
|
|
2017-09-20 21:52:40 +00:00
|
|
|
void gsk_vulkan_glyph_cache_begin_frame (GskVulkanGlyphCache *cache);
|
|
|
|
|
2017-09-19 23:32:04 +00:00
|
|
|
#endif /* __GSK_VULKAN_GLYPH_CACHE_PRIVATE_H__ */
|