summaryrefslogtreecommitdiff
path: root/gsk/vulkan/gskvulkanglyphcacheprivate.h
blob: b31711fe6d0327dbaedbc9b8fcef5c14c6faef5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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)

GskVulkanGlyphCache  *gsk_vulkan_glyph_cache_new            (GskRenderer         *renderer,
                                                             GdkVulkanContext    *vulkan);

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,
                                                             PangoGlyph           glyph,
                                                             int                  x,
                                                             int                  y,

                                                             float                scale);

void                  gsk_vulkan_glyph_cache_begin_frame    (GskVulkanGlyphCache *cache);

#endif /* __GSK_VULKAN_GLYPH_CACHE_PRIVATE_H__ */