2016-11-29 15:33:14 +00:00
|
|
|
#ifndef __GSK_VULKAN_RENDERER_PRIVATE_H__
|
|
|
|
#define __GSK_VULKAN_RENDERER_PRIVATE_H__
|
|
|
|
|
2019-05-02 00:57:23 +00:00
|
|
|
#include "gskvulkanrenderer.h"
|
2018-01-06 14:36:55 +00:00
|
|
|
#include "gskvulkanimageprivate.h"
|
2016-12-09 06:23:04 +00:00
|
|
|
|
2016-11-29 15:33:14 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2016-12-09 06:23:04 +00:00
|
|
|
GskVulkanImage * gsk_vulkan_renderer_ref_texture_image (GskVulkanRenderer *self,
|
2017-11-02 20:39:00 +00:00
|
|
|
GdkTexture *texture,
|
2016-12-17 03:22:44 +00:00
|
|
|
GskVulkanUploader *uploader);
|
2016-12-09 06:23:04 +00:00
|
|
|
|
2017-09-19 22:53:32 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
guint texture_index;
|
|
|
|
|
|
|
|
float tx;
|
|
|
|
float ty;
|
|
|
|
float tw;
|
|
|
|
float th;
|
|
|
|
|
|
|
|
int draw_x;
|
|
|
|
int draw_y;
|
|
|
|
int draw_width;
|
|
|
|
int draw_height;
|
2017-09-20 21:52:40 +00:00
|
|
|
|
|
|
|
guint64 timestamp;
|
2017-09-19 22:53:32 +00:00
|
|
|
} GskVulkanCachedGlyph;
|
|
|
|
|
|
|
|
guint gsk_vulkan_renderer_cache_glyph (GskVulkanRenderer *renderer,
|
|
|
|
PangoFont *font,
|
2017-10-28 17:13:31 +00:00
|
|
|
PangoGlyph glyph,
|
|
|
|
float scale);
|
2017-09-19 22:53:32 +00:00
|
|
|
|
|
|
|
GskVulkanImage * gsk_vulkan_renderer_ref_glyph_image (GskVulkanRenderer *self,
|
|
|
|
GskVulkanUploader *uploader,
|
|
|
|
guint index);
|
|
|
|
|
|
|
|
GskVulkanCachedGlyph * gsk_vulkan_renderer_get_cached_glyph (GskVulkanRenderer *self,
|
|
|
|
PangoFont *font,
|
2017-10-28 17:13:31 +00:00
|
|
|
PangoGlyph glyph,
|
|
|
|
float scale);
|
2017-09-19 22:53:32 +00:00
|
|
|
|
2017-09-01 20:58:42 +00:00
|
|
|
|
2016-11-29 15:33:14 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GSK_VULKAN_RENDERER_PRIVATE_H__ */
|