Package org.lwjgl.stb
@NullMarked
package org.lwjgl.stb
Contains bindings to stb, a set of single-file public domain libraries.
The functionality provided by stb includes:
- Parsing TrueType files, extract glyph metrics and rendering packed font textures.
- Easy rendering of bitmap fonts.
- Reading/writing image files and resizing images (e.g. for gamma-correct MIP map creation).
- Decoding Ogg Vorbis audio files.
- Compressing DXT textures at runtime.
- Packing rectangular textures into texture atlases.
- Computing Perlin noise.
-
ClassDescriptionCallback function:
(* anonymous)Callback function:(* anonymous)struct stbi_io_callbacks { int (* read) (void * user, char * data, int size); void (* skip) (void * user, int n); int (* eof) (void * user); }An array ofSTBIIOCallbacksstructs.struct STBIR_RESIZE { void * user_data; void const * input_pixels; int input_w; int input_h; double input_s0; double input_t0; double input_s1; double input_t1;stbir_input_callback ** input_cb; void * output_pixels; int output_w; int output_h; int output_subx; int output_suby; int output_subw; int output_subh;stbir_output_callback ** output_cb; int input_stride_in_bytes; int output_stride_in_bytes; int splits; int fast_alpha; int needs_rebuild; int called_alloc; stbir_pixel_layout input_pixel_layout_public; stbir_pixel_layout output_pixel_layout_public; stbir_datatype input_data_type; stbir_datatype output_data_type; stbir_filter horizontal_filter; stbir_filter vertical_filter; stbir_edge horizontal_edge; stbir_edge vertical_edge;stbir__kernel_callback ** horizontal_filter_kernel;stbir__support_callback ** horizontal_filter_support;stbir__kernel_callback ** vertical_filter_kernel;stbir__support_callback ** vertical_filter_support; stbir__info * samplers; }An array ofSTBIR_RESIZEstructs.Callback function:(* anonymous)Callback function:(* anonymous)Callback function:stbir_input_callback *Callback function:stbir_input_callback *Callback function:stbir__kernel_callback *Callback function:stbir__kernel_callback *Callback function:stbir_output_callback *Callback function:stbir_output_callback *Callback function:stbir__support_callback *Callback function:stbir__support_callback *Callback function:(* anonymous)Callback function:(* anonymous)Callback function:stbi_write_func *Callback function:stbi_write_func *Callback function:(* anonymous)Callback function:(* anonymous)struct stbrp_context { int width; int height; int align; int init_mode; int heuristic; int num_nodes;stbrp_node* active_head;stbrp_node* free_head;stbrp_nodeextra[2]; }An array ofSTBRPContextstructs.struct stbrp_node { stbrp_coord x; stbrp_coord y;stbrp_node* next; }An array ofSTBRPNodestructs.struct stbrp_rect { int id; stbrp_coord w; stbrp_coord h; stbrp_coord x; stbrp_coord y; int was_packed; }An array ofSTBRPRectstructs.struct stbtt_aligned_quad { float x0; float y0; float s0; float t0; float x1; float y1; float s1; float t1; }An array ofSTBTTAlignedQuadstructs.struct stbtt_bakedchar { unsigned short x0; unsigned short y0; unsigned short x1; unsigned short y1; float xoff; float yoff; float xadvance; }An array ofSTBTTBakedCharstructs.struct stbtt__bitmap { int w; int h; int stride; unsigned char * pixels; }An array ofSTBTTBitmapstructs.An array ofSTBTTFontinfostructs.struct stbtt_kerningentry { int glyph1; int glyph2; int advance; }An array ofSTBTTKerningentrystructs.struct stbtt_pack_context { void * user_allocator_context;stbrp_context* pack_info; int width; int height; int stride_in_bytes; int padding; int skip_missing; unsigned int h_oversample; unsigned int v_oversample; unsigned char * pixels;stbrp_node* nodes; }An array ofSTBTTPackContextstructs.struct stbtt_packedchar { unsigned short x0; unsigned short y0; unsigned short x1; unsigned short y1; float xoff; float yoff; float xadvance; float xoff2; float yoff2; }An array ofSTBTTPackedcharstructs.struct stbtt_pack_range { float font_size; int first_unicode_codepoint_in_range; int * array_of_unicode_codepoints; int num_chars;stbtt_packedchar* chardata_for_range; unsigned char h_oversample; unsigned char v_oversample; }An array ofSTBTTPackRangestructs.struct stbtt_vertex { stbtt_vertex_type x; stbtt_vertex_type y; stbtt_vertex_type cx; stbtt_vertex_type cy; stbtt_vertex_type cx1; stbtt_vertex_type cy1; unsigned char type; }An array ofSTBTTVertexstructs.struct stb_vorbis_alloc { char * alloc_buffer; int alloc_buffer_length_in_bytes; }An array ofSTBVorbisAllocstructs.struct stb_vorbis_comment { char * vendor; int comment_list_length; char ** comment_list; }An array ofSTBVorbisCommentstructs.struct stb_vorbis_info { unsigned int sample_rate; int channels; unsigned int setup_memory_required; unsigned int setup_temp_memory_required; unsigned int temp_memory_required; int max_frame_size; }An array ofSTBVorbisInfostructs.