Class HarfBuzzGPU

java.lang.Object
org.lwjgl.util.harfbuzz.HarfBuzzGPU

public class HarfBuzzGPU extends Object
  • Field Details

    • HB_GPU_SHADER_LANG_INVALID

      public static final int HB_GPU_SHADER_LANG_INVALID
      See Also:
    • HB_GPU_SHADER_LANG_GLSL

      public static final int HB_GPU_SHADER_LANG_GLSL
      See Also:
    • HB_GPU_SHADER_LANG_WGSL

      public static final int HB_GPU_SHADER_LANG_WGSL
      See Also:
    • HB_GPU_SHADER_LANG_MSL

      public static final int HB_GPU_SHADER_LANG_MSL
      See Also:
    • HB_GPU_SHADER_LANG_HLSL

      public static final int HB_GPU_SHADER_LANG_HLSL
      See Also:
    • HB_GPU_SHADER_STAGE_VERTEX

      public static final int HB_GPU_SHADER_STAGE_VERTEX
      See Also:
    • HB_GPU_SHADER_STAGE_FRAGMENT

      public static final int HB_GPU_SHADER_STAGE_FRAGMENT
      See Also:
  • Method Details

    • getLibrary

      public static SharedLibrary getLibrary()
      Returns the harfbuzz SharedLibrary.
    • nhb_gpu_shader_source

      public static long nhb_gpu_shader_source(int stage, int lang)
      char const * hb_gpu_shader_source(hb_gpu_shader_stage_t stage, hb_gpu_shader_lang_t lang)
    • hb_gpu_shader_source

      @NativeType("char const *") public static @Nullable String hb_gpu_shader_source(@NativeType("hb_gpu_shader_stage_t") int stage, @NativeType("hb_gpu_shader_lang_t") int lang)
      char const * hb_gpu_shader_source(hb_gpu_shader_stage_t stage, hb_gpu_shader_lang_t lang)
    • nhb_gpu_draw_shader_source

      public static long nhb_gpu_draw_shader_source(int stage, int lang)
      char const * hb_gpu_draw_shader_source(hb_gpu_shader_stage_t stage, hb_gpu_shader_lang_t lang)
    • hb_gpu_draw_shader_source

      @NativeType("char const *") public static @Nullable String hb_gpu_draw_shader_source(@NativeType("hb_gpu_shader_stage_t") int stage, @NativeType("hb_gpu_shader_lang_t") int lang)
      char const * hb_gpu_draw_shader_source(hb_gpu_shader_stage_t stage, hb_gpu_shader_lang_t lang)
    • hb_gpu_draw_create_or_fail

      @NativeType("hb_gpu_draw_t *") public static long hb_gpu_draw_create_or_fail()
      hb_gpu_draw_t * hb_gpu_draw_create_or_fail(void)
    • hb_gpu_draw_reference

      @NativeType("hb_gpu_draw_t *") public static long hb_gpu_draw_reference(@NativeType("hb_gpu_draw_t *") long draw)
      hb_gpu_draw_t * hb_gpu_draw_reference(hb_gpu_draw_t * draw)
    • hb_gpu_draw_destroy

      public static void hb_gpu_draw_destroy(@NativeType("hb_gpu_draw_t *") long draw)
      void hb_gpu_draw_destroy(hb_gpu_draw_t * draw)
    • nhb_gpu_draw_set_user_data

      public static int nhb_gpu_draw_set_user_data(long draw, long key, long data, long destroy, int replace)
      hb_bool_t hb_gpu_draw_set_user_data(hb_gpu_draw_t * draw, hb_user_data_key_t * key, void * data, hb_destroy_func_t destroy, hb_bool_t replace)
    • hb_gpu_draw_set_user_data

      @NativeType("hb_bool_t") public static boolean hb_gpu_draw_set_user_data(@NativeType("hb_gpu_draw_t *") long draw, @NativeType("hb_user_data_key_t *") hb_user_data_key_t key, @NativeType("void *") long data, @NativeType("hb_destroy_func_t") @Nullable hb_destroy_func_tI destroy, @NativeType("hb_bool_t") boolean replace)
      hb_bool_t hb_gpu_draw_set_user_data(hb_gpu_draw_t * draw, hb_user_data_key_t * key, void * data, hb_destroy_func_t destroy, hb_bool_t replace)
    • nhb_gpu_draw_get_user_data

      public static long nhb_gpu_draw_get_user_data(long draw, long key)
      void * hb_gpu_draw_get_user_data(hb_gpu_draw_t const * draw, hb_user_data_key_t * key)
    • hb_gpu_draw_get_user_data

      @NativeType("void *") public static long hb_gpu_draw_get_user_data(@NativeType("hb_gpu_draw_t const *") long draw, @NativeType("hb_user_data_key_t *") hb_user_data_key_t key)
      void * hb_gpu_draw_get_user_data(hb_gpu_draw_t const * draw, hb_user_data_key_t * key)
    • hb_gpu_draw_set_scale

      public static void hb_gpu_draw_set_scale(@NativeType("hb_gpu_draw_t *") long draw, int x_scale, int y_scale)
      void hb_gpu_draw_set_scale(hb_gpu_draw_t * draw, int x_scale, int y_scale)
    • nhb_gpu_draw_get_scale

      public static void nhb_gpu_draw_get_scale(long draw, long x_scale, long y_scale)
      void hb_gpu_draw_get_scale(hb_gpu_draw_t const * draw, int * x_scale, int * y_scale)
    • hb_gpu_draw_get_scale

      public static void hb_gpu_draw_get_scale(@NativeType("hb_gpu_draw_t const *") long draw, @NativeType("int *") @Nullable IntBuffer x_scale, @NativeType("int *") @Nullable IntBuffer y_scale)
      void hb_gpu_draw_get_scale(hb_gpu_draw_t const * draw, int * x_scale, int * y_scale)
    • hb_gpu_draw_get_funcs

      @NativeType("hb_draw_funcs_t *") public static long hb_gpu_draw_get_funcs(@NativeType("hb_gpu_draw_t const *") long draw)
      hb_draw_funcs_t * hb_gpu_draw_get_funcs(hb_gpu_draw_t const * draw)
    • hb_gpu_draw_glyph

      public static void hb_gpu_draw_glyph(@NativeType("hb_gpu_draw_t *") long draw, @NativeType("hb_font_t *") long font, @NativeType("hb_codepoint_t") int glyph)
      void hb_gpu_draw_glyph(hb_gpu_draw_t * draw, hb_font_t * font, hb_codepoint_t glyph)
    • hb_gpu_draw_glyph_or_fail

      @NativeType("hb_bool_t") public static boolean hb_gpu_draw_glyph_or_fail(@NativeType("hb_gpu_draw_t *") long draw, @NativeType("hb_font_t *") long font, @NativeType("hb_codepoint_t") int glyph)
      hb_bool_t hb_gpu_draw_glyph_or_fail(hb_gpu_draw_t * draw, hb_font_t * font, hb_codepoint_t glyph)
    • nhb_gpu_draw_encode

      public static long nhb_gpu_draw_encode(long draw, long extents)
      hb_blob_t * hb_gpu_draw_encode(hb_gpu_draw_t * draw, hb_glyph_extents_t * extents)
    • hb_gpu_draw_encode

      @NativeType("hb_blob_t *") public static long hb_gpu_draw_encode(@NativeType("hb_gpu_draw_t *") long draw, @NativeType("hb_glyph_extents_t *") @Nullable hb_glyph_extents_t extents)
      hb_blob_t * hb_gpu_draw_encode(hb_gpu_draw_t * draw, hb_glyph_extents_t * extents)
    • hb_gpu_draw_clear

      public static void hb_gpu_draw_clear(@NativeType("hb_gpu_draw_t *") long draw)
      void hb_gpu_draw_clear(hb_gpu_draw_t * draw)
    • hb_gpu_draw_reset

      public static void hb_gpu_draw_reset(@NativeType("hb_gpu_draw_t *") long draw)
      void hb_gpu_draw_reset(hb_gpu_draw_t * draw)
    • hb_gpu_draw_recycle_blob

      public static void hb_gpu_draw_recycle_blob(@NativeType("hb_gpu_draw_t *") long draw, @NativeType("hb_blob_t *") long blob)
      void hb_gpu_draw_recycle_blob(hb_gpu_draw_t * draw, hb_blob_t * blob)
    • hb_gpu_paint_create_or_fail

      @NativeType("hb_gpu_paint_t *") public static long hb_gpu_paint_create_or_fail()
      hb_gpu_paint_t * hb_gpu_paint_create_or_fail(void)
    • hb_gpu_paint_reference

      @NativeType("hb_gpu_paint_t *") public static long hb_gpu_paint_reference(@NativeType("hb_gpu_paint_t *") long paint)
      hb_gpu_paint_t * hb_gpu_paint_reference(hb_gpu_paint_t * paint)
    • hb_gpu_paint_destroy

      public static void hb_gpu_paint_destroy(@NativeType("hb_gpu_paint_t *") long paint)
      void hb_gpu_paint_destroy(hb_gpu_paint_t * paint)
    • nhb_gpu_paint_set_user_data

      public static int nhb_gpu_paint_set_user_data(long paint, long key, long data, long destroy, int replace)
      hb_bool_t hb_gpu_paint_set_user_data(hb_gpu_paint_t * paint, hb_user_data_key_t * key, void * data, hb_destroy_func_t destroy, hb_bool_t replace)
    • hb_gpu_paint_set_user_data

      @NativeType("hb_bool_t") public static boolean hb_gpu_paint_set_user_data(@NativeType("hb_gpu_paint_t *") long paint, @NativeType("hb_user_data_key_t *") hb_user_data_key_t key, @NativeType("void *") long data, @NativeType("hb_destroy_func_t") @Nullable hb_destroy_func_tI destroy, @NativeType("hb_bool_t") boolean replace)
      hb_bool_t hb_gpu_paint_set_user_data(hb_gpu_paint_t * paint, hb_user_data_key_t * key, void * data, hb_destroy_func_t destroy, hb_bool_t replace)
    • nhb_gpu_paint_get_user_data

      public static long nhb_gpu_paint_get_user_data(long paint, long key)
      void * hb_gpu_paint_get_user_data(hb_gpu_paint_t const * paint, hb_user_data_key_t * key)
    • hb_gpu_paint_get_user_data

      @NativeType("void *") public static long hb_gpu_paint_get_user_data(@NativeType("hb_gpu_paint_t const *") long paint, @NativeType("hb_user_data_key_t *") hb_user_data_key_t key)
      void * hb_gpu_paint_get_user_data(hb_gpu_paint_t const * paint, hb_user_data_key_t * key)
    • hb_gpu_paint_get_funcs

      @NativeType("hb_paint_funcs_t *") public static long hb_gpu_paint_get_funcs(@NativeType("hb_gpu_paint_t const *") long paint)
      hb_paint_funcs_t * hb_gpu_paint_get_funcs(hb_gpu_paint_t const * paint)
    • hb_gpu_paint_set_palette

      public static void hb_gpu_paint_set_palette(@NativeType("hb_gpu_paint_t *") long paint, @NativeType("unsigned") int palette)
      void hb_gpu_paint_set_palette(hb_gpu_paint_t * paint, unsigned palette)
    • hb_gpu_paint_get_palette

      @NativeType("unsigned") public static int hb_gpu_paint_get_palette(@NativeType("hb_gpu_paint_t const *") long paint)
      unsigned hb_gpu_paint_get_palette(hb_gpu_paint_t const * paint)
    • hb_gpu_paint_clear_custom_palette_colors

      public static void hb_gpu_paint_clear_custom_palette_colors(@NativeType("hb_gpu_paint_t *") long paint)
      void hb_gpu_paint_clear_custom_palette_colors(hb_gpu_paint_t * paint)
    • hb_gpu_paint_set_custom_palette_color

      @NativeType("hb_bool_t") public static boolean hb_gpu_paint_set_custom_palette_color(@NativeType("hb_gpu_paint_t *") long paint, @NativeType("unsigned int") int color_index, @NativeType("hb_color_t") int color)
      hb_bool_t hb_gpu_paint_set_custom_palette_color(hb_gpu_paint_t * paint, unsigned int color_index, hb_color_t color)
    • hb_gpu_paint_set_scale

      public static void hb_gpu_paint_set_scale(@NativeType("hb_gpu_paint_t *") long paint, int x_scale, int y_scale)
      void hb_gpu_paint_set_scale(hb_gpu_paint_t * paint, int x_scale, int y_scale)
    • nhb_gpu_paint_get_scale

      public static void nhb_gpu_paint_get_scale(long paint, long x_scale, long y_scale)
      void hb_gpu_paint_get_scale(hb_gpu_paint_t const * paint, int * x_scale, int * y_scale)
    • hb_gpu_paint_get_scale

      public static void hb_gpu_paint_get_scale(@NativeType("hb_gpu_paint_t const *") long paint, @NativeType("int *") @Nullable IntBuffer x_scale, @NativeType("int *") @Nullable IntBuffer y_scale)
      void hb_gpu_paint_get_scale(hb_gpu_paint_t const * paint, int * x_scale, int * y_scale)
    • hb_gpu_paint_glyph

      public static void hb_gpu_paint_glyph(@NativeType("hb_gpu_paint_t *") long paint, @NativeType("hb_font_t *") long font, @NativeType("hb_codepoint_t") int glyph)
      void hb_gpu_paint_glyph(hb_gpu_paint_t * paint, hb_font_t * font, hb_codepoint_t glyph)
    • hb_gpu_paint_glyph_or_fail

      @NativeType("hb_bool_t") public static boolean hb_gpu_paint_glyph_or_fail(@NativeType("hb_gpu_paint_t *") long paint, @NativeType("hb_font_t *") long font, @NativeType("hb_codepoint_t") int glyph)
      hb_bool_t hb_gpu_paint_glyph_or_fail(hb_gpu_paint_t * paint, hb_font_t * font, hb_codepoint_t glyph)
    • nhb_gpu_paint_encode

      public static long nhb_gpu_paint_encode(long paint, long extents)
      hb_blob_t * hb_gpu_paint_encode(hb_gpu_paint_t * paint, hb_glyph_extents_t * extents)
    • hb_gpu_paint_encode

      @NativeType("hb_blob_t *") public static long hb_gpu_paint_encode(@NativeType("hb_gpu_paint_t *") long paint, @NativeType("hb_glyph_extents_t *") hb_glyph_extents_t extents)
      hb_blob_t * hb_gpu_paint_encode(hb_gpu_paint_t * paint, hb_glyph_extents_t * extents)
    • hb_gpu_paint_clear

      public static void hb_gpu_paint_clear(@NativeType("hb_gpu_paint_t *") long paint)
      void hb_gpu_paint_clear(hb_gpu_paint_t * paint)
    • hb_gpu_paint_reset

      public static void hb_gpu_paint_reset(@NativeType("hb_gpu_paint_t *") long paint)
      void hb_gpu_paint_reset(hb_gpu_paint_t * paint)
    • hb_gpu_paint_recycle_blob

      public static void hb_gpu_paint_recycle_blob(@NativeType("hb_gpu_paint_t *") long paint, @NativeType("hb_blob_t *") long blob)
      void hb_gpu_paint_recycle_blob(hb_gpu_paint_t * paint, hb_blob_t * blob)
    • nhb_gpu_paint_shader_source

      public static long nhb_gpu_paint_shader_source(int stage, int lang)
      char const * hb_gpu_paint_shader_source(hb_gpu_shader_stage_t stage, hb_gpu_shader_lang_t lang)
    • hb_gpu_paint_shader_source

      @NativeType("char const *") public static @Nullable String hb_gpu_paint_shader_source(@NativeType("hb_gpu_shader_stage_t") int stage, @NativeType("hb_gpu_shader_lang_t") int lang)
      char const * hb_gpu_paint_shader_source(hb_gpu_shader_stage_t stage, hb_gpu_shader_lang_t lang)