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 ofSTBIIOCallbacks
structs.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; {@link STBIRInputCallbackI 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; {@link STBIROutputCallbackI 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; {@link STBIRKernelCallbackI stbir__kernel_callback *}* horizontal_filter_kernel; {@link STBIRSupportCallbackI stbir__support_callback *}* horizontal_filter_support; {@link STBIRKernelCallbackI stbir__kernel_callback *}* vertical_filter_kernel; {@link STBIRSupportCallbackI stbir__support_callback *}* vertical_filter_support; stbir__info * samplers; }
An array ofSTBIR_RESIZE
structs.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; {@link STBRPNode stbrp_node} * active_head; {@link STBRPNode stbrp_node} * free_head; {@link STBRPNode stbrp_node} extra[2]; }
An array ofSTBRPContext
structs.struct stbrp_node { stbrp_coord x; stbrp_coord y; {@link STBRPNode stbrp_node} * next; }
An array ofSTBRPNode
structs.struct stbrp_rect { int id; stbrp_coord w; stbrp_coord h; stbrp_coord x; stbrp_coord y; int was_packed; }
An array ofSTBRPRect
structs.struct stbtt_aligned_quad { float x0; float y0; float s0; float t0; float x1; float y1; float s1; float t1; }
An array ofSTBTTAlignedQuad
structs.struct stbtt_bakedchar { unsigned short x0; unsigned short y0; unsigned short x1; unsigned short y1; float xoff; float yoff; float xadvance; }
An array ofSTBTTBakedChar
structs.struct stbtt__bitmap { int w; int h; int stride; unsigned char * pixels; }
An array ofSTBTTBitmap
structs.An array ofSTBTTFontinfo
structs.struct stbtt_kerningentry { int glyph1; int glyph2; int advance; }
An array ofSTBTTKerningentry
structs.struct stbtt_pack_context { void * user_allocator_context; {@link STBRPContext 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; {@link STBRPNode stbrp_node} * nodes; }
An array ofSTBTTPackContext
structs.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 ofSTBTTPackedchar
structs.struct stbtt_pack_range { float font_size; int first_unicode_codepoint_in_range; int * array_of_unicode_codepoints; int num_chars; {@link STBTTPackedchar stbtt_packedchar} * chardata_for_range; unsigned char h_oversample; unsigned char v_oversample; }
An array ofSTBTTPackRange
structs.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 ofSTBTTVertex
structs.struct stb_vorbis_alloc { char * alloc_buffer; int alloc_buffer_length_in_bytes; }
An array ofSTBVorbisAlloc
structs.struct stb_vorbis_comment { char * vendor; int comment_list_length; char ** comment_list; }
An array ofSTBVorbisComment
structs.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 ofSTBVorbisInfo
structs.