Index: freetype-gl/freetype-gl32.fs ================================================================== --- freetype-gl/freetype-gl32.fs +++ freetype-gl/freetype-gl32.fs @@ -11,11 +11,11 @@ get-current also freetype-gl definitions c-library freetype_gl s" freetype-gl" add-lib [IFDEF] android s" ./.libs" add-libpath - + s" /data/data/gnu.gforth/lib/libfreetype-gl.so" open-lib drop \c #include "../../../../../freetype-gl/freetype-gl.h" [ELSE] \c #include [THEN] \ -------===< structs >===-------- Index: freetype-gl/freetype-gl64.fs ================================================================== --- freetype-gl/freetype-gl64.fs +++ freetype-gl/freetype-gl64.fs @@ -11,11 +11,11 @@ get-current also freetype-gl definitions c-library freetype_gl s" freetype-gl" add-lib [IFDEF] android s" ./.libs" add-libpath - + s" /data/data/gnu.gforth/lib/libfreetype-gl.so" open-lib drop \c #include "../../../../../freetype-gl/freetype-gl.h" [ELSE] \c #include [THEN] \ -------===< structs >===-------- Index: freetype-gl32.fs ================================================================== --- freetype-gl32.fs +++ freetype-gl32.fs @@ -11,11 +11,11 @@ get-current also freetype-gl definitions c-library freetype_gl s" freetype-gl" add-lib [IFDEF] android s" ./.libs" add-libpath - + s" /data/data/gnu.gforth/lib/libfreetype-gl.so" open-lib drop \c #include "../../../../../freetype-gl/freetype-gl.h" [ELSE] \c #include [THEN] \ -------===< structs >===-------- Index: freetype-gl64.fs ================================================================== --- freetype-gl64.fs +++ freetype-gl64.fs @@ -11,11 +11,11 @@ get-current also freetype-gl definitions c-library freetype_gl s" freetype-gl" add-lib [IFDEF] android s" ./.libs" add-libpath - + s" /data/data/gnu.gforth/lib/libfreetype-gl.so" open-lib drop \c #include "../../../../../freetype-gl/freetype-gl.h" [ELSE] \c #include [THEN] \ -------===< structs >===-------- Index: gles2/freetype-gl.fs ================================================================== --- gles2/freetype-gl.fs +++ gles2/freetype-gl.fs @@ -1,176 +1,3 @@ -\ This file has been generated using SWIG and fsi, -\ and is already platform dependent, search for the corresponding -\ fsi-file to compile it where no one has compiled it before ;) -\ GForth has its own dynamic loader and doesn't need addional C-Code. -\ That's why this file contains normal Gforth-code( version 0.6.9 or higher ) -\ and could be used directly with include or require. -\ As all comments are stripped during the compilation, please -\ insert the copyright notice of the original file here. - -\ dummy load for android -s" /data/data/gnu.gforth/lib/libfreetype-gl.so" open-lib drop - -Vocabulary freetype-gl -get-current also freetype-gl definitions -c-library freetype_gl - s" freetype-gl" add-lib - [IFDEF] android - s" ./.libs" add-libpath - - \c #include "../../../../../freetype-gl/freetype-gl.h" - [ELSE] - \c #include - [THEN] -\ -------===< structs >===-------- -\ vec4 -begin-structure vec4 - drop 0 16 +field vec4-data - drop 0 16 +field vec4-xyzw - drop 0 12 +field vec4-rgb - drop 0 16 +field vec4-rgba - drop 0 12 +field vec4-xyz -drop 16 end-structure -\ vec3 -begin-structure vec3 - drop 0 12 +field vec3-data - drop 0 12 +field vec3-rgb - drop 0 12 +field vec3-xyz - drop 0 8 +field vec3-xy -drop 12 end-structure -\ vec2 -begin-structure vec2 - drop 0 8 +field vec2-data - drop 0 8 +field vec2-xy -drop 8 end-structure -\ ivec4 -begin-structure ivec4 - drop 0 16 +field ivec4-data - drop 0 16 +field ivec4-xyzw - drop 0 12 +field ivec4-rgb - drop 0 16 +field ivec4-rgba - drop 0 12 +field ivec4-xyz - drop 0 16 +field ivec4-xyzw_ -drop 16 end-structure -\ ivec4_xyzw_ -begin-structure ivec4_xyzw_ - drop 12 4 +field ivec4_xyzw_-w - drop 0 4 +field ivec4_xyzw_-x - drop 4 4 +field ivec4_xyzw_-y - drop 8 4 +field ivec4_xyzw_-z -drop 16 end-structure -\ ivec3 -begin-structure ivec3 - drop 0 12 +field ivec3-data - drop 0 12 +field ivec3-rgb - drop 0 12 +field ivec3-xyz - drop 0 8 +field ivec3-xy - drop 0 12 +field ivec3-XYZ_ -drop 12 end-structure -\ ivec3_XYZ -begin-structure ivec3_XYZ - drop 0 4 +field ivec3_XYZ-x - drop 4 4 +field ivec3_XYZ-y - drop 8 4 +field ivec3_XYZ-z -drop 12 end-structure -\ ivec2 -begin-structure ivec2 - drop 0 8 +field ivec2-data - drop 0 8 +field ivec2-xy -drop 8 end-structure -\ vector_t -begin-structure vector_t - field: vector_t-items - field: vector_t-capacity - field: vector_t-size - field: vector_t-item_size -end-structure -\ texture_atlas_t -begin-structure texture_atlas_t - field: texture_atlas_t-nodes - field: texture_atlas_t-width - field: texture_atlas_t-height - field: texture_atlas_t-depth - field: texture_atlas_t-used - field: texture_atlas_t-id - field: texture_atlas_t-data -end-structure -\ kerning_t -begin-structure kerning_t - field: kerning_t-charcode - field: kerning_t-kerning -end-structure -\ texture_glyph_t -begin-structure texture_glyph_t - field: texture_glyph_t-charcode - field: texture_glyph_t-id - field: texture_glyph_t-width - field: texture_glyph_t-height - field: texture_glyph_t-offset_x - field: texture_glyph_t-offset_y - field: texture_glyph_t-advance_x - field: texture_glyph_t-advance_y - field: texture_glyph_t-s0 - field: texture_glyph_t-t0 - field: texture_glyph_t-s1 - field: texture_glyph_t-t1 - field: texture_glyph_t-kerning - field: texture_glyph_t-outline_type - field: texture_glyph_t-outline_thickness -drop 72 end-structure -\ texture_font_t -begin-structure texture_font_t - field: texture_font_t-glyphs - field: texture_font_t-atlas - field: texture_font_t-filename - field: texture_font_t-size - field: texture_font_t-hinting - field: texture_font_t-outline_type - field: texture_font_t-outline_thickness - field: texture_font_t-filtering - 5 +field texture_font_t-lcd_weights - field: texture_font_t-height - field: texture_font_t-linegap - field: texture_font_t-ascender - field: texture_font_t-descender - field: texture_font_t-underline_position - field: texture_font_t-underline_thickness -end-structure - -\ ------===< functions >===------- -c-function vector_new vector_new n -- a -c-function vector_delete vector_delete a -- void -c-function vector_get vector_get a n -- a -c-function vector_front vector_front a -- a -c-function vector_back vector_back a -- a -c-function vector_contains vector_contains a a a -- n -c-function vector_empty vector_empty a -- n -c-function vector_size vector_size a -- n -c-function vector_reserve vector_reserve a n -- void -c-function vector_capacity vector_capacity a -- n -c-function vector_shrink vector_shrink a -- void -c-function vector_clear vector_clear a -- void -c-function vector_set vector_set a n a -- void -c-function vector_erase vector_erase a n -- void -c-function vector_erase_range vector_erase_range a n n -- void -c-function vector_push_back vector_push_back a a -- void -c-function vector_pop_back vector_pop_back a -- void -c-function vector_resize vector_resize a n -- void -c-function vector_insert vector_insert a n a -- void -c-function vector_insert_data vector_insert_data a n a n -- void -c-function vector_push_back_data vector_push_back_data a a n -- void -c-function vector_sort vector_sort a a -- void -c-function texture_atlas_new texture_atlas_new n n n -- a -c-function texture_atlas_delete texture_atlas_delete a -- void -c-function texture_atlas_upload texture_atlas_upload a -- void -\c #define texture_atlas_get_regionp(self, w, h, x) { ivec4* _x=x; *_x=texture_atlas_get_region(self,w,h); } -c-function texture_atlas_get_region texture_atlas_get_regionp a n n a -- void -c-function texture_atlas_set_region texture_atlas_set_region a n n n n a n -- void -c-function texture_atlas_clear texture_atlas_clear a -- void -c-function texture_font_new texture_font_new a a r -- a -c-function texture_font_delete texture_font_delete a -- void -c-function texture_font_get_glyph texture_font_get_glyph a n -- a -c-function texture_font_load_glyphs texture_font_load_glyphs a a -- n -c-function texture_glyph_get_kerning texture_glyph_get_kerning a n -- r - -end-c-library -previous definitions +\ freetype GL wrapper + +cell 4 = [IF] require freetype-gl32.fs [ELSE] require freetype-gl64.fs [THEN] ADDED gles2/freetype-gl32.fs Index: gles2/freetype-gl32.fs ================================================================== --- /dev/null +++ gles2/freetype-gl32.fs @@ -0,0 +1,172 @@ +\ This file has been generated using SWIG and fsi, +\ and is already platform dependent, search for the corresponding +\ fsi-file to compile it where no one has compiled it before ;) +\ GForth has its own dynamic loader and doesn't need addional C-Code. +\ That's why this file contains normal Gforth-code( version 0.6.9 or higher ) +\ and could be used directly with include or require. +\ As all comments are stripped during the compilation, please +\ insert the copyright notice of the original file here. + +Vocabulary freetype-gl +get-current also freetype-gl definitions +c-library freetype_gl + s" freetype-gl" add-lib + [IFDEF] android + s" ./.libs" add-libpath + s" /data/data/gnu.gforth/lib/libfreetype-gl.so" open-lib drop + \c #include "../../../../../freetype-gl/freetype-gl.h" + [ELSE] + \c #include + [THEN] +\ -------===< structs >===-------- +\ vec4 +begin-structure vec4 + drop 0 16 +field vec4-data + drop 0 16 +field vec4-xyzw + drop 0 12 +field vec4-rgb + drop 0 16 +field vec4-rgba + drop 0 12 +field vec4-xyz +drop 16 end-structure +\ vec3 +begin-structure vec3 + drop 0 12 +field vec3-data + drop 0 12 +field vec3-rgb + drop 0 12 +field vec3-xyz + drop 0 8 +field vec3-xy +drop 12 end-structure +\ vec2 +begin-structure vec2 + drop 0 8 +field vec2-data + drop 0 8 +field vec2-xy +drop 8 end-structure +\ ivec4 +begin-structure ivec4 + drop 0 16 +field ivec4-data + drop 0 16 +field ivec4-xyzw + drop 0 12 +field ivec4-rgb + drop 0 16 +field ivec4-rgba + drop 0 12 +field ivec4-xyz + drop 0 16 +field ivec4-XYZW_ +drop 16 end-structure +\ ivec4_XYZW +begin-structure ivec4_XYZW + drop 12 4 +field ivec4_XYZW-w + drop 0 4 +field ivec4_XYZW-x + drop 4 4 +field ivec4_XYZW-y + drop 8 4 +field ivec4_XYZW-z +drop 16 end-structure +\ ivec3 +begin-structure ivec3 + drop 0 12 +field ivec3-data + drop 0 12 +field ivec3-rgb + drop 0 12 +field ivec3-xyz + drop 0 8 +field ivec3-xy + drop 0 12 +field ivec3-XYZ_ +drop 12 end-structure +\ ivec3_XYZ +begin-structure ivec3_XYZ + drop 0 4 +field ivec3_XYZ-x + drop 4 4 +field ivec3_XYZ-y + drop 8 4 +field ivec3_XYZ-z +drop 12 end-structure +\ ivec2 +begin-structure ivec2 + drop 0 8 +field ivec2-data + drop 0 8 +field ivec2-xy +drop 8 end-structure +\ vector_t +begin-structure vector_t + drop 0 8 +field vector_t-items + drop 16 8 +field vector_t-size + drop 24 8 +field vector_t-item_size + drop 8 8 +field vector_t-capacity +drop 32 end-structure +\ texture_atlas_t +begin-structure texture_atlas_t + drop 48 8 +field texture_atlas_t-data + drop 40 4 +field texture_atlas_t-id + drop 0 8 +field texture_atlas_t-nodes + drop 16 8 +field texture_atlas_t-height + drop 32 8 +field texture_atlas_t-used + drop 8 8 +field texture_atlas_t-width + drop 24 8 +field texture_atlas_t-depth +drop 56 end-structure +\ kerning_t +begin-structure kerning_t + drop 0 4 +field kerning_t-charcode + drop 4 4 +field kerning_t-kerning +drop 8 end-structure +\ texture_glyph_t +begin-structure texture_glyph_t + drop 16 8 +field texture_glyph_t-height + drop 44 4 +field texture_glyph_t-t0 + drop 52 4 +field texture_glyph_t-t1 + drop 40 4 +field texture_glyph_t-s0 + drop 68 4 +field texture_glyph_t-outline_thickness + drop 48 4 +field texture_glyph_t-s1 + drop 24 4 +field texture_glyph_t-offset_x + drop 28 4 +field texture_glyph_t-offset_y + drop 64 4 +field texture_glyph_t-outline_type + drop 32 4 +field texture_glyph_t-advance_x + drop 36 4 +field texture_glyph_t-advance_y + drop 4 4 +field texture_glyph_t-id + drop 8 8 +field texture_glyph_t-width + drop 0 4 +field texture_glyph_t-charcode + drop 56 8 +field texture_glyph_t-kerning +drop 72 end-structure +\ texture_font_t +begin-structure texture_font_t + drop 64 4 +field texture_font_t-descender + drop 60 4 +field texture_font_t-ascender + drop 52 4 +field texture_font_t-height + drop 24 4 +field texture_font_t-size + drop 0 8 +field texture_font_t-glyphs + drop 56 4 +field texture_font_t-linegap + drop 36 4 +field texture_font_t-outline_thickness + drop 72 4 +field texture_font_t-underline_thickness + drop 40 4 +field texture_font_t-filtering + drop 32 4 +field texture_font_t-outline_type + drop 8 8 +field texture_font_t-atlas + drop 44 5 +field texture_font_t-lcd_weights + drop 28 4 +field texture_font_t-hinting + drop 68 4 +field texture_font_t-underline_position + drop 16 8 +field texture_font_t-filename +drop 80 end-structure + +\ ------===< functions >===------- +c-function vector_new vector_new n -- a +c-function vector_delete vector_delete a -- void +c-function vector_get vector_get a n -- a +c-function vector_front vector_front a -- a +c-function vector_back vector_back a -- a +c-function vector_contains vector_contains a a a -- n +c-function vector_empty vector_empty a -- n +c-function vector_size vector_size a -- n +c-function vector_reserve vector_reserve a n -- void +c-function vector_capacity vector_capacity a -- n +c-function vector_shrink vector_shrink a -- void +c-function vector_clear vector_clear a -- void +c-function vector_set vector_set a n a -- void +c-function vector_erase vector_erase a n -- void +c-function vector_erase_range vector_erase_range a n n -- void +c-function vector_push_back vector_push_back a a -- void +c-function vector_pop_back vector_pop_back a -- void +c-function vector_resize vector_resize a n -- void +c-function vector_insert vector_insert a n a -- void +c-function vector_insert_data vector_insert_data a n a n -- void +c-function vector_push_back_data vector_push_back_data a a n -- void +c-function vector_sort vector_sort a a -- void +c-function texture_atlas_new texture_atlas_new n n n -- a +c-function texture_atlas_delete texture_atlas_delete a -- void +c-function texture_atlas_upload texture_atlas_upload a -- void +\c #define texture_atlas_get_regionp(self, w, h, x) { ivec4* _x=x; *_x=texture_atlas_get_region(self,w,h); } +c-function texture_atlas_get_region texture_atlas_get_regionp a n n a -- void +c-function texture_atlas_set_region texture_atlas_set_region a n n n n a n -- void +c-function texture_atlas_clear texture_atlas_clear a -- void +c-function texture_font_new texture_font_new a a r -- a +c-function texture_font_delete texture_font_delete a -- void +c-function texture_font_get_glyph texture_font_get_glyph a n -- a +c-function texture_font_load_glyphs texture_font_load_glyphs a a -- n +c-function texture_glyph_get_kerning texture_glyph_get_kerning a n -- r +end-c-library +previous set-current ADDED gles2/freetype-gl64.fs Index: gles2/freetype-gl64.fs ================================================================== --- /dev/null +++ gles2/freetype-gl64.fs @@ -0,0 +1,336 @@ +\ This file has been generated using SWIG and fsi, +\ and is already platform dependent, search for the corresponding +\ fsi-file to compile it where no one has compiled it before ;) +\ GForth has its own dynamic loader and doesn't need addional C-Code. +\ That's why this file contains normal Gforth-code( version 0.6.9 or higher ) +\ and could be used directly with include or require. +\ As all comments are stripped during the compilation, please +\ insert the copyright notice of the original file here. + +Vocabulary freetype-gl +get-current also freetype-gl definitions +c-library freetype_gl + s" freetype-gl" add-lib + [IFDEF] android + s" ./.libs" add-libpath + s" /data/data/gnu.gforth/lib/libfreetype-gl.so" open-lib drop + \c #include "../../../../../freetype-gl/freetype-gl.h" + [ELSE] + \c #include + [THEN] +\ -------===< structs >===-------- +\ struct vec4 +begin-structure struct-vec4 + drop 0 16 +field struct-vec4-VEC4 +drop 16 end-structure +\ vec4_VEC4 +begin-structure vec4_VEC4 + drop 0 16 +field vec4_VEC4-RGBA + drop 0 16 +field vec4_VEC4-data + drop 0 12 +field vec4_VEC4-rgb + drop 0 16 +field vec4_VEC4-rgba + drop 0 12 +field vec4_VEC4-xyz +drop 16 end-structure +\ vec4_VEC4_RGBA +begin-structure vec4_VEC4_RGBA + drop 8 4 +field vec4_VEC4_RGBA-b + drop 0 4 +field vec4_VEC4_RGBA-r + drop 4 4 +field vec4_VEC4_RGBA-g + drop 12 4 +field vec4_VEC4_RGBA-a +drop 16 end-structure +\ vec4_VEC4_RGBA_a +begin-structure vec4_VEC4_RGBA_a + drop 0 4 +field vec4_VEC4_RGBA_a-w + drop 0 4 +field vec4_VEC4_RGBA_a-alpha + drop 0 4 +field vec4_VEC4_RGBA_a-height + drop 0 4 +field vec4_VEC4_RGBA_a-a +drop 4 end-structure +\ vec4_VEC4_RGBA_b +begin-structure vec4_VEC4_RGBA_b + drop 0 4 +field vec4_VEC4_RGBA_b-b + drop 0 4 +field vec4_VEC4_RGBA_b-blue + drop 0 4 +field vec4_VEC4_RGBA_b-z + drop 0 4 +field vec4_VEC4_RGBA_b-width +drop 4 end-structure +\ vec4_VEC4_RGBA_g +begin-structure vec4_VEC4_RGBA_g + drop 0 4 +field vec4_VEC4_RGBA_g-y + drop 0 4 +field vec4_VEC4_RGBA_g-green + drop 0 4 +field vec4_VEC4_RGBA_g-g +drop 4 end-structure +\ vec4_VEC4_RGBA_r +begin-structure vec4_VEC4_RGBA_r + drop 0 4 +field vec4_VEC4_RGBA_r-x + drop 0 4 +field vec4_VEC4_RGBA_r-r + drop 0 4 +field vec4_VEC4_RGBA_r-red +drop 4 end-structure +\ struct vec3 +begin-structure struct-vec3 + drop 0 12 +field struct-vec3-VEC3 +drop 12 end-structure +\ vec3_VEC3 +begin-structure vec3_VEC3 + drop 0 12 +field vec3_VEC3-data + drop 0 12 +field vec3_VEC3-rgb + drop 0 12 +field vec3_VEC3-RGB + drop 0 12 +field vec3_VEC3-xyz +drop 12 end-structure +\ vec3_VEC3_RGB +begin-structure vec3_VEC3_RGB + drop 8 4 +field vec3_VEC3_RGB-b + drop 0 4 +field vec3_VEC3_RGB-r + drop 4 4 +field vec3_VEC3_RGB-g +drop 12 end-structure +\ vec3_VEC3_RGB_b +begin-structure vec3_VEC3_RGB_b + drop 0 4 +field vec3_VEC3_RGB_b-b + drop 0 4 +field vec3_VEC3_RGB_b-blue + drop 0 4 +field vec3_VEC3_RGB_b-z + drop 0 4 +field vec3_VEC3_RGB_b-depth +drop 4 end-structure +\ vec3_VEC3_RGB_g +begin-structure vec3_VEC3_RGB_g + drop 0 4 +field vec3_VEC3_RGB_g-y + drop 0 4 +field vec3_VEC3_RGB_g-green + drop 0 4 +field vec3_VEC3_RGB_g-height + drop 0 4 +field vec3_VEC3_RGB_g-g +drop 4 end-structure +\ vec3_VEC3_RGB_r +begin-structure vec3_VEC3_RGB_r + drop 0 4 +field vec3_VEC3_RGB_r-x + drop 0 4 +field vec3_VEC3_RGB_r-r + drop 0 4 +field vec3_VEC3_RGB_r-red + drop 0 4 +field vec3_VEC3_RGB_r-width +drop 4 end-structure +\ struct vec2 +begin-structure struct-vec2 + drop 0 8 +field struct-vec2-VEC2 +drop 8 end-structure +\ vec2_VEC2 +begin-structure vec2_VEC2 + drop 0 8 +field vec2_VEC2-XY + drop 0 8 +field vec2_VEC2-data + drop 0 8 +field vec2_VEC2-xy +drop 8 end-structure +\ vec2_VEC2_XY +begin-structure vec2_VEC2_XY + drop 0 4 +field vec2_VEC2_XY-x + drop 4 4 +field vec2_VEC2_XY-y +drop 8 end-structure +\ vec2_VEC2_XY_y +begin-structure vec2_VEC2_XY_y + drop 0 4 +field vec2_VEC2_XY_y-alpha + drop 0 4 +field vec2_VEC2_XY_y-y + drop 0 4 +field vec2_VEC2_XY_y-height + drop 0 4 +field vec2_VEC2_XY_y-a +drop 4 end-structure +\ vec2_VEC2_XY_x +begin-structure vec2_VEC2_XY_x + drop 0 4 +field vec2_VEC2_XY_x-x + drop 0 4 +field vec2_VEC2_XY_x-l + drop 0 4 +field vec2_VEC2_XY_x-width + drop 0 4 +field vec2_VEC2_XY_x-luminance +drop 4 end-structure +\ ivec4 +begin-structure ivec4 + drop 0 16 +field ivec4-IVEC4 +drop 16 end-structure +\ ivec4_IVEC4 +begin-structure ivec4_IVEC4 + drop 0 16 +field ivec4_IVEC4-RGBA + drop 0 16 +field ivec4_IVEC4-data + drop 0 12 +field ivec4_IVEC4-rgb + drop 0 16 +field ivec4_IVEC4-rgba + drop 0 12 +field ivec4_IVEC4-xyz +drop 16 end-structure +\ ivec4_IVEC4_RGBA +begin-structure ivec4_IVEC4_RGBA + drop 8 4 +field ivec4_IVEC4_RGBA-b + drop 0 4 +field ivec4_IVEC4_RGBA-r + drop 4 4 +field ivec4_IVEC4_RGBA-g + drop 12 4 +field ivec4_IVEC4_RGBA-a +drop 16 end-structure +\ ivec4_IVEC4_RGBA_a +begin-structure ivec4_IVEC4_RGBA_a + drop 0 4 +field ivec4_IVEC4_RGBA_a-w + drop 0 4 +field ivec4_IVEC4_RGBA_a-alpha + drop 0 4 +field ivec4_IVEC4_RGBA_a-height + drop 0 4 +field ivec4_IVEC4_RGBA_a-a +drop 4 end-structure +\ ivec4_IVEC4_RGBA_b +begin-structure ivec4_IVEC4_RGBA_b + drop 0 4 +field ivec4_IVEC4_RGBA_b-b + drop 0 4 +field ivec4_IVEC4_RGBA_b-blue + drop 0 4 +field ivec4_IVEC4_RGBA_b-z + drop 0 4 +field ivec4_IVEC4_RGBA_b-width +drop 4 end-structure +\ ivec4_IVEC4_RGBA_g +begin-structure ivec4_IVEC4_RGBA_g + drop 0 4 +field ivec4_IVEC4_RGBA_g-y + drop 0 4 +field ivec4_IVEC4_RGBA_g-green + drop 0 4 +field ivec4_IVEC4_RGBA_g-g +drop 4 end-structure +\ ivec4_IVEC4_RGBA_r +begin-structure ivec4_IVEC4_RGBA_r + drop 0 4 +field ivec4_IVEC4_RGBA_r-x + drop 0 4 +field ivec4_IVEC4_RGBA_r-r + drop 0 4 +field ivec4_IVEC4_RGBA_r-red +drop 4 end-structure +\ ivec3 +begin-structure ivec3 + drop 0 12 +field ivec3-IVEC3 +drop 12 end-structure +\ ivec3_IVEC3 +begin-structure ivec3_IVEC3 + drop 0 12 +field ivec3_IVEC3-data + drop 0 12 +field ivec3_IVEC3-rgb + drop 0 12 +field ivec3_IVEC3-RGB + drop 0 12 +field ivec3_IVEC3-xyz + drop 0 8 +field ivec3_IVEC3-xy +drop 12 end-structure +\ ivec3_IVEC3_RGB +begin-structure ivec3_IVEC3_RGB + drop 8 4 +field ivec3_IVEC3_RGB-b + drop 0 4 +field ivec3_IVEC3_RGB-r + drop 4 4 +field ivec3_IVEC3_RGB-g +drop 12 end-structure +\ ivec3_IVEC3_RGB_b +begin-structure ivec3_IVEC3_RGB_b + drop 0 4 +field ivec3_IVEC3_RGB_b-b + drop 0 4 +field ivec3_IVEC3_RGB_b-blue + drop 0 4 +field ivec3_IVEC3_RGB_b-z + drop 0 4 +field ivec3_IVEC3_RGB_b-depth +drop 4 end-structure +\ ivec3_IVEC3_RGB_g +begin-structure ivec3_IVEC3_RGB_g + drop 0 4 +field ivec3_IVEC3_RGB_g-y + drop 0 4 +field ivec3_IVEC3_RGB_g-green + drop 0 4 +field ivec3_IVEC3_RGB_g-height + drop 0 4 +field ivec3_IVEC3_RGB_g-g +drop 4 end-structure +\ ivec3_IVEC3_RGB_r +begin-structure ivec3_IVEC3_RGB_r + drop 0 4 +field ivec3_IVEC3_RGB_r-x + drop 0 4 +field ivec3_IVEC3_RGB_r-r + drop 0 4 +field ivec3_IVEC3_RGB_r-red + drop 0 4 +field ivec3_IVEC3_RGB_r-width +drop 4 end-structure +\ ivec2 +begin-structure ivec2 + drop 0 8 +field ivec2-IVEC2 +drop 8 end-structure +\ ivec2_IVEC2 +begin-structure ivec2_IVEC2 + drop 0 8 +field ivec2_IVEC2-XY + drop 0 8 +field ivec2_IVEC2-data + drop 0 8 +field ivec2_IVEC2-xy +drop 8 end-structure +\ ivec2_IVEC2_XY +begin-structure ivec2_IVEC2_XY + drop 0 4 +field ivec2_IVEC2_XY-x + drop 4 4 +field ivec2_IVEC2_XY-y +drop 8 end-structure +\ ivec2_IVEC2_XY_y +begin-structure ivec2_IVEC2_XY_y + drop 0 4 +field ivec2_IVEC2_XY_y-alpha + drop 0 4 +field ivec2_IVEC2_XY_y-y + drop 0 4 +field ivec2_IVEC2_XY_y-height + drop 0 4 +field ivec2_IVEC2_XY_y-a +drop 4 end-structure +\ ivec2_IVEC2_XY_x +begin-structure ivec2_IVEC2_XY_x + drop 0 4 +field ivec2_IVEC2_XY_x-x + drop 0 4 +field ivec2_IVEC2_XY_x-l + drop 0 4 +field ivec2_IVEC2_XY_x-width + drop 0 4 +field ivec2_IVEC2_XY_x-luminance +drop 4 end-structure +\ vector_t +begin-structure vector_t + drop 0 8 +field vector_t-items + drop 16 8 +field vector_t-size + drop 24 8 +field vector_t-item_size + drop 8 8 +field vector_t-capacity +drop 32 end-structure +\ texture_atlas_t +begin-structure texture_atlas_t + drop 48 8 +field texture_atlas_t-data + drop 40 4 +field texture_atlas_t-id + drop 0 8 +field texture_atlas_t-nodes + drop 16 8 +field texture_atlas_t-height + drop 32 8 +field texture_atlas_t-used + drop 8 8 +field texture_atlas_t-width + drop 24 8 +field texture_atlas_t-depth +drop 56 end-structure +\ kerning_t +begin-structure kerning_t + drop 0 4 +field kerning_t-charcode + drop 4 4 +field kerning_t-kerning +drop 8 end-structure +\ texture_glyph_t +begin-structure texture_glyph_t + drop 0 4 +field texture_glyph_t-charcode + drop 44 4 +field texture_glyph_t-t0 + drop 4 4 +field texture_glyph_t-id + drop 52 4 +field texture_glyph_t-t1 + drop 16 8 +field texture_glyph_t-height + drop 24 4 +field texture_glyph_t-offset_x + drop 40 4 +field texture_glyph_t-s0 + drop 8 8 +field texture_glyph_t-width + drop 28 4 +field texture_glyph_t-offset_y + drop 32 4 +field texture_glyph_t-advance_x + drop 48 4 +field texture_glyph_t-s1 + drop 36 4 +field texture_glyph_t-advance_y + drop 56 8 +field texture_glyph_t-kerning +drop 64 end-structure +\ texture_font_t +begin-structure texture_font_t + drop 0 8 +field texture_font_t-glyphs + drop 16 8 +field texture_font_t-filename + drop 32 4 +field texture_font_t-filtering + drop 24 4 +field texture_font_t-size + drop 36 5 +field texture_font_t-lcd_weights + drop 44 4 +field texture_font_t-height + drop 8 8 +field texture_font_t-atlas + drop 28 4 +field texture_font_t-hinting + drop 48 4 +field texture_font_t-linegap + drop 52 4 +field texture_font_t-ascender + drop 56 4 +field texture_font_t-descender +drop 64 end-structure + +\ ------===< functions >===------- +c-function vector_new vector_new n -- a +c-function vector_delete vector_delete a -- void +c-function vector_get vector_get a n -- a +c-function vector_front vector_front a -- a +c-function vector_back vector_back a -- a +c-function vector_contains vector_contains a a a -- n +c-function vector_empty vector_empty a -- n +c-function vector_size vector_size a -- n +c-function vector_reserve vector_reserve a n -- void +c-function vector_capacity vector_capacity a -- n +c-function vector_shrink vector_shrink a -- void +c-function vector_clear vector_clear a -- void +c-function vector_set vector_set a n a -- void +c-function vector_erase vector_erase a n -- void +c-function vector_erase_range vector_erase_range a n n -- void +c-function vector_push_back vector_push_back a a -- void +c-function vector_pop_back vector_pop_back a -- void +c-function vector_resize vector_resize a n -- void +c-function vector_insert vector_insert a n a -- void +c-function vector_insert_data vector_insert_data a n a n -- void +c-function vector_push_back_data vector_push_back_data a a n -- void +c-function vector_sort vector_sort a a -- void +c-function texture_atlas_new texture_atlas_new n n n -- a +c-function texture_atlas_delete texture_atlas_delete a -- void +c-function texture_atlas_upload texture_atlas_upload a -- void +\c #define texture_atlas_get_regionp(self, w, h, x) { ivec4* _x=x; *_x=texture_atlas_get_region(self,w,h); } +c-function texture_atlas_get_region texture_atlas_get_regionp a n n a -- void +c-function texture_atlas_set_region texture_atlas_set_region a n n n n a n -- void +c-function texture_atlas_clear texture_atlas_clear a -- void +c-function texture_font_new texture_font_new a a r -- a +c-function texture_font_delete texture_font_delete a -- void +c-function texture_font_get_glyph texture_font_get_glyph a n -- a +c-function texture_font_load_glyphs texture_font_load_glyphs a a -- n +c-function texture_glyph_get_kerning texture_glyph_get_kerning a n -- r +end-c-library +previous set-current