2016-11-29 15:33:14 +00:00
|
|
|
#ifndef __GSK_VULKAN_RENDERER_PRIVATE_H__
|
|
|
|
#define __GSK_VULKAN_RENDERER_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <vulkan/vulkan.h>
|
|
|
|
#include <gsk/gskrenderer.h>
|
|
|
|
|
2016-12-09 06:23:04 +00:00
|
|
|
#include "gsk/gskvulkanimageprivate.h"
|
|
|
|
|
2016-11-29 15:33:14 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GSK_TYPE_VULKAN_RENDERER (gsk_vulkan_renderer_get_type ())
|
|
|
|
|
|
|
|
#define GSK_VULKAN_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSK_TYPE_VULKAN_RENDERER, GskVulkanRenderer))
|
|
|
|
#define GSK_IS_VULKAN_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSK_TYPE_VULKAN_RENDERER))
|
|
|
|
#define GSK_VULKAN_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSK_TYPE_VULKAN_RENDERER, GskVulkanRendererClass))
|
|
|
|
#define GSK_IS_VULKAN_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GSK_TYPE_VULKAN_RENDERER))
|
|
|
|
#define GSK_VULKAN_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSK_TYPE_VULKAN_RENDERER, GskVulkanRendererClass))
|
|
|
|
|
|
|
|
typedef struct _GskVulkanRenderer GskVulkanRenderer;
|
|
|
|
typedef struct _GskVulkanRendererClass GskVulkanRendererClass;
|
|
|
|
|
|
|
|
GType gsk_vulkan_renderer_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2016-12-09 06:23:04 +00:00
|
|
|
GskVulkanImage * gsk_vulkan_renderer_ref_texture_image (GskVulkanRenderer *self,
|
|
|
|
GskTexture *texture,
|
2016-12-17 03:22:44 +00:00
|
|
|
GskVulkanUploader *uploader);
|
2016-12-09 06:23:04 +00:00
|
|
|
|
2017-09-01 20:58:42 +00:00
|
|
|
GskVulkanImage * gsk_vulkan_renderer_ref_glyph_image (GskVulkanRenderer *self,
|
|
|
|
GskVulkanUploader *uploader,
|
|
|
|
PangoFont *font,
|
|
|
|
PangoGlyphString *glyphs);
|
2017-09-11 01:55:22 +00:00
|
|
|
|
2017-09-01 20:58:42 +00:00
|
|
|
void gsk_vulkan_renderer_get_glyph_coords (GskVulkanRenderer *self,
|
|
|
|
PangoFont *font,
|
2017-09-11 01:55:22 +00:00
|
|
|
PangoGlyph glyph,
|
|
|
|
float *tx,
|
|
|
|
float *ty,
|
|
|
|
float *tw,
|
|
|
|
float *th,
|
2017-09-11 18:45:36 +00:00
|
|
|
float *dx,
|
|
|
|
float *dy,
|
|
|
|
float *dw,
|
|
|
|
float *dh);
|
2017-09-11 01:55:22 +00:00
|
|
|
|
|
|
|
void gsk_vulkan_renderer_cache_glyphs (GskVulkanRenderer *renderer,
|
|
|
|
PangoFont *font,
|
|
|
|
PangoGlyphString *glyphs);
|
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__ */
|