diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f06d0cffb8..26fb1e1372 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: - name: Install system dependencies run: | sudo apt-get update - sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev + sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev libmbedtls-dev libpng-dev libturbojpeg-dev libuv1-dev libvorbis-dev - uses: krdlab/setup-haxe@v1 with: @@ -59,6 +59,7 @@ jobs: if-no-files-found: error - uses: actions/upload-artifact@v2 + if: ${{ matrix.haxe-version == '4.2.5' }} # upload for only one version of Haxe with: name: Linux64-NDLL path: | @@ -66,6 +67,14 @@ jobs: !**/.gitignore if-no-files-found: error + - uses: actions/upload-artifact@v2 + if: ${{ matrix.haxe-version == '4.2.5' }} # upload for only one version of Haxe + with: + name: Linux64-Hashlink + path: | + templates/bin/hl/Linux64 + if-no-files-found: error + macos-ndll: runs-on: macos-10.15 steps: @@ -84,6 +93,10 @@ jobs: - name: Install Haxe dependencies run: | + pushd project/lib/hashlink + brew update + brew bundle + popd haxelib install hxcpp --quiet haxelib install format --quiet haxelib install hxp --quiet @@ -111,6 +124,13 @@ jobs: !**/.gitignore if-no-files-found: error + - uses: actions/upload-artifact@v2 + with: + name: Mac64-Hashlink + path: | + templates/bin/hl/Mac64 + if-no-files-found: error + windows-ndll: runs-on: windows-latest steps: @@ -165,6 +185,19 @@ jobs: !**/.gitignore if-no-files-found: error + # - uses: actions/upload-artifact@v2 + # with: + # name: Windows-Hashlink + # path: | + # templates/bin/hl/Windows + # if-no-files-found: error + - uses: actions/upload-artifact@v2 + with: + name: Windows64-Hashlink + path: | + templates/bin/hl/Windows64 + if-no-files-found: error + android-ndll: needs: macos-ndll runs-on: macos-10.15 @@ -315,7 +348,7 @@ jobs: haxelib dev lime $GITHUB_WORKSPACE haxelib run lime rebuild tools -nocolor -verbose -nocffi haxelib run lime setup -alias -y -nocffi - + cp project/lib/hashlink/other/osx/entitlements.xml templates/bin/hl/entitlements.xml - uses: actions/download-artifact@v2 with: name: Android-NDLL @@ -351,6 +384,26 @@ jobs: name: Windows64-NDLL path: ndll/Windows64/ + # - uses: actions/download-artifact@v2 + # with: + # name: Windows-Hashlink + # path: templates/bin/hl/Windows + + - uses: actions/download-artifact@v2 + with: + name: Windows64-Hashlink + path: templates/bin/hl/Windows64 + + - uses: actions/download-artifact@v2 + with: + name: Mac64-Hashlink + path: templates/bin/hl/Mac64 + + - uses: actions/download-artifact@v2 + with: + name: Linux64-Hashlink + path: templates/bin/hl/Linux64 + - uses: actions/upload-artifact@v2 with: name: lime-haxelib diff --git a/.gitignore b/.gitignore index aea1ac3358..37e1b844d6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,14 @@ Export/ ndll/*/lime* ndll/*/liblime* +ndll/*/*.hdll +ndll/*/*.hash +ndll/*/*.so +ndll/*/*.dylib +ndll/*/*.lib +ndll/*/hl* +ndll/*/*.dll +templates/bin/hl/* project/all_objs project/obj project/vc*.pdb diff --git a/.gitmodules b/.gitmodules index 3a36940381..c2d654adfb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -58,3 +58,7 @@ [submodule "project/lib/mojoal"] path = project/lib/mojoal url = https://github.com/openfl/libmojoal +[submodule "project/lib/hashlink"] + path = project/lib/hashlink + url = https://github.com/HaxeFoundation/hashlink + \ No newline at end of file diff --git a/project/Build.xml b/project/Build.xml index 93dfe6bb53..b262e07067 100644 --- a/project/Build.xml +++ b/project/Build.xml @@ -8,7 +8,7 @@ - + @@ -63,10 +63,10 @@
- - - - + + + + @@ -122,6 +122,8 @@
+ +
@@ -216,12 +218,12 @@
- - - - - - + + + + + + @@ -229,9 +231,9 @@
- - - + + + @@ -323,7 +325,7 @@ - + @@ -420,7 +422,7 @@ - + @@ -434,14 +436,14 @@ - +
- + @@ -453,12 +455,12 @@ - + - +
@@ -498,8 +500,8 @@ - - + + @@ -517,9 +519,9 @@ - - - + + + diff --git a/project/BuildHashlink.xml b/project/BuildHashlink.xml new file mode 100644 index 0000000000..b0a8e0f123 --- /dev/null +++ b/project/BuildHashlink.xml @@ -0,0 +1,497 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+
+ + + + + + + + + + + +
+ + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/project/include/hl.h b/project/include/hl.h deleted file mode 100644 index 75a9d48f1b..0000000000 --- a/project/include/hl.h +++ /dev/null @@ -1,910 +0,0 @@ -/* - * Copyright (C)2005-2016 Haxe Foundation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ -#ifndef HL_H -#define HL_H - -/** - Detailed documentation can be found here: - https://github.com/HaxeFoundation/hashlink/wiki/ -**/ - -#define HL_VERSION 0x010A00 - -#if defined(_WIN32) -# define HL_WIN -# ifndef _DURANGO -# define HL_WIN_DESKTOP -# endif -#endif - -#if defined(__APPLE__) || defined(__MACH__) || defined(macintosh) -#include -#if TARGET_OS_IOS -#define HL_IOS -#elif TARGET_OS_TV -#define HL_TVOS -#elif TARGET_OS_MAC -#define HL_MAC -#endif -#endif - -#ifdef __ANDROID__ -# define HL_ANDROID -#endif - -#if defined(linux) || defined(__linux__) -# define HL_LINUX -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif -#endif - -#if defined(HL_IOS) || defined(HL_ANDROID) || defined(HL_TVOS) -# define HL_MOBILE -#endif - -#ifdef __ORBIS__ -# define HL_PS -#endif - -#ifdef __NX__ -# define HL_NX -#endif - -#ifdef _DURANGO -# define HL_XBO -#endif - -#if defined(HL_PS) || defined(HL_NX) || defined(HL_XBO) -# define HL_CONSOLE -#endif - -#if (defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) && !defined(HL_CONSOLE) -# define HL_BSD -#endif - -#if defined(_64BITS) || defined(__x86_64__) || defined(_M_X64) || defined(__LP64__) -# define HL_64 -#endif - -#if defined(__GNUC__) -# define HL_GCC -#endif - -#if defined(__MINGW32__) -# define HL_MINGW -#endif - -#if defined(__CYGWIN__) -# define HL_CYGWIN -#endif - -#if defined(__llvm__) -# define HL_LLVM -#endif - -#if defined(__clang__) -# define HL_CLANG -#endif - -#if defined(_MSC_VER) && !defined(HL_LLVM) -# define HL_VCC -# pragma warning(disable:4996) // remove deprecated C API usage warnings -# pragma warning(disable:4055) // void* - to - function cast -# pragma warning(disable:4152) // void* - to - function cast -# pragma warning(disable:4201) // anonymous struct -# pragma warning(disable:4127) // while( true ) -# pragma warning(disable:4710) // inline disabled -# pragma warning(disable:4711) // inline activated -# pragma warning(disable:4255) // windows include -# pragma warning(disable:4820) // windows include -# pragma warning(disable:4668) // windows include -# pragma warning(disable:4738) // return float bad performances -#endif - -#if defined(HL_VCC) || defined(HL_MINGW) || defined(HL_CYGWIN) -# define HL_WIN_CALL -#endif - -#ifdef _DEBUG -# define HL_DEBUG -#endif - -#ifndef HL_CONSOLE -# define HL_TRACK_ENABLE -#endif - -#ifndef HL_NO_THREADS -# define HL_THREADS -# ifdef HL_VCC -# define HL_THREAD_VAR __declspec( thread ) -# define HL_THREAD_STATIC_VAR HL_THREAD_VAR static -# else -# define HL_THREAD_VAR __thread -# define HL_THREAD_STATIC_VAR static HL_THREAD_VAR -# endif -#else -# define HL_THREAD_VAR -# define HL_THREAD_STATIC_VAR static -#endif - -#include -#ifndef HL_VCC -# include -#endif - -#if defined(HL_VCC) || defined(HL_MINGW) -# define EXPORT __declspec( dllexport ) -# define IMPORT __declspec( dllimport ) -#else -# define EXPORT -# define IMPORT extern -#endif - -#ifdef HL_64 -# define HL_WSIZE 8 -# define IS_64 1 -# ifdef HL_VCC -# define _PTR_FMT L"%IX" -# else -# define _PTR_FMT u"%lX" -# endif -#else -# define HL_WSIZE 4 -# define IS_64 0 -# ifdef HL_VCC -# define _PTR_FMT L"%IX" -# else -# define _PTR_FMT u"%X" -# endif -#endif - -#ifdef __cplusplus -# define C_FUNCTION_BEGIN extern "C" { -# define C_FUNCTION_END }; -#else -# define C_FUNCTION_BEGIN -# define C_FUNCTION_END -# ifndef true -# define true 1 -# define false 0 - typedef unsigned char bool; -# endif -#endif - -typedef intptr_t int_val; -typedef long long int64; -typedef unsigned long long uint64; - -#include -#include -#include - -#if defined(LIBHL_EXPORTS) -#define HL_API extern EXPORT -#elif defined(LIBHL_STATIC) -#define HL_API extern -#else -#define HL_API IMPORT -#endif - -// -------------- UNICODE ----------------------------------- - -#if defined(HL_WIN) && !defined(HL_LLVM) -#if defined(HL_WIN_DESKTOP) && !defined(HL_MINGW) -// # include -#elif defined(HL_WIN_DESKTOP) && defined(HL_MINGW) -// # include -#else -# include -#endif -# include -typedef wchar_t uchar; -# define USTR(str) L##str -# define HL_NATIVE_UCHAR_FUN -# define usprintf swprintf -# define uprintf wprintf -# define ustrlen wcslen -# define ustrdup _wcsdup -HL_API int uvszprintf( uchar *out, int out_size, const uchar *fmt, va_list arglist ); -# define utod(s,end) wcstod(s,end) -# define utoi(s,end) wcstol(s,end,10) -# define ucmp(a,b) wcscmp(a,b) -# define utostr(out,size,str) wcstombs(out,str,size) -#elif defined(HL_MAC) -typedef uint16_t uchar; -# undef USTR -# define USTR(str) u##str -#else -# include -#if defined(HL_IOS) || defined(HL_TVOS) || defined(HL_MAC) -#include -#include -#ifdef HL_MAC -typedef uint16_t char16_t; -typedef uint32_t char32_t; -#endif -#elif defined(HL_NATIVE_UCHAR_FUN) -# include -#elif __cplusplus <= 199711L -# include -typedef uint16_t uchar16_t; -typedef uint32_t uchar32_t; -#ifndef EMSCRIPTEN -typedef int32_t char32_t; -typedef int16_t char16_t; -#endif -#endif -typedef char16_t uchar; -# undef USTR -# define USTR(str) u##str -#endif - -#ifndef HL_NATIVE_UCHAR_FUN -C_FUNCTION_BEGIN -HL_API int ustrlen( const uchar *str ); -HL_API uchar *ustrdup( const uchar *str ); -HL_API double utod( const uchar *str, uchar **end ); -HL_API int utoi( const uchar *str, uchar **end ); -HL_API int ucmp( const uchar *a, const uchar *b ); -HL_API int utostr( char *out, int out_size, const uchar *str ); -HL_API int usprintf( uchar *out, int out_size, const uchar *fmt, ... ); -HL_API int uvszprintf( uchar *out, int out_size, const uchar *fmt, va_list arglist ); -HL_API void uprintf( const uchar *fmt, const uchar *str ); -C_FUNCTION_END -#endif - -#if defined(HL_VCC) -# define hl_debug_break() if( IsDebuggerPresent() ) __debugbreak() -#elif defined(HL_PS) && defined(_DEBUG) -# define hl_debug_break() __debugbreak() -#elif defined(HL_NX) -C_FUNCTION_BEGIN -HL_API void hl_debug_break( void ); -C_FUNCTION_END -#elif defined(HL_LINUX) && defined(__i386__) -# ifdef HL_64 -# define hl_debug_break() \ - if( hl_detect_debugger() ) \ - __asm__("0: int3;" \ - ".pushsection embed-breakpoints;" \ - ".quad 0b;" \ - ".popsection") -# else -# define hl_debug_break() \ - if( hl_detect_debugger() ) \ - __asm__("0: int3;" \ - ".pushsection embed-breakpoints;" \ - ".long 0b;" \ - ".popsection") -# endif -#else -# define hl_debug_break() -#endif - -#ifdef HL_VCC -# define HL_NO_RETURN(f) __declspec(noreturn) f -# define HL_UNREACHABLE -#else -# define HL_NO_RETURN(f) f __attribute__((noreturn)) -# define HL_UNREACHABLE __builtin_unreachable() -#endif - -// ---- TYPES ------------------------------------------- - -typedef enum { - HVOID = 0, - HUI8 = 1, - HUI16 = 2, - HI32 = 3, - HI64 = 4, - HF32 = 5, - HF64 = 6, - HBOOL = 7, - HBYTES = 8, - HDYN = 9, - HFUN = 10, - HOBJ = 11, - HARRAY = 12, - HTYPE = 13, - HREF = 14, - HVIRTUAL= 15, - HDYNOBJ = 16, - HABSTRACT=17, - HENUM = 18, - HNULL = 19, - HMETHOD = 20, - HSTRUCT = 21, - // --------- - HLAST = 22, - _H_FORCE_INT = 0x7FFFFFFF -} hl_type_kind; - -typedef struct hl_type hl_type; -typedef struct hl_runtime_obj hl_runtime_obj; -typedef struct hl_alloc_block hl_alloc_block; -typedef struct { hl_alloc_block *cur; } hl_alloc; -typedef struct _hl_field_lookup hl_field_lookup; - -typedef struct { - hl_alloc alloc; - void **functions_ptrs; - hl_type **functions_types; -} hl_module_context; - -typedef struct { - hl_type **args; - hl_type *ret; - int nargs; - // storage for closure - hl_type *parent; - struct { - hl_type_kind kind; - void *p; - } closure_type; - struct { - hl_type **args; - hl_type *ret; - int nargs; - hl_type *parent; - } closure; -} hl_type_fun; - -typedef struct { - const uchar *name; - hl_type *t; - int hashed_name; -} hl_obj_field; - -typedef struct { - const uchar *name; - int findex; - int pindex; - int hashed_name; -} hl_obj_proto; - -typedef struct { - int nfields; - int nproto; - int nbindings; - const uchar *name; - hl_type *super; - hl_obj_field *fields; - hl_obj_proto *proto; - int *bindings; - void **global_value; - hl_module_context *m; - hl_runtime_obj *rt; -} hl_type_obj; - -typedef struct { - hl_obj_field *fields; - int nfields; - // runtime - int dataSize; - int *indexes; - hl_field_lookup *lookup; -} hl_type_virtual; - -typedef struct { - const uchar *name; - int nparams; - hl_type **params; - int size; - bool hasptr; - int *offsets; -} hl_enum_construct; - -typedef struct { - const uchar *name; - int nconstructs; - hl_enum_construct *constructs; - void **global_value; -} hl_type_enum; - -struct hl_type { - hl_type_kind kind; - union { - const uchar *abs_name; - hl_type_fun *fun; - hl_type_obj *obj; - hl_type_enum *tenum; - hl_type_virtual *virt; - hl_type *tparam; - }; - void **vobj_proto; - unsigned int *mark_bits; -}; - -C_FUNCTION_BEGIN - -HL_API int hl_type_size( hl_type *t ); -#define hl_pad_size(size,t) ((t)->kind == HVOID ? 0 : ((-(size)) & (hl_type_size(t) - 1))) -HL_API int hl_pad_struct( int size, hl_type *t ); - -HL_API hl_runtime_obj *hl_get_obj_rt( hl_type *ot ); -HL_API hl_runtime_obj *hl_get_obj_proto( hl_type *ot ); -HL_API void hl_flush_proto( hl_type *ot ); -HL_API void hl_init_enum( hl_type *et, hl_module_context *m ); - -/* -------------------- VALUES ------------------------------ */ - -typedef unsigned char vbyte; - -typedef struct { - hl_type *t; -# ifndef HL_64 - int __pad; // force align on 16 bytes for double -# endif - union { - bool b; - unsigned char ui8; - unsigned short ui16; - int i; - float f; - double d; - vbyte *bytes; - void *ptr; - int64 i64; - } v; -} vdynamic; - -typedef struct { - hl_type *t; - /* fields data */ -} vobj; - -typedef struct _vvirtual vvirtual; -struct _vvirtual { - hl_type *t; - vdynamic *value; - vvirtual *next; -}; - -#define hl_vfields(v) ((void**)(((vvirtual*)(v))+1)) - -typedef struct { - hl_type *t; - hl_type *at; - int size; - int __pad; // force align on 16 bytes for double -} varray; - -typedef struct _vclosure { - hl_type *t; - void *fun; - int hasValue; -# ifdef HL_64 - int __pad; -# endif - void *value; -} vclosure; - -typedef struct { - vclosure cl; - vclosure *wrappedFun; -} vclosure_wrapper; - -struct _hl_field_lookup { - hl_type *t; - int hashed_name; - int field_index; // negative or zero : index in methods -}; - -typedef struct { - void *ptr; - hl_type *closure; - int fid; -} hl_runtime_binding; - -struct hl_runtime_obj { - hl_type *t; - // absolute - int nfields; - int nproto; - int size; - int nmethods; - int nbindings; - bool hasPtr; - void **methods; - int *fields_indexes; - hl_runtime_binding *bindings; - hl_runtime_obj *parent; - const uchar *(*toStringFun)( vdynamic *obj ); - int (*compareFun)( vdynamic *a, vdynamic *b ); - vdynamic *(*castFun)( vdynamic *obj, hl_type *t ); - vdynamic *(*getFieldFun)( vdynamic *obj, int hfield ); - // relative - int nlookup; - hl_field_lookup *lookup; -}; - -typedef struct { - hl_type *t; - hl_field_lookup *lookup; - char *raw_data; - void **values; - int nfields; - int raw_size; - int nvalues; - vvirtual *virtuals; -} vdynobj; - -typedef struct _venum { - hl_type *t; - int index; -} venum; - -HL_API hl_type hlt_void; -HL_API hl_type hlt_i32; -HL_API hl_type hlt_i64; -HL_API hl_type hlt_f64; -HL_API hl_type hlt_f32; -HL_API hl_type hlt_dyn; -HL_API hl_type hlt_array; -HL_API hl_type hlt_bytes; -HL_API hl_type hlt_dynobj; -HL_API hl_type hlt_bool; -HL_API hl_type hlt_abstract; - -HL_API double hl_nan( void ); -HL_API bool hl_is_dynamic( hl_type *t ); -#define hl_is_ptr(t) ((t)->kind >= HBYTES) -HL_API bool hl_same_type( hl_type *a, hl_type *b ); -HL_API bool hl_safe_cast( hl_type *t, hl_type *to ); - -#define hl_aptr(a,t) ((t*)(((varray*)(a))+1)) - -HL_API varray *hl_alloc_array( hl_type *t, int size ); -HL_API vdynamic *hl_alloc_dynamic( hl_type *t ); -HL_API vdynamic *hl_alloc_dynbool( bool b ); -HL_API vdynamic *hl_alloc_obj( hl_type *t ); -HL_API venum *hl_alloc_enum( hl_type *t, int index ); -HL_API vvirtual *hl_alloc_virtual( hl_type *t ); -HL_API vdynobj *hl_alloc_dynobj( void ); -HL_API vbyte *hl_alloc_bytes( int size ); -HL_API vbyte *hl_copy_bytes( const vbyte *byte, int size ); -HL_API int hl_utf8_length( const vbyte *s, int pos ); -HL_API int hl_from_utf8( uchar *out, int outLen, const char *str ); -HL_API char *hl_to_utf8( const uchar *bytes ); -HL_API uchar *hl_to_utf16( const char *str ); -HL_API vdynamic *hl_virtual_make_value( vvirtual *v ); -HL_API hl_obj_field *hl_obj_field_fetch( hl_type *t, int fid ); - -HL_API int hl_hash( vbyte *name ); -HL_API int hl_hash_utf8( const char *str ); // no cache -HL_API int hl_hash_gen( const uchar *name, bool cache_name ); -HL_API vbyte *hl_field_name( int hash ); - -#define hl_error(msg, ...) hl_throw(hl_alloc_strbytes(USTR(msg), ## __VA_ARGS__)) - -HL_API vdynamic *hl_alloc_strbytes( const uchar *msg, ... ); -HL_API void hl_assert( void ); -HL_API HL_NO_RETURN( void hl_throw( vdynamic *v ) ); -HL_API HL_NO_RETURN( void hl_rethrow( vdynamic *v ) ); -HL_API void hl_setup_longjump( void *j ); -HL_API void hl_setup_exception( void *resolve_symbol, void *capture_stack ); -HL_API void hl_dump_stack( void ); -HL_API varray *hl_exception_stack( void ); -HL_API bool hl_detect_debugger( void ); - -HL_API vvirtual *hl_to_virtual( hl_type *vt, vdynamic *obj ); -HL_API void hl_init_virtual( hl_type *vt, hl_module_context *ctx ); -HL_API hl_field_lookup *hl_lookup_find( hl_field_lookup *l, int size, int hash ); -HL_API hl_field_lookup *hl_lookup_insert( hl_field_lookup *l, int size, int hash, hl_type *t, int index ); - -HL_API int hl_dyn_geti( vdynamic *d, int hfield, hl_type *t ); -HL_API void *hl_dyn_getp( vdynamic *d, int hfield, hl_type *t ); -HL_API float hl_dyn_getf( vdynamic *d, int hfield ); -HL_API double hl_dyn_getd( vdynamic *d, int hfield ); - -HL_API int hl_dyn_casti( void *data, hl_type *t, hl_type *to ); -HL_API void *hl_dyn_castp( void *data, hl_type *t, hl_type *to ); -HL_API float hl_dyn_castf( void *data, hl_type *t ); -HL_API double hl_dyn_castd( void *data, hl_type *t ); - -#define hl_invalid_comparison 0xAABBCCDD -HL_API int hl_dyn_compare( vdynamic *a, vdynamic *b ); -HL_API vdynamic *hl_make_dyn( void *data, hl_type *t ); -HL_API void hl_write_dyn( void *data, hl_type *t, vdynamic *v, bool is_tmp ); - -HL_API void hl_dyn_seti( vdynamic *d, int hfield, hl_type *t, int value ); -HL_API void hl_dyn_setp( vdynamic *d, int hfield, hl_type *t, void *ptr ); -HL_API void hl_dyn_setf( vdynamic *d, int hfield, float f ); -HL_API void hl_dyn_setd( vdynamic *d, int hfield, double v ); - -typedef enum { - OpAdd, - OpSub, - OpMul, - OpMod, - OpDiv, - OpShl, - OpShr, - OpUShr, - OpAnd, - OpOr, - OpXor, - OpLast -} DynOp; -HL_API vdynamic *hl_dyn_op( int op, vdynamic *a, vdynamic *b ); - -HL_API vclosure *hl_alloc_closure_void( hl_type *t, void *fvalue ); -HL_API vclosure *hl_alloc_closure_ptr( hl_type *fullt, void *fvalue, void *ptr ); -HL_API vclosure *hl_make_fun_wrapper( vclosure *c, hl_type *to ); -HL_API void *hl_wrapper_call( void *value, void **args, vdynamic *ret ); -HL_API void *hl_dyn_call_obj( vdynamic *obj, hl_type *ft, int hfield, void **args, vdynamic *ret ); -HL_API vdynamic *hl_dyn_call( vclosure *c, vdynamic **args, int nargs ); -HL_API vdynamic *hl_dyn_call_safe( vclosure *c, vdynamic **args, int nargs, bool *isException ); - -/* - These macros should be only used when the closure `cl` has been type checked beforehand - so you are sure it's of the used typed. Otherwise use hl_dyn_call -*/ -#define hl_call0(ret,cl) \ - (cl->hasValue ? ((ret(*)(vdynamic*))cl->fun)(cl->value) : ((ret(*)())cl->fun)()) -#define hl_call1(ret,cl,t,v) \ - (cl->hasValue ? ((ret(*)(vdynamic*,t))cl->fun)(cl->value,v) : ((ret(*)(t))cl->fun)(v)) -#define hl_call2(ret,cl,t1,v1,t2,v2) \ - (cl->hasValue ? ((ret(*)(vdynamic*,t1,t2))cl->fun)(cl->value,v1,v2) : ((ret(*)(t1,t2))cl->fun)(v1,v2)) -#define hl_call3(ret,cl,t1,v1,t2,v2,t3,v3) \ - (cl->hasValue ? ((ret(*)(vdynamic*,t1,t2,t3))cl->fun)(cl->value,v1,v2,v3) : ((ret(*)(t1,t2,t3))cl->fun)(v1,v2,v3)) -#define hl_call4(ret,cl,t1,v1,t2,v2,t3,v3,t4,v4) \ - (cl->hasValue ? ((ret(*)(vdynamic*,t1,t2,t3,t4))cl->fun)(cl->value,v1,v2,v3,v4) : ((ret(*)(t1,t2,t3,t4))cl->fun)(v1,v2,v3,v4)) - -// ----------------------- THREADS -------------------------------------------------- - -struct _hl_thread; -struct _hl_mutex; -struct _hl_tls; -typedef struct _hl_thread hl_thread; -typedef struct _hl_mutex hl_mutex; -typedef struct _hl_tls hl_tls; - -HL_API hl_thread *hl_thread_start( void *callback, void *param, bool withGC ); -HL_API hl_thread *hl_thread_current( void ); -HL_API void hl_thread_yield(void); -HL_API void hl_register_thread( void *stack_top ); -HL_API void hl_unregister_thread( void ); - -HL_API hl_mutex *hl_mutex_alloc( bool gc_thread ); -HL_API void hl_mutex_acquire( hl_mutex *l ); -HL_API bool hl_mutex_try_acquire( hl_mutex *l ); -HL_API void hl_mutex_release( hl_mutex *l ); -HL_API void hl_mutex_free( hl_mutex *l ); - -HL_API hl_tls *hl_tls_alloc( bool gc_value ); -HL_API void hl_tls_set( hl_tls *l, void *value ); -HL_API void *hl_tls_get( hl_tls *l ); -HL_API void hl_tls_free( hl_tls *l ); - -// ----------------------- ALLOC -------------------------------------------------- - -#define MEM_HAS_PTR(kind) (!((kind)&2)) -#define MEM_KIND_DYNAMIC 0 -#define MEM_KIND_RAW 1 -#define MEM_KIND_NOPTR 2 -#define MEM_KIND_FINALIZER 3 -#define MEM_ALIGN_DOUBLE 128 -#define MEM_ZERO 256 - -HL_API void *hl_gc_alloc_gen( hl_type *t, int size, int flags ); -HL_API void hl_add_root( void *ptr ); -HL_API void hl_remove_root( void *ptr ); -HL_API void hl_gc_major( void ); -HL_API bool hl_is_gc_ptr( void *ptr ); - -HL_API void hl_blocking( bool b ); -HL_API bool hl_is_blocking( void ); - -typedef void (*hl_types_dump)( void (*)( void *, int) ); -HL_API void hl_gc_set_dump_types( hl_types_dump tdump ); - -#define hl_gc_alloc_noptr(size) hl_gc_alloc_gen(&hlt_bytes,size,MEM_KIND_NOPTR) -#define hl_gc_alloc(t,size) hl_gc_alloc_gen(t,size,MEM_KIND_DYNAMIC) -#define hl_gc_alloc_raw(size) hl_gc_alloc_gen(&hlt_abstract,size,MEM_KIND_RAW) -#define hl_gc_alloc_finalizer(size) hl_gc_alloc_gen(&hlt_abstract,size,MEM_KIND_FINALIZER) - -HL_API void hl_alloc_init( hl_alloc *a ); -HL_API void *hl_malloc( hl_alloc *a, int size ); -HL_API void *hl_zalloc( hl_alloc *a, int size ); -HL_API void hl_free( hl_alloc *a ); - -HL_API void hl_global_init( void ); -HL_API void hl_global_free( void ); - -HL_API void *hl_alloc_executable_memory( int size ); -HL_API void hl_free_executable_memory( void *ptr, int size ); - -// ----------------------- BUFFER -------------------------------------------------- - -typedef struct hl_buffer hl_buffer; - -HL_API hl_buffer *hl_alloc_buffer( void ); -HL_API void hl_buffer_val( hl_buffer *b, vdynamic *v ); -HL_API void hl_buffer_char( hl_buffer *b, uchar c ); -HL_API void hl_buffer_str( hl_buffer *b, const uchar *str ); -HL_API void hl_buffer_cstr( hl_buffer *b, const char *str ); -HL_API void hl_buffer_str_sub( hl_buffer *b, const uchar *str, int len ); -HL_API int hl_buffer_length( hl_buffer *b ); -HL_API uchar *hl_buffer_content( hl_buffer *b, int *len ); -HL_API uchar *hl_to_string( vdynamic *v ); -HL_API const uchar *hl_type_str( hl_type *t ); -HL_API void hl_throw_buffer( hl_buffer *b ); - -// ----------------------- FFI ------------------------------------------------------ - -// match GNU C++ mangling -#define TYPE_STR "vcsilfdbBDPOATR??X?N" - -#undef _VOID -#define _NO_ARG -#define _VOID "v" -#define _I8 "c" -#define _I16 "s" -#define _I32 "i" -#define _I64 "l" -#define _F32 "f" -#define _F64 "d" -#define _BOOL "b" -#define _BYTES "B" -#define _DYN "D" -#define _FUN(t, args) "P" args "_" t -#define _OBJ(fields) "O" fields "_" -#define _ARR "A" -#define _TYPE "T" -#define _REF(t) "R" t -#define _ABSTRACT(name) "X" #name "_" -#undef _NULL -#define _NULL(t) "N" t - -#undef _STRING -#define _STRING _OBJ(_BYTES _I32) - -typedef struct { - hl_type *t; - uchar *bytes; - int length; -} vstring; - -// #define DEFINE_PRIM(t,name,args) DEFINE_PRIM_WITH_NAME(t,name,args,name) -#define DEFINE_HL_PRIM(t,name,args) DEFINE_PRIM_WITH_NAME(t,name,args,name) -#define _DEFINE_PRIM_WITH_NAME(t,name,args,realName) C_FUNCTION_BEGIN EXPORT void *hlp_##realName( const char **sign ) { *sign = _FUN(t,args); return (void*)(&HL_NAME(name)); } C_FUNCTION_END - -#if !defined(HL_NAME) -# define HL_NAME(p) p -# ifdef LIBHL_EXPORTS -# define HL_PRIM EXPORT -# undef DEFINE_PRIM -# define DEFINE_PRIM(t,name,args) _DEFINE_PRIM_WITH_NAME(t,hl_##name,args,name) -# define DEFINE_PRIM_WITH_NAME _DEFINE_PRIM_WITH_NAME -# else -# define HL_PRIM -# define DEFINE_PRIM_WITH_NAME(t,name,args,realName) -# endif -#elif defined(LIBHL_STATIC) -# ifdef __cplusplus -# define HL_PRIM extern "C" -# else -# define HL_PRIM -# endif -#define DEFINE_PRIM_WITH_NAME(t,name,args,realName) -#else -# ifdef __cplusplus -# define HL_PRIM extern "C" EXPORT -# else -# define HL_PRIM EXPORT -# endif -# define DEFINE_PRIM_WITH_NAME _DEFINE_PRIM_WITH_NAME -#endif - -#if defined(HL_GCC) && !defined(HL_CONSOLE) -# ifdef HL_CLANG -# define HL_NO_OPT __attribute__ ((optnone)) -# else -# define HL_NO_OPT __attribute__((optimize("-O0"))) -# endif -#else -# define HL_NO_OPT -#endif - -// -------------- EXTRA ------------------------------------ - -#define hl_fatal(msg) hl_fatal_error(msg,__FILE__,__LINE__) -#define hl_fatal1(msg,p0) hl_fatal_fmt(__FILE__,__LINE__,msg,p0) -#define hl_fatal2(msg,p0,p1) hl_fatal_fmt(__FILE__,__LINE__,msg,p0,p1) -#define hl_fatal3(msg,p0,p1,p2) hl_fatal_fmt(__FILE__,__LINE__,msg,p0,p1,p2) -#define hl_fatal4(msg,p0,p1,p2,p3) hl_fatal_fmt(__FILE__,__LINE__,msg,p0,p1,p2,p3) -HL_API void *hl_fatal_error( const char *msg, const char *file, int line ); -HL_API void hl_fatal_fmt( const char *file, int line, const char *fmt, ...); -HL_API void hl_sys_init(void **args, int nargs, void *hlfile); -HL_API void hl_setup_callbacks(void *sc, void *gw); -HL_API void hl_setup_reload_check( void *freload, void *param ); - -#include -typedef struct _hl_trap_ctx hl_trap_ctx; -struct _hl_trap_ctx { - jmp_buf buf; - hl_trap_ctx *prev; - vdynamic *tcheck; -}; -#define hl_trap(ctx,r,label) { hl_thread_info *__tinf = hl_get_thread(); ctx.tcheck = NULL; ctx.prev = __tinf->trap_current; __tinf->trap_current = &ctx; if( setjmp(ctx.buf) ) { r = __tinf->exc_value; goto label; } } -#define hl_endtrap(ctx) hl_get_thread()->trap_current = ctx.prev - -#define HL_EXC_MAX_STACK 0x100 -#define HL_EXC_RETHROW 1 -#define HL_EXC_CATCH_ALL 2 -#define HL_EXC_IS_THROW 4 -#define HL_THREAD_INVISIBLE 16 -#define HL_TREAD_TRACK_SHIFT 5 - -#define HL_TRACK_ALLOC 1 -#define HL_TRACK_CAST 2 -#define HL_TRACK_DYNFIELD 4 -#define HL_TRACK_DYNCALL 8 -#define HL_TRACK_MASK (HL_TRACK_ALLOC | HL_TRACK_CAST | HL_TRACK_DYNFIELD | HL_TRACK_DYNCALL) - -typedef struct { - int thread_id; - // gc vars - volatile int gc_blocking; - void *stack_top; - void *stack_cur; - // exception handling - hl_trap_ctx *trap_current; - hl_trap_ctx *trap_uncaught; - vclosure *exc_handler; - vdynamic *exc_value; - int flags; - int exc_stack_count; - // extra - jmp_buf gc_regs; - void *exc_stack_trace[HL_EXC_MAX_STACK]; -} hl_thread_info; - -HL_API hl_thread_info *hl_get_thread(); - -#ifdef HL_TRACK_ENABLE - -typedef struct { - int flags; - void (*on_alloc)(hl_type *,int,int,void*); - void (*on_cast)(hl_type *, hl_type*); - void (*on_dynfield)( vdynamic *, int ); - void (*on_dyncall)( vdynamic *, int ); -} hl_track_info; - -#define hl_is_tracking(flag) ((hl_track.flags&(flag)) && (hl_get_thread()->flags & (flag< +#undef DEFINE_PRIM +#define DEFINE_HL_PRIM(t, name, args) DEFINE_PRIM_WITH_NAME(t, name, args, name) typedef vdynamic hl_vdynamic; typedef vobj hl_vobj; diff --git a/project/include/system/FileWatcher.h b/project/include/system/FileWatcher.h index e11f80a75b..9270bbb891 100644 --- a/project/include/system/FileWatcher.h +++ b/project/include/system/FileWatcher.h @@ -1,16 +1,15 @@ #ifndef LIME_SYSTEM_FILE_WATCHER_H #define LIME_SYSTEM_FILE_WATCHER_H -#ifdef RemoveDirectory -#undef RemoveDirectory -#endif - #include #include #include #include #include +#ifdef RemoveDirectory +#undef RemoveDirectory +#endif namespace lime { diff --git a/project/include/ui/KeyEvent.h b/project/include/ui/KeyEvent.h index 6a3cfa66e3..28e6fcc6fd 100644 --- a/project/include/ui/KeyEvent.h +++ b/project/include/ui/KeyEvent.h @@ -21,7 +21,7 @@ namespace lime { struct KeyEvent { hl_type* t; - int keyCode; + double keyCode; int modifier; KeyEventType type; int windowID; diff --git a/project/lib/hashlink b/project/lib/hashlink new file mode 160000 index 0000000000..68daa125ad --- /dev/null +++ b/project/lib/hashlink @@ -0,0 +1 @@ +Subproject commit 68daa125ad115a1f1d1db65d38e6045858d55013 diff --git a/project/src/ExternalInterface.cpp b/project/src/ExternalInterface.cpp index a664b6081e..05969826e7 100644 --- a/project/src/ExternalInterface.cpp +++ b/project/src/ExternalInterface.cpp @@ -183,7 +183,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_application_create () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_application_create) () { Application* application = CreateApplication (); return HLCFFIPointer (application, (hl_finalizer)hl_gc_application); @@ -199,7 +199,7 @@ namespace lime { } - HL_PRIM void hl_lime_application_event_manager_register (vclosure* callback, ApplicationEvent* eventObject) { + HL_PRIM void HL_NAME(hl_application_event_manager_register) (vclosure* callback, ApplicationEvent* eventObject) { ApplicationEvent::callback = new ValuePointer (callback); ApplicationEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -215,7 +215,7 @@ namespace lime { } - HL_PRIM int hl_lime_application_exec (HL_CFFIPointer* application) { + HL_PRIM int HL_NAME(hl_application_exec) (HL_CFFIPointer* application) { Application* app = (Application*)application->ptr; return app->Exec (); @@ -231,7 +231,7 @@ namespace lime { } - HL_PRIM void hl_lime_application_init (HL_CFFIPointer* application) { + HL_PRIM void HL_NAME(hl_application_init) (HL_CFFIPointer* application) { Application* app = (Application*)application->ptr; app->Init (); @@ -247,7 +247,7 @@ namespace lime { } - HL_PRIM int hl_lime_application_quit (HL_CFFIPointer* application) { + HL_PRIM int HL_NAME(hl_application_quit) (HL_CFFIPointer* application) { Application* app = (Application*)application->ptr; return app->Quit (); @@ -263,7 +263,7 @@ namespace lime { } - HL_PRIM void hl_lime_application_set_frame_rate (HL_CFFIPointer* application, double frameRate) { + HL_PRIM void HL_NAME(hl_application_set_frame_rate) (HL_CFFIPointer* application, double frameRate) { Application* app = (Application*)application->ptr; app->SetFrameRate (frameRate); @@ -279,7 +279,7 @@ namespace lime { } - HL_PRIM bool hl_lime_application_update (HL_CFFIPointer* application) { + HL_PRIM bool HL_NAME(hl_application_update) (HL_CFFIPointer* application) { Application* app = (Application*)application->ptr; return app->Update (); @@ -316,7 +316,7 @@ namespace lime { } - HL_PRIM AudioBuffer* hl_lime_audio_load_bytes (Bytes* data, AudioBuffer* buffer) { + HL_PRIM AudioBuffer* HL_NAME(hl_audio_load_bytes) (Bytes* data, AudioBuffer* buffer) { Resource resource = Resource (data); @@ -366,7 +366,7 @@ namespace lime { } - HL_PRIM AudioBuffer* hl_lime_audio_load_file (hl_vstring* data, AudioBuffer* buffer) { + HL_PRIM AudioBuffer* HL_NAME(hl_audio_load_file) (hl_vstring* data, AudioBuffer* buffer) { Resource resource = Resource (data ? hl_to_utf8 ((const uchar*)data->bytes) : NULL); @@ -421,7 +421,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_bytes_from_data_pointer (double data, int length, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_bytes_from_data_pointer) (double data, int length, Bytes* bytes) { uintptr_t ptr = (uintptr_t)data; bytes->Resize (length); @@ -445,7 +445,7 @@ namespace lime { } - HL_PRIM double hl_lime_bytes_get_data_pointer (Bytes* bytes) { + HL_PRIM double HL_NAME(hl_bytes_get_data_pointer) (Bytes* bytes) { return bytes ? (uintptr_t)bytes->b : 0; @@ -462,7 +462,7 @@ namespace lime { } - HL_PRIM double hl_lime_bytes_get_data_pointer_offset (Bytes* bytes, int offset) { + HL_PRIM double HL_NAME(hl_bytes_get_data_pointer_offset) (Bytes* bytes, int offset) { if (!bytes) return 0; return (uintptr_t)bytes->b + offset; @@ -479,7 +479,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_bytes_read_file (hl_vstring* path, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_bytes_read_file) (hl_vstring* path, Bytes* bytes) { if (!path) return 0; bytes->ReadFile (hl_to_utf8 ((const uchar*)path->bytes)); @@ -495,7 +495,7 @@ namespace lime { } - HL_PRIM double hl_lime_cffi_get_native_pointer (HL_CFFIPointer* handle) { + HL_PRIM double HL_NAME(hl_cffi_get_native_pointer) (HL_CFFIPointer* handle) { return (uintptr_t)handle->ptr; @@ -526,7 +526,7 @@ namespace lime { } - HL_PRIM void hl_lime_clipboard_event_manager_register (vclosure* callback, ClipboardEvent* eventObject) { + HL_PRIM void HL_NAME(hl_clipboard_event_manager_register) (vclosure* callback, ClipboardEvent* eventObject) { ClipboardEvent::callback = new ValuePointer (callback); ClipboardEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -555,7 +555,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_clipboard_get_text () { + HL_PRIM vbyte* HL_NAME(hl_clipboard_get_text) () { if (Clipboard::HasText ()) { @@ -578,7 +578,7 @@ namespace lime { } - HL_PRIM void hl_lime_clipboard_set_text (hl_vstring* text) { + HL_PRIM void HL_NAME(hl_clipboard_set_text) (hl_vstring* text) { Clipboard::SetText (text ? (const char*)hl_to_utf8 ((const uchar*)text->bytes) : NULL); @@ -592,7 +592,7 @@ namespace lime { } - HL_PRIM double hl_lime_data_pointer_offset (double pointer, int offset) { + HL_PRIM double HL_NAME(hl_data_pointer_offset) (double pointer, int offset) { return (uintptr_t)pointer + offset; @@ -615,7 +615,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_deflate_compress (Bytes* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_deflate_compress) (Bytes* buffer, Bytes* bytes) { #ifdef LIME_ZLIB Zlib::Compress (DEFLATE, buffer, bytes); @@ -643,7 +643,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_deflate_decompress (Bytes* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_deflate_decompress) (Bytes* buffer, Bytes* bytes) { #ifdef LIME_ZLIB Zlib::Decompress (DEFLATE, buffer, bytes); @@ -663,7 +663,7 @@ namespace lime { } - HL_PRIM void hl_lime_drop_event_manager_register (vclosure* callback, DropEvent* eventObject) { + HL_PRIM void HL_NAME(hl_drop_event_manager_register) (vclosure* callback, DropEvent* eventObject) { DropEvent::callback = new ValuePointer (callback); DropEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -704,7 +704,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_file_dialog_open_directory (hl_vstring* title, hl_vstring* filter, hl_vstring* defaultPath) { + HL_PRIM vbyte* HL_NAME(hl_file_dialog_open_directory) (hl_vstring* title, hl_vstring* filter, hl_vstring* defaultPath) { #ifdef LIME_TINYFILEDIALOGS @@ -774,7 +774,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_file_dialog_open_file (hl_vstring* title, hl_vstring* filter, hl_vstring* defaultPath) { + HL_PRIM vbyte* HL_NAME(hl_file_dialog_open_file) (hl_vstring* title, hl_vstring* filter, hl_vstring* defaultPath) { #ifdef LIME_TINYFILEDIALOGS @@ -844,7 +844,7 @@ namespace lime { } - HL_PRIM hl_varray* hl_lime_file_dialog_open_files (hl_vstring* title, hl_vstring* filter, hl_vstring* defaultPath) { + HL_PRIM hl_varray* HL_NAME(hl_file_dialog_open_files) (hl_vstring* title, hl_vstring* filter, hl_vstring* defaultPath) { #ifdef LIME_TINYFILEDIALOGS @@ -916,7 +916,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_file_dialog_save_file (hl_vstring* title, hl_vstring* filter, hl_vstring* defaultPath) { + HL_PRIM vbyte* HL_NAME(hl_file_dialog_save_file) (hl_vstring* title, hl_vstring* filter, hl_vstring* defaultPath) { #ifdef LIME_TINYFILEDIALOGS @@ -965,7 +965,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_file_watcher_create (vclosure* callback) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_file_watcher_create) (vclosure* callback) { // #ifdef LIME_EFSW // FileWatcher* watcher = new FileWatcher (callback); @@ -989,7 +989,7 @@ namespace lime { } - HL_PRIM int hl_lime_file_watcher_add_directory (HL_CFFIPointer* handle, hl_vstring* path, bool recursive) { + HL_PRIM int HL_NAME(hl_file_watcher_add_directory) (HL_CFFIPointer* handle, hl_vstring* path, bool recursive) { #ifdef LIME_EFSW FileWatcher* watcher = (FileWatcher*)handle->ptr; @@ -1011,7 +1011,7 @@ namespace lime { } - HL_PRIM void hl_lime_file_watcher_remove_directory (HL_CFFIPointer* handle, int watchID) { + HL_PRIM void HL_NAME(hl_file_watcher_remove_directory) (HL_CFFIPointer* handle, int watchID) { #ifdef LIME_EFSW FileWatcher* watcher = (FileWatcher*)handle->ptr; @@ -1031,7 +1031,7 @@ namespace lime { } - HL_PRIM void hl_lime_file_watcher_update (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_file_watcher_update) (HL_CFFIPointer* handle) { #ifdef LIME_EFSW FileWatcher* watcher = (FileWatcher*)handle->ptr; @@ -1053,7 +1053,7 @@ namespace lime { } - HL_PRIM int hl_lime_font_get_ascender (HL_CFFIPointer* fontHandle) { + HL_PRIM int HL_NAME(hl_font_get_ascender) (HL_CFFIPointer* fontHandle) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1077,7 +1077,7 @@ namespace lime { } - HL_PRIM int hl_lime_font_get_descender (HL_CFFIPointer* fontHandle) { + HL_PRIM int HL_NAME(hl_font_get_descender) (HL_CFFIPointer* fontHandle) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1104,7 +1104,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_font_get_family_name (HL_CFFIPointer* fontHandle) { + HL_PRIM vbyte* HL_NAME(hl_font_get_family_name) (HL_CFFIPointer* fontHandle) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1134,7 +1134,7 @@ namespace lime { } - HL_PRIM int hl_lime_font_get_glyph_index (HL_CFFIPointer* fontHandle, hl_vstring* character) { + HL_PRIM int HL_NAME(hl_font_get_glyph_index) (HL_CFFIPointer* fontHandle, hl_vstring* character) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1158,7 +1158,7 @@ namespace lime { } - HL_PRIM hl_varray* hl_lime_font_get_glyph_indices (HL_CFFIPointer* fontHandle, hl_vstring* characters) { + HL_PRIM hl_varray* HL_NAME(hl_font_get_glyph_indices) (HL_CFFIPointer* fontHandle, hl_vstring* characters) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1182,7 +1182,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_font_get_glyph_metrics (HL_CFFIPointer* fontHandle, int index) { + HL_PRIM vdynamic* HL_NAME(hl_font_get_glyph_metrics) (HL_CFFIPointer* fontHandle, int index) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1206,7 +1206,7 @@ namespace lime { } - HL_PRIM int hl_lime_font_get_height (HL_CFFIPointer* fontHandle) { + HL_PRIM int HL_NAME(hl_font_get_height) (HL_CFFIPointer* fontHandle) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1230,7 +1230,7 @@ namespace lime { } - HL_PRIM int hl_lime_font_get_num_glyphs (HL_CFFIPointer* fontHandle) { + HL_PRIM int HL_NAME(hl_font_get_num_glyphs) (HL_CFFIPointer* fontHandle) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1254,7 +1254,7 @@ namespace lime { } - HL_PRIM int hl_lime_font_get_underline_position (HL_CFFIPointer* fontHandle) { + HL_PRIM int HL_NAME(hl_font_get_underline_position) (HL_CFFIPointer* fontHandle) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1278,7 +1278,7 @@ namespace lime { } - HL_PRIM int hl_lime_font_get_underline_thickness (HL_CFFIPointer* fontHandle) { + HL_PRIM int HL_NAME(hl_font_get_underline_thickness) (HL_CFFIPointer* fontHandle) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1302,7 +1302,7 @@ namespace lime { } - HL_PRIM int hl_lime_font_get_units_per_em (HL_CFFIPointer* fontHandle) { + HL_PRIM int HL_NAME(hl_font_get_units_per_em) (HL_CFFIPointer* fontHandle) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1345,7 +1345,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_font_load_bytes (Bytes* data) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_font_load_bytes) (Bytes* data) { #ifdef LIME_FREETYPE Resource resource = Resource (data); @@ -1399,7 +1399,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_font_load_file (hl_vstring* data) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_font_load_file) (hl_vstring* data) { #ifdef LIME_FREETYPE Resource resource = Resource (data ? hl_to_utf8 ((const uchar*)data->bytes) : NULL); @@ -1453,7 +1453,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_font_outline_decompose (HL_CFFIPointer* fontHandle, int size) { + HL_PRIM vdynamic* HL_NAME(hl_font_outline_decompose) (HL_CFFIPointer* fontHandle, int size) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1483,7 +1483,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_font_render_glyph (HL_CFFIPointer* fontHandle, int index, Bytes* data) { + HL_PRIM Bytes* HL_NAME(hl_font_render_glyph) (HL_CFFIPointer* fontHandle, int index, Bytes* data) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1518,7 +1518,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_font_render_glyphs (HL_CFFIPointer* fontHandle, hl_varray* indices, Bytes* data) { + HL_PRIM Bytes* HL_NAME(hl_font_render_glyphs) (HL_CFFIPointer* fontHandle, hl_varray* indices, Bytes* data) { // #ifdef LIME_FREETYPE // Font *font = (Font*)fontHandle->ptr; @@ -1540,7 +1540,7 @@ namespace lime { } - HL_PRIM void hl_lime_font_set_size (HL_CFFIPointer* fontHandle, int fontSize) { + HL_PRIM void HL_NAME(hl_font_set_size) (HL_CFFIPointer* fontHandle, int fontSize) { #ifdef LIME_FREETYPE Font *font = (Font*)fontHandle->ptr; @@ -1563,7 +1563,7 @@ namespace lime { } - HL_PRIM void hl_lime_gamepad_add_mappings (hl_varray* mappings) { + HL_PRIM void HL_NAME(hl_gamepad_add_mappings) (hl_varray* mappings) { int length = mappings->size; hl_vstring** mappingsData = hl_aptr (mappings, hl_vstring*); @@ -1585,7 +1585,7 @@ namespace lime { } - HL_PRIM void hl_lime_gamepad_event_manager_register (vclosure* callback, GamepadEvent* eventObject) { + HL_PRIM void HL_NAME(hl_gamepad_event_manager_register) (vclosure* callback, GamepadEvent* eventObject) { GamepadEvent::callback = new ValuePointer (callback); GamepadEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -1612,7 +1612,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_gamepad_get_device_guid (int id) { + HL_PRIM vbyte* HL_NAME(hl_gamepad_get_device_guid) (int id) { const char* guid = Gamepad::GetDeviceGUID (id); @@ -1637,7 +1637,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_gamepad_get_device_name (int id) { + HL_PRIM vbyte* HL_NAME(hl_gamepad_get_device_name) (int id) { return (vbyte*)Gamepad::GetDeviceName (id); @@ -1660,7 +1660,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_gzip_compress (Bytes* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_gzip_compress) (Bytes* buffer, Bytes* bytes) { #ifdef LIME_ZLIB Zlib::Compress (GZIP, buffer, bytes); @@ -1688,7 +1688,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_gzip_decompress (Bytes* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_gzip_decompress) (Bytes* buffer, Bytes* bytes) { #ifdef LIME_ZLIB Zlib::Decompress (GZIP, buffer, bytes); @@ -1709,7 +1709,7 @@ namespace lime { } - HL_PRIM void hl_lime_haptic_vibrate (int period, int duration) { + HL_PRIM void HL_NAME(hl_haptic_vibrate) (int period, int duration) { #ifdef IPHONE Haptic::Vibrate (period, duration); @@ -1756,7 +1756,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_image_encode (ImageBuffer* buffer, int type, int quality, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_image_encode) (ImageBuffer* buffer, int type, int quality, Bytes* bytes) { switch (type) { @@ -1822,7 +1822,7 @@ namespace lime { } - HL_PRIM ImageBuffer* hl_lime_image_load_bytes (Bytes* data, ImageBuffer* buffer) { + HL_PRIM ImageBuffer* HL_NAME(hl_image_load_bytes) (Bytes* data, ImageBuffer* buffer) { Resource resource = Resource (data); @@ -1873,7 +1873,7 @@ namespace lime { } - HL_PRIM ImageBuffer* hl_lime_image_load_file (hl_vstring* data, ImageBuffer* buffer) { + HL_PRIM ImageBuffer* HL_NAME(hl_image_load_file) (hl_vstring* data, ImageBuffer* buffer) { Resource resource = Resource (data); @@ -1923,7 +1923,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_color_transform (Image* image, Rectangle* rect, ArrayBufferView* colorMatrix) { + HL_PRIM void HL_NAME(hl_image_data_util_color_transform) (Image* image, Rectangle* rect, ArrayBufferView* colorMatrix) { ColorMatrix _colorMatrix = ColorMatrix (colorMatrix); ImageDataUtil::ColorTransform (image, rect, &_colorMatrix); @@ -1942,7 +1942,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_copy_channel (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int srcChannel, int destChannel) { + HL_PRIM void HL_NAME(hl_image_data_util_copy_channel) (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int srcChannel, int destChannel) { ImageDataUtil::CopyChannel (image, sourceImage, sourceRect, destPoint, srcChannel, destChannel); @@ -1972,7 +1972,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_copy_pixels (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, Image* alphaImage, Vector2* alphaPoint, bool mergeAlpha) { + HL_PRIM void HL_NAME(hl_image_data_util_copy_pixels) (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, Image* alphaImage, Vector2* alphaPoint, bool mergeAlpha) { if (!alphaImage) { @@ -1997,7 +1997,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_fill_rect (Image* image, Rectangle* rect, int rg, int ba) { + HL_PRIM void HL_NAME(hl_image_data_util_fill_rect) (Image* image, Rectangle* rect, int rg, int ba) { int32_t color = (rg << 16) | ba; ImageDataUtil::FillRect (image, rect, color); @@ -2014,7 +2014,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_flood_fill (Image* image, int x, int y, int rg, int ba) { + HL_PRIM void HL_NAME(hl_image_data_util_flood_fill) (Image* image, int x, int y, int rg, int ba) { int32_t color = (rg << 16) | ba; ImageDataUtil::FloodFill (image, x, y, color); @@ -2033,7 +2033,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_get_pixels (Image* image, Rectangle* rect, PixelFormat format, Bytes* bytes) { + HL_PRIM void HL_NAME(hl_image_data_util_get_pixels) (Image* image, Rectangle* rect, PixelFormat format, Bytes* bytes) { ImageDataUtil::GetPixels (image, rect, format, bytes); @@ -2051,7 +2051,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_merge (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int redMultiplier, int greenMultiplier, int blueMultiplier, int alphaMultiplier) { + HL_PRIM void HL_NAME(hl_image_data_util_merge) (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int redMultiplier, int greenMultiplier, int blueMultiplier, int alphaMultiplier) { ImageDataUtil::Merge (image, sourceImage, sourceRect, destPoint, redMultiplier, greenMultiplier, blueMultiplier, alphaMultiplier); @@ -2066,7 +2066,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_multiply_alpha (Image* image) { + HL_PRIM void HL_NAME(hl_image_data_util_multiply_alpha) (Image* image) { ImageDataUtil::MultiplyAlpha (image); @@ -2082,7 +2082,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_resize (Image* image, ImageBuffer* buffer, int width, int height) { + HL_PRIM void HL_NAME(hl_image_data_util_resize) (Image* image, ImageBuffer* buffer, int width, int height) { ImageDataUtil::Resize (image, buffer, width, height); @@ -2098,7 +2098,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_set_format (Image* image, PixelFormat format) { + HL_PRIM void HL_NAME(hl_image_data_util_set_format) (Image* image, PixelFormat format) { ImageDataUtil::SetFormat (image, format); @@ -2117,7 +2117,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_set_pixels (Image* image, Rectangle* rect, Bytes* bytes, int offset, PixelFormat format, Endian endian) { + HL_PRIM void HL_NAME(hl_image_data_util_set_pixels) (Image* image, Rectangle* rect, Bytes* bytes, int offset, PixelFormat format, Endian endian) { ImageDataUtil::SetPixels (image, rect, bytes, offset, format, endian); @@ -2138,7 +2138,7 @@ namespace lime { } - HL_PRIM int hl_lime_image_data_util_threshold (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int operation, int thresholdRG, int thresholdBA, int colorRG, int colorBA, int maskRG, int maskBA, bool copySource) { + HL_PRIM int HL_NAME(hl_image_data_util_threshold) (Image* image, Image* sourceImage, Rectangle* sourceRect, Vector2* destPoint, int operation, int thresholdRG, int thresholdBA, int colorRG, int colorBA, int maskRG, int maskBA, bool copySource) { int32_t threshold = (thresholdRG << 16) | thresholdBA; int32_t color = (colorRG << 16) | colorBA; @@ -2156,7 +2156,7 @@ namespace lime { } - HL_PRIM void hl_lime_image_data_util_unmultiply_alpha (Image* image) { + HL_PRIM void HL_NAME(hl_image_data_util_unmultiply_alpha) (Image* image) { ImageDataUtil::UnmultiplyAlpha (image); @@ -2174,7 +2174,7 @@ namespace lime { } - HL_PRIM double hl_lime_jni_getenv () { + HL_PRIM double HL_NAME(hl_jni_getenv) () { #ifdef ANDROID return (uintptr_t)JNI::GetEnv (); @@ -2193,7 +2193,7 @@ namespace lime { } - HL_PRIM void hl_lime_joystick_event_manager_register (vclosure* callback, JoystickEvent* eventObject) { + HL_PRIM void HL_NAME(hl_joystick_event_manager_register) (vclosure* callback, JoystickEvent* eventObject) { JoystickEvent::callback = new ValuePointer (callback); JoystickEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -2209,7 +2209,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_joystick_get_device_guid (int id) { + HL_PRIM vbyte* HL_NAME(hl_joystick_get_device_guid) (int id) { return (vbyte*)Joystick::GetDeviceGUID (id); @@ -2224,7 +2224,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_joystick_get_device_name (int id) { + HL_PRIM vbyte* HL_NAME(hl_joystick_get_device_name) (int id) { return (vbyte*)Joystick::GetDeviceName (id); @@ -2238,7 +2238,7 @@ namespace lime { } - HL_PRIM int hl_lime_joystick_get_num_axes (int id) { + HL_PRIM int HL_NAME(hl_joystick_get_num_axes) (int id) { return Joystick::GetNumAxes (id); @@ -2252,7 +2252,7 @@ namespace lime { } - HL_PRIM int hl_lime_joystick_get_num_buttons (int id) { + HL_PRIM int HL_NAME(hl_joystick_get_num_buttons) (int id) { return Joystick::GetNumButtons (id); @@ -2266,7 +2266,7 @@ namespace lime { } - HL_PRIM int hl_lime_joystick_get_num_hats (int id) { + HL_PRIM int HL_NAME(hl_joystick_get_num_hats) (int id) { return Joystick::GetNumHats (id); @@ -2280,7 +2280,7 @@ namespace lime { } - HL_PRIM int hl_lime_joystick_get_num_trackballs (int id) { + HL_PRIM int HL_NAME(hl_joystick_get_num_trackballs) (int id) { return Joystick::GetNumTrackballs (id); @@ -2307,7 +2307,7 @@ namespace lime { } - HL_PRIM ImageBuffer* hl_lime_jpeg_decode_bytes (Bytes* data, bool decodeData, ImageBuffer* buffer) { + HL_PRIM ImageBuffer* HL_NAME(hl_jpeg_decode_bytes) (Bytes* data, bool decodeData, ImageBuffer* buffer) { Resource resource = Resource (data); @@ -2342,7 +2342,7 @@ namespace lime { } - HL_PRIM ImageBuffer* hl_lime_jpeg_decode_file (hl_vstring* path, bool decodeData, ImageBuffer* buffer) { + HL_PRIM ImageBuffer* HL_NAME(hl_jpeg_decode_file) (hl_vstring* path, bool decodeData, ImageBuffer* buffer) { Resource resource = Resource (path); @@ -2366,7 +2366,7 @@ namespace lime { } - HL_PRIM float hl_lime_key_code_from_scan_code (float scanCode) { + HL_PRIM float HL_NAME(hl_key_code_from_scan_code) (float scanCode) { return KeyCode::FromScanCode (scanCode); @@ -2380,7 +2380,7 @@ namespace lime { } - HL_PRIM float hl_lime_key_code_to_scan_code (float keyCode) { + HL_PRIM float HL_NAME(hl_key_code_to_scan_code) (float keyCode) { return KeyCode::ToScanCode (keyCode); @@ -2395,7 +2395,7 @@ namespace lime { } - HL_PRIM void hl_lime_key_event_manager_register (vclosure* callback, KeyEvent* eventObject) { + HL_PRIM void HL_NAME(hl_key_event_manager_register) (vclosure* callback, KeyEvent* eventObject) { KeyEvent::callback = new ValuePointer (callback); KeyEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -2422,7 +2422,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_locale_get_system_locale () { + HL_PRIM vbyte* HL_NAME(hl_locale_get_system_locale) () { std::string* locale = Locale::GetSystemLocale (); @@ -2461,7 +2461,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_lzma_compress (Bytes* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_lzma_compress) (Bytes* buffer, Bytes* bytes) { #ifdef LIME_LZMA LZMA::Compress (buffer, bytes); @@ -2489,7 +2489,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_lzma_decompress (Bytes* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_lzma_decompress) (Bytes* buffer, Bytes* bytes) { #ifdef LIME_LZMA LZMA::Decompress (buffer, bytes); @@ -2509,7 +2509,7 @@ namespace lime { } - HL_PRIM void hl_lime_mouse_event_manager_register (vclosure* callback, MouseEvent* eventObject) { + HL_PRIM void HL_NAME(hl_mouse_event_manager_register) (vclosure* callback, MouseEvent* eventObject) { MouseEvent::callback = new ValuePointer (callback); MouseEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -2545,7 +2545,7 @@ namespace lime { } - HL_PRIM ImageBuffer* hl_lime_png_decode_bytes (Bytes* data, bool decodeData, ImageBuffer* buffer) { + HL_PRIM ImageBuffer* HL_NAME(hl_png_decode_bytes) (Bytes* data, bool decodeData, ImageBuffer* buffer) { Resource resource = Resource (data); @@ -2580,7 +2580,7 @@ namespace lime { } - HL_PRIM ImageBuffer* hl_lime_png_decode_file (hl_vstring* path, bool decodeData, ImageBuffer* buffer) { + HL_PRIM ImageBuffer* HL_NAME(hl_png_decode_file) (hl_vstring* path, bool decodeData, ImageBuffer* buffer) { Resource resource = Resource (path); @@ -2605,7 +2605,7 @@ namespace lime { } - HL_PRIM void hl_lime_render_event_manager_register (vclosure* callback, RenderEvent* eventObject) { + HL_PRIM void HL_NAME(hl_render_event_manager_register) (vclosure* callback, RenderEvent* eventObject) { RenderEvent::callback = new ValuePointer (callback); RenderEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -2621,7 +2621,7 @@ namespace lime { } - HL_PRIM void hl_lime_sensor_event_manager_register (vclosure* callback, SensorEvent* eventObject) { + HL_PRIM void HL_NAME(hl_sensor_event_manager_register) (vclosure* callback, SensorEvent* eventObject) { SensorEvent::callback = new ValuePointer (callback); SensorEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -2636,7 +2636,7 @@ namespace lime { } - HL_PRIM bool hl_lime_system_get_allow_screen_timeout () { + HL_PRIM bool HL_NAME(hl_system_get_allow_screen_timeout) () { return System::GetAllowScreenTimeout (); @@ -2662,7 +2662,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_system_get_device_model () { + HL_PRIM vbyte* HL_NAME(hl_system_get_device_model) () { #ifndef EMSCRIPTEN @@ -2706,7 +2706,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_system_get_device_vendor () { + HL_PRIM vbyte* HL_NAME(hl_system_get_device_vendor) () { #ifndef EMSCRIPTEN @@ -2750,7 +2750,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_system_get_directory (int type, hl_vstring* company, hl_vstring* title) { + HL_PRIM vbyte* HL_NAME(hl_system_get_directory) (int type, hl_vstring* company, hl_vstring* title) { #ifndef EMSCRIPTEN @@ -2782,7 +2782,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_system_get_display (int id) { + HL_PRIM vdynamic* HL_NAME(hl_system_get_display) (int id) { return (vdynamic*)System::GetDisplay (false, id); @@ -2800,7 +2800,7 @@ namespace lime { } - HL_PRIM bool hl_lime_system_get_ios_tablet () { + HL_PRIM bool HL_NAME(hl_system_get_ios_tablet) () { #ifdef IPHONE return System::GetIOSTablet (); @@ -2818,7 +2818,7 @@ namespace lime { } - HL_PRIM int hl_lime_system_get_num_displays () { + HL_PRIM int HL_NAME(hl_system_get_num_displays) () { return System::GetNumDisplays (); @@ -2844,7 +2844,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_system_get_platform_label () { + HL_PRIM vbyte* HL_NAME(hl_system_get_platform_label) () { #ifndef EMSCRIPTEN @@ -2888,7 +2888,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_system_get_platform_name () { + HL_PRIM vbyte* HL_NAME(hl_system_get_platform_name) () { #ifndef EMSCRIPTEN @@ -2932,7 +2932,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_system_get_platform_version () { + HL_PRIM vbyte* HL_NAME(hl_system_get_platform_version) () { #ifndef EMSCRIPTEN @@ -2964,7 +2964,7 @@ namespace lime { } - HL_PRIM double hl_lime_system_get_timer () { + HL_PRIM double HL_NAME(hl_system_get_timer) () { return System::GetTimer (); @@ -2982,7 +2982,7 @@ namespace lime { } - HL_PRIM int hl_lime_system_get_windows_console_mode (int handleType) { + HL_PRIM int HL_NAME(hl_system_get_windows_console_mode) (int handleType) { #if defined (HX_WINDOWS) && !defined (HX_WINRT) return System::GetWindowsConsoleMode (handleType); @@ -3002,7 +3002,7 @@ namespace lime { } - HL_PRIM void hl_lime_system_open_file (vbyte* path) { + HL_PRIM void HL_NAME(hl_system_open_file) (vbyte* path) { #ifdef IPHONE System::OpenFile ((char*)path); @@ -3020,7 +3020,7 @@ namespace lime { } - HL_PRIM void hl_lime_system_open_url (vbyte* url, vbyte* target) { + HL_PRIM void HL_NAME(hl_system_open_url) (vbyte* url, vbyte* target) { #ifdef IPHONE System::OpenURL ((char*)url, (char*)target); @@ -3036,7 +3036,7 @@ namespace lime { } - HL_PRIM bool hl_lime_system_set_allow_screen_timeout (bool allow) { + HL_PRIM bool HL_NAME(hl_system_set_allow_screen_timeout) (bool allow) { return System::SetAllowScreenTimeout (allow); @@ -3054,7 +3054,7 @@ namespace lime { } - HL_PRIM bool hl_lime_system_set_windows_console_mode (int handleType, int mode) { + HL_PRIM bool HL_NAME(hl_system_set_windows_console_mode) (int handleType, int mode) { #if defined (HX_WINDOWS) && !defined (HX_WINRT) return System::SetWindowsConsoleMode (handleType, mode); @@ -3073,7 +3073,7 @@ namespace lime { } - HL_PRIM void hl_lime_text_event_manager_register (vclosure* callback, TextEvent* eventObject) { + HL_PRIM void HL_NAME(hl_text_event_manager_register) (vclosure* callback, TextEvent* eventObject) { TextEvent::callback = new ValuePointer (callback); TextEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -3089,7 +3089,7 @@ namespace lime { } - HL_PRIM void hl_lime_touch_event_manager_register (vclosure* callback, TouchEvent* eventObject) { + HL_PRIM void HL_NAME(hl_touch_event_manager_register) (vclosure* callback, TouchEvent* eventObject) { TouchEvent::callback = new ValuePointer (callback); TouchEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -3105,7 +3105,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_alert (HL_CFFIPointer* window, hl_vstring* message, hl_vstring* title) { + HL_PRIM void HL_NAME(hl_window_alert) (HL_CFFIPointer* window, hl_vstring* message, hl_vstring* title) { Window* targetWindow = (Window*)window->ptr; targetWindow->Alert (message ? (const char*)hl_to_utf8 ((const uchar*)message) : NULL, title ? (const char*)hl_to_utf8 ((const uchar*)title) : NULL); @@ -3121,7 +3121,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_close (HL_CFFIPointer* window) { + HL_PRIM void HL_NAME(hl_window_close) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; targetWindow->Close (); @@ -3136,7 +3136,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_context_flip (HL_CFFIPointer* window) { + HL_PRIM void HL_NAME(hl_window_context_flip) (HL_CFFIPointer* window) { ((Window*)window->ptr)->ContextFlip (); @@ -3150,7 +3150,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_window_context_lock (HL_CFFIPointer* window) { + HL_PRIM vdynamic* HL_NAME(hl_window_context_lock) (HL_CFFIPointer* window) { return (vdynamic*)((Window*)window->ptr)->ContextLock (false); @@ -3164,7 +3164,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_context_make_current (HL_CFFIPointer* window) { + HL_PRIM void HL_NAME(hl_window_context_make_current) (HL_CFFIPointer* window) { ((Window*)window->ptr)->ContextMakeCurrent (); @@ -3178,7 +3178,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_context_unlock (HL_CFFIPointer* window) { + HL_PRIM void HL_NAME(hl_window_context_unlock) (HL_CFFIPointer* window) { ((Window*)window->ptr)->ContextUnlock (); @@ -3193,7 +3193,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_window_create (HL_CFFIPointer* application, int width, int height, int flags, hl_vstring* title) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_window_create) (HL_CFFIPointer* application, int width, int height, int flags, hl_vstring* title) { Window* window = CreateWindow ((Application*)application->ptr, width, height, flags, (const char*)hl_to_utf8 ((const uchar*)title->bytes)); return HLCFFIPointer (window, (hl_finalizer)hl_gc_window); @@ -3209,7 +3209,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_event_manager_register (vclosure* callback, WindowEvent* eventObject) { + HL_PRIM void HL_NAME(hl_window_event_manager_register) (vclosure* callback, WindowEvent* eventObject) { WindowEvent::callback = new ValuePointer (callback); WindowEvent::eventObject = new ValuePointer ((vobj*)eventObject); @@ -3225,7 +3225,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_focus (HL_CFFIPointer* window) { + HL_PRIM void HL_NAME(hl_window_focus) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; targetWindow->Focus (); @@ -3241,7 +3241,7 @@ namespace lime { } - HL_PRIM double hl_lime_window_get_context (HL_CFFIPointer* window) { + HL_PRIM double HL_NAME(hl_window_get_context) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return (uintptr_t)targetWindow->GetContext (); @@ -3258,7 +3258,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_window_get_context_type (HL_CFFIPointer* window) { + HL_PRIM vbyte* HL_NAME(hl_window_get_context_type) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return (vbyte*)targetWindow->GetContextType (); @@ -3274,7 +3274,7 @@ namespace lime { } - HL_PRIM int hl_lime_window_get_display (HL_CFFIPointer* window) { + HL_PRIM int HL_NAME(hl_window_get_display) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return targetWindow->GetDisplay (); @@ -3292,7 +3292,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_get_display_mode (HL_CFFIPointer* window, DisplayMode* result) { + HL_PRIM void HL_NAME(hl_window_get_display_mode) (HL_CFFIPointer* window, DisplayMode* result) { Window* targetWindow = (Window*)window->ptr; DisplayMode displayMode; @@ -3310,7 +3310,7 @@ namespace lime { } - HL_PRIM int hl_lime_window_get_height (HL_CFFIPointer* window) { + HL_PRIM int HL_NAME(hl_window_get_height) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return targetWindow->GetHeight (); @@ -3326,7 +3326,7 @@ namespace lime { } - HL_PRIM int32_t hl_lime_window_get_id (HL_CFFIPointer* window) { + HL_PRIM int32_t HL_NAME(hl_window_get_id) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return (int32_t)targetWindow->GetID (); @@ -3342,7 +3342,7 @@ namespace lime { } - HL_PRIM bool hl_lime_window_get_mouse_lock (HL_CFFIPointer* window) { + HL_PRIM bool HL_NAME(hl_window_get_mouse_lock) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return targetWindow->GetMouseLock (); @@ -3358,7 +3358,7 @@ namespace lime { } - HL_PRIM double hl_lime_window_get_scale (HL_CFFIPointer* window) { + HL_PRIM double HL_NAME(hl_window_get_scale) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return targetWindow->GetScale (); @@ -3374,7 +3374,7 @@ namespace lime { } - HL_PRIM bool hl_lime_window_get_text_input_enabled (HL_CFFIPointer* window) { + HL_PRIM bool HL_NAME(hl_window_get_text_input_enabled) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return targetWindow->GetTextInputEnabled (); @@ -3390,7 +3390,7 @@ namespace lime { } - HL_PRIM int hl_lime_window_get_width (HL_CFFIPointer* window) { + HL_PRIM int HL_NAME(hl_window_get_width) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return targetWindow->GetWidth (); @@ -3406,7 +3406,7 @@ namespace lime { } - HL_PRIM int hl_lime_window_get_x (HL_CFFIPointer* window) { + HL_PRIM int HL_NAME(hl_window_get_x) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return targetWindow->GetX (); @@ -3422,7 +3422,7 @@ namespace lime { } - HL_PRIM int hl_lime_window_get_y (HL_CFFIPointer* window) { + HL_PRIM int HL_NAME(hl_window_get_y) (HL_CFFIPointer* window) { Window* targetWindow = (Window*)window->ptr; return targetWindow->GetY (); @@ -3438,7 +3438,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_move (HL_CFFIPointer* window, int x, int y) { + HL_PRIM void HL_NAME(hl_window_move) (HL_CFFIPointer* window, int x, int y) { Window* targetWindow = (Window*)window->ptr; targetWindow->Move (x, y); @@ -3467,7 +3467,7 @@ namespace lime { } - HL_PRIM ImageBuffer* hl_lime_window_read_pixels (HL_CFFIPointer* window, Rectangle* rect, ImageBuffer* imageBuffer) { + HL_PRIM ImageBuffer* HL_NAME(hl_window_read_pixels) (HL_CFFIPointer* window, Rectangle* rect, ImageBuffer* imageBuffer) { Window* targetWindow = (Window*)window->ptr; @@ -3494,7 +3494,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_resize (HL_CFFIPointer* window, int width, int height) { + HL_PRIM void HL_NAME(hl_window_resize) (HL_CFFIPointer* window, int width, int height) { Window* targetWindow = (Window*)window->ptr; targetWindow->Resize (width, height); @@ -3510,7 +3510,7 @@ namespace lime { } - HL_PRIM bool hl_lime_window_set_borderless (HL_CFFIPointer* window, bool borderless) { + HL_PRIM bool HL_NAME(hl_window_set_borderless) (HL_CFFIPointer* window, bool borderless) { Window* targetWindow = (Window*)window->ptr; return targetWindow->SetBorderless (borderless); @@ -3526,7 +3526,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_set_cursor (HL_CFFIPointer* window, int cursor) { + HL_PRIM void HL_NAME(hl_window_set_cursor) (HL_CFFIPointer* window, int cursor) { Window* targetWindow = (Window*)window->ptr; targetWindow->SetCursor ((Cursor)cursor); @@ -3545,7 +3545,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_set_display_mode (HL_CFFIPointer* window, DisplayMode* displayMode, DisplayMode* result) { + HL_PRIM void HL_NAME(hl_window_set_display_mode) (HL_CFFIPointer* window, DisplayMode* displayMode, DisplayMode* result) { Window* targetWindow = (Window*)window->ptr; targetWindow->SetDisplayMode (displayMode); @@ -3563,7 +3563,7 @@ namespace lime { } - HL_PRIM bool hl_lime_window_set_fullscreen (HL_CFFIPointer* window, bool fullscreen) { + HL_PRIM bool HL_NAME(hl_window_set_fullscreen) (HL_CFFIPointer* window, bool fullscreen) { Window* targetWindow = (Window*)window->ptr; return targetWindow->SetFullscreen (fullscreen); @@ -3580,7 +3580,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_set_icon (HL_CFFIPointer* window, ImageBuffer* buffer) { + HL_PRIM void HL_NAME(hl_window_set_icon) (HL_CFFIPointer* window, ImageBuffer* buffer) { Window* targetWindow = (Window*)window->ptr; targetWindow->SetIcon (buffer); @@ -3596,7 +3596,7 @@ namespace lime { } - HL_PRIM bool hl_lime_window_set_maximized (HL_CFFIPointer* window, bool maximized) { + HL_PRIM bool HL_NAME(hl_window_set_maximized) (HL_CFFIPointer* window, bool maximized) { Window* targetWindow = (Window*)window->ptr; return targetWindow->SetMaximized (maximized); @@ -3612,7 +3612,7 @@ namespace lime { } - HL_PRIM bool hl_lime_window_set_minimized (HL_CFFIPointer* window, bool minimized) { + HL_PRIM bool HL_NAME(hl_window_set_minimized) (HL_CFFIPointer* window, bool minimized) { Window* targetWindow = (Window*)window->ptr; return targetWindow->SetMinimized (minimized); @@ -3628,7 +3628,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_set_mouse_lock (HL_CFFIPointer* window, bool mouseLock) { + HL_PRIM void HL_NAME(hl_window_set_mouse_lock) (HL_CFFIPointer* window, bool mouseLock) { Window* targetWindow = (Window*)window->ptr; targetWindow->SetMouseLock (mouseLock); @@ -3644,7 +3644,7 @@ namespace lime { } - HL_PRIM bool hl_lime_window_set_resizable (HL_CFFIPointer* window, bool resizable) { + HL_PRIM bool HL_NAME(hl_window_set_resizable) (HL_CFFIPointer* window, bool resizable) { Window* targetWindow = (Window*)window->ptr; return targetWindow->SetResizable (resizable); @@ -3660,7 +3660,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_set_text_input_enabled (HL_CFFIPointer* window, bool enabled) { + HL_PRIM void HL_NAME(hl_window_set_text_input_enabled) (HL_CFFIPointer* window, bool enabled) { Window* targetWindow = (Window*)window->ptr; targetWindow->SetTextInputEnabled (enabled); @@ -3694,7 +3694,7 @@ namespace lime { } - HL_PRIM hl_vstring* hl_lime_window_set_title (HL_CFFIPointer* window, hl_vstring* title) { + HL_PRIM hl_vstring* HL_NAME(hl_window_set_title) (HL_CFFIPointer* window, hl_vstring* title) { Window* targetWindow = (Window*)window->ptr; const char* result = targetWindow->SetTitle ((char*)hl_to_utf8 ((const uchar*)title->bytes)); @@ -3720,7 +3720,7 @@ namespace lime { } - HL_PRIM void hl_lime_window_warp_mouse (HL_CFFIPointer* window, int x, int y) { + HL_PRIM void HL_NAME(hl_window_warp_mouse) (HL_CFFIPointer* window, int x, int y) { Window* targetWindow = (Window*)window->ptr; targetWindow->WarpMouse (x, y); @@ -3744,7 +3744,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_zlib_compress (Bytes* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_zlib_compress) (Bytes* buffer, Bytes* bytes) { #ifdef LIME_ZLIB Zlib::Compress (ZLIB, buffer, bytes); @@ -3772,7 +3772,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_zlib_decompress (Bytes* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_zlib_decompress) (Bytes* buffer, Bytes* bytes) { #ifdef LIME_ZLIB Zlib::Decompress (ZLIB, buffer, bytes); @@ -3947,7 +3947,7 @@ namespace lime { #define _TDROP_EVENT _OBJ (_BYTES _I32) #define _TGAMEPAD_EVENT _OBJ (_I32 _I32 _I32 _I32 _F64) #define _TJOYSTICK_EVENT _OBJ (_I32 _I32 _I32 _I32 _F64 _F64) - #define _TKEY_EVENT _OBJ (_I32 _I32 _I32 _I32) + #define _TKEY_EVENT _OBJ (_F64 _I32 _I32 _I32) #define _TMOUSE_EVENT _OBJ (_I32 _F64 _F64 _I32 _I32 _F64 _F64) #define _TRECTANGLE _OBJ (_F64 _F64 _F64 _F64) #define _TRENDER_EVENT _OBJ (_I32) @@ -3968,156 +3968,156 @@ namespace lime { #define _TARRAY2 _OBJ (_ARR) - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_application_create, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_application_event_manager_register, _FUN(_VOID, _NO_ARG) _TAPPLICATION_EVENT); - DEFINE_HL_PRIM (_I32, lime_application_exec, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_application_init, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_application_quit, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_application_set_frame_rate, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_BOOL, lime_application_update, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TAUDIOBUFFER, lime_audio_load_bytes, _TBYTES _TAUDIOBUFFER); - DEFINE_HL_PRIM (_TAUDIOBUFFER, lime_audio_load_file, _STRING _TAUDIOBUFFER); - DEFINE_HL_PRIM (_TBYTES, lime_bytes_from_data_pointer, _F64 _I32 _TBYTES); - DEFINE_HL_PRIM (_F64, lime_bytes_get_data_pointer, _TBYTES); - DEFINE_HL_PRIM (_F64, lime_bytes_get_data_pointer_offset, _TBYTES _I32); - DEFINE_HL_PRIM (_TBYTES, lime_bytes_read_file, _STRING _TBYTES); - DEFINE_HL_PRIM (_F64, lime_cffi_get_native_pointer, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_application_create, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_application_event_manager_register, _FUN(_VOID, _NO_ARG) _TAPPLICATION_EVENT); + DEFINE_HL_PRIM (_I32, hl_application_exec, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_application_init, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_application_quit, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_application_set_frame_rate, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_BOOL, hl_application_update, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TAUDIOBUFFER, hl_audio_load_bytes, _TBYTES _TAUDIOBUFFER); + DEFINE_HL_PRIM (_TAUDIOBUFFER, hl_audio_load_file, _STRING _TAUDIOBUFFER); + DEFINE_HL_PRIM (_TBYTES, hl_bytes_from_data_pointer, _F64 _I32 _TBYTES); + DEFINE_HL_PRIM (_F64, hl_bytes_get_data_pointer, _TBYTES); + DEFINE_HL_PRIM (_F64, hl_bytes_get_data_pointer_offset, _TBYTES _I32); + DEFINE_HL_PRIM (_TBYTES, hl_bytes_read_file, _STRING _TBYTES); + DEFINE_HL_PRIM (_F64, hl_cffi_get_native_pointer, _TCFFIPOINTER); // DEFINE_PRIME1 (lime_cffi_set_finalizer); - DEFINE_HL_PRIM (_VOID, lime_clipboard_event_manager_register, _FUN(_VOID, _NO_ARG) _TCLIPBOARD_EVENT); - DEFINE_HL_PRIM (_BYTES, lime_clipboard_get_text, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_clipboard_set_text, _STRING); - DEFINE_HL_PRIM (_F64, lime_data_pointer_offset, _F64 _I32); - DEFINE_HL_PRIM (_TBYTES, lime_deflate_compress, _TBYTES _TBYTES); - DEFINE_HL_PRIM (_TBYTES, lime_deflate_decompress, _TBYTES _TBYTES); - DEFINE_HL_PRIM (_VOID, lime_drop_event_manager_register, _FUN(_VOID, _NO_ARG) _TDROP_EVENT); - DEFINE_HL_PRIM (_BYTES, lime_file_dialog_open_directory, _STRING _STRING _STRING); - DEFINE_HL_PRIM (_BYTES, lime_file_dialog_open_file, _STRING _STRING _STRING); - DEFINE_HL_PRIM (_ARR, lime_file_dialog_open_files, _STRING _STRING _STRING); - DEFINE_HL_PRIM (_BYTES, lime_file_dialog_save_file, _STRING _STRING _STRING); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_file_watcher_create, _DYN); - DEFINE_HL_PRIM (_I32, lime_file_watcher_add_directory, _TCFFIPOINTER _STRING _BOOL); - DEFINE_HL_PRIM (_VOID, lime_file_watcher_remove_directory, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_file_watcher_update, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_font_get_ascender, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_font_get_descender, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BYTES, lime_font_get_family_name, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_font_get_glyph_index, _TCFFIPOINTER _STRING); - DEFINE_HL_PRIM (_ARR, lime_font_get_glyph_indices, _TCFFIPOINTER _STRING); - DEFINE_HL_PRIM (_DYN, lime_font_get_glyph_metrics, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_I32, lime_font_get_height, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_font_get_num_glyphs, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_font_get_underline_position, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_font_get_underline_thickness, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_font_get_units_per_em, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_clipboard_event_manager_register, _FUN(_VOID, _NO_ARG) _TCLIPBOARD_EVENT); + DEFINE_HL_PRIM (_BYTES, hl_clipboard_get_text, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_clipboard_set_text, _STRING); + DEFINE_HL_PRIM (_F64, hl_data_pointer_offset, _F64 _I32); + DEFINE_HL_PRIM (_TBYTES, hl_deflate_compress, _TBYTES _TBYTES); + DEFINE_HL_PRIM (_TBYTES, hl_deflate_decompress, _TBYTES _TBYTES); + DEFINE_HL_PRIM (_VOID, hl_drop_event_manager_register, _FUN(_VOID, _NO_ARG) _TDROP_EVENT); + DEFINE_HL_PRIM (_BYTES, hl_file_dialog_open_directory, _STRING _STRING _STRING); + DEFINE_HL_PRIM (_BYTES, hl_file_dialog_open_file, _STRING _STRING _STRING); + DEFINE_HL_PRIM (_ARR, hl_file_dialog_open_files, _STRING _STRING _STRING); + DEFINE_HL_PRIM (_BYTES, hl_file_dialog_save_file, _STRING _STRING _STRING); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_file_watcher_create, _DYN); + DEFINE_HL_PRIM (_I32, hl_file_watcher_add_directory, _TCFFIPOINTER _STRING _BOOL); + DEFINE_HL_PRIM (_VOID, hl_file_watcher_remove_directory, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_file_watcher_update, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_font_get_ascender, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_font_get_descender, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BYTES, hl_font_get_family_name, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_font_get_glyph_index, _TCFFIPOINTER _STRING); + DEFINE_HL_PRIM (_ARR, hl_font_get_glyph_indices, _TCFFIPOINTER _STRING); + DEFINE_HL_PRIM (_DYN, hl_font_get_glyph_metrics, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_I32, hl_font_get_height, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_font_get_num_glyphs, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_font_get_underline_position, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_font_get_underline_thickness, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_font_get_units_per_em, _TCFFIPOINTER); // DEFINE_PRIME1 (lime_font_load); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_font_load_bytes, _TBYTES); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_font_load_file, _STRING); - DEFINE_HL_PRIM (_DYN, lime_font_outline_decompose, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_TBYTES, lime_font_render_glyph, _TCFFIPOINTER _I32 _TBYTES); - DEFINE_HL_PRIM (_TBYTES, lime_font_render_glyphs, _TCFFIPOINTER _ARR _TBYTES); - DEFINE_HL_PRIM (_VOID, lime_font_set_size, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_gamepad_add_mappings, _ARR); - DEFINE_HL_PRIM (_VOID, lime_gamepad_event_manager_register, _FUN(_VOID, _NO_ARG) _TGAMEPAD_EVENT); - DEFINE_HL_PRIM (_BYTES, lime_gamepad_get_device_guid, _I32); - DEFINE_HL_PRIM (_BYTES, lime_gamepad_get_device_name, _I32); - DEFINE_HL_PRIM (_TBYTES, lime_gzip_compress, _TBYTES _TBYTES); - DEFINE_HL_PRIM (_TBYTES, lime_gzip_decompress, _TBYTES _TBYTES); - DEFINE_HL_PRIM (_VOID, lime_haptic_vibrate, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_color_transform, _TIMAGE _TRECTANGLE _TARRAYBUFFERVIEW); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_copy_channel, _TIMAGE _TIMAGE _TRECTANGLE _TVECTOR2 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_copy_pixels, _TIMAGE _TIMAGE _TRECTANGLE _TVECTOR2 _TIMAGE _TVECTOR2 _BOOL); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_fill_rect, _TIMAGE _TRECTANGLE _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_flood_fill, _TIMAGE _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_get_pixels, _TIMAGE _TRECTANGLE _I32 _TBYTES); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_merge, _TIMAGE _TIMAGE _TRECTANGLE _TVECTOR2 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_multiply_alpha, _TIMAGE); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_resize, _TIMAGE _TIMAGEBUFFER _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_set_format, _TIMAGE _I32); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_set_pixels, _TIMAGE _TRECTANGLE _TBYTES _I32 _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_image_data_util_threshold, _TIMAGE _TIMAGE _TRECTANGLE _TVECTOR2 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _BOOL); - DEFINE_HL_PRIM (_VOID, lime_image_data_util_unmultiply_alpha, _TIMAGE); - DEFINE_HL_PRIM (_TBYTES, lime_image_encode, _TIMAGEBUFFER _I32 _I32 _TBYTES); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_font_load_bytes, _TBYTES); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_font_load_file, _STRING); + DEFINE_HL_PRIM (_DYN, hl_font_outline_decompose, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_TBYTES, hl_font_render_glyph, _TCFFIPOINTER _I32 _TBYTES); + DEFINE_HL_PRIM (_TBYTES, hl_font_render_glyphs, _TCFFIPOINTER _ARR _TBYTES); + DEFINE_HL_PRIM (_VOID, hl_font_set_size, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_gamepad_add_mappings, _ARR); + DEFINE_HL_PRIM (_VOID, hl_gamepad_event_manager_register, _FUN(_VOID, _NO_ARG) _TGAMEPAD_EVENT); + DEFINE_HL_PRIM (_BYTES, hl_gamepad_get_device_guid, _I32); + DEFINE_HL_PRIM (_BYTES, hl_gamepad_get_device_name, _I32); + DEFINE_HL_PRIM (_TBYTES, hl_gzip_compress, _TBYTES _TBYTES); + DEFINE_HL_PRIM (_TBYTES, hl_gzip_decompress, _TBYTES _TBYTES); + DEFINE_HL_PRIM (_VOID, hl_haptic_vibrate, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_color_transform, _TIMAGE _TRECTANGLE _TARRAYBUFFERVIEW); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_copy_channel, _TIMAGE _TIMAGE _TRECTANGLE _TVECTOR2 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_copy_pixels, _TIMAGE _TIMAGE _TRECTANGLE _TVECTOR2 _TIMAGE _TVECTOR2 _BOOL); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_fill_rect, _TIMAGE _TRECTANGLE _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_flood_fill, _TIMAGE _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_get_pixels, _TIMAGE _TRECTANGLE _I32 _TBYTES); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_merge, _TIMAGE _TIMAGE _TRECTANGLE _TVECTOR2 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_multiply_alpha, _TIMAGE); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_resize, _TIMAGE _TIMAGEBUFFER _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_set_format, _TIMAGE _I32); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_set_pixels, _TIMAGE _TRECTANGLE _TBYTES _I32 _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_image_data_util_threshold, _TIMAGE _TIMAGE _TRECTANGLE _TVECTOR2 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _BOOL); + DEFINE_HL_PRIM (_VOID, hl_image_data_util_unmultiply_alpha, _TIMAGE); + DEFINE_HL_PRIM (_TBYTES, hl_image_encode, _TIMAGEBUFFER _I32 _I32 _TBYTES); // DEFINE_PRIME2 (lime_image_load); - DEFINE_HL_PRIM (_TIMAGEBUFFER, lime_image_load_bytes, _TBYTES _TIMAGEBUFFER); - DEFINE_HL_PRIM (_TIMAGEBUFFER, lime_image_load_file, _STRING _TIMAGEBUFFER); - DEFINE_HL_PRIM (_F64, lime_jni_getenv, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_joystick_event_manager_register, _FUN(_VOID, _NO_ARG) _TJOYSTICK_EVENT); - DEFINE_HL_PRIM (_BYTES, lime_joystick_get_device_guid, _I32); - DEFINE_HL_PRIM (_BYTES, lime_joystick_get_device_name, _I32); - DEFINE_HL_PRIM (_I32, lime_joystick_get_num_axes, _I32); - DEFINE_HL_PRIM (_I32, lime_joystick_get_num_buttons, _I32); - DEFINE_HL_PRIM (_I32, lime_joystick_get_num_hats, _I32); - DEFINE_HL_PRIM (_I32, lime_joystick_get_num_trackballs, _I32); - DEFINE_HL_PRIM (_TIMAGEBUFFER, lime_jpeg_decode_bytes, _TBYTES _BOOL _TIMAGEBUFFER); - DEFINE_HL_PRIM (_TIMAGEBUFFER, lime_jpeg_decode_file, _STRING _BOOL _TIMAGEBUFFER); - DEFINE_HL_PRIM (_F32, lime_key_code_from_scan_code, _F32); - DEFINE_HL_PRIM (_F32, lime_key_code_to_scan_code, _F32); - DEFINE_HL_PRIM (_VOID, lime_key_event_manager_register, _FUN (_VOID, _NO_ARG) _TKEY_EVENT); - DEFINE_HL_PRIM (_BYTES, lime_locale_get_system_locale, _NO_ARG); - DEFINE_HL_PRIM (_TBYTES, lime_lzma_compress, _TBYTES _TBYTES); - DEFINE_HL_PRIM (_TBYTES, lime_lzma_decompress, _TBYTES _TBYTES); - DEFINE_HL_PRIM (_VOID, lime_mouse_event_manager_register, _FUN (_VOID, _NO_ARG) _TMOUSE_EVENT); + DEFINE_HL_PRIM (_TIMAGEBUFFER, hl_image_load_bytes, _TBYTES _TIMAGEBUFFER); + DEFINE_HL_PRIM (_TIMAGEBUFFER, hl_image_load_file, _STRING _TIMAGEBUFFER); + DEFINE_HL_PRIM (_F64, hl_jni_getenv, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_joystick_event_manager_register, _FUN(_VOID, _NO_ARG) _TJOYSTICK_EVENT); + DEFINE_HL_PRIM (_BYTES, hl_joystick_get_device_guid, _I32); + DEFINE_HL_PRIM (_BYTES, hl_joystick_get_device_name, _I32); + DEFINE_HL_PRIM (_I32, hl_joystick_get_num_axes, _I32); + DEFINE_HL_PRIM (_I32, hl_joystick_get_num_buttons, _I32); + DEFINE_HL_PRIM (_I32, hl_joystick_get_num_hats, _I32); + DEFINE_HL_PRIM (_I32, hl_joystick_get_num_trackballs, _I32); + DEFINE_HL_PRIM (_TIMAGEBUFFER, hl_jpeg_decode_bytes, _TBYTES _BOOL _TIMAGEBUFFER); + DEFINE_HL_PRIM (_TIMAGEBUFFER, hl_jpeg_decode_file, _STRING _BOOL _TIMAGEBUFFER); + DEFINE_HL_PRIM (_F32, hl_key_code_from_scan_code, _F32); + DEFINE_HL_PRIM (_F32, hl_key_code_to_scan_code, _F32); + DEFINE_HL_PRIM (_VOID, hl_key_event_manager_register, _FUN (_VOID, _NO_ARG) _TKEY_EVENT); + DEFINE_HL_PRIM (_BYTES, hl_locale_get_system_locale, _NO_ARG); + DEFINE_HL_PRIM (_TBYTES, hl_lzma_compress, _TBYTES _TBYTES); + DEFINE_HL_PRIM (_TBYTES, hl_lzma_decompress, _TBYTES _TBYTES); + DEFINE_HL_PRIM (_VOID, hl_mouse_event_manager_register, _FUN (_VOID, _NO_ARG) _TMOUSE_EVENT); // DEFINE_PRIME1v (lime_neko_execute); - DEFINE_HL_PRIM (_TIMAGEBUFFER, lime_png_decode_bytes, _TBYTES _BOOL _TIMAGEBUFFER); - DEFINE_HL_PRIM (_TIMAGEBUFFER, lime_png_decode_file, _STRING _BOOL _TIMAGEBUFFER); - DEFINE_HL_PRIM (_VOID, lime_render_event_manager_register, _FUN (_VOID, _NO_ARG) _TRENDER_EVENT); - DEFINE_HL_PRIM (_VOID, lime_sensor_event_manager_register, _FUN (_VOID, _NO_ARG) _TSENSOR_EVENT); - DEFINE_HL_PRIM (_BOOL, lime_system_get_allow_screen_timeout, _NO_ARG); - DEFINE_HL_PRIM (_BYTES, lime_system_get_device_model, _NO_ARG); - DEFINE_HL_PRIM (_BYTES, lime_system_get_device_vendor, _NO_ARG); - DEFINE_HL_PRIM (_BYTES, lime_system_get_directory, _I32 _STRING _STRING); - DEFINE_HL_PRIM (_DYN, lime_system_get_display, _I32); - DEFINE_HL_PRIM (_BOOL, lime_system_get_ios_tablet, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_system_get_num_displays, _NO_ARG); - DEFINE_HL_PRIM (_BYTES, lime_system_get_platform_label, _NO_ARG); - DEFINE_HL_PRIM (_BYTES, lime_system_get_platform_name, _NO_ARG); - DEFINE_HL_PRIM (_BYTES, lime_system_get_platform_version, _NO_ARG); - DEFINE_HL_PRIM (_F64, lime_system_get_timer, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_system_get_windows_console_mode, _I32); - DEFINE_HL_PRIM (_VOID, lime_system_open_file, _STRING); - DEFINE_HL_PRIM (_VOID, lime_system_open_url, _STRING _STRING); - DEFINE_HL_PRIM (_BOOL, lime_system_set_allow_screen_timeout, _BOOL); - DEFINE_HL_PRIM (_BOOL, lime_system_set_windows_console_mode, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_text_event_manager_register, _FUN (_VOID, _NO_ARG) _TTEXT_EVENT); - DEFINE_HL_PRIM (_VOID, lime_touch_event_manager_register, _FUN (_VOID, _NO_ARG) _TTOUCH_EVENT); - DEFINE_HL_PRIM (_VOID, lime_window_alert, _TCFFIPOINTER _STRING _STRING); - DEFINE_HL_PRIM (_VOID, lime_window_close, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_window_context_flip, _TCFFIPOINTER); - DEFINE_HL_PRIM (_DYN, lime_window_context_lock, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_window_context_make_current, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_window_context_unlock, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_window_create, _TCFFIPOINTER _I32 _I32 _I32 _STRING); - DEFINE_HL_PRIM (_VOID, lime_window_event_manager_register, _FUN (_VOID, _NO_ARG) _TWINDOW_EVENT); - DEFINE_HL_PRIM (_VOID, lime_window_focus, _TCFFIPOINTER); - DEFINE_HL_PRIM (_F64, lime_window_get_context, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BYTES, lime_window_get_context_type, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_window_get_display, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_window_get_display_mode, _TCFFIPOINTER _TDISPLAYMODE); - DEFINE_HL_PRIM (_I32, lime_window_get_height, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_window_get_id, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_window_get_mouse_lock, _TCFFIPOINTER); - DEFINE_HL_PRIM (_F64, lime_window_get_scale, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_window_get_text_input_enabled, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_window_get_width, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_window_get_x, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_window_get_y, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_window_move, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_DYN, lime_window_read_pixels, _TCFFIPOINTER _TRECTANGLE _TIMAGEBUFFER); - DEFINE_HL_PRIM (_VOID, lime_window_resize, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_BOOL, lime_window_set_borderless, _TCFFIPOINTER _BOOL); - DEFINE_HL_PRIM (_VOID, lime_window_set_cursor, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_window_set_display_mode, _TCFFIPOINTER _TDISPLAYMODE _TDISPLAYMODE); - DEFINE_HL_PRIM (_BOOL, lime_window_set_fullscreen, _TCFFIPOINTER _BOOL); - DEFINE_HL_PRIM (_VOID, lime_window_set_icon, _TCFFIPOINTER _TIMAGEBUFFER); - DEFINE_HL_PRIM (_BOOL, lime_window_set_maximized, _TCFFIPOINTER _BOOL); - DEFINE_HL_PRIM (_BOOL, lime_window_set_minimized, _TCFFIPOINTER _BOOL); - DEFINE_HL_PRIM (_VOID, lime_window_set_mouse_lock, _TCFFIPOINTER _BOOL); - DEFINE_HL_PRIM (_BOOL, lime_window_set_resizable, _TCFFIPOINTER _BOOL); - DEFINE_HL_PRIM (_VOID, lime_window_set_text_input_enabled, _TCFFIPOINTER _BOOL); - DEFINE_HL_PRIM (_STRING, lime_window_set_title, _TCFFIPOINTER _STRING); - DEFINE_HL_PRIM (_VOID, lime_window_warp_mouse, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_TBYTES, lime_zlib_compress, _TBYTES _TBYTES); - DEFINE_HL_PRIM (_TBYTES, lime_zlib_decompress, _TBYTES _TBYTES); + DEFINE_HL_PRIM (_TIMAGEBUFFER, hl_png_decode_bytes, _TBYTES _BOOL _TIMAGEBUFFER); + DEFINE_HL_PRIM (_TIMAGEBUFFER, hl_png_decode_file, _STRING _BOOL _TIMAGEBUFFER); + DEFINE_HL_PRIM (_VOID, hl_render_event_manager_register, _FUN (_VOID, _NO_ARG) _TRENDER_EVENT); + DEFINE_HL_PRIM (_VOID, hl_sensor_event_manager_register, _FUN (_VOID, _NO_ARG) _TSENSOR_EVENT); + DEFINE_HL_PRIM (_BOOL, hl_system_get_allow_screen_timeout, _NO_ARG); + DEFINE_HL_PRIM (_BYTES, hl_system_get_device_model, _NO_ARG); + DEFINE_HL_PRIM (_BYTES, hl_system_get_device_vendor, _NO_ARG); + DEFINE_HL_PRIM (_BYTES, hl_system_get_directory, _I32 _STRING _STRING); + DEFINE_HL_PRIM (_DYN, hl_system_get_display, _I32); + DEFINE_HL_PRIM (_BOOL, hl_system_get_ios_tablet, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_system_get_num_displays, _NO_ARG); + DEFINE_HL_PRIM (_BYTES, hl_system_get_platform_label, _NO_ARG); + DEFINE_HL_PRIM (_BYTES, hl_system_get_platform_name, _NO_ARG); + DEFINE_HL_PRIM (_BYTES, hl_system_get_platform_version, _NO_ARG); + DEFINE_HL_PRIM (_F64, hl_system_get_timer, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_system_get_windows_console_mode, _I32); + DEFINE_HL_PRIM (_VOID, hl_system_open_file, _STRING); + DEFINE_HL_PRIM (_VOID, hl_system_open_url, _STRING _STRING); + DEFINE_HL_PRIM (_BOOL, hl_system_set_allow_screen_timeout, _BOOL); + DEFINE_HL_PRIM (_BOOL, hl_system_set_windows_console_mode, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_text_event_manager_register, _FUN (_VOID, _NO_ARG) _TTEXT_EVENT); + DEFINE_HL_PRIM (_VOID, hl_touch_event_manager_register, _FUN (_VOID, _NO_ARG) _TTOUCH_EVENT); + DEFINE_HL_PRIM (_VOID, hl_window_alert, _TCFFIPOINTER _STRING _STRING); + DEFINE_HL_PRIM (_VOID, hl_window_close, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_window_context_flip, _TCFFIPOINTER); + DEFINE_HL_PRIM (_DYN, hl_window_context_lock, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_window_context_make_current, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_window_context_unlock, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_window_create, _TCFFIPOINTER _I32 _I32 _I32 _STRING); + DEFINE_HL_PRIM (_VOID, hl_window_event_manager_register, _FUN (_VOID, _NO_ARG) _TWINDOW_EVENT); + DEFINE_HL_PRIM (_VOID, hl_window_focus, _TCFFIPOINTER); + DEFINE_HL_PRIM (_F64, hl_window_get_context, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BYTES, hl_window_get_context_type, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_window_get_display, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_window_get_display_mode, _TCFFIPOINTER _TDISPLAYMODE); + DEFINE_HL_PRIM (_I32, hl_window_get_height, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_window_get_id, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_window_get_mouse_lock, _TCFFIPOINTER); + DEFINE_HL_PRIM (_F64, hl_window_get_scale, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_window_get_text_input_enabled, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_window_get_width, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_window_get_x, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_window_get_y, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_window_move, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_DYN, hl_window_read_pixels, _TCFFIPOINTER _TRECTANGLE _TIMAGEBUFFER); + DEFINE_HL_PRIM (_VOID, hl_window_resize, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_BOOL, hl_window_set_borderless, _TCFFIPOINTER _BOOL); + DEFINE_HL_PRIM (_VOID, hl_window_set_cursor, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_window_set_display_mode, _TCFFIPOINTER _TDISPLAYMODE _TDISPLAYMODE); + DEFINE_HL_PRIM (_BOOL, hl_window_set_fullscreen, _TCFFIPOINTER _BOOL); + DEFINE_HL_PRIM (_VOID, hl_window_set_icon, _TCFFIPOINTER _TIMAGEBUFFER); + DEFINE_HL_PRIM (_BOOL, hl_window_set_maximized, _TCFFIPOINTER _BOOL); + DEFINE_HL_PRIM (_BOOL, hl_window_set_minimized, _TCFFIPOINTER _BOOL); + DEFINE_HL_PRIM (_VOID, hl_window_set_mouse_lock, _TCFFIPOINTER _BOOL); + DEFINE_HL_PRIM (_BOOL, hl_window_set_resizable, _TCFFIPOINTER _BOOL); + DEFINE_HL_PRIM (_VOID, hl_window_set_text_input_enabled, _TCFFIPOINTER _BOOL); + DEFINE_HL_PRIM (_STRING, hl_window_set_title, _TCFFIPOINTER _STRING); + DEFINE_HL_PRIM (_VOID, hl_window_warp_mouse, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_TBYTES, hl_zlib_compress, _TBYTES _TBYTES); + DEFINE_HL_PRIM (_TBYTES, hl_zlib_decompress, _TBYTES _TBYTES); } diff --git a/project/src/graphics/cairo/CairoBindings.cpp b/project/src/graphics/cairo/CairoBindings.cpp index 68203a9d30..b3c92e1f06 100644 --- a/project/src/graphics/cairo/CairoBindings.cpp +++ b/project/src/graphics/cairo/CairoBindings.cpp @@ -176,7 +176,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_arc (HL_CFFIPointer* handle, double xc, double yc, double radius, double angle1, double angle2) { + HL_PRIM void HL_NAME(hl_cairo_arc) (HL_CFFIPointer* handle, double xc, double yc, double radius, double angle1, double angle2) { cairo_arc ((cairo_t*)handle->ptr, xc, yc, radius, angle1, angle2); @@ -190,7 +190,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_arc_negative (HL_CFFIPointer* handle, double xc, double yc, double radius, double angle1, double angle2) { + HL_PRIM void HL_NAME(hl_cairo_arc_negative) (HL_CFFIPointer* handle, double xc, double yc, double radius, double angle1, double angle2) { cairo_arc_negative ((cairo_t*)handle->ptr, xc, yc, radius, angle1, angle2); @@ -204,7 +204,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_clip (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_clip) (HL_CFFIPointer* handle) { cairo_clip ((cairo_t*)handle->ptr); @@ -218,7 +218,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_clip_extents (HL_CFFIPointer* handle, double x1, double y1, double x2, double y2) { + HL_PRIM void HL_NAME(hl_cairo_clip_extents) (HL_CFFIPointer* handle, double x1, double y1, double x2, double y2) { cairo_clip_extents ((cairo_t*)handle->ptr, &x1, &y1, &x2, &y2); @@ -232,7 +232,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_clip_preserve (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_clip_preserve) (HL_CFFIPointer* handle) { cairo_clip_preserve ((cairo_t*)handle->ptr); @@ -246,7 +246,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_close_path (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_close_path) (HL_CFFIPointer* handle) { cairo_close_path ((cairo_t*)handle->ptr); @@ -260,7 +260,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_copy_page (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_copy_page) (HL_CFFIPointer* handle) { cairo_copy_page ((cairo_t*)handle->ptr); @@ -280,7 +280,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_create (HL_CFFIPointer* surface) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_create) (HL_CFFIPointer* surface) { cairo_t* cairo = cairo_create ((cairo_surface_t*)surface->ptr); @@ -300,7 +300,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_curve_to (HL_CFFIPointer* handle, double x1, double y1, double x2, double y2, double x3, double y3) { + HL_PRIM void HL_NAME(hl_cairo_curve_to) (HL_CFFIPointer* handle, double x1, double y1, double x2, double y2, double x3, double y3) { cairo_curve_to ((cairo_t*)handle->ptr, x1, y1, x2, y2, x3, y3); @@ -314,7 +314,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_fill (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_fill) (HL_CFFIPointer* handle) { cairo_fill ((cairo_t*)handle->ptr); @@ -328,7 +328,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_fill_extents (HL_CFFIPointer* handle, double x1, double y1, double x2, double y2) { + HL_PRIM void HL_NAME(hl_cairo_fill_extents) (HL_CFFIPointer* handle, double x1, double y1, double x2, double y2) { cairo_fill_extents ((cairo_t*)handle->ptr, &x1, &y1, &x2, &y2); @@ -342,7 +342,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_fill_preserve (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_fill_preserve) (HL_CFFIPointer* handle) { cairo_fill_preserve ((cairo_t*)handle->ptr); @@ -356,7 +356,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_font_face_status (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_font_face_status) (HL_CFFIPointer* handle) { return cairo_font_face_status ((cairo_font_face_t*)handle->ptr); @@ -371,7 +371,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_font_options_create () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_font_options_create) () { cairo_font_options_t* options = cairo_font_options_create (); return HLCFFIPointer (options, (hl_finalizer)hl_gc_cairo_font_options); @@ -386,7 +386,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_font_options_get_antialias (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_font_options_get_antialias) (HL_CFFIPointer* handle) { return cairo_font_options_get_antialias ((cairo_font_options_t*)handle->ptr); @@ -400,7 +400,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_font_options_get_hint_metrics (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_font_options_get_hint_metrics) (HL_CFFIPointer* handle) { return cairo_font_options_get_hint_metrics ((cairo_font_options_t*)handle->ptr); @@ -414,7 +414,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_font_options_get_hint_style (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_font_options_get_hint_style) (HL_CFFIPointer* handle) { return cairo_font_options_get_hint_style ((cairo_font_options_t*)handle->ptr); @@ -428,7 +428,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_font_options_get_subpixel_order (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_font_options_get_subpixel_order) (HL_CFFIPointer* handle) { return cairo_font_options_get_subpixel_order ((cairo_font_options_t*)handle->ptr); @@ -442,7 +442,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_font_options_set_antialias (HL_CFFIPointer* handle, int v) { + HL_PRIM void HL_NAME(hl_cairo_font_options_set_antialias) (HL_CFFIPointer* handle, int v) { cairo_font_options_set_antialias ((cairo_font_options_t*)handle->ptr, (cairo_antialias_t)v); @@ -456,7 +456,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_font_options_set_hint_metrics (HL_CFFIPointer* handle, int v) { + HL_PRIM void HL_NAME(hl_cairo_font_options_set_hint_metrics) (HL_CFFIPointer* handle, int v) { cairo_font_options_set_hint_metrics ((cairo_font_options_t*)handle->ptr, (cairo_hint_metrics_t)v); @@ -470,7 +470,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_font_options_set_hint_style (HL_CFFIPointer* handle, int v) { + HL_PRIM void HL_NAME(hl_cairo_font_options_set_hint_style) (HL_CFFIPointer* handle, int v) { cairo_font_options_set_hint_style ((cairo_font_options_t*)handle->ptr, (cairo_hint_style_t)v); @@ -484,7 +484,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_font_options_set_subpixel_order (HL_CFFIPointer* handle, int v) { + HL_PRIM void HL_NAME(hl_cairo_font_options_set_subpixel_order) (HL_CFFIPointer* handle, int v) { cairo_font_options_set_subpixel_order ((cairo_font_options_t*)handle->ptr, (cairo_subpixel_order_t)v); @@ -512,7 +512,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_ft_font_face_create (HL_CFFIPointer* face, int flags) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_ft_font_face_create) (HL_CFFIPointer* face, int flags) { #ifdef LIME_FREETYPE Font* font = (Font*)face->ptr; @@ -540,7 +540,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_get_antialias (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_get_antialias) (HL_CFFIPointer* handle) { return cairo_get_antialias ((cairo_t*)handle->ptr); @@ -557,7 +557,7 @@ namespace lime { } - HL_PRIM Vector2* hl_lime_cairo_get_current_point (HL_CFFIPointer* handle, Vector2* out) { + HL_PRIM Vector2* HL_NAME(hl_cairo_get_current_point) (HL_CFFIPointer* handle, Vector2* out) { cairo_get_current_point ((cairo_t*)handle->ptr, &out->x, &out->y); return out; @@ -588,7 +588,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_cairo_get_dash (HL_CFFIPointer* handle) { + HL_PRIM varray* HL_NAME(hl_cairo_get_dash) (HL_CFFIPointer* handle) { int length = cairo_get_dash_count ((cairo_t*)handle->ptr); varray* result = hl_alloc_array (&hlt_f64, length); @@ -609,7 +609,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_get_dash_count (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_get_dash_count) (HL_CFFIPointer* handle) { return cairo_get_dash_count ((cairo_t*)handle->ptr); @@ -623,7 +623,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_get_fill_rule (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_get_fill_rule) (HL_CFFIPointer* handle) { return cairo_get_fill_rule ((cairo_t*)handle->ptr); @@ -653,7 +653,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_get_font_face (HL_CFFIPointer* handle) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_get_font_face) (HL_CFFIPointer* handle) { cairo_font_face_t* face = cairo_get_font_face ((cairo_t*)handle->ptr); @@ -685,7 +685,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_get_font_options (HL_CFFIPointer* handle) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_get_font_options) (HL_CFFIPointer* handle) { cairo_font_options_t* options = 0; cairo_get_font_options ((cairo_t*)handle->ptr, options); @@ -717,7 +717,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_get_group_target (HL_CFFIPointer* handle) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_get_group_target) (HL_CFFIPointer* handle) { cairo_surface_t* surface = cairo_get_group_target ((cairo_t*)handle->ptr); @@ -747,7 +747,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_get_line_cap (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_get_line_cap) (HL_CFFIPointer* handle) { return cairo_get_line_cap ((cairo_t*)handle->ptr); @@ -761,7 +761,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_get_line_join (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_get_line_join) (HL_CFFIPointer* handle) { return cairo_get_line_join ((cairo_t*)handle->ptr); @@ -775,7 +775,7 @@ namespace lime { } - HL_PRIM double hl_lime_cairo_get_line_width (HL_CFFIPointer* handle) { + HL_PRIM double HL_NAME(hl_cairo_get_line_width) (HL_CFFIPointer* handle) { return cairo_get_line_width ((cairo_t*)handle->ptr); @@ -792,7 +792,7 @@ namespace lime { } - HL_PRIM Matrix3* hl_lime_cairo_get_matrix (HL_CFFIPointer* handle, Matrix3* out) { + HL_PRIM Matrix3* HL_NAME(hl_cairo_get_matrix) (HL_CFFIPointer* handle, Matrix3* out) { // cairo_matrix_t cm; // cairo_get_matrix ((cairo_t*)handle->ptr, &cm); @@ -815,7 +815,7 @@ namespace lime { } - HL_PRIM double hl_lime_cairo_get_miter_limit (HL_CFFIPointer* handle) { + HL_PRIM double HL_NAME(hl_cairo_get_miter_limit) (HL_CFFIPointer* handle) { return cairo_get_miter_limit ((cairo_t*)handle->ptr); @@ -829,7 +829,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_get_operator (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_get_operator) (HL_CFFIPointer* handle) { return cairo_get_operator ((cairo_t*)handle->ptr); @@ -859,7 +859,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_get_source (HL_CFFIPointer* handle) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_get_source) (HL_CFFIPointer* handle) { cairo_pattern_t* pattern = cairo_get_source ((cairo_t*)handle->ptr); @@ -905,7 +905,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_get_target (HL_CFFIPointer* handle) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_get_target) (HL_CFFIPointer* handle) { cairo_surface_t* surface = cairo_get_target ((cairo_t*)handle->ptr); @@ -935,7 +935,7 @@ namespace lime { } - HL_PRIM double hl_lime_cairo_get_tolerance (HL_CFFIPointer* handle) { + HL_PRIM double HL_NAME(hl_cairo_get_tolerance) (HL_CFFIPointer* handle) { return cairo_get_tolerance ((cairo_t*)handle->ptr); @@ -949,7 +949,7 @@ namespace lime { } - HL_PRIM bool hl_lime_cairo_has_current_point (HL_CFFIPointer* handle) { + HL_PRIM bool HL_NAME(hl_cairo_has_current_point) (HL_CFFIPointer* handle) { return cairo_has_current_point ((cairo_t*)handle->ptr); @@ -963,7 +963,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_identity_matrix (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_identity_matrix) (HL_CFFIPointer* handle) { cairo_identity_matrix ((cairo_t*)handle->ptr); @@ -983,7 +983,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_image_surface_create (int format, int width, int height) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_image_surface_create) (int format, int width, int height) { cairo_surface_t* surface = cairo_image_surface_create ((cairo_format_t)format, width, height); @@ -1009,7 +1009,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_image_surface_create_for_data (double data, int format, int width, int height, int stride) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_image_surface_create_for_data) (double data, int format, int width, int height, int stride) { cairo_surface_t* surface = cairo_image_surface_create_for_data ((unsigned char*)(uintptr_t)data, (cairo_format_t)format, width, height, stride); @@ -1029,7 +1029,7 @@ namespace lime { } - HL_PRIM double hl_lime_cairo_image_surface_get_data (HL_CFFIPointer* handle) { + HL_PRIM double HL_NAME(hl_cairo_image_surface_get_data) (HL_CFFIPointer* handle) { return (uintptr_t)cairo_image_surface_get_data ((cairo_surface_t*)handle->ptr); @@ -1043,7 +1043,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_image_surface_get_format (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_image_surface_get_format) (HL_CFFIPointer* handle) { return (int)cairo_image_surface_get_format ((cairo_surface_t*)handle->ptr); @@ -1057,7 +1057,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_image_surface_get_height (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_image_surface_get_height) (HL_CFFIPointer* handle) { return cairo_image_surface_get_height ((cairo_surface_t*)handle->ptr); @@ -1071,7 +1071,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_image_surface_get_stride (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_image_surface_get_stride) (HL_CFFIPointer* handle) { return cairo_image_surface_get_stride ((cairo_surface_t*)handle->ptr); @@ -1085,7 +1085,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_image_surface_get_width (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_image_surface_get_width) (HL_CFFIPointer* handle) { return cairo_image_surface_get_width ((cairo_surface_t*)handle->ptr); @@ -1099,7 +1099,7 @@ namespace lime { } - HL_PRIM bool hl_lime_cairo_in_clip (HL_CFFIPointer* handle, double x, double y) { + HL_PRIM bool HL_NAME(hl_cairo_in_clip) (HL_CFFIPointer* handle, double x, double y) { return cairo_in_clip ((cairo_t*)handle->ptr, x, y); @@ -1113,7 +1113,7 @@ namespace lime { } - HL_PRIM bool hl_lime_cairo_in_fill (HL_CFFIPointer* handle, double x, double y) { + HL_PRIM bool HL_NAME(hl_cairo_in_fill) (HL_CFFIPointer* handle, double x, double y) { return cairo_in_fill ((cairo_t*)handle->ptr, x, y); @@ -1127,7 +1127,7 @@ namespace lime { } - HL_PRIM bool hl_lime_cairo_in_stroke (HL_CFFIPointer* handle, double x, double y) { + HL_PRIM bool HL_NAME(hl_cairo_in_stroke) (HL_CFFIPointer* handle, double x, double y) { return cairo_in_stroke ((cairo_t*)handle->ptr, x, y); @@ -1141,7 +1141,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_line_to (HL_CFFIPointer* handle, double x, double y) { + HL_PRIM void HL_NAME(hl_cairo_line_to) (HL_CFFIPointer* handle, double x, double y) { cairo_line_to ((cairo_t*)handle->ptr, x, y); @@ -1155,7 +1155,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_mask (HL_CFFIPointer* handle, HL_CFFIPointer* pattern) { + HL_PRIM void HL_NAME(hl_cairo_mask) (HL_CFFIPointer* handle, HL_CFFIPointer* pattern) { cairo_mask ((cairo_t*)handle->ptr, (cairo_pattern_t*)pattern->ptr); @@ -1169,7 +1169,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_mask_surface (HL_CFFIPointer* handle, HL_CFFIPointer* surface, double x, double y) { + HL_PRIM void HL_NAME(hl_cairo_mask_surface) (HL_CFFIPointer* handle, HL_CFFIPointer* surface, double x, double y) { cairo_mask_surface ((cairo_t*)handle->ptr, (cairo_surface_t*)surface->ptr, x, y); @@ -1183,7 +1183,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_move_to (HL_CFFIPointer* handle, double x, double y) { + HL_PRIM void HL_NAME(hl_cairo_move_to) (HL_CFFIPointer* handle, double x, double y) { cairo_move_to ((cairo_t*)handle->ptr, x, y); @@ -1197,7 +1197,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_new_path (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_new_path) (HL_CFFIPointer* handle) { cairo_new_path ((cairo_t*)handle->ptr); @@ -1211,7 +1211,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_paint (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_paint) (HL_CFFIPointer* handle) { cairo_paint ((cairo_t*)handle->ptr); @@ -1225,7 +1225,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_paint_with_alpha (HL_CFFIPointer* handle, double alpha) { + HL_PRIM void HL_NAME(hl_cairo_paint_with_alpha) (HL_CFFIPointer* handle, double alpha) { cairo_paint_with_alpha ((cairo_t*)handle->ptr, alpha); @@ -1239,7 +1239,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_pattern_add_color_stop_rgb (HL_CFFIPointer* handle, double offset, double red, double green, double blue) { + HL_PRIM void HL_NAME(hl_cairo_pattern_add_color_stop_rgb) (HL_CFFIPointer* handle, double offset, double red, double green, double blue) { cairo_pattern_add_color_stop_rgb ((cairo_pattern_t*)handle->ptr, offset, red, green, blue); @@ -1253,7 +1253,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_pattern_add_color_stop_rgba (HL_CFFIPointer* handle, double offset, double red, double green, double blue, double alpha) { + HL_PRIM void HL_NAME(hl_cairo_pattern_add_color_stop_rgba) (HL_CFFIPointer* handle, double offset, double red, double green, double blue, double alpha) { cairo_pattern_add_color_stop_rgba ((cairo_pattern_t*)handle->ptr, offset, red, green, blue, alpha); @@ -1273,7 +1273,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_pattern_create_for_surface (HL_CFFIPointer* surface) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_pattern_create_for_surface) (HL_CFFIPointer* surface) { cairo_pattern_t* pattern = cairo_pattern_create_for_surface ((cairo_surface_t*)surface->ptr); @@ -1299,7 +1299,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_pattern_create_linear (double x0, double y0, double x1, double y1) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_pattern_create_linear) (double x0, double y0, double x1, double y1) { cairo_pattern_t* pattern = cairo_pattern_create_linear (x0, y0, x1, y1); @@ -1325,7 +1325,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_pattern_create_radial (double cx0, double cy0, double radius0, double cx1, double cy1, double radius1) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_pattern_create_radial) (double cx0, double cy0, double radius0, double cx1, double cy1, double radius1) { cairo_pattern_t* pattern = cairo_pattern_create_radial (cx0, cy0, radius0, cx1, cy1, radius1); @@ -1351,7 +1351,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_pattern_create_rgb (double r, double g, double b) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_pattern_create_rgb) (double r, double g, double b) { cairo_pattern_t* pattern = cairo_pattern_create_rgb (r, g, b); @@ -1377,7 +1377,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_pattern_create_rgba (double r, double g, double b, double a) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_pattern_create_rgba) (double r, double g, double b, double a) { cairo_pattern_t* pattern = cairo_pattern_create_rgba (r, g, b, a); @@ -1399,7 +1399,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_pattern_get_color_stop_count (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_pattern_get_color_stop_count) (HL_CFFIPointer* handle) { int count; cairo_pattern_get_color_stop_count ((cairo_pattern_t*)handle->ptr, &count); @@ -1415,7 +1415,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_pattern_get_extend (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_pattern_get_extend) (HL_CFFIPointer* handle) { return cairo_pattern_get_extend ((cairo_pattern_t*)handle->ptr); @@ -1429,7 +1429,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_pattern_get_filter (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_pattern_get_filter) (HL_CFFIPointer* handle) { return cairo_pattern_get_filter ((cairo_pattern_t*)handle->ptr); @@ -1446,7 +1446,7 @@ namespace lime { } - HL_PRIM Matrix3* hl_lime_cairo_pattern_get_matrix (HL_CFFIPointer* handle, Matrix3* out) { + HL_PRIM Matrix3* HL_NAME(hl_cairo_pattern_get_matrix) (HL_CFFIPointer* handle, Matrix3* out) { // cairo_matrix_t cm; // cairo_pattern_get_matrix ((cairo_pattern_t*)handle->ptr, &cm); @@ -1469,7 +1469,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_pattern_set_extend (HL_CFFIPointer* handle, int extend) { + HL_PRIM void HL_NAME(hl_cairo_pattern_set_extend) (HL_CFFIPointer* handle, int extend) { cairo_pattern_set_extend ((cairo_pattern_t*)handle->ptr, (cairo_extend_t)extend); @@ -1483,7 +1483,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_pattern_set_filter (HL_CFFIPointer* handle, int filter) { + HL_PRIM void HL_NAME(hl_cairo_pattern_set_filter) (HL_CFFIPointer* handle, int filter) { cairo_pattern_set_filter ((cairo_pattern_t*)handle->ptr, (cairo_filter_t)filter); @@ -1502,7 +1502,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_pattern_set_matrix (HL_CFFIPointer* handle, Matrix3* matrix) { + HL_PRIM void HL_NAME(hl_cairo_pattern_set_matrix) (HL_CFFIPointer* handle, Matrix3* matrix) { // cairo_matrix_t cm; // cairo_matrix_init (&cm, mat3.a, mat3.b, mat3.c, mat3.d, mat3.tx, mat3.ty); @@ -1537,7 +1537,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_cairo_pop_group (HL_CFFIPointer* handle) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_cairo_pop_group) (HL_CFFIPointer* handle) { cairo_pattern_t* pattern = cairo_pop_group ((cairo_t*)handle->ptr); @@ -1567,7 +1567,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_pop_group_to_source (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_pop_group_to_source) (HL_CFFIPointer* handle) { cairo_pop_group_to_source ((cairo_t*)handle->ptr); @@ -1581,7 +1581,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_push_group (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_push_group) (HL_CFFIPointer* handle) { cairo_push_group ((cairo_t*)handle->ptr); @@ -1595,7 +1595,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_push_group_with_content (HL_CFFIPointer* handle, int content) { + HL_PRIM void HL_NAME(hl_cairo_push_group_with_content) (HL_CFFIPointer* handle, int content) { cairo_push_group_with_content ((cairo_t*)handle->ptr, (cairo_content_t)content); @@ -1609,7 +1609,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_rectangle (HL_CFFIPointer* handle, double x, double y, double width, double height) { + HL_PRIM void HL_NAME(hl_cairo_rectangle) (HL_CFFIPointer* handle, double x, double y, double width, double height) { cairo_rectangle ((cairo_t*)handle->ptr, x, y, width, height); @@ -1623,7 +1623,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_rel_curve_to (HL_CFFIPointer* handle, double dx1, double dy1, double dx2, double dy2, double dx3, double dy3) { + HL_PRIM void HL_NAME(hl_cairo_rel_curve_to) (HL_CFFIPointer* handle, double dx1, double dy1, double dx2, double dy2, double dx3, double dy3) { cairo_rel_curve_to ((cairo_t*)handle->ptr, dx1, dy1, dx2, dy2, dx3, dy3); @@ -1637,7 +1637,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_rel_line_to (HL_CFFIPointer* handle, double dx, double dy) { + HL_PRIM void HL_NAME(hl_cairo_rel_line_to) (HL_CFFIPointer* handle, double dx, double dy) { cairo_rel_line_to ((cairo_t*)handle->ptr, dx, dy); @@ -1651,7 +1651,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_rel_move_to (HL_CFFIPointer* handle, double dx, double dy) { + HL_PRIM void HL_NAME(hl_cairo_rel_move_to) (HL_CFFIPointer* handle, double dx, double dy) { cairo_rel_move_to ((cairo_t*)handle->ptr, dx, dy); @@ -1665,7 +1665,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_reset_clip (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_reset_clip) (HL_CFFIPointer* handle) { cairo_reset_clip ((cairo_t*)handle->ptr); @@ -1679,7 +1679,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_restore (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_restore) (HL_CFFIPointer* handle) { cairo_restore ((cairo_t*)handle->ptr); @@ -1693,7 +1693,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_rotate (HL_CFFIPointer* handle, double amount) { + HL_PRIM void HL_NAME(hl_cairo_rotate) (HL_CFFIPointer* handle, double amount) { cairo_rotate ((cairo_t*)handle->ptr, amount); @@ -1707,7 +1707,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_save (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_save) (HL_CFFIPointer* handle) { cairo_save ((cairo_t*)handle->ptr); @@ -1721,7 +1721,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_scale (HL_CFFIPointer* handle, double x, double y) { + HL_PRIM void HL_NAME(hl_cairo_scale) (HL_CFFIPointer* handle, double x, double y) { cairo_scale ((cairo_t*)handle->ptr, x, y); @@ -1735,7 +1735,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_antialias (HL_CFFIPointer* handle, int cap) { + HL_PRIM void HL_NAME(hl_cairo_set_antialias) (HL_CFFIPointer* handle, int cap) { cairo_set_antialias ((cairo_t*)handle->ptr, (cairo_antialias_t)cap); @@ -1760,7 +1760,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_dash (HL_CFFIPointer* handle, varray* dash) { + HL_PRIM void HL_NAME(hl_cairo_set_dash) (HL_CFFIPointer* handle, varray* dash) { cairo_set_dash ((cairo_t*)handle->ptr, hl_aptr (dash, double), dash->size, 0); @@ -1774,7 +1774,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_fill_rule (HL_CFFIPointer* handle, int cap) { + HL_PRIM void HL_NAME(hl_cairo_set_fill_rule) (HL_CFFIPointer* handle, int cap) { cairo_set_fill_rule ((cairo_t*)handle->ptr, (cairo_fill_rule_t)cap); @@ -1788,7 +1788,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_font_face (HL_CFFIPointer* handle, HL_CFFIPointer* face) { + HL_PRIM void HL_NAME(hl_cairo_set_font_face) (HL_CFFIPointer* handle, HL_CFFIPointer* face) { cairo_set_font_face ((cairo_t*)handle->ptr, (cairo_font_face_t*)face->ptr); @@ -1802,7 +1802,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_font_options (HL_CFFIPointer* handle, HL_CFFIPointer* options) { + HL_PRIM void HL_NAME(hl_cairo_set_font_options) (HL_CFFIPointer* handle, HL_CFFIPointer* options) { cairo_set_font_options ((cairo_t*)handle->ptr, (cairo_font_options_t*)options->ptr); @@ -1837,7 +1837,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_font_size (HL_CFFIPointer* handle, double size) { + HL_PRIM void HL_NAME(hl_cairo_set_font_size) (HL_CFFIPointer* handle, double size) { cairo_font_face_t* face = cairo_get_font_face ((cairo_t*)handle->ptr); @@ -1872,7 +1872,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_line_cap (HL_CFFIPointer* handle, int cap) { + HL_PRIM void HL_NAME(hl_cairo_set_line_cap) (HL_CFFIPointer* handle, int cap) { cairo_set_line_cap ((cairo_t*)handle->ptr, (cairo_line_cap_t)cap); @@ -1886,7 +1886,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_line_join (HL_CFFIPointer* handle, int join) { + HL_PRIM void HL_NAME(hl_cairo_set_line_join) (HL_CFFIPointer* handle, int join) { cairo_set_line_join ((cairo_t*)handle->ptr, (cairo_line_join_t)join); @@ -1900,7 +1900,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_line_width (HL_CFFIPointer* handle, double width) { + HL_PRIM void HL_NAME(hl_cairo_set_line_width) (HL_CFFIPointer* handle, double width) { cairo_set_line_width ((cairo_t*)handle->ptr, width); @@ -1917,7 +1917,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_matrix (HL_CFFIPointer* handle, Matrix3* matrix) { + HL_PRIM void HL_NAME(hl_cairo_set_matrix) (HL_CFFIPointer* handle, Matrix3* matrix) { // cairo_matrix_t cm; // cairo_matrix_init (&cm, a, b, c, d, tx, ty); @@ -1946,7 +1946,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_miter_limit (HL_CFFIPointer* handle, double miterLimit) { + HL_PRIM void HL_NAME(hl_cairo_set_miter_limit) (HL_CFFIPointer* handle, double miterLimit) { cairo_set_miter_limit ((cairo_t*)handle->ptr, miterLimit); @@ -1960,7 +1960,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_operator (HL_CFFIPointer* handle, int op) { + HL_PRIM void HL_NAME(hl_cairo_set_operator) (HL_CFFIPointer* handle, int op) { cairo_set_operator ((cairo_t*)handle->ptr, (cairo_operator_t)op); @@ -1974,7 +1974,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_source (HL_CFFIPointer* handle, HL_CFFIPointer* pattern) { + HL_PRIM void HL_NAME(hl_cairo_set_source) (HL_CFFIPointer* handle, HL_CFFIPointer* pattern) { cairo_set_source ((cairo_t*)handle->ptr, (cairo_pattern_t*)pattern->ptr); @@ -1988,7 +1988,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_source_rgb (HL_CFFIPointer* handle, double r, double g, double b) { + HL_PRIM void HL_NAME(hl_cairo_set_source_rgb) (HL_CFFIPointer* handle, double r, double g, double b) { cairo_set_source_rgb ((cairo_t*)handle->ptr, r, g, b); @@ -2002,7 +2002,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_source_rgba (HL_CFFIPointer* handle, double r, double g, double b, double a) { + HL_PRIM void HL_NAME(hl_cairo_set_source_rgba) (HL_CFFIPointer* handle, double r, double g, double b, double a) { cairo_set_source_rgba ((cairo_t*)handle->ptr, r, g, b, a); @@ -2016,7 +2016,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_source_surface (HL_CFFIPointer* handle, HL_CFFIPointer* surface, double x, double y) { + HL_PRIM void HL_NAME(hl_cairo_set_source_surface) (HL_CFFIPointer* handle, HL_CFFIPointer* surface, double x, double y) { cairo_set_source_surface ((cairo_t*)handle->ptr, (cairo_surface_t*)surface->ptr, x, y); @@ -2030,7 +2030,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_set_tolerance (HL_CFFIPointer* handle, double tolerance) { + HL_PRIM void HL_NAME(hl_cairo_set_tolerance) (HL_CFFIPointer* handle, double tolerance) { cairo_set_tolerance ((cairo_t*)handle->ptr, tolerance); @@ -2067,7 +2067,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_show_glyphs (HL_CFFIPointer* handle, varray* glyphs) { + HL_PRIM void HL_NAME(hl_cairo_show_glyphs) (HL_CFFIPointer* handle, varray* glyphs) { const int id_index = hl_hash_utf8 ("index"); const int id_x = hl_hash_utf8 ("x"); @@ -2101,7 +2101,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_show_page (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_show_page) (HL_CFFIPointer* handle) { cairo_show_page ((cairo_t*)handle->ptr); @@ -2115,7 +2115,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_show_text (HL_CFFIPointer* handle, hl_vstring* text) { + HL_PRIM void HL_NAME(hl_cairo_show_text) (HL_CFFIPointer* handle, hl_vstring* text) { cairo_show_text ((cairo_t*)handle->ptr, (char*)hl_to_utf8 ((const uchar*)text->bytes)); @@ -2129,7 +2129,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_status (HL_CFFIPointer* handle) { + HL_PRIM int HL_NAME(hl_cairo_status) (HL_CFFIPointer* handle) { return cairo_status ((cairo_t*)handle->ptr); @@ -2143,7 +2143,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_stroke (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_stroke) (HL_CFFIPointer* handle) { cairo_stroke ((cairo_t*)handle->ptr); @@ -2157,7 +2157,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_stroke_extents (HL_CFFIPointer* handle, double x1, double y1, double x2, double y2) { + HL_PRIM void HL_NAME(hl_cairo_stroke_extents) (HL_CFFIPointer* handle, double x1, double y1, double x2, double y2) { cairo_stroke_extents ((cairo_t*)handle->ptr, &x1, &y1, &x2, &y2); @@ -2171,7 +2171,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_stroke_preserve (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_stroke_preserve) (HL_CFFIPointer* handle) { cairo_stroke_preserve ((cairo_t*)handle->ptr); @@ -2185,7 +2185,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_surface_flush (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_cairo_surface_flush) (HL_CFFIPointer* handle) { cairo_surface_flush ((cairo_surface_t*)handle->ptr); @@ -2199,7 +2199,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_text_path (HL_CFFIPointer* handle, hl_vstring* text) { + HL_PRIM void HL_NAME(hl_cairo_text_path) (HL_CFFIPointer* handle, hl_vstring* text) { cairo_text_path ((cairo_t*)handle->ptr, (char*)hl_to_utf8 ((const uchar*)text->bytes)); @@ -2218,7 +2218,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_transform (HL_CFFIPointer* handle, Matrix3* matrix) { + HL_PRIM void HL_NAME(hl_cairo_transform) (HL_CFFIPointer* handle, Matrix3* matrix) { // cairo_matrix_t cm; // cairo_matrix_init (&cm, mat3.a, mat3.b, mat3.c, mat3.d, mat3.tx, mat3.ty); @@ -2237,7 +2237,7 @@ namespace lime { } - HL_PRIM void hl_lime_cairo_translate (HL_CFFIPointer* handle, double x, double y) { + HL_PRIM void HL_NAME(hl_cairo_translate) (HL_CFFIPointer* handle, double x, double y) { cairo_translate ((cairo_t*)handle->ptr, x, y); @@ -2251,7 +2251,7 @@ namespace lime { } - HL_PRIM int hl_lime_cairo_version () { + HL_PRIM int HL_NAME(hl_cairo_version) () { return cairo_version (); @@ -2266,7 +2266,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_cairo_version_string () { + HL_PRIM vbyte* HL_NAME(hl_cairo_version_string) () { const char* version = cairo_version_string (); int length = strlen (version); @@ -2400,122 +2400,122 @@ namespace lime { #define _TMATRIX3 _OBJ (_F64 _F64 _F64 _F64 _F64 _F64) #define _TVECTOR2 _OBJ (_F64 _F64) - DEFINE_HL_PRIM (_VOID, lime_cairo_arc, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_arc_negative, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_clip, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_clip_extents, _TCFFIPOINTER _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_clip_preserve, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_close_path, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_copy_page, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_create, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_curve_to, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_fill, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_fill_extents, _TCFFIPOINTER _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_fill_preserve, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_ft_font_face_create, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_I32, lime_cairo_font_face_status, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_font_options_create, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_cairo_font_options_get_antialias, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_font_options_get_subpixel_order, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_font_options_get_hint_style, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_font_options_get_hint_metrics, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_font_options_set_antialias, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_font_options_set_subpixel_order, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_font_options_set_hint_style, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_font_options_set_hint_metrics, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_I32, lime_cairo_get_antialias, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TVECTOR2, lime_cairo_get_current_point, _TCFFIPOINTER _TVECTOR2); - DEFINE_HL_PRIM (_ARR, lime_cairo_get_dash, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_get_dash_count, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_get_fill_rule, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_get_font_face, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_get_font_options, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_get_group_target, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_get_line_cap, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_get_line_join, _TCFFIPOINTER); - DEFINE_HL_PRIM (_F64, lime_cairo_get_line_width, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TMATRIX3, lime_cairo_get_matrix, _TCFFIPOINTER _TMATRIX3); - DEFINE_HL_PRIM (_F64, lime_cairo_get_miter_limit, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_get_operator, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_get_source, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_get_target, _TCFFIPOINTER); - DEFINE_HL_PRIM (_F64, lime_cairo_get_tolerance, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_cairo_has_current_point, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_identity_matrix, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_image_surface_create, _I32 _I32 _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_image_surface_create_for_data, _F64 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_F64, lime_cairo_image_surface_get_data, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_image_surface_get_format, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_image_surface_get_height, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_image_surface_get_stride, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_image_surface_get_width, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_cairo_in_clip, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_BOOL, lime_cairo_in_fill, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_BOOL, lime_cairo_in_stroke, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_line_to, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_mask, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_mask_surface, _TCFFIPOINTER _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_move_to, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_new_path, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_paint, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_paint_with_alpha, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_pattern_add_color_stop_rgb, _TCFFIPOINTER _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_pattern_add_color_stop_rgba, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_pattern_create_for_surface, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_pattern_create_linear, _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_pattern_create_radial, _F64 _F64 _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_pattern_create_rgb, _F64 _F64 _F64); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_pattern_create_rgba, _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_I32, lime_cairo_pattern_get_color_stop_count, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_pattern_get_extend, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_cairo_pattern_get_filter, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TMATRIX3, lime_cairo_pattern_get_matrix, _TCFFIPOINTER _TMATRIX3); - DEFINE_HL_PRIM (_VOID, lime_cairo_pattern_set_extend, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_pattern_set_filter, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_pattern_set_matrix, _TCFFIPOINTER _TMATRIX3); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_cairo_pop_group, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_pop_group_to_source, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_push_group, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_push_group_with_content, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_rectangle, _TCFFIPOINTER _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_rel_curve_to, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_rel_line_to, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_rel_move_to, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_reset_clip, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_restore, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_rotate, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_save, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_scale, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_antialias, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_dash, _TCFFIPOINTER _ARR); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_fill_rule, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_font_face, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_font_size, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_font_options, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_line_cap, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_line_join, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_line_width, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_matrix, _TCFFIPOINTER _TMATRIX3); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_miter_limit, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_operator, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_source, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_source_rgb, _TCFFIPOINTER _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_source_rgba, _TCFFIPOINTER _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_source_surface, _TCFFIPOINTER _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_set_tolerance, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_show_glyphs, _TCFFIPOINTER _ARR); - DEFINE_HL_PRIM (_VOID, lime_cairo_show_page, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_show_text, _TCFFIPOINTER _STRING); - DEFINE_HL_PRIM (_I32, lime_cairo_status, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_stroke, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_stroke_extents, _TCFFIPOINTER _F64 _F64 _F64 _F64); - DEFINE_HL_PRIM (_VOID, lime_cairo_stroke_preserve, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_surface_flush, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_cairo_text_path, _TCFFIPOINTER _STRING); - DEFINE_HL_PRIM (_VOID, lime_cairo_transform, _TCFFIPOINTER _TMATRIX3); - DEFINE_HL_PRIM (_VOID, lime_cairo_translate, _TCFFIPOINTER _F64 _F64); - DEFINE_HL_PRIM (_I32, lime_cairo_version, _NO_ARG); - DEFINE_HL_PRIM (_BYTES, lime_cairo_version_string, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_cairo_arc, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_arc_negative, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_clip, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_clip_extents, _TCFFIPOINTER _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_clip_preserve, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_close_path, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_copy_page, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_create, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_curve_to, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_fill, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_fill_extents, _TCFFIPOINTER _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_fill_preserve, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_ft_font_face_create, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_I32, hl_cairo_font_face_status, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_font_options_create, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_cairo_font_options_get_antialias, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_font_options_get_subpixel_order, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_font_options_get_hint_style, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_font_options_get_hint_metrics, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_font_options_set_antialias, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_font_options_set_subpixel_order, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_font_options_set_hint_style, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_font_options_set_hint_metrics, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_I32, hl_cairo_get_antialias, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TVECTOR2, hl_cairo_get_current_point, _TCFFIPOINTER _TVECTOR2); + DEFINE_HL_PRIM (_ARR, hl_cairo_get_dash, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_get_dash_count, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_get_fill_rule, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_get_font_face, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_get_font_options, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_get_group_target, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_get_line_cap, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_get_line_join, _TCFFIPOINTER); + DEFINE_HL_PRIM (_F64, hl_cairo_get_line_width, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TMATRIX3, hl_cairo_get_matrix, _TCFFIPOINTER _TMATRIX3); + DEFINE_HL_PRIM (_F64, hl_cairo_get_miter_limit, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_get_operator, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_get_source, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_get_target, _TCFFIPOINTER); + DEFINE_HL_PRIM (_F64, hl_cairo_get_tolerance, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_cairo_has_current_point, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_identity_matrix, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_image_surface_create, _I32 _I32 _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_image_surface_create_for_data, _F64 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_F64, hl_cairo_image_surface_get_data, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_image_surface_get_format, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_image_surface_get_height, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_image_surface_get_stride, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_image_surface_get_width, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_cairo_in_clip, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_BOOL, hl_cairo_in_fill, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_BOOL, hl_cairo_in_stroke, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_line_to, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_mask, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_mask_surface, _TCFFIPOINTER _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_move_to, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_new_path, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_paint, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_paint_with_alpha, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_pattern_add_color_stop_rgb, _TCFFIPOINTER _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_pattern_add_color_stop_rgba, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_pattern_create_for_surface, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_pattern_create_linear, _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_pattern_create_radial, _F64 _F64 _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_pattern_create_rgb, _F64 _F64 _F64); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_pattern_create_rgba, _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_I32, hl_cairo_pattern_get_color_stop_count, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_pattern_get_extend, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_cairo_pattern_get_filter, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TMATRIX3, hl_cairo_pattern_get_matrix, _TCFFIPOINTER _TMATRIX3); + DEFINE_HL_PRIM (_VOID, hl_cairo_pattern_set_extend, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_pattern_set_filter, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_pattern_set_matrix, _TCFFIPOINTER _TMATRIX3); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_cairo_pop_group, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_pop_group_to_source, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_push_group, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_push_group_with_content, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_rectangle, _TCFFIPOINTER _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_rel_curve_to, _TCFFIPOINTER _F64 _F64 _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_rel_line_to, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_rel_move_to, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_reset_clip, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_restore, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_rotate, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_save, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_scale, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_antialias, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_dash, _TCFFIPOINTER _ARR); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_fill_rule, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_font_face, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_font_size, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_font_options, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_line_cap, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_line_join, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_line_width, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_matrix, _TCFFIPOINTER _TMATRIX3); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_miter_limit, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_operator, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_source, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_source_rgb, _TCFFIPOINTER _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_source_rgba, _TCFFIPOINTER _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_source_surface, _TCFFIPOINTER _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_set_tolerance, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_show_glyphs, _TCFFIPOINTER _ARR); + DEFINE_HL_PRIM (_VOID, hl_cairo_show_page, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_show_text, _TCFFIPOINTER _STRING); + DEFINE_HL_PRIM (_I32, hl_cairo_status, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_stroke, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_stroke_extents, _TCFFIPOINTER _F64 _F64 _F64 _F64); + DEFINE_HL_PRIM (_VOID, hl_cairo_stroke_preserve, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_surface_flush, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_cairo_text_path, _TCFFIPOINTER _STRING); + DEFINE_HL_PRIM (_VOID, hl_cairo_transform, _TCFFIPOINTER _TMATRIX3); + DEFINE_HL_PRIM (_VOID, hl_cairo_translate, _TCFFIPOINTER _F64 _F64); + DEFINE_HL_PRIM (_I32, hl_cairo_version, _NO_ARG); + DEFINE_HL_PRIM (_BYTES, hl_cairo_version_string, _NO_ARG); } diff --git a/project/src/graphics/format/JPEG.cpp b/project/src/graphics/format/JPEG.cpp index bd9a664363..3917d8bb55 100644 --- a/project/src/graphics/format/JPEG.cpp +++ b/project/src/graphics/format/JPEG.cpp @@ -1,3 +1,4 @@ +#include extern "C" { #include @@ -8,7 +9,6 @@ extern "C" { #include #include -#include namespace lime { diff --git a/project/src/graphics/opengl/OpenGLBindings.cpp b/project/src/graphics/opengl/OpenGLBindings.cpp index b2599f9b49..31f71096ee 100644 --- a/project/src/graphics/opengl/OpenGLBindings.cpp +++ b/project/src/graphics/opengl/OpenGLBindings.cpp @@ -209,7 +209,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_active_texture (int texture) { + HL_PRIM void HL_NAME(hl_gl_active_texture) (int texture) { glActiveTexture (texture); @@ -223,7 +223,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_attach_shader (int program, int shader) { + HL_PRIM void HL_NAME(hl_gl_attach_shader) (int program, int shader) { glAttachShader (program, shader); @@ -239,7 +239,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_begin_query (int target, int query) { + HL_PRIM void HL_NAME(hl_gl_begin_query) (int target, int query) { #ifdef LIME_GLES3_API glBeginQuery (target, query); @@ -257,7 +257,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_begin_transform_feedback (int primitiveNode) { + HL_PRIM void HL_NAME(hl_gl_begin_transform_feedback) (int primitiveNode) { #ifdef LIME_GLES3_API glBeginTransformFeedback (primitiveNode); @@ -273,7 +273,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_attrib_location (int program, int index, hl_vstring* name) { + HL_PRIM void HL_NAME(hl_gl_bind_attrib_location) (int program, int index, hl_vstring* name) { glBindAttribLocation (program, index, name ? hl_to_utf8 (name->bytes) : NULL); @@ -287,7 +287,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_buffer (int target, int buffer) { + HL_PRIM void HL_NAME(hl_gl_bind_buffer) (int target, int buffer) { glBindBuffer (target, buffer); @@ -303,7 +303,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_buffer_base (int target, int index, int buffer) { + HL_PRIM void HL_NAME(hl_gl_bind_buffer_base) (int target, int index, int buffer) { #ifdef LIME_GLES3_API glBindBufferBase (target, index, buffer); @@ -322,7 +322,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_buffer_range (int target, int index, int buffer, double offset, int size) { + HL_PRIM void HL_NAME(hl_gl_bind_buffer_range) (int target, int index, int buffer, double offset, int size) { #ifdef LIME_GLES3_API glBindBufferRange (target, index, buffer, (GLintptr)(uintptr_t)offset, size); @@ -345,7 +345,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_framebuffer (int target, int framebuffer) { + HL_PRIM void HL_NAME(hl_gl_bind_framebuffer) (int target, int framebuffer) { if (!framebuffer) { @@ -371,7 +371,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_renderbuffer (int target, int renderbuffer) { + HL_PRIM void HL_NAME(hl_gl_bind_renderbuffer) (int target, int renderbuffer) { if (!renderbuffer) { @@ -393,7 +393,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_sampler (int unit, int sampler) { + HL_PRIM void HL_NAME(hl_gl_bind_sampler) (int unit, int sampler) { #ifdef LIME_GLES3_API glBindSampler (unit, sampler); @@ -409,7 +409,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_texture (int target, int texture) { + HL_PRIM void HL_NAME(hl_gl_bind_texture) (int target, int texture) { glBindTexture (target, texture); @@ -425,7 +425,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_transform_feedback (int target, int transformFeedback) { + HL_PRIM void HL_NAME(hl_gl_bind_transform_feedback) (int target, int transformFeedback) { #ifdef LIME_GLES3_API glBindTransformFeedback (target, transformFeedback); @@ -443,7 +443,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_bind_vertex_array (int vertexArray) { + HL_PRIM void HL_NAME(hl_gl_bind_vertex_array) (int vertexArray) { #ifdef LIME_GLES3_API glBindVertexArray (vertexArray); @@ -459,7 +459,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_blend_color (float r, float g, float b, float a) { + HL_PRIM void HL_NAME(hl_gl_blend_color) (float r, float g, float b, float a) { glBlendColor (r, g, b, a); @@ -473,7 +473,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_blend_equation (int mode) { + HL_PRIM void HL_NAME(hl_gl_blend_equation) (int mode) { glBlendEquation (mode); @@ -487,7 +487,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_blend_equation_separate (int rgb, int a) { + HL_PRIM void HL_NAME(hl_gl_blend_equation_separate) (int rgb, int a) { glBlendEquationSeparate (rgb, a); @@ -501,7 +501,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_blend_func (int sfactor, int dfactor) { + HL_PRIM void HL_NAME(hl_gl_blend_func) (int sfactor, int dfactor) { glBlendFunc (sfactor, dfactor); @@ -515,7 +515,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_blend_func_separate (int srcRGB, int destRGB, int srcAlpha, int destAlpha) { + HL_PRIM void HL_NAME(hl_gl_blend_func_separate) (int srcRGB, int destRGB, int srcAlpha, int destAlpha) { glBlendFuncSeparate (srcRGB, destRGB, srcAlpha, destAlpha); @@ -531,7 +531,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_blit_framebuffer (int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { + HL_PRIM void HL_NAME(hl_gl_blit_framebuffer) (int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { #ifdef LIME_GLES3_API glBlitFramebuffer (srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); @@ -547,7 +547,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_buffer_data (int target, int size, double data, int usage) { + HL_PRIM void HL_NAME(hl_gl_buffer_data) (int target, int size, double data, int usage) { glBufferData (target, size, (void*)(uintptr_t)data, usage); @@ -561,7 +561,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_buffer_sub_data (int target, int offset, int size, double data) { + HL_PRIM void HL_NAME(hl_gl_buffer_sub_data) (int target, int offset, int size, double data) { glBufferSubData (target, offset, size, (void*)(uintptr_t)data); @@ -575,7 +575,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_check_framebuffer_status (int target) { + HL_PRIM int HL_NAME(hl_gl_check_framebuffer_status) (int target) { return glCheckFramebufferStatus (target); @@ -590,7 +590,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_clear (int mask) { + HL_PRIM void HL_NAME(hl_gl_clear) (int mask) { gc_gl_run (); glClear (mask); @@ -607,7 +607,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_clear_bufferfi (int buffer, int drawBuffer, float depth, int stencil) { + HL_PRIM void HL_NAME(hl_gl_clear_bufferfi) (int buffer, int drawBuffer, float depth, int stencil) { #ifdef LIME_GLES3_API glClearBufferfi (buffer, drawBuffer, depth, stencil); @@ -625,7 +625,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_clear_bufferfv (int buffer, int drawBuffer, double data) { + HL_PRIM void HL_NAME(hl_gl_clear_bufferfv) (int buffer, int drawBuffer, double data) { #ifdef LIME_GLES3_API glClearBufferfv (buffer, drawBuffer, (GLfloat*)(uintptr_t)data); @@ -643,7 +643,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_clear_bufferiv (int buffer, int drawBuffer, double data) { + HL_PRIM void HL_NAME(hl_gl_clear_bufferiv) (int buffer, int drawBuffer, double data) { #ifdef LIME_GLES3_API glClearBufferiv (buffer, drawBuffer, (GLint*)(uintptr_t)data); @@ -661,7 +661,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_clear_bufferuiv (int buffer, int drawBuffer, double data) { + HL_PRIM void HL_NAME(hl_gl_clear_bufferuiv) (int buffer, int drawBuffer, double data) { #ifdef LIME_GLES3_API glClearBufferuiv (buffer, drawBuffer, (GLuint*)(uintptr_t)data); @@ -677,7 +677,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_clear_color (float red, float green, float blue, float alpha) { + HL_PRIM void HL_NAME(hl_gl_clear_color) (float red, float green, float blue, float alpha) { glClearColor (red, green, blue, alpha); @@ -695,7 +695,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_clear_depthf (float depth) { + HL_PRIM void HL_NAME(hl_gl_clear_depthf) (float depth) { #ifdef LIME_GLES glClearDepthf (depth); @@ -713,7 +713,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_clear_stencil (int stencil) { + HL_PRIM void HL_NAME(hl_gl_clear_stencil) (int stencil) { glClearStencil (stencil); @@ -732,7 +732,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_client_wait_sync (HL_CFFIPointer* sync, int flags, int timeoutA, int timeoutB) { + HL_PRIM int HL_NAME(hl_gl_client_wait_sync) (HL_CFFIPointer* sync, int flags, int timeoutA, int timeoutB) { #ifdef LIME_GLES3_API GLuint64 timeout = (GLuint64) timeoutA << 32 | timeoutB; @@ -751,7 +751,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_color_mask (bool red, bool green, bool blue, bool alpha) { + HL_PRIM void HL_NAME(hl_gl_color_mask) (bool red, bool green, bool blue, bool alpha) { glColorMask (red, green, blue, alpha); @@ -765,7 +765,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_compile_shader (int shader) { + HL_PRIM void HL_NAME(hl_gl_compile_shader) (int shader) { glCompileShader (shader); @@ -779,7 +779,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_compressed_tex_image_2d (int target, int level, int internalformat, int width, int height, int border, int imageSize, double data) { + HL_PRIM void HL_NAME(hl_gl_compressed_tex_image_2d) (int target, int level, int internalformat, int width, int height, int border, int imageSize, double data) { glCompressedTexImage2D (target, level, internalformat, width, height, border, imageSize, (void*)(uintptr_t)data); @@ -795,7 +795,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_compressed_tex_image_3d (int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, double data) { + HL_PRIM void HL_NAME(hl_gl_compressed_tex_image_3d) (int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, double data) { #ifdef LIME_GLES3_API glCompressedTexImage3D (target, level, internalformat, width, height, depth, border, imageSize, (void*)(uintptr_t)data); @@ -811,7 +811,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_compressed_tex_sub_image_2d (int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, double data) { + HL_PRIM void HL_NAME(hl_gl_compressed_tex_sub_image_2d) (int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, double data) { glCompressedTexSubImage2D (target, level, xoffset, yoffset, width, height, format, imageSize, (void*)(uintptr_t)data); @@ -827,7 +827,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_compressed_tex_sub_image_3d (int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, double data) { + HL_PRIM void HL_NAME(hl_gl_compressed_tex_sub_image_3d) (int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, double data) { #ifdef LIME_GLES3_API glCompressedTexSubImage3D (target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, (void*)(uintptr_t)data); @@ -845,7 +845,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_copy_buffer_sub_data (int readTarget, int writeTarget, double readOffset, double writeOffset, int size) { + HL_PRIM void HL_NAME(hl_gl_copy_buffer_sub_data) (int readTarget, int writeTarget, double readOffset, double writeOffset, int size) { #ifdef LIME_GLES3_API glCopyBufferSubData (readTarget, writeTarget, (GLintptr)(uintptr_t)readOffset, (GLintptr)(uintptr_t)writeOffset, size); @@ -861,7 +861,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_copy_tex_image_2d (int target, int level, int internalformat, int x, int y, int width, int height, int border) { + HL_PRIM void HL_NAME(hl_gl_copy_tex_image_2d) (int target, int level, int internalformat, int x, int y, int width, int height, int border) { glCopyTexImage2D (target, level, internalformat, x, y, width, height, border); @@ -875,7 +875,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_copy_tex_sub_image_2d (int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { + HL_PRIM void HL_NAME(hl_gl_copy_tex_sub_image_2d) (int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { glCopyTexSubImage2D (target, level, xoffset, yoffset, x, y, width, height); @@ -891,7 +891,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_copy_tex_sub_image_3d (int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { + HL_PRIM void HL_NAME(hl_gl_copy_tex_sub_image_3d) (int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { #ifdef LIME_GLES3_API glCopyTexSubImage3D (target, level, xoffset, yoffset, zoffset, x, y, width, height); @@ -909,7 +909,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_buffer () { + HL_PRIM int HL_NAME(hl_gl_create_buffer) () { GLuint id = 0; glGenBuffers (1, &id); @@ -927,7 +927,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_framebuffer () { + HL_PRIM int HL_NAME(hl_gl_create_framebuffer) () { GLuint id = 0; glGenFramebuffers (1, &id); @@ -943,7 +943,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_program () { + HL_PRIM int HL_NAME(hl_gl_create_program) () { return glCreateProgram (); @@ -961,7 +961,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_query () { + HL_PRIM int HL_NAME(hl_gl_create_query) () { GLuint id = 0; #ifdef LIME_GLES3_API @@ -981,7 +981,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_renderbuffer () { + HL_PRIM int HL_NAME(hl_gl_create_renderbuffer) () { GLuint id = 0; glGenRenderbuffers (1, &id); @@ -1001,7 +1001,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_sampler () { + HL_PRIM int HL_NAME(hl_gl_create_sampler) () { GLuint id = 0; #ifdef LIME_GLES3_API @@ -1019,7 +1019,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_shader (int type) { + HL_PRIM int HL_NAME(hl_gl_create_shader) (int type) { return glCreateShader (type); @@ -1035,7 +1035,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_texture () { + HL_PRIM int HL_NAME(hl_gl_create_texture) () { GLuint id = 0; glGenTextures (1, &id); @@ -1055,7 +1055,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_transform_feedback () { + HL_PRIM int HL_NAME(hl_gl_create_transform_feedback) () { GLuint id = 0; #ifdef LIME_GLES3_API @@ -1077,7 +1077,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_create_vertex_array () { + HL_PRIM int HL_NAME(hl_gl_create_vertex_array) () { GLuint id = 0; #ifdef LIME_GLES3_API @@ -1095,7 +1095,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_cull_face (int mode) { + HL_PRIM void HL_NAME(hl_gl_cull_face) (int mode) { glCullFace (mode); @@ -1109,7 +1109,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_buffer (int buffer) { + HL_PRIM void HL_NAME(hl_gl_delete_buffer) (int buffer) { glDeleteBuffers (1, (GLuint*)&buffer); @@ -1123,7 +1123,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_framebuffer (int framebuffer) { + HL_PRIM void HL_NAME(hl_gl_delete_framebuffer) (int framebuffer) { glDeleteFramebuffers (1, (GLuint*)&framebuffer); @@ -1137,7 +1137,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_program (int program) { + HL_PRIM void HL_NAME(hl_gl_delete_program) (int program) { glDeleteProgram (program); @@ -1153,7 +1153,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_query (int query) { + HL_PRIM void HL_NAME(hl_gl_delete_query) (int query) { #ifdef LIME_GLES3_API glDeleteQueries (1, (GLuint*)&query); @@ -1169,7 +1169,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_renderbuffer (int renderbuffer) { + HL_PRIM void HL_NAME(hl_gl_delete_renderbuffer) (int renderbuffer) { glDeleteRenderbuffers (1, (GLuint*)&renderbuffer); @@ -1185,7 +1185,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_sampler (int sampler) { + HL_PRIM void HL_NAME(hl_gl_delete_sampler) (int sampler) { #ifdef LIME_GLES3_API glDeleteSamplers (1, (GLuint*)&sampler); @@ -1201,7 +1201,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_shader (int shader) { + HL_PRIM void HL_NAME(hl_gl_delete_shader) (int shader) { glDeleteShader (shader); @@ -1218,7 +1218,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_sync (HL_CFFIPointer* sync) { + HL_PRIM void HL_NAME(hl_gl_delete_sync) (HL_CFFIPointer* sync) { #ifdef LIME_GLES3_API if (!sync) return; @@ -1235,7 +1235,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_texture (int texture) { + HL_PRIM void HL_NAME(hl_gl_delete_texture) (int texture) { glDeleteTextures (1, (GLuint*)&texture); @@ -1251,7 +1251,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_transform_feedback (int transformFeedback) { + HL_PRIM void HL_NAME(hl_gl_delete_transform_feedback) (int transformFeedback) { #ifdef LIME_GLES3_API glDeleteTransformFeedbacks (1, (GLuint*)&transformFeedback); @@ -1269,7 +1269,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_delete_vertex_array (int vertexArray) { + HL_PRIM void HL_NAME(hl_gl_delete_vertex_array) (int vertexArray) { #ifdef LIME_GLES3_API glDeleteVertexArrays (1, (GLuint*)&vertexArray); @@ -1285,7 +1285,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_depth_func (int func) { + HL_PRIM void HL_NAME(hl_gl_depth_func) (int func) { glDepthFunc (func); @@ -1299,7 +1299,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_depth_mask (bool flag) { + HL_PRIM void HL_NAME(hl_gl_depth_mask) (bool flag) { glDepthMask (flag); @@ -1317,7 +1317,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_depth_rangef (float zNear, float zFar) { + HL_PRIM void HL_NAME(hl_gl_depth_rangef) (float zNear, float zFar) { #ifdef LIME_GLES glDepthRangef (zNear, zFar); @@ -1335,7 +1335,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_detach_shader (int program, int shader) { + HL_PRIM void HL_NAME(hl_gl_detach_shader) (int program, int shader) { glDetachShader (program, shader); @@ -1349,7 +1349,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_disable (int cap) { + HL_PRIM void HL_NAME(hl_gl_disable) (int cap) { glDisable (cap); @@ -1363,7 +1363,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_disable_vertex_attrib_array (int index) { + HL_PRIM void HL_NAME(hl_gl_disable_vertex_attrib_array) (int index) { glDisableVertexAttribArray (index); @@ -1377,7 +1377,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_draw_arrays (int mode, int first, int count) { + HL_PRIM void HL_NAME(hl_gl_draw_arrays) (int mode, int first, int count) { glDrawArrays (mode, first, count); @@ -1393,7 +1393,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_draw_arrays_instanced (int mode, int first, int count, int instanceCount) { + HL_PRIM void HL_NAME(hl_gl_draw_arrays_instanced) (int mode, int first, int count, int instanceCount) { #ifdef LIME_GLES3_API glDrawArraysInstanced (mode, first, count, instanceCount); @@ -1420,7 +1420,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_draw_buffers (hl_varray* buffers) { + HL_PRIM void HL_NAME(hl_gl_draw_buffers) (hl_varray* buffers) { #ifdef LIME_GLES3_API GLsizei size = buffers->size; @@ -1437,7 +1437,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_draw_elements (int mode, int count, int type, double offset) { + HL_PRIM void HL_NAME(hl_gl_draw_elements) (int mode, int count, int type, double offset) { glDrawElements (mode, count, type, (void*)(uintptr_t)offset); @@ -1453,7 +1453,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_draw_elements_instanced (int mode, int count, int type, double offset, int instanceCount) { + HL_PRIM void HL_NAME(hl_gl_draw_elements_instanced) (int mode, int count, int type, double offset, int instanceCount) { #ifdef LIME_GLES3_API glDrawElementsInstanced (mode, count, type, (void*)(uintptr_t)offset, instanceCount); @@ -1471,7 +1471,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_draw_range_elements (int mode, int start, int end, int count, int type, double offset) { + HL_PRIM void HL_NAME(hl_gl_draw_range_elements) (int mode, int start, int end, int count, int type, double offset) { #ifdef LIME_GLES3_API glDrawRangeElements (mode, start, end, count, type, (void*)(uintptr_t)offset); @@ -1487,7 +1487,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_enable (int cap) { + HL_PRIM void HL_NAME(hl_gl_enable) (int cap) { glEnable (cap); @@ -1501,7 +1501,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_enable_vertex_attrib_array (int index) { + HL_PRIM void HL_NAME(hl_gl_enable_vertex_attrib_array) (int index) { glEnableVertexAttribArray (index); @@ -1517,7 +1517,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_end_query (int target) { + HL_PRIM void HL_NAME(hl_gl_end_query) (int target) { #ifdef LIME_GLES3_API glEndQuery (target); @@ -1535,7 +1535,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_end_transform_feedback () { + HL_PRIM void HL_NAME(hl_gl_end_transform_feedback) () { #ifdef LIME_GLES3_API glEndTransformFeedback (); @@ -1558,7 +1558,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_gl_fence_sync (int condition, int flags) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_gl_fence_sync) (int condition, int flags) { #ifdef LIME_GLES3_API GLsync result = glFenceSync (condition, flags); @@ -1579,7 +1579,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_finish () { + HL_PRIM void HL_NAME(hl_gl_finish) () { glFinish (); @@ -1593,7 +1593,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_flush () { + HL_PRIM void HL_NAME(hl_gl_flush) () { glFlush (); @@ -1607,7 +1607,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_framebuffer_renderbuffer (int target, int attachment, int renderbuffertarget, int renderbuffer) { + HL_PRIM void HL_NAME(hl_gl_framebuffer_renderbuffer) (int target, int attachment, int renderbuffertarget, int renderbuffer) { glFramebufferRenderbuffer (target, attachment, renderbuffertarget, renderbuffer); @@ -1621,7 +1621,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_framebuffer_texture2D (int target, int attachment, int textarget, int texture, int level) { + HL_PRIM void HL_NAME(hl_gl_framebuffer_texture2D) (int target, int attachment, int textarget, int texture, int level) { glFramebufferTexture2D (target, attachment, textarget, texture, level); @@ -1637,7 +1637,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_framebuffer_texture_layer (int target, int attachment, int texture, int level, int layer) { + HL_PRIM void HL_NAME(hl_gl_framebuffer_texture_layer) (int target, int attachment, int texture, int level, int layer) { #ifdef LIME_GLES3_API glFramebufferTextureLayer (target, attachment, texture, level, layer); @@ -1653,7 +1653,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_front_face (int face) { + HL_PRIM void HL_NAME(hl_gl_front_face) (int face) { glFrontFace (face); @@ -1667,7 +1667,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_generate_mipmap (int target) { + HL_PRIM void HL_NAME(hl_gl_generate_mipmap) (int target) { glGenerateMipmap (target); @@ -1696,7 +1696,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_gl_get_active_attrib (int program, int index) { + HL_PRIM vdynamic* HL_NAME(hl_gl_get_active_attrib) (int program, int index) { char buffer[GL_ACTIVE_ATTRIBUTE_MAX_LENGTH]; GLsizei outLen = 0; @@ -1744,7 +1744,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_gl_get_active_uniform (int program, int index) { + HL_PRIM vdynamic* HL_NAME(hl_gl_get_active_uniform) (int program, int index) { char* buffer[GL_ACTIVE_UNIFORM_MAX_LENGTH]; GLsizei outLen = 0; @@ -1782,7 +1782,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_active_uniform_blocki (int program, int uniformBlockIndex, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_active_uniform_blocki) (int program, int uniformBlockIndex, int pname) { GLint param = 0; #ifdef LIME_GLES3_API @@ -1802,7 +1802,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_active_uniform_blockiv (int program, int uniformBlockIndex, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_active_uniform_blockiv) (int program, int uniformBlockIndex, int pname, double params) { #ifdef LIME_GLES3_API glGetActiveUniformBlockiv (program, uniformBlockIndex, pname, (GLint*)(uintptr_t)params); @@ -1829,7 +1829,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_gl_get_active_uniform_block_name (int program, int uniformBlockIndex) { + HL_PRIM vbyte* HL_NAME(hl_gl_get_active_uniform_block_name) (int program, int uniformBlockIndex) { #ifdef LIME_GLES3_API GLint length; @@ -1866,7 +1866,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_active_uniformsiv (int program, hl_varray* uniformIndices, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_active_uniformsiv) (int program, hl_varray* uniformIndices, int pname, double params) { #ifdef LIME_GLES3_API GLsizei size = uniformIndices->size; @@ -1906,7 +1906,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_gl_get_attached_shaders (int program) { + HL_PRIM varray* HL_NAME(hl_gl_get_attached_shaders) (int program) { GLsizei maxCount = 0; glGetProgramiv (program, GL_ATTACHED_SHADERS, &maxCount); @@ -1934,7 +1934,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_attrib_location (int program, hl_vstring* name) { + HL_PRIM int HL_NAME(hl_gl_get_attrib_location) (int program, hl_vstring* name) { return glGetAttribLocation (program, name ? hl_to_utf8 (name->bytes) : NULL); @@ -1950,7 +1950,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_get_boolean (int pname) { + HL_PRIM bool HL_NAME(hl_gl_get_boolean) (int pname) { unsigned char params; glGetBooleanv (pname, ¶ms); @@ -1966,7 +1966,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_booleanv (int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_booleanv) (int pname, double params) { glGetBooleanv (pname, (unsigned char*)(uintptr_t)params); @@ -1982,7 +1982,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_buffer_parameteri (int target, int index) { + HL_PRIM int HL_NAME(hl_gl_get_buffer_parameteri) (int target, int index) { GLint params = 0; glGetBufferParameteriv (target, index, ¶ms); @@ -2000,7 +2000,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_buffer_parameteri64v (int target, int index, double params) { + HL_PRIM void HL_NAME(hl_gl_get_buffer_parameteri64v) (int target, int index, double params) { #ifdef LIME_GLES3_API glGetBufferParameteri64v (target, index, (GLint64*)(uintptr_t)params); @@ -2016,7 +2016,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_buffer_parameteriv (int target, int index, double params) { + HL_PRIM void HL_NAME(hl_gl_get_buffer_parameteriv) (int target, int index, double params) { glGetBufferParameteriv (target, index, (GLint*)(uintptr_t)params); @@ -2034,7 +2034,7 @@ namespace lime { } - HL_PRIM double hl_lime_gl_get_buffer_pointerv (int target, int pname) { + HL_PRIM double HL_NAME(hl_gl_get_buffer_pointerv) (int target, int pname) { uintptr_t result = 0; #ifdef LIME_GLES3_API @@ -2054,7 +2054,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_buffer_sub_data (int target, double offset, int size, double data) { + HL_PRIM void HL_NAME(hl_gl_get_buffer_sub_data) (int target, double offset, int size, double data) { #ifndef LIME_GLES glGetBufferSubData (target, (GLintptr)(uintptr_t)offset, size, (void*)(uintptr_t)data); @@ -2077,7 +2077,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_gl_get_context_attributes () { + HL_PRIM vdynamic* HL_NAME(hl_gl_get_context_attributes) () { const int id_alpha = hl_hash_utf8 ("alpha"); const int id_depth = hl_hash_utf8 ("depth"); @@ -2104,7 +2104,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_error () { + HL_PRIM int HL_NAME(hl_gl_get_error) () { return glGetError (); @@ -2160,7 +2160,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_gl_get_extension (hl_vstring* name) { + HL_PRIM vdynamic* HL_NAME(hl_gl_get_extension) (hl_vstring* name) { if (name == NULL) return NULL; @@ -2220,7 +2220,7 @@ namespace lime { } - HL_PRIM float hl_lime_gl_get_float (int pname) { + HL_PRIM float HL_NAME(hl_gl_get_float) (int pname) { GLfloat params; glGetFloatv (pname, ¶ms); @@ -2236,7 +2236,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_floatv (int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_floatv) (int pname, double params) { glGetFloatv (pname, (GLfloat*)(uintptr_t)params); @@ -2254,7 +2254,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_frag_data_location (int program, hl_vstring* name) { + HL_PRIM int HL_NAME(hl_gl_get_frag_data_location) (int program, hl_vstring* name) { #ifdef LIME_GLES3_API return glGetFragDataLocation (program, name ? hl_to_utf8 (name->bytes) : NULL); @@ -2274,7 +2274,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_framebuffer_attachment_parameteri (int target, int attachment, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_framebuffer_attachment_parameteri) (int target, int attachment, int pname) { GLint params = 0; glGetFramebufferAttachmentParameteriv (target, attachment, pname, ¶ms); @@ -2290,7 +2290,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_framebuffer_attachment_parameteriv (int target, int attachment, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_framebuffer_attachment_parameteriv) (int target, int attachment, int pname, double params) { glGetFramebufferAttachmentParameteriv (target, attachment, pname, (GLint*)(uintptr_t)params); @@ -2306,7 +2306,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_integer (int pname) { + HL_PRIM int HL_NAME(hl_gl_get_integer) (int pname) { GLint params; glGetIntegerv (pname, ¶ms); @@ -2324,7 +2324,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_integer64v (int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_integer64v) (int pname, double params) { #ifdef LIME_GLES3_API glGetInteger64v (pname, (GLint64*)(uintptr_t)params); @@ -2342,7 +2342,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_integer64i_v (int pname, int index, double params) { + HL_PRIM void HL_NAME(hl_gl_get_integer64i_v) (int pname, int index, double params) { #ifdef LIME_GLES3_API glGetInteger64i_v (pname, index, (GLint64*)(uintptr_t)params); @@ -2358,7 +2358,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_integerv (int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_integerv) (int pname, double params) { glGetIntegerv (pname, (GLint*)(uintptr_t)params); @@ -2374,7 +2374,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_integeri_v (int pname, int index, double params) { + HL_PRIM void HL_NAME(hl_gl_get_integeri_v) (int pname, int index, double params) { #ifdef LIME_GLES3_API glGetIntegeri_v (pname, index, (GLint*)(uintptr_t)params); @@ -2392,7 +2392,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_internalformativ (int target, int internalformat, int pname, int bufSize, double params) { + HL_PRIM void HL_NAME(hl_gl_get_internalformativ) (int target, int internalformat, int pname, int bufSize, double params) { #ifdef LIME_GLES3_API glGetInternalformativ (target, internalformat, pname, (GLsizei)bufSize, (GLint*)(uintptr_t)params); @@ -2420,7 +2420,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_program_binary (int program, int binaryFormat, Bytes* bytes) { + HL_PRIM void HL_NAME(hl_gl_get_program_binary) (int program, int binaryFormat, Bytes* bytes) { #ifdef LIME_GLES3_API GLint size = 0; @@ -2460,7 +2460,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_gl_get_program_info_log (int handle) { + HL_PRIM vbyte* HL_NAME(hl_gl_get_program_info_log) (int handle) { GLuint program = handle; @@ -2492,7 +2492,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_programi (int program, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_programi) (int program, int pname) { GLint params = 0; glGetProgramiv (program, pname, ¶ms); @@ -2508,7 +2508,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_programiv (int program, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_programiv) (int program, int pname, double params) { glGetProgramiv (program, pname, (GLint*)(uintptr_t)params); @@ -2526,7 +2526,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_queryi (int target, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_queryi) (int target, int pname) { GLint param = 0; #ifdef LIME_GLES3_API @@ -2546,7 +2546,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_queryiv (int target, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_queryiv) (int target, int pname, double params) { #ifdef LIME_GLES3_API glGetQueryiv (target, pname, (GLint*)(uintptr_t)params); @@ -2566,7 +2566,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_query_objectui (int query, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_query_objectui) (int query, int pname) { GLuint param = 0; #ifdef LIME_GLES3_API @@ -2586,7 +2586,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_query_objectuiv (int query, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_query_objectuiv) (int query, int pname, double params) { #ifdef LIME_GLES3_API glGetQueryObjectuiv (query, pname, (GLuint*)(uintptr_t)params); @@ -2604,7 +2604,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_renderbuffer_parameteri (int target, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_renderbuffer_parameteri) (int target, int pname) { GLint param = 0; glGetRenderbufferParameteriv (target, pname, ¶m); @@ -2620,7 +2620,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_renderbuffer_parameteriv (int target, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_renderbuffer_parameteriv) (int target, int pname, double params) { glGetRenderbufferParameteriv (target, pname, (GLint*)(uintptr_t)params); @@ -2638,7 +2638,7 @@ namespace lime { } - HL_PRIM float hl_lime_gl_get_sampler_parameterf (int sampler, int pname) { + HL_PRIM float HL_NAME(hl_gl_get_sampler_parameterf) (int sampler, int pname) { GLfloat param = 0; #ifdef LIME_GLES3_API @@ -2658,7 +2658,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_sampler_parameterfv (int sampler, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_sampler_parameterfv) (int sampler, int pname, double params) { #ifdef LIME_GLES3_API glGetSamplerParameterfv (sampler, pname, (GLfloat*)(uintptr_t)params); @@ -2678,7 +2678,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_sampler_parameteri (int sampler, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_sampler_parameteri) (int sampler, int pname) { GLint param = 0; #ifdef LIME_GLES3_API @@ -2698,7 +2698,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_sampler_parameteriv (int sampler, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_sampler_parameteriv) (int sampler, int pname, double params) { #ifdef LIME_GLES3_API glGetSamplerParameteriv (sampler, pname, (GLint*)(uintptr_t)params); @@ -2729,7 +2729,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_gl_get_shader_info_log (int handle) { + HL_PRIM vbyte* HL_NAME(hl_gl_get_shader_info_log) (int handle) { GLuint shader = handle; @@ -2761,7 +2761,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_shaderi (int shader, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_shaderi) (int shader, int pname) { GLint params = 0; glGetShaderiv (shader, pname, ¶ms); @@ -2777,7 +2777,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_shaderiv (int shader, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_shaderiv) (int shader, int pname, double params) { glGetShaderiv (shader, pname, (GLint*)(uintptr_t)params); @@ -2808,7 +2808,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_gl_get_shader_precision_format (int shadertype, int precisiontype) { + HL_PRIM vdynamic* HL_NAME(hl_gl_get_shader_precision_format) (int shadertype, int precisiontype) { #ifdef LIME_GLES @@ -2858,7 +2858,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_gl_get_shader_source (int shader) { + HL_PRIM vbyte* HL_NAME(hl_gl_get_shader_source) (int shader) { GLint len = 0; glGetShaderiv (shader, GL_SHADER_SOURCE_LENGTH, &len); @@ -2895,7 +2895,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_gl_get_string (int pname) { + HL_PRIM vbyte* HL_NAME(hl_gl_get_string) (int pname) { const char* val = (const char*)glGetString (pname); @@ -2937,7 +2937,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_gl_get_stringi (int pname, int index) { + HL_PRIM vbyte* HL_NAME(hl_gl_get_stringi) (int pname, int index) { #ifdef LIME_GLES3_API const char* val = (const char*)glGetStringi (pname, index); @@ -2973,7 +2973,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_sync_parameteri (HL_CFFIPointer* sync, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_sync_parameteri) (HL_CFFIPointer* sync, int pname) { // TODO @@ -2993,7 +2993,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_sync_parameteriv (HL_CFFIPointer* sync, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_sync_parameteriv) (HL_CFFIPointer* sync, int pname, double params) { // TODO @@ -3011,7 +3011,7 @@ namespace lime { } - HL_PRIM float hl_lime_gl_get_tex_parameterf (int target, int pname) { + HL_PRIM float HL_NAME(hl_gl_get_tex_parameterf) (int target, int pname) { GLfloat params = 0; glGetTexParameterfv (target, pname, ¶ms); @@ -3027,7 +3027,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_tex_parameterfv (int target, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_tex_parameterfv) (int target, int pname, double params) { glGetTexParameterfv (target, pname, (GLfloat*)(uintptr_t)params); @@ -3043,7 +3043,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_tex_parameteri (int target, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_tex_parameteri) (int target, int pname) { GLint params = 0; glGetTexParameteriv (target, pname, ¶ms); @@ -3059,7 +3059,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_tex_parameteriv (int target, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_tex_parameteriv) (int target, int pname, double params) { glGetTexParameteriv (target, pname, (GLint*)(uintptr_t)params); @@ -3096,7 +3096,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_gl_get_transform_feedback_varying (int program, int index) { + HL_PRIM vdynamic* HL_NAME(hl_gl_get_transform_feedback_varying) (int program, int index) { #ifdef LIME_GLES3_API GLint maxLength = 0; @@ -3140,7 +3140,7 @@ namespace lime { } - HL_PRIM float hl_lime_gl_get_uniformf (int program, int location) { + HL_PRIM float HL_NAME(hl_gl_get_uniformf) (int program, int location) { GLfloat params = 0; glGetUniformfv (program, location, ¶ms); @@ -3156,7 +3156,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_uniformfv (int program, int location, double params) { + HL_PRIM void HL_NAME(hl_gl_get_uniformfv) (int program, int location, double params) { glGetUniformfv (program, location, (GLfloat*)(uintptr_t)params); @@ -3172,7 +3172,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_uniformi (int program, int location) { + HL_PRIM int HL_NAME(hl_gl_get_uniformi) (int program, int location) { GLint params = 0; glGetUniformiv (program, location, ¶ms); @@ -3188,7 +3188,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_uniformiv (int program, int location, double params) { + HL_PRIM void HL_NAME(hl_gl_get_uniformiv) (int program, int location, double params) { glGetUniformiv (program, location, (GLint*)(uintptr_t)params); @@ -3206,7 +3206,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_uniformui (int program, int location) { + HL_PRIM int HL_NAME(hl_gl_get_uniformui) (int program, int location) { GLuint params = 0; #ifdef LIME_GLES3_API @@ -3226,7 +3226,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_uniformuiv (int program, int location, double params) { + HL_PRIM void HL_NAME(hl_gl_get_uniformuiv) (int program, int location, double params) { #ifdef LIME_GLES3_API glGetUniformuiv (program, location, (GLuint*)(uintptr_t)params); @@ -3246,7 +3246,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_uniform_block_index (int program, hl_vstring* uniformBlockName) { + HL_PRIM int HL_NAME(hl_gl_get_uniform_block_index) (int program, hl_vstring* uniformBlockName) { #ifdef LIME_GLES3_API return glGetUniformBlockIndex (program, uniformBlockName ? hl_to_utf8 (uniformBlockName->bytes) : NULL); @@ -3264,7 +3264,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_uniform_location (int program, hl_vstring* name) { + HL_PRIM int HL_NAME(hl_gl_get_uniform_location) (int program, hl_vstring* name) { return glGetUniformLocation (program, name ? hl_to_utf8 (name->bytes) : NULL); @@ -3280,7 +3280,7 @@ namespace lime { } - HL_PRIM float hl_lime_gl_get_vertex_attribf (int index, int pname) { + HL_PRIM float HL_NAME(hl_gl_get_vertex_attribf) (int index, int pname) { GLfloat params = 0; glGetVertexAttribfv (index, pname, ¶ms); @@ -3296,7 +3296,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_vertex_attribfv (int index, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_vertex_attribfv) (int index, int pname, double params) { glGetVertexAttribfv (index, pname, (GLfloat*)(uintptr_t)params); @@ -3312,7 +3312,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_vertex_attribi (int index, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_vertex_attribi) (int index, int pname) { GLint params = 0; glGetVertexAttribiv (index, pname, ¶ms); @@ -3328,7 +3328,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_vertex_attribiv (int index, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_vertex_attribiv) (int index, int pname, double params) { glGetVertexAttribiv (index, pname, (GLint*)(uintptr_t)params); @@ -3346,7 +3346,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_vertex_attribii (int index, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_vertex_attribii) (int index, int pname) { GLint params = 0; #ifdef LIME_GLES3_API @@ -3366,7 +3366,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_vertex_attribiiv (int index, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_vertex_attribiiv) (int index, int pname, double params) { #ifdef LIME_GLES3_API glGetVertexAttribIiv (index, pname, (GLint*)(uintptr_t)params); @@ -3386,7 +3386,7 @@ namespace lime { } - HL_PRIM int hl_lime_gl_get_vertex_attribiui (int index, int pname) { + HL_PRIM int HL_NAME(hl_gl_get_vertex_attribiui) (int index, int pname) { GLuint params = 0; #ifdef LIME_GLES3_API @@ -3406,7 +3406,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_get_vertex_attribiuiv (int index, int pname, double params) { + HL_PRIM void HL_NAME(hl_gl_get_vertex_attribiuiv) (int index, int pname, double params) { #ifdef LIME_GLES3_API glGetVertexAttribIuiv (index, pname, (GLuint*)(uintptr_t)params); @@ -3424,7 +3424,7 @@ namespace lime { } - HL_PRIM double hl_lime_gl_get_vertex_attrib_pointerv (int index, int pname) { + HL_PRIM double HL_NAME(hl_gl_get_vertex_attrib_pointerv) (int index, int pname) { uintptr_t result = 0; glGetVertexAttribPointerv (index, pname, (void**)result); @@ -3440,7 +3440,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_hint (int target, int mode) { + HL_PRIM void HL_NAME(hl_gl_hint) (int target, int mode) { glHint (target, mode); @@ -3465,7 +3465,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_invalidate_framebuffer (int target, varray* attachments) { + HL_PRIM void HL_NAME(hl_gl_invalidate_framebuffer) (int target, varray* attachments) { #ifdef LIME_GLES3_API GLint size = attachments->size; @@ -3493,7 +3493,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_invalidate_sub_framebuffer (int target, varray* attachments, int x, int y, int width, int height) { + HL_PRIM void HL_NAME(hl_gl_invalidate_sub_framebuffer) (int target, varray* attachments, int x, int y, int width, int height) { #ifdef LIME_GLES3_API GLint size = attachments->size; @@ -3510,7 +3510,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_buffer (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_buffer) (int handle) { return glIsBuffer (handle); @@ -3524,7 +3524,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_enabled (int cap) { + HL_PRIM bool HL_NAME(hl_gl_is_enabled) (int cap) { return glIsEnabled (cap); @@ -3538,7 +3538,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_framebuffer (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_framebuffer) (int handle) { return glIsFramebuffer (handle); @@ -3552,7 +3552,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_program (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_program) (int handle) { return glIsProgram (handle); @@ -3570,7 +3570,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_query (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_query) (int handle) { #ifdef LIME_GLES3_API return glIsQuery (handle); @@ -3588,7 +3588,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_renderbuffer (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_renderbuffer) (int handle) { return glIsRenderbuffer (handle); @@ -3606,7 +3606,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_sampler (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_sampler) (int handle) { #ifdef LIME_GLES3_API return glIsSampler (handle); @@ -3624,7 +3624,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_shader (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_shader) (int handle) { return glIsShader (handle); @@ -3643,7 +3643,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_sync (HL_CFFIPointer* handle) { + HL_PRIM bool HL_NAME(hl_gl_is_sync) (HL_CFFIPointer* handle) { #ifdef LIME_GLES3_API if (!handle) return false; @@ -3662,7 +3662,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_texture (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_texture) (int handle) { return glIsTexture (handle); @@ -3680,7 +3680,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_transform_feedback (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_transform_feedback) (int handle) { #ifdef LIME_GLES3_API return glIsTransformFeedback (handle); @@ -3702,7 +3702,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_is_vertex_array (int handle) { + HL_PRIM bool HL_NAME(hl_gl_is_vertex_array) (int handle) { #ifdef LIME_GLES3_API return glIsQuery (handle); @@ -3720,7 +3720,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_line_width (float width) { + HL_PRIM void HL_NAME(hl_gl_line_width) (float width) { glLineWidth (width); @@ -3734,7 +3734,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_link_program (int program) { + HL_PRIM void HL_NAME(hl_gl_link_program) (int program) { glLinkProgram (program); @@ -3753,7 +3753,7 @@ namespace lime { } - HL_PRIM double hl_lime_gl_map_buffer_range (int target, double offset, int length, int access) { + HL_PRIM double HL_NAME(hl_gl_map_buffer_range) (int target, double offset, int length, int access) { #ifdef LIME_GLES3_API uintptr_t result = (uintptr_t)glMapBufferRange (target, (GLintptr)(uintptr_t)offset, length, access); @@ -3789,7 +3789,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_object_deregister (void* object) { + HL_PRIM void HL_NAME(hl_gl_object_deregister) (void* object) { if (glObjectIDs.find (object) != glObjectIDs.end ()) { @@ -3831,7 +3831,7 @@ namespace lime { } - HL_PRIM void* hl_lime_gl_object_from_id (int id, int type) { + HL_PRIM void* HL_NAME(hl_gl_object_from_id) (int id, int type) { GLObjectType _type = (GLObjectType)type; @@ -3875,7 +3875,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_gl_object_register (int id, int type, void* object) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_gl_object_register) (int id, int type, void* object) { GLObjectType _type = (GLObjectType)type; HL_CFFIPointer* handle = HLCFFIPointer ((vobj*)object, (hl_finalizer)gc_gl_object); @@ -3911,7 +3911,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_pause_transform_feedback () { + HL_PRIM void HL_NAME(hl_gl_pause_transform_feedback) () { #ifdef LIME_GLES3_API glPauseTransformFeedback (); @@ -3927,7 +3927,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_pixel_storei (int pname, int param) { + HL_PRIM void HL_NAME(hl_gl_pixel_storei) (int pname, int param) { glPixelStorei (pname, param); @@ -3941,7 +3941,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_polygon_offset (float factor, float units) { + HL_PRIM void HL_NAME(hl_gl_polygon_offset) (float factor, float units) { glPolygonOffset (factor, units); @@ -3957,7 +3957,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_program_binary (int program, int binaryFormat, double binary, int length) { + HL_PRIM void HL_NAME(hl_gl_program_binary) (int program, int binaryFormat, double binary, int length) { #ifdef LIME_GLES3_API glProgramBinary (program, binaryFormat, (void*)(uintptr_t)binary, length); @@ -3975,7 +3975,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_program_parameteri (int program, int pname, int value) { + HL_PRIM void HL_NAME(hl_gl_program_parameteri) (int program, int pname, int value) { #ifdef LIME_GLES3_API glProgramParameteri (program, pname, value); @@ -3993,7 +3993,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_read_buffer (int src) { + HL_PRIM void HL_NAME(hl_gl_read_buffer) (int src) { #ifdef LIME_GLES3_API glReadBuffer (src); @@ -4009,7 +4009,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_read_pixels (int x, int y, int width, int height, int format, int type, double pixels) { + HL_PRIM void HL_NAME(hl_gl_read_pixels) (int x, int y, int width, int height, int format, int type, double pixels) { glReadPixels (x, y, width, height, format, type, (void*)(uintptr_t)pixels); @@ -4025,7 +4025,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_release_shader_compiler () { + HL_PRIM void HL_NAME(hl_gl_release_shader_compiler) () { #ifdef LIME_GLES3_API glReleaseShaderCompiler (); @@ -4041,7 +4041,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_renderbuffer_storage (int target, int internalformat, int width, int height) { + HL_PRIM void HL_NAME(hl_gl_renderbuffer_storage) (int target, int internalformat, int width, int height) { glRenderbufferStorage (target, internalformat, width, height); @@ -4057,7 +4057,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_renderbuffer_storage_multisample (int target, int samples, int internalformat, int width, int height) { + HL_PRIM void HL_NAME(hl_gl_renderbuffer_storage_multisample) (int target, int samples, int internalformat, int width, int height) { #ifdef LIME_GLES3_API glRenderbufferStorageMultisample (target, samples, internalformat, width, height); @@ -4075,7 +4075,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_resume_transform_feedback () { + HL_PRIM void HL_NAME(hl_gl_resume_transform_feedback) () { #ifdef LIME_GLES3_API glResumeTransformFeedback (); @@ -4093,7 +4093,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_sample_coverage (float val, bool invert) { + HL_PRIM void HL_NAME(hl_gl_sample_coverage) (float val, bool invert) { #ifdef LIME_GLES3_API glSampleCoverage (val, invert); @@ -4111,7 +4111,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_sampler_parameterf (int sampler, int pname, float param) { + HL_PRIM void HL_NAME(hl_gl_sampler_parameterf) (int sampler, int pname, float param) { #ifdef LIME_GLES3_API glSamplerParameterf (sampler, pname, param); @@ -4129,7 +4129,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_sampler_parameteri (int sampler, int pname, int param) { + HL_PRIM void HL_NAME(hl_gl_sampler_parameteri) (int sampler, int pname, int param) { #ifdef LIME_GLES3_API glSamplerParameteri (sampler, pname, param); @@ -4145,7 +4145,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_scissor (int x, int y, int width, int height) { + HL_PRIM void HL_NAME(hl_gl_scissor) (int x, int y, int width, int height) { glScissor (x, y, width, height); @@ -4170,7 +4170,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_shader_binary (varray* shaders, int binaryformat, double binary, int length) { + HL_PRIM void HL_NAME(hl_gl_shader_binary) (varray* shaders, int binaryformat, double binary, int length) { #ifdef LIME_GLES3_API GLsizei size = shaders->size; @@ -4187,7 +4187,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_shader_source (int handle, hl_vstring* source) { + HL_PRIM void HL_NAME(hl_gl_shader_source) (int handle, hl_vstring* source) { const char* _source = source ? hl_to_utf8 (source->bytes) : NULL; glShaderSource (handle, 1, (const char**)&_source, 0); @@ -4202,7 +4202,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_stencil_func (int func, int ref, int mask) { + HL_PRIM void HL_NAME(hl_gl_stencil_func) (int func, int ref, int mask) { glStencilFunc (func, ref, mask); @@ -4216,7 +4216,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_stencil_func_separate (int face, int func, int ref, int mask) { + HL_PRIM void HL_NAME(hl_gl_stencil_func_separate) (int face, int func, int ref, int mask) { glStencilFuncSeparate (face, func, ref, mask); @@ -4230,7 +4230,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_stencil_mask (int mask) { + HL_PRIM void HL_NAME(hl_gl_stencil_mask) (int mask) { glStencilMask (mask); @@ -4244,7 +4244,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_stencil_mask_separate (int face, int mask) { + HL_PRIM void HL_NAME(hl_gl_stencil_mask_separate) (int face, int mask) { glStencilMaskSeparate (face, mask); @@ -4258,7 +4258,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_stencil_op (int sfail, int dpfail, int dppass) { + HL_PRIM void HL_NAME(hl_gl_stencil_op) (int sfail, int dpfail, int dppass) { glStencilOp (sfail, dpfail, dppass); @@ -4272,7 +4272,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_stencil_op_separate (int face, int sfail, int dpfail, int dppass) { + HL_PRIM void HL_NAME(hl_gl_stencil_op_separate) (int face, int sfail, int dpfail, int dppass) { glStencilOpSeparate (face, sfail, dpfail, dppass); @@ -4286,7 +4286,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_tex_image_2d (int target, int level, int internalformat, int width, int height, int border, int format, int type, double data) { + HL_PRIM void HL_NAME(hl_gl_tex_image_2d) (int target, int level, int internalformat, int width, int height, int border, int format, int type, double data) { glTexImage2D (target, level, internalformat, width, height, border, format, type, (void*)(uintptr_t)data); @@ -4302,7 +4302,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_tex_image_3d (int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, double data) { + HL_PRIM void HL_NAME(hl_gl_tex_image_3d) (int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, double data) { #ifdef LIME_GLES3_API glTexImage3D (target, level, internalformat, width, height, depth, border, format, type, (void*)(uintptr_t)data); @@ -4318,7 +4318,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_tex_parameterf (int target, int pname, float param) { + HL_PRIM void HL_NAME(hl_gl_tex_parameterf) (int target, int pname, float param) { glTexParameterf (target, pname, param); @@ -4332,7 +4332,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_tex_parameteri (int target, int pname, int param) { + HL_PRIM void HL_NAME(hl_gl_tex_parameteri) (int target, int pname, int param) { glTexParameterf (target, pname, param); @@ -4348,7 +4348,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_tex_storage_2d (int target, int level, int internalformat, int width, int height) { + HL_PRIM void HL_NAME(hl_gl_tex_storage_2d) (int target, int level, int internalformat, int width, int height) { #ifdef LIME_GLES3_API glTexStorage2D (target, level, internalformat, width, height); @@ -4366,7 +4366,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_tex_storage_3d (int target, int level, int internalformat, int width, int height, int depth) { + HL_PRIM void HL_NAME(hl_gl_tex_storage_3d) (int target, int level, int internalformat, int width, int height, int depth) { #ifdef LIME_GLES3_API glTexStorage3D (target, level, internalformat, width, height, depth); @@ -4382,7 +4382,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_tex_sub_image_2d (int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, double data) { + HL_PRIM void HL_NAME(hl_gl_tex_sub_image_2d) (int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, double data) { glTexSubImage2D (target, level, xoffset, yoffset, width, height, format, type, (void*)(uintptr_t)data); @@ -4398,7 +4398,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_tex_sub_image_3d (int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, double data) { + HL_PRIM void HL_NAME(hl_gl_tex_sub_image_3d) (int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, double data) { #ifdef LIME_GLES3_API glTexSubImage3D (target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (void*)(uintptr_t)data); @@ -4425,7 +4425,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_transform_feedback_varyings (int program, varray* varyings, int bufferMode) { + HL_PRIM void HL_NAME(hl_gl_transform_feedback_varyings) (int program, varray* varyings, int bufferMode) { #ifdef LIME_GLES3_API GLsizei size = varyings->size; @@ -4442,7 +4442,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform1f (int location, float v0) { + HL_PRIM void HL_NAME(hl_gl_uniform1f) (int location, float v0) { glUniform1f (location, v0); @@ -4456,7 +4456,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform1fv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform1fv) (int location, int count, double _value) { glUniform1fv (location, count, (GLfloat*)(uintptr_t)_value); @@ -4470,7 +4470,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform1i (int location, int v0) { + HL_PRIM void HL_NAME(hl_gl_uniform1i) (int location, int v0) { glUniform1i (location, v0); @@ -4484,7 +4484,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform1iv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform1iv) (int location, int count, double _value) { glUniform1iv (location, count, (GLint*)(uintptr_t)_value); @@ -4500,7 +4500,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform1ui (int location, int v0) { + HL_PRIM void HL_NAME(hl_gl_uniform1ui) (int location, int v0) { #ifdef LIME_GLES3_API glUniform1ui (location, v0); @@ -4518,7 +4518,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform1uiv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform1uiv) (int location, int count, double _value) { #ifdef LIME_GLES3_API glUniform1uiv (location, count, (GLuint*)(uintptr_t)_value); @@ -4534,7 +4534,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform2f (int location, float v0, float v1) { + HL_PRIM void HL_NAME(hl_gl_uniform2f) (int location, float v0, float v1) { glUniform2f (location, v0, v1); @@ -4548,7 +4548,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform2fv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform2fv) (int location, int count, double _value) { glUniform2fv (location, count, (GLfloat*)(uintptr_t)_value); @@ -4562,7 +4562,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform2i (int location, int v0, int v1) { + HL_PRIM void HL_NAME(hl_gl_uniform2i) (int location, int v0, int v1) { glUniform2i (location, v0, v1); @@ -4576,7 +4576,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform2iv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform2iv) (int location, int count, double _value) { glUniform2iv (location, count, (GLint*)(uintptr_t)_value); @@ -4592,7 +4592,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform2ui (int location, int v0, int v1) { + HL_PRIM void HL_NAME(hl_gl_uniform2ui) (int location, int v0, int v1) { #ifdef LIME_GLES3_API glUniform2ui (location, v0, v1); @@ -4610,7 +4610,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform2uiv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform2uiv) (int location, int count, double _value) { #ifdef LIME_GLES3_API glUniform2uiv (location, count, (GLuint*)(uintptr_t)_value); @@ -4626,7 +4626,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform3f (int location, float v0, float v1, float v2) { + HL_PRIM void HL_NAME(hl_gl_uniform3f) (int location, float v0, float v1, float v2) { glUniform3f (location, v0, v1, v2); @@ -4640,7 +4640,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform3fv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform3fv) (int location, int count, double _value) { glUniform3fv (location, count, (GLfloat*)(uintptr_t)_value); @@ -4654,7 +4654,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform3i (int location, int v0, int v1, int v2) { + HL_PRIM void HL_NAME(hl_gl_uniform3i) (int location, int v0, int v1, int v2) { glUniform3i (location, v0, v1, v2); @@ -4668,7 +4668,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform3iv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform3iv) (int location, int count, double _value) { glUniform3iv (location, count, (GLint*)(uintptr_t)_value); @@ -4684,7 +4684,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform3ui (int location, int v0, int v1, int v2) { + HL_PRIM void HL_NAME(hl_gl_uniform3ui) (int location, int v0, int v1, int v2) { #ifdef LIME_GLES3_API glUniform3ui (location, v0, v1, v2); @@ -4702,7 +4702,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform3uiv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform3uiv) (int location, int count, double _value) { #ifdef LIME_GLES3_API glUniform3uiv (location, count, (GLuint*)(uintptr_t)_value); @@ -4718,7 +4718,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform4f (int location, float v0, float v1, float v2, float v3) { + HL_PRIM void HL_NAME(hl_gl_uniform4f) (int location, float v0, float v1, float v2, float v3) { glUniform4f (location, v0, v1, v2, v3); @@ -4732,7 +4732,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform4fv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform4fv) (int location, int count, double _value) { glUniform4fv (location, count, (GLfloat*)(uintptr_t)_value); @@ -4746,7 +4746,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform4i (int location, int v0, int v1, int v2, int v3) { + HL_PRIM void HL_NAME(hl_gl_uniform4i) (int location, int v0, int v1, int v2, int v3) { glUniform4i (location, v0, v1, v2, v3); @@ -4760,7 +4760,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform4iv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform4iv) (int location, int count, double _value) { glUniform4iv (location, count, (GLint*)(uintptr_t)_value); @@ -4776,7 +4776,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform4ui (int location, int v0, int v1, int v2, int v3) { + HL_PRIM void HL_NAME(hl_gl_uniform4ui) (int location, int v0, int v1, int v2, int v3) { #ifdef LIME_GLES3_API glUniform4ui (location, v0, v1, v2, v3); @@ -4794,7 +4794,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform4uiv (int location, int count, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform4uiv) (int location, int count, double _value) { #ifdef LIME_GLES3_API glUniform4uiv (location, count, (GLuint*)(uintptr_t)_value); @@ -4812,7 +4812,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_block_binding (int program, int uniformBlockIndex, int uniformBlockBinding) { + HL_PRIM void HL_NAME(hl_gl_uniform_block_binding) (int program, int uniformBlockIndex, int uniformBlockBinding) { #ifdef LIME_GLES3_API glUniformBlockBinding (program, uniformBlockIndex, uniformBlockBinding); @@ -4828,7 +4828,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix2fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix2fv) (int location, int count, bool transpose, double _value) { glUniformMatrix2fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4844,7 +4844,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix2x3fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix2x3fv) (int location, int count, bool transpose, double _value) { #ifdef LIME_GLES3_API glUniformMatrix2x3fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4862,7 +4862,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix2x4fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix2x4fv) (int location, int count, bool transpose, double _value) { #ifdef LIME_GLES3_API glUniformMatrix2x4fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4878,7 +4878,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix3fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix3fv) (int location, int count, bool transpose, double _value) { glUniformMatrix3fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4894,7 +4894,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix3x2fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix3x2fv) (int location, int count, bool transpose, double _value) { #ifdef LIME_GLES3_API glUniformMatrix3x2fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4912,7 +4912,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix3x4fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix3x4fv) (int location, int count, bool transpose, double _value) { #ifdef LIME_GLES3_API glUniformMatrix3x4fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4928,7 +4928,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix4fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix4fv) (int location, int count, bool transpose, double _value) { glUniformMatrix4fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4944,7 +4944,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix4x2fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix4x2fv) (int location, int count, bool transpose, double _value) { #ifdef LIME_GLES3_API glUniformMatrix4x2fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4962,7 +4962,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_uniform_matrix4x3fv (int location, int count, bool transpose, double _value) { + HL_PRIM void HL_NAME(hl_gl_uniform_matrix4x3fv) (int location, int count, bool transpose, double _value) { #ifdef LIME_GLES3_API glUniformMatrix4x3fv (location, count, transpose, (GLfloat*)(uintptr_t)_value); @@ -4982,7 +4982,7 @@ namespace lime { } - HL_PRIM bool hl_lime_gl_unmap_buffer (int target) { + HL_PRIM bool HL_NAME(hl_gl_unmap_buffer) (int target) { #ifdef LIME_GLES3_API return glUnmapBuffer (target); @@ -5000,7 +5000,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_use_program (int handle) { + HL_PRIM void HL_NAME(hl_gl_use_program) (int handle) { glUseProgram (handle); @@ -5014,7 +5014,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_validate_program (int handle) { + HL_PRIM void HL_NAME(hl_gl_validate_program) (int handle) { glValidateProgram (handle); @@ -5030,7 +5030,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib_divisor (int index, int divisor) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib_divisor) (int index, int divisor) { #ifdef LIME_GLES3_API glVertexAttribDivisor (index, divisor); @@ -5048,7 +5048,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib_ipointer (int index, int size, int type, int stride, double offset) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib_ipointer) (int index, int size, int type, int stride, double offset) { #ifdef LIME_GLES3_API glVertexAttribIPointer (index, size, type, stride, (void*)(uintptr_t)offset); @@ -5064,7 +5064,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib_pointer (int index, int size, int type, bool normalized, int stride, double offset) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib_pointer) (int index, int size, int type, bool normalized, int stride, double offset) { glVertexAttribPointer (index, size, type, normalized, stride, (void*)(uintptr_t)offset); @@ -5080,7 +5080,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attribi4i (int index, int v0, int v1, int v2, int v3) { + HL_PRIM void HL_NAME(hl_gl_vertex_attribi4i) (int index, int v0, int v1, int v2, int v3) { #ifdef LIME_GLES3_API glVertexAttribI4i (index, v0, v1, v2, v3); @@ -5098,7 +5098,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attribi4iv (int index, double v) { + HL_PRIM void HL_NAME(hl_gl_vertex_attribi4iv) (int index, double v) { #ifdef LIME_GLES3_API glVertexAttribI4iv (index, (GLint*)(uintptr_t)v); @@ -5116,7 +5116,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attribi4ui (int index, int v0, int v1, int v2, int v3) { + HL_PRIM void HL_NAME(hl_gl_vertex_attribi4ui) (int index, int v0, int v1, int v2, int v3) { #ifdef LIME_GLES3_API glVertexAttribI4ui (index, v0, v1, v2, v3); @@ -5134,7 +5134,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attribi4uiv (int index, double v) { + HL_PRIM void HL_NAME(hl_gl_vertex_attribi4uiv) (int index, double v) { #ifdef LIME_GLES3_API glVertexAttribI4uiv (index, (GLuint*)(uintptr_t)v); @@ -5150,7 +5150,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib1f (int index, float v0) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib1f) (int index, float v0) { glVertexAttrib1f (index, v0); @@ -5164,7 +5164,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib1fv (int index, double v) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib1fv) (int index, double v) { glVertexAttrib1fv (index, (GLfloat*)(uintptr_t)v); @@ -5178,7 +5178,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib2f (int index, float v0, float v1) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib2f) (int index, float v0, float v1) { glVertexAttrib2f (index, v0, v1); @@ -5192,7 +5192,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib2fv (int index, double v) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib2fv) (int index, double v) { glVertexAttrib2fv (index, (GLfloat*)(uintptr_t)v); @@ -5206,7 +5206,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib3f (int index, float v0, float v1, float v2) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib3f) (int index, float v0, float v1, float v2) { glVertexAttrib3f (index, v0, v1, v2); @@ -5220,7 +5220,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib3fv (int index, double v) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib3fv) (int index, double v) { glVertexAttrib3fv (index, (GLfloat*)(uintptr_t)v); @@ -5234,7 +5234,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib4f (int index, float v0, float v1, float v2, float v3) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib4f) (int index, float v0, float v1, float v2, float v3) { glVertexAttrib4f (index, v0, v1, v2, v3); @@ -5248,7 +5248,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_vertex_attrib4fv (int index, double v) { + HL_PRIM void HL_NAME(hl_gl_vertex_attrib4fv) (int index, double v) { glVertexAttrib4fv (index, (GLfloat*)(uintptr_t)v); @@ -5262,7 +5262,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_viewport (int x, int y, int width, int height) { + HL_PRIM void HL_NAME(hl_gl_viewport) (int x, int y, int width, int height) { glViewport (x, y, width, height); @@ -5279,7 +5279,7 @@ namespace lime { } - HL_PRIM void hl_lime_gl_wait_sync (HL_CFFIPointer* sync, int flags, int timeoutA, int timeoutB) { + HL_PRIM void HL_NAME(hl_gl_wait_sync) (HL_CFFIPointer* sync, int flags, int timeoutA, int timeoutB) { #ifdef LIME_GLES3_API GLuint64 timeout = (GLuint64) timeoutA << 32 | timeoutB; @@ -5620,278 +5620,278 @@ namespace lime { #define _TBYTES _OBJ (_I32 _BYTES) #define _TCFFIPOINTER _DYN - #define _TGLOBJECT _OBJ (_I32 _TCFFIPOINTER _OBJ (_ARR)) - - - DEFINE_HL_PRIM (_VOID, lime_gl_active_texture, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_attach_shader, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_begin_query, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_begin_transform_feedback, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_attrib_location, _I32 _I32 _STRING); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_buffer, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_buffer_base, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_buffer_range, _I32 _I32 _I32 _F64 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_framebuffer, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_renderbuffer, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_sampler, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_texture, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_transform_feedback, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_bind_vertex_array, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_blend_color, _F32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_blend_equation, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_blend_equation_separate, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_blend_func, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_blend_func_separate, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_blit_framebuffer, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_buffer_data, _I32 _I32 _F64 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_buffer_sub_data, _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_check_framebuffer_status, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_clear, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_clear_bufferfi, _I32 _I32 _F32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_clear_bufferfv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_clear_bufferiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_clear_bufferuiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_clear_color, _F32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_clear_depthf, _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_clear_stencil, _I32); - DEFINE_HL_PRIM (_I32, lime_gl_client_wait_sync, _TCFFIPOINTER _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_color_mask, _BOOL _BOOL _BOOL _BOOL); - DEFINE_HL_PRIM (_VOID, lime_gl_compile_shader, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_compressed_tex_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_compressed_tex_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_compressed_tex_sub_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_compressed_tex_sub_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_copy_buffer_sub_data, _I32 _I32 _F64 _F64 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_copy_tex_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_copy_tex_sub_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_copy_tex_sub_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_gl_create_buffer, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_create_framebuffer, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_create_program, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_create_query, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_create_renderbuffer, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_create_sampler, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_create_shader, _I32); - DEFINE_HL_PRIM (_I32, lime_gl_create_texture, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_create_transform_feedback, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_create_vertex_array, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_gl_cull_face, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_buffer, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_framebuffer, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_program, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_query, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_renderbuffer, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_sampler, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_shader, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_sync, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_texture, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_transform_feedback, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_delete_vertex_array, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_depth_func, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_depth_mask, _BOOL); - DEFINE_HL_PRIM (_VOID, lime_gl_depth_rangef, _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_detach_shader, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_disable, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_disable_vertex_attrib_array, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_draw_arrays, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_draw_arrays_instanced, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_draw_buffers, _ARR); - DEFINE_HL_PRIM (_VOID, lime_gl_draw_elements, _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_draw_elements_instanced, _I32 _I32 _I32 _F64 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_draw_range_elements, _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_enable, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_enable_vertex_attrib_array, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_end_query, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_end_transform_feedback, _NO_ARG); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_gl_fence_sync, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_finish, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_gl_flush, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_gl_framebuffer_renderbuffer, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_framebuffer_texture_layer, _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_framebuffer_texture2D, _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_front_face, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_generate_mipmap, _I32); - DEFINE_HL_PRIM (_DYN, lime_gl_get_active_attrib, _I32 _I32); - DEFINE_HL_PRIM (_DYN, lime_gl_get_active_uniform, _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_gl_get_active_uniform_blocki, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_active_uniform_blockiv, _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_BYTES, lime_gl_get_active_uniform_block_name, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_active_uniformsiv, _I32 _ARR _I32 _F64); - DEFINE_HL_PRIM (_ARR, lime_gl_get_attached_shaders, _I32); - DEFINE_HL_PRIM (_I32, lime_gl_get_attrib_location, _I32 _STRING); - DEFINE_HL_PRIM (_BOOL, lime_gl_get_boolean, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_booleanv, _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_buffer_parameteri, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_buffer_parameteriv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_get_buffer_parameteri64v, _I32 _I32 _F64); - DEFINE_HL_PRIM (_F64, lime_gl_get_buffer_pointerv, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_buffer_sub_data, _I32 _F64 _I32 _F64); - DEFINE_HL_PRIM (_DYN, lime_gl_get_context_attributes, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_gl_get_error, _NO_ARG); - DEFINE_HL_PRIM (_DYN, lime_gl_get_extension, _STRING); - DEFINE_HL_PRIM (_F32, lime_gl_get_float, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_floatv, _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_frag_data_location, _I32 _STRING); - DEFINE_HL_PRIM (_I32, lime_gl_get_framebuffer_attachment_parameteri, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_framebuffer_attachment_parameteriv, _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_integer, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_integerv, _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_get_integer64v, _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_get_integer64i_v, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_get_integeri_v, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_get_internalformativ, _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_programi, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_programiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_get_program_binary, _I32 _I32 _TBYTES); - DEFINE_HL_PRIM (_BYTES, lime_gl_get_program_info_log, _I32); - DEFINE_HL_PRIM (_I32, lime_gl_get_queryi, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_queryiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_query_objectui, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_query_objectuiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_renderbuffer_parameteri, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_renderbuffer_parameteriv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_F32, lime_gl_get_sampler_parameterf, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_sampler_parameterfv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_sampler_parameteri, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_sampler_parameteriv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_BYTES, lime_gl_get_shader_info_log, _I32); - DEFINE_HL_PRIM (_I32, lime_gl_get_shaderi, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_shaderiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_DYN, lime_gl_get_shader_precision_format, _I32 _I32); - DEFINE_HL_PRIM (_BYTES, lime_gl_get_shader_source, _I32); - DEFINE_HL_PRIM (_BYTES, lime_gl_get_string, _I32); - DEFINE_HL_PRIM (_BYTES, lime_gl_get_stringi, _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_gl_get_sync_parameteri, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_sync_parameteriv, _TCFFIPOINTER _I32 _F64); - DEFINE_HL_PRIM (_F32, lime_gl_get_tex_parameterf, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_tex_parameterfv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_tex_parameteri, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_tex_parameteriv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_DYN, lime_gl_get_transform_feedback_varying, _I32 _I32); - DEFINE_HL_PRIM (_F32, lime_gl_get_uniformf, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_uniformfv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_uniformi, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_uniformiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_uniformui, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_uniformuiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_uniform_block_index, _I32 _STRING); - DEFINE_HL_PRIM (_I32, lime_gl_get_uniform_location, _I32 _STRING); - DEFINE_HL_PRIM (_F32, lime_gl_get_vertex_attribf, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_vertex_attribfv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_vertex_attribi, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_vertex_attribiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_vertex_attribii, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_vertex_attribiiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_I32, lime_gl_get_vertex_attribiui, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_get_vertex_attribiuiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_F64, lime_gl_get_vertex_attrib_pointerv, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_hint, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_invalidate_framebuffer, _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_gl_invalidate_sub_framebuffer, _I32 _ARR _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_buffer, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_enabled, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_framebuffer, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_program, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_query, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_renderbuffer, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_sampler, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_shader, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_sync, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_texture, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_transform_feedback, _I32); - DEFINE_HL_PRIM (_BOOL, lime_gl_is_vertex_array, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_line_width, _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_link_program, _I32); - DEFINE_HL_PRIM (_F64, lime_gl_map_buffer_range, _I32 _F64 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_object_deregister, _TGLOBJECT); - DEFINE_HL_PRIM (_TGLOBJECT, lime_gl_object_from_id, _I32 _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_gl_object_register, _I32 _I32 _TGLOBJECT); - DEFINE_HL_PRIM (_VOID, lime_gl_pause_transform_feedback, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_gl_pixel_storei, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_polygon_offset, _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_program_binary, _I32 _I32 _F64 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_program_parameteri, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_read_buffer, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_read_pixels, _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_release_shader_compiler, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_gl_renderbuffer_storage, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_renderbuffer_storage_multisample, _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_resume_transform_feedback, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_gl_sample_coverage, _F32 _BOOL); - DEFINE_HL_PRIM (_VOID, lime_gl_sampler_parameterf, _I32 _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_sampler_parameteri, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_scissor, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_shader_binary, _ARR _I32 _F64 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_shader_source, _I32 _STRING); - DEFINE_HL_PRIM (_VOID, lime_gl_stencil_func, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_stencil_func_separate, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_stencil_mask, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_stencil_mask_separate, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_stencil_op, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_stencil_op_separate, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_tex_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_tex_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_tex_parameterf, _I32 _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_tex_parameteri, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_tex_storage_2d, _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_tex_storage_3d, _I32 _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_tex_sub_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_tex_sub_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_transform_feedback_varyings, _I32 _ARR _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform1f, _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform1fv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform1i, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform1iv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform1ui, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform1uiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform2f, _I32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform2fv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform2i, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform2iv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform2ui, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform2uiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform3f, _I32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform3fv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform3i, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform3iv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform3ui, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform3uiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform4f, _I32 _F32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform4fv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform4i, _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform4iv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform4ui, _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform4uiv, _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_block_binding, _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix2fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix2x3fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix2x4fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix3fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix3x2fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix3x4fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix4fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix4x2fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_uniform_matrix4x3fv, _I32 _I32 _BOOL _F64); - DEFINE_HL_PRIM (_BOOL, lime_gl_unmap_buffer, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_use_program, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_validate_program, _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib_divisor, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib_ipointer, _I32 _I32 _I32 _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib_pointer, _I32 _I32 _I32 _BOOL _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attribi4i, _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attribi4iv, _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attribi4ui, _I32 _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attribi4uiv, _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib1f, _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib1fv, _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib2f, _I32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib2fv, _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib3f, _I32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib3fv, _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib4f, _I32 _F32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_gl_vertex_attrib4fv, _I32 _F64); - DEFINE_HL_PRIM (_VOID, lime_gl_viewport, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_gl_wait_sync, _TCFFIPOINTER _I32 _I32 _I32); + #define _TGLOBJECT _OBJ (_I32 _TCFFIPOINTER _OBJ (_I32 _ARR)) + + + DEFINE_HL_PRIM (_VOID, hl_gl_active_texture, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_attach_shader, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_begin_query, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_begin_transform_feedback, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_attrib_location, _I32 _I32 _STRING); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_buffer, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_buffer_base, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_buffer_range, _I32 _I32 _I32 _F64 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_framebuffer, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_renderbuffer, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_sampler, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_texture, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_transform_feedback, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_bind_vertex_array, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_blend_color, _F32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_blend_equation, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_blend_equation_separate, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_blend_func, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_blend_func_separate, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_blit_framebuffer, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_buffer_data, _I32 _I32 _F64 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_buffer_sub_data, _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_check_framebuffer_status, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_clear, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_clear_bufferfi, _I32 _I32 _F32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_clear_bufferfv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_clear_bufferiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_clear_bufferuiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_clear_color, _F32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_clear_depthf, _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_clear_stencil, _I32); + DEFINE_HL_PRIM (_I32, hl_gl_client_wait_sync, _TCFFIPOINTER _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_color_mask, _BOOL _BOOL _BOOL _BOOL); + DEFINE_HL_PRIM (_VOID, hl_gl_compile_shader, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_compressed_tex_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_compressed_tex_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_compressed_tex_sub_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_compressed_tex_sub_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_copy_buffer_sub_data, _I32 _I32 _F64 _F64 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_copy_tex_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_copy_tex_sub_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_copy_tex_sub_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_gl_create_buffer, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_create_framebuffer, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_create_program, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_create_query, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_create_renderbuffer, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_create_sampler, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_create_shader, _I32); + DEFINE_HL_PRIM (_I32, hl_gl_create_texture, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_create_transform_feedback, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_create_vertex_array, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_gl_cull_face, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_buffer, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_framebuffer, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_program, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_query, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_renderbuffer, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_sampler, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_shader, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_sync, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_texture, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_transform_feedback, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_delete_vertex_array, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_depth_func, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_depth_mask, _BOOL); + DEFINE_HL_PRIM (_VOID, hl_gl_depth_rangef, _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_detach_shader, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_disable, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_disable_vertex_attrib_array, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_draw_arrays, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_draw_arrays_instanced, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_draw_buffers, _ARR); + DEFINE_HL_PRIM (_VOID, hl_gl_draw_elements, _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_draw_elements_instanced, _I32 _I32 _I32 _F64 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_draw_range_elements, _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_enable, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_enable_vertex_attrib_array, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_end_query, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_end_transform_feedback, _NO_ARG); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_gl_fence_sync, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_finish, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_gl_flush, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_gl_framebuffer_renderbuffer, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_framebuffer_texture_layer, _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_framebuffer_texture2D, _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_front_face, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_generate_mipmap, _I32); + DEFINE_HL_PRIM (_DYN, hl_gl_get_active_attrib, _I32 _I32); + DEFINE_HL_PRIM (_DYN, hl_gl_get_active_uniform, _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_gl_get_active_uniform_blocki, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_active_uniform_blockiv, _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_BYTES, hl_gl_get_active_uniform_block_name, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_active_uniformsiv, _I32 _ARR _I32 _F64); + DEFINE_HL_PRIM (_ARR, hl_gl_get_attached_shaders, _I32); + DEFINE_HL_PRIM (_I32, hl_gl_get_attrib_location, _I32 _STRING); + DEFINE_HL_PRIM (_BOOL, hl_gl_get_boolean, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_booleanv, _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_buffer_parameteri, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_buffer_parameteriv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_get_buffer_parameteri64v, _I32 _I32 _F64); + DEFINE_HL_PRIM (_F64, hl_gl_get_buffer_pointerv, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_buffer_sub_data, _I32 _F64 _I32 _F64); + DEFINE_HL_PRIM (_DYN, hl_gl_get_context_attributes, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_gl_get_error, _NO_ARG); + DEFINE_HL_PRIM (_DYN, hl_gl_get_extension, _STRING); + DEFINE_HL_PRIM (_F32, hl_gl_get_float, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_floatv, _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_frag_data_location, _I32 _STRING); + DEFINE_HL_PRIM (_I32, hl_gl_get_framebuffer_attachment_parameteri, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_framebuffer_attachment_parameteriv, _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_integer, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_integerv, _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_get_integer64v, _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_get_integer64i_v, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_get_integeri_v, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_get_internalformativ, _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_programi, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_programiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_get_program_binary, _I32 _I32 _TBYTES); + DEFINE_HL_PRIM (_BYTES, hl_gl_get_program_info_log, _I32); + DEFINE_HL_PRIM (_I32, hl_gl_get_queryi, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_queryiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_query_objectui, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_query_objectuiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_renderbuffer_parameteri, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_renderbuffer_parameteriv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_F32, hl_gl_get_sampler_parameterf, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_sampler_parameterfv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_sampler_parameteri, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_sampler_parameteriv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_BYTES, hl_gl_get_shader_info_log, _I32); + DEFINE_HL_PRIM (_I32, hl_gl_get_shaderi, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_shaderiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_DYN, hl_gl_get_shader_precision_format, _I32 _I32); + DEFINE_HL_PRIM (_BYTES, hl_gl_get_shader_source, _I32); + DEFINE_HL_PRIM (_BYTES, hl_gl_get_string, _I32); + DEFINE_HL_PRIM (_BYTES, hl_gl_get_stringi, _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_gl_get_sync_parameteri, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_sync_parameteriv, _TCFFIPOINTER _I32 _F64); + DEFINE_HL_PRIM (_F32, hl_gl_get_tex_parameterf, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_tex_parameterfv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_tex_parameteri, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_tex_parameteriv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_DYN, hl_gl_get_transform_feedback_varying, _I32 _I32); + DEFINE_HL_PRIM (_F32, hl_gl_get_uniformf, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_uniformfv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_uniformi, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_uniformiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_uniformui, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_uniformuiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_uniform_block_index, _I32 _STRING); + DEFINE_HL_PRIM (_I32, hl_gl_get_uniform_location, _I32 _STRING); + DEFINE_HL_PRIM (_F32, hl_gl_get_vertex_attribf, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_vertex_attribfv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_vertex_attribi, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_vertex_attribiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_vertex_attribii, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_vertex_attribiiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_I32, hl_gl_get_vertex_attribiui, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_get_vertex_attribiuiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_F64, hl_gl_get_vertex_attrib_pointerv, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_hint, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_invalidate_framebuffer, _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_gl_invalidate_sub_framebuffer, _I32 _ARR _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_buffer, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_enabled, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_framebuffer, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_program, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_query, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_renderbuffer, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_sampler, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_shader, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_sync, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_texture, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_transform_feedback, _I32); + DEFINE_HL_PRIM (_BOOL, hl_gl_is_vertex_array, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_line_width, _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_link_program, _I32); + DEFINE_HL_PRIM (_F64, hl_gl_map_buffer_range, _I32 _F64 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_object_deregister, _TGLOBJECT); + DEFINE_HL_PRIM (_TGLOBJECT, hl_gl_object_from_id, _I32 _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_gl_object_register, _I32 _I32 _TGLOBJECT); + DEFINE_HL_PRIM (_VOID, hl_gl_pause_transform_feedback, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_gl_pixel_storei, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_polygon_offset, _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_program_binary, _I32 _I32 _F64 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_program_parameteri, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_read_buffer, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_read_pixels, _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_release_shader_compiler, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_gl_renderbuffer_storage, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_renderbuffer_storage_multisample, _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_resume_transform_feedback, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_gl_sample_coverage, _F32 _BOOL); + DEFINE_HL_PRIM (_VOID, hl_gl_sampler_parameterf, _I32 _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_sampler_parameteri, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_scissor, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_shader_binary, _ARR _I32 _F64 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_shader_source, _I32 _STRING); + DEFINE_HL_PRIM (_VOID, hl_gl_stencil_func, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_stencil_func_separate, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_stencil_mask, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_stencil_mask_separate, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_stencil_op, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_stencil_op_separate, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_tex_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_tex_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_tex_parameterf, _I32 _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_tex_parameteri, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_tex_storage_2d, _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_tex_storage_3d, _I32 _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_tex_sub_image_2d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_tex_sub_image_3d, _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_transform_feedback_varyings, _I32 _ARR _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform1f, _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform1fv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform1i, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform1iv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform1ui, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform1uiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform2f, _I32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform2fv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform2i, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform2iv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform2ui, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform2uiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform3f, _I32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform3fv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform3i, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform3iv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform3ui, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform3uiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform4f, _I32 _F32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform4fv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform4i, _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform4iv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform4ui, _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform4uiv, _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_block_binding, _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix2fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix2x3fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix2x4fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix3fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix3x2fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix3x4fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix4fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix4x2fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_uniform_matrix4x3fv, _I32 _I32 _BOOL _F64); + DEFINE_HL_PRIM (_BOOL, hl_gl_unmap_buffer, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_use_program, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_validate_program, _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib_divisor, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib_ipointer, _I32 _I32 _I32 _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib_pointer, _I32 _I32 _I32 _BOOL _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attribi4i, _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attribi4iv, _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attribi4ui, _I32 _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attribi4uiv, _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib1f, _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib1fv, _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib2f, _I32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib2fv, _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib3f, _I32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib3fv, _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib4f, _I32 _F32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_gl_vertex_attrib4fv, _I32 _F64); + DEFINE_HL_PRIM (_VOID, hl_gl_viewport, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_gl_wait_sync, _TCFFIPOINTER _I32 _I32 _I32); } diff --git a/project/src/hashlink_main.c b/project/src/hashlink_main.c new file mode 100644 index 0000000000..3722812736 --- /dev/null +++ b/project/src/hashlink_main.c @@ -0,0 +1,7 @@ +#ifdef HX_WIN_MAIN +extern int wmain(int argc, wchar_t *argv[]); + +int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { + return wmain(__argc, __argv); +} +#endif \ No newline at end of file diff --git a/project/src/media/codecs/vorbis/VorbisBindings.cpp b/project/src/media/codecs/vorbis/VorbisBindings.cpp index 4e15db5b22..02353086b5 100644 --- a/project/src/media/codecs/vorbis/VorbisBindings.cpp +++ b/project/src/media/codecs/vorbis/VorbisBindings.cpp @@ -122,7 +122,7 @@ namespace lime { void lime_vorbis_file_clear (value vorbisFile); - HL_PRIM void hl_lime_vorbis_file_clear (HL_CFFIPointer* vorbisFile); + HL_PRIM void HL_NAME(hl_vorbis_file_clear) (HL_CFFIPointer* vorbisFile); void gc_vorbis_file (value vorbisFile) { @@ -133,7 +133,7 @@ namespace lime { void hl_gc_vorbis_file (HL_CFFIPointer* vorbisFile) { - hl_lime_vorbis_file_clear (vorbisFile); + lime_hl_vorbis_file_clear (vorbisFile); } @@ -146,7 +146,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_bitrate (HL_CFFIPointer* vorbisFile, int bitstream) { + HL_PRIM int HL_NAME(hl_vorbis_file_bitrate) (HL_CFFIPointer* vorbisFile, int bitstream) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_bitrate (file, bitstream); @@ -162,7 +162,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_bitrate_instant (HL_CFFIPointer* vorbisFile) { + HL_PRIM int HL_NAME(hl_vorbis_file_bitrate_instant) (HL_CFFIPointer* vorbisFile) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_bitrate_instant (file); @@ -183,7 +183,7 @@ namespace lime { } - HL_PRIM void hl_lime_vorbis_file_clear (HL_CFFIPointer* vorbisFile) { + HL_PRIM void HL_NAME(hl_vorbis_file_clear) (HL_CFFIPointer* vorbisFile) { if (vorbisFile) { @@ -203,7 +203,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_vorbis_file_comment (HL_CFFIPointer* vorbisFile, int bitstream) { + HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_comment) (HL_CFFIPointer* vorbisFile, int bitstream) { return NULL; @@ -219,7 +219,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_crosslap (HL_CFFIPointer* vorbisFile, HL_CFFIPointer* otherVorbisFile) { + HL_PRIM int HL_NAME(hl_vorbis_file_crosslap) (HL_CFFIPointer* vorbisFile, HL_CFFIPointer* otherVorbisFile) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; OggVorbis_File* otherFile = (OggVorbis_File*)(uintptr_t)otherVorbisFile->ptr; @@ -253,7 +253,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_vorbis_file_info (HL_CFFIPointer* vorbisFile, int bitstream) { + HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_info) (HL_CFFIPointer* vorbisFile, int bitstream) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; vorbis_info *info = ov_info (file, bitstream); @@ -296,7 +296,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_vorbis_file_from_bytes (Bytes* data) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_vorbis_file_from_bytes) (Bytes* data) { OggVorbis_File* vorbisFile = VorbisFile::FromBytes (data); @@ -326,7 +326,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_vorbis_file_from_file (hl_vstring* path) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_vorbis_file_from_file) (hl_vstring* path) { OggVorbis_File* vorbisFile = VorbisFile::FromFile (path ? hl_to_utf8 (path->bytes) : NULL); @@ -350,7 +350,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_pcm_seek (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { + HL_PRIM int HL_NAME(hl_vorbis_file_pcm_seek) (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; ogg_int64_t pos = ((ogg_int64_t)posHigh << 32) | (ogg_int64_t)posLow; @@ -368,7 +368,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_pcm_seek_lap (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { + HL_PRIM int HL_NAME(hl_vorbis_file_pcm_seek_lap) (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; ogg_int64_t pos = ((ogg_int64_t)posHigh << 32) | (ogg_int64_t)posLow; @@ -386,7 +386,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_pcm_seek_page (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { + HL_PRIM int HL_NAME(hl_vorbis_file_pcm_seek_page) (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; ogg_int64_t pos = ((ogg_int64_t)posHigh << 32) | (ogg_int64_t)posLow; @@ -404,7 +404,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_pcm_seek_page_lap (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { + HL_PRIM int HL_NAME(hl_vorbis_file_pcm_seek_page_lap) (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; ogg_int64_t pos = ((ogg_int64_t)posHigh << 32) | (ogg_int64_t)posLow; @@ -421,7 +421,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_vorbis_file_pcm_tell (HL_CFFIPointer* vorbisFile) { + HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_pcm_tell) (HL_CFFIPointer* vorbisFile) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return hl_allocInt64 (ov_pcm_tell (file)); @@ -437,7 +437,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_vorbis_file_pcm_total (HL_CFFIPointer* vorbisFile, int bitstream) { + HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_pcm_total) (HL_CFFIPointer* vorbisFile, int bitstream) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return hl_allocInt64 (ov_pcm_total (file, bitstream)); @@ -454,7 +454,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_raw_seek (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { + HL_PRIM int HL_NAME(hl_vorbis_file_raw_seek) (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; ogg_int64_t pos = ((ogg_int64_t)posHigh << 32) | (ogg_int64_t)posLow; @@ -472,7 +472,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_raw_seek_lap (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { + HL_PRIM int HL_NAME(hl_vorbis_file_raw_seek_lap) (HL_CFFIPointer* vorbisFile, int posLow, int posHigh) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; ogg_int64_t pos = ((ogg_int64_t)posHigh << 32) | (ogg_int64_t)posLow; @@ -489,7 +489,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_vorbis_file_raw_tell (HL_CFFIPointer* vorbisFile) { + HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_raw_tell) (HL_CFFIPointer* vorbisFile) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return hl_allocInt64 (ov_raw_tell (file)); @@ -505,7 +505,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_vorbis_file_raw_total (HL_CFFIPointer* vorbisFile, int bitstream) { + HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_raw_total) (HL_CFFIPointer* vorbisFile, int bitstream) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return hl_allocInt64 (ov_raw_total (file, bitstream)); @@ -539,7 +539,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_vorbis_file_read (HL_CFFIPointer* vorbisFile, Bytes* buffer, int position, int length, bool bigendianp, int word, bool sgned) { + HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_read) (HL_CFFIPointer* vorbisFile, Bytes* buffer, int position, int length, bool bigendianp, int word, bool sgned) { if (!buffer) { @@ -582,7 +582,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_vorbis_file_read_float (HL_CFFIPointer* vorbisFile, Bytes* pcmChannels, int samples) { + HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_read_float) (HL_CFFIPointer* vorbisFile, Bytes* pcmChannels, int samples) { return NULL; @@ -597,7 +597,7 @@ namespace lime { } - HL_PRIM bool hl_lime_vorbis_file_seekable (HL_CFFIPointer* vorbisFile) { + HL_PRIM bool HL_NAME(hl_vorbis_file_seekable) (HL_CFFIPointer* vorbisFile) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_seekable (file); @@ -613,7 +613,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_serial_number (HL_CFFIPointer* vorbisFile, int bitstream) { + HL_PRIM int HL_NAME(hl_vorbis_file_serial_number) (HL_CFFIPointer* vorbisFile, int bitstream) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_serialnumber (file, bitstream); @@ -629,7 +629,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_streams (HL_CFFIPointer* vorbisFile) { + HL_PRIM int HL_NAME(hl_vorbis_file_streams) (HL_CFFIPointer* vorbisFile) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_streams (file); @@ -645,7 +645,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_time_seek (HL_CFFIPointer* vorbisFile, double s) { + HL_PRIM int HL_NAME(hl_vorbis_file_time_seek) (HL_CFFIPointer* vorbisFile, double s) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_time_seek (file, s); @@ -661,7 +661,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_time_seek_lap (HL_CFFIPointer* vorbisFile, double s) { + HL_PRIM int HL_NAME(hl_vorbis_file_time_seek_lap) (HL_CFFIPointer* vorbisFile, double s) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_time_seek_lap (file, s); @@ -677,7 +677,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_time_seek_page (HL_CFFIPointer* vorbisFile, double s) { + HL_PRIM int HL_NAME(hl_vorbis_file_time_seek_page) (HL_CFFIPointer* vorbisFile, double s) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_time_seek_page (file, s); @@ -693,7 +693,7 @@ namespace lime { } - HL_PRIM int hl_lime_vorbis_file_time_seek_page_lap (HL_CFFIPointer* vorbisFile, double s) { + HL_PRIM int HL_NAME(hl_vorbis_file_time_seek_page_lap) (HL_CFFIPointer* vorbisFile, double s) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_time_seek_page_lap (file, s); @@ -709,7 +709,7 @@ namespace lime { } - HL_PRIM double hl_lime_vorbis_file_time_tell (HL_CFFIPointer* vorbisFile) { + HL_PRIM double HL_NAME(hl_vorbis_file_time_tell) (HL_CFFIPointer* vorbisFile) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_time_tell (file); @@ -725,7 +725,7 @@ namespace lime { } - HL_PRIM double hl_lime_vorbis_file_time_total (HL_CFFIPointer* vorbisFile, int bitstream) { + HL_PRIM double HL_NAME(hl_vorbis_file_time_total) (HL_CFFIPointer* vorbisFile, int bitstream) { OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)vorbisFile->ptr; return ov_time_total (file, bitstream); @@ -767,36 +767,36 @@ namespace lime { #define _TBYTES _OBJ (_I32 _BYTES) #define _TCFFIPOINTER _DYN - DEFINE_HL_PRIM (_I32, lime_vorbis_file_bitrate, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_bitrate_instant, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_vorbis_file_clear, _TCFFIPOINTER); - DEFINE_HL_PRIM (_DYN, lime_vorbis_file_comment, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_crosslap, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_DYN, lime_vorbis_file_info, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_vorbis_file_from_bytes, _TBYTES); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_vorbis_file_from_file, _STRING); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_pcm_seek, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_pcm_seek_lap, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_pcm_seek_page, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_pcm_seek_page_lap, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_DYN, lime_vorbis_file_pcm_tell, _TCFFIPOINTER); - DEFINE_HL_PRIM (_DYN, lime_vorbis_file_pcm_total, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_raw_seek, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_raw_seek_lap, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_DYN, lime_vorbis_file_raw_tell, _TCFFIPOINTER); - DEFINE_HL_PRIM (_DYN, lime_vorbis_file_raw_total, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_DYN, lime_vorbis_file_read, _TCFFIPOINTER _TBYTES _I32 _I32 _BOOL _I32 _BOOL); - DEFINE_HL_PRIM (_DYN, lime_vorbis_file_read_float, _TCFFIPOINTER _TBYTES _I32); - DEFINE_HL_PRIM (_BOOL, lime_vorbis_file_seekable, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_serial_number, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_streams, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_time_seek, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_time_seek_lap, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_time_seek_page, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_I32, lime_vorbis_file_time_seek_page_lap, _TCFFIPOINTER _F64); - DEFINE_HL_PRIM (_F64, lime_vorbis_file_time_tell, _TCFFIPOINTER); - DEFINE_HL_PRIM (_F64, lime_vorbis_file_time_total, _TCFFIPOINTER _I32); - + DEFINE_HL_PRIM (_I32, hl_vorbis_file_bitrate, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_bitrate_instant, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_vorbis_file_clear, _TCFFIPOINTER); + DEFINE_HL_PRIM (_DYN, hl_vorbis_file_comment, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_crosslap, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_DYN, hl_vorbis_file_info, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_vorbis_file_from_bytes, _TBYTES); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_vorbis_file_from_file, _STRING); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_pcm_seek, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_pcm_seek_lap, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_pcm_seek_page, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_pcm_seek_page_lap, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_DYN, hl_vorbis_file_pcm_tell, _TCFFIPOINTER); + DEFINE_HL_PRIM (_DYN, hl_vorbis_file_pcm_total, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_raw_seek, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_raw_seek_lap, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_DYN, hl_vorbis_file_raw_tell, _TCFFIPOINTER); + DEFINE_HL_PRIM (_DYN, hl_vorbis_file_raw_total, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_DYN, hl_vorbis_file_read, _TCFFIPOINTER _TBYTES _I32 _I32 _BOOL _I32 _BOOL); + DEFINE_HL_PRIM (_DYN, hl_vorbis_file_read_float, _TCFFIPOINTER _TBYTES _I32); + DEFINE_HL_PRIM (_BOOL, hl_vorbis_file_seekable, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_serial_number, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_streams, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_time_seek, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_time_seek_lap, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_time_seek_page, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_I32, hl_vorbis_file_time_seek_page_lap, _TCFFIPOINTER _F64); + DEFINE_HL_PRIM (_F64, hl_vorbis_file_time_tell, _TCFFIPOINTER); + DEFINE_HL_PRIM (_F64, hl_vorbis_file_time_total, _TCFFIPOINTER _I32); + } diff --git a/project/src/media/openal/OpenALBindings.cpp b/project/src/media/openal/OpenALBindings.cpp index f2f5bbd247..836de928b3 100644 --- a/project/src/media/openal/OpenALBindings.cpp +++ b/project/src/media/openal/OpenALBindings.cpp @@ -37,17 +37,17 @@ namespace lime { #ifdef LIME_OPENALSOFT void lime_al_delete_auxiliary_effect_slot (value aux); - HL_PRIM void hl_lime_al_delete_auxiliary_effect_slot (HL_CFFIPointer* aux); + HL_PRIM void HL_NAME(hl_al_delete_auxiliary_effect_slot) (HL_CFFIPointer* aux); #endif void lime_al_delete_buffer (value buffer); void lime_al_delete_source (value source); - HL_PRIM void hl_lime_al_delete_buffer (HL_CFFIPointer* buffer); - HL_PRIM void hl_lime_al_delete_source (HL_CFFIPointer* source); + HL_PRIM void HL_NAME(hl_al_delete_buffer) (HL_CFFIPointer* buffer); + HL_PRIM void HL_NAME(hl_al_delete_source) (HL_CFFIPointer* source); #ifdef LIME_OPENALSOFT void lime_al_delete_effect (value effect); void lime_al_delete_filter (value filter); - HL_PRIM void hl_lime_al_delete_effect (HL_CFFIPointer* effect); - HL_PRIM void hl_lime_al_delete_filter (HL_CFFIPointer* filter); + HL_PRIM void HL_NAME(hl_al_delete_effect) (HL_CFFIPointer* effect); + HL_PRIM void HL_NAME(hl_al_delete_filter) (HL_CFFIPointer* filter); #endif @@ -60,7 +60,7 @@ namespace lime { void hl_gc_al_buffer (HL_CFFIPointer* buffer) { - hl_lime_al_delete_buffer (buffer); + lime_hl_al_delete_buffer (buffer); } @@ -75,7 +75,7 @@ namespace lime { void hl_gc_al_auxiliary_effect_slot (HL_CFFIPointer* aux) { - hl_lime_al_delete_auxiliary_effect_slot (aux); + lime_hl_al_delete_auxiliary_effect_slot (aux); } #endif @@ -90,7 +90,7 @@ namespace lime { void hl_gc_al_source (HL_CFFIPointer* source) { - hl_lime_al_delete_source (source); + lime_hl_al_delete_source (source); } @@ -105,7 +105,7 @@ namespace lime { void hl_gc_al_effect (HL_CFFIPointer* effect) { - hl_lime_al_delete_effect (effect); + lime_hl_al_delete_effect (effect); } @@ -119,7 +119,7 @@ namespace lime { void hl_gc_al_filter (HL_CFFIPointer* filter) { - hl_lime_al_delete_filter (filter); + lime_hl_al_delete_filter (filter); } #endif @@ -175,7 +175,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_auxf (HL_CFFIPointer* aux, int param, float value) { + HL_PRIM void HL_NAME(hl_al_auxf) (HL_CFFIPointer* aux, int param, float value) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)aux->ptr; @@ -210,7 +210,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_auxfv (HL_CFFIPointer* aux, int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_auxfv) (HL_CFFIPointer* aux, int param, varray* values) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)aux->ptr; @@ -248,7 +248,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_auxi (HL_CFFIPointer* aux, int param, vdynamic* val) { + HL_PRIM void HL_NAME(hl_al_auxi) (HL_CFFIPointer* aux, int param, vdynamic* val) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)aux->ptr; @@ -295,7 +295,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_auxiv (HL_CFFIPointer* aux, int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_auxiv) (HL_CFFIPointer* aux, int param, varray* values) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)aux->ptr; @@ -319,7 +319,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_buffer_data (HL_CFFIPointer* buffer, int format, ArrayBufferView* data, int size, int freq) { + HL_PRIM void HL_NAME(hl_al_buffer_data) (HL_CFFIPointer* buffer, int format, ArrayBufferView* data, int size, int freq) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; alBufferData (id, format, data->buffer->b, size, freq); @@ -335,7 +335,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_buffer3f (HL_CFFIPointer* buffer, int param, float value1, float value2, float value3) { + HL_PRIM void HL_NAME(hl_al_buffer3f) (HL_CFFIPointer* buffer, int param, float value1, float value2, float value3) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; alBuffer3f (id, param, value1, value2, value3); @@ -351,7 +351,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_buffer3i (HL_CFFIPointer* buffer, int param, int value1, int value2, int value3) { + HL_PRIM void HL_NAME(hl_al_buffer3i) (HL_CFFIPointer* buffer, int param, int value1, int value2, int value3) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; alBuffer3i (id, param, value1, value2, value3); @@ -367,7 +367,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_bufferf (HL_CFFIPointer* buffer, int param, float value) { + HL_PRIM void HL_NAME(hl_al_bufferf) (HL_CFFIPointer* buffer, int param, float value) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; alBufferf (id, param, value); @@ -398,7 +398,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_bufferfv (HL_CFFIPointer* buffer, int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_bufferfv) (HL_CFFIPointer* buffer, int param, varray* values) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; @@ -420,7 +420,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_bufferi (HL_CFFIPointer* buffer, int param, int value) { + HL_PRIM void HL_NAME(hl_al_bufferi) (HL_CFFIPointer* buffer, int param, int value) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; alBufferi (id, param, value); @@ -451,7 +451,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_bufferiv (HL_CFFIPointer* buffer, int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_bufferiv) (HL_CFFIPointer* buffer, int param, varray* values) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; @@ -521,7 +521,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_cleanup () { + HL_PRIM void HL_NAME(hl_al_cleanup) () { lime_al_cleanup (); @@ -546,7 +546,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_delete_auxiliary_effect_slot (HL_CFFIPointer* aux) { + HL_PRIM void HL_NAME(hl_al_delete_auxiliary_effect_slot) (HL_CFFIPointer* aux) { #ifdef LIME_OPENALSOFT if (aux) { @@ -585,7 +585,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_delete_buffer (HL_CFFIPointer* buffer) { + HL_PRIM void HL_NAME(hl_al_delete_buffer) (HL_CFFIPointer* buffer) { if (buffer) { @@ -653,7 +653,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_delete_buffers (int n, varray* buffers) { + HL_PRIM void HL_NAME(hl_al_delete_buffers) (int n, varray* buffers) { if (buffers) { @@ -716,7 +716,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_delete_effect (HL_CFFIPointer* effect) { + HL_PRIM void HL_NAME(hl_al_delete_effect) (HL_CFFIPointer* effect) { #ifdef LIME_OPENALSOFT if (effect) { @@ -746,7 +746,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_delete_filter (HL_CFFIPointer* filter) { + HL_PRIM void HL_NAME(hl_al_delete_filter) (HL_CFFIPointer* filter) { #ifdef LIME_OPENALSOFT if (filter) { @@ -782,7 +782,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_delete_source (HL_CFFIPointer* source) { + HL_PRIM void HL_NAME(hl_al_delete_source) (HL_CFFIPointer* source) { if (source) { @@ -848,7 +848,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_delete_sources (int n, varray* sources) { + HL_PRIM void HL_NAME(hl_al_delete_sources) (int n, varray* sources) { if (sources) { @@ -901,7 +901,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_disable (int capability) { + HL_PRIM void HL_NAME(hl_al_disable) (int capability) { alDisable (capability); @@ -915,7 +915,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_distance_model (int distanceModel) { + HL_PRIM void HL_NAME(hl_al_distance_model) (int distanceModel) { alDistanceModel (distanceModel); @@ -929,7 +929,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_doppler_factor (float factor) { + HL_PRIM void HL_NAME(hl_al_doppler_factor) (float factor) { alDopplerFactor (factor); @@ -943,7 +943,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_doppler_velocity (float velocity) { + HL_PRIM void HL_NAME(hl_al_doppler_velocity) (float velocity) { alDopplerVelocity (velocity); @@ -960,7 +960,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_effectf (HL_CFFIPointer* effect, int param, float value) { + HL_PRIM void HL_NAME(hl_al_effectf) (HL_CFFIPointer* effect, int param, float value) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)effect->ptr; @@ -995,7 +995,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_effectfv (HL_CFFIPointer* effect, int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_effectfv) (HL_CFFIPointer* effect, int param, varray* values) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)effect->ptr; @@ -1021,7 +1021,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_effecti (HL_CFFIPointer* effect, int param, int value) { + HL_PRIM void HL_NAME(hl_al_effecti) (HL_CFFIPointer* effect, int param, int value) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)effect->ptr; @@ -1056,7 +1056,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_effectiv (HL_CFFIPointer* effect, int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_effectiv) (HL_CFFIPointer* effect, int param, varray* values) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)effect->ptr; @@ -1078,7 +1078,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_enable (int capability) { + HL_PRIM void HL_NAME(hl_al_enable) (int capability) { alEnable (capability); @@ -1099,7 +1099,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_filteri (HL_CFFIPointer* filter, int param, int val) { + HL_PRIM void HL_NAME(hl_al_filteri) (HL_CFFIPointer* filter, int param, int val) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)filter->ptr; @@ -1123,7 +1123,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_filterf (HL_CFFIPointer* filter, int param, float value) { + HL_PRIM void HL_NAME(hl_al_filterf) (HL_CFFIPointer* filter, int param, float value) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)filter->ptr; @@ -1146,7 +1146,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_al_gen_aux () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_al_gen_aux) () { #ifdef LIME_OPENALSOFT ALuint aux; @@ -1183,7 +1183,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_al_gen_buffer () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_al_gen_buffer) () { alGetError (); @@ -1246,7 +1246,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_gen_buffers (int n) { + HL_PRIM varray* HL_NAME(hl_al_gen_buffers) (int n) { alGetError (); @@ -1305,7 +1305,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_al_gen_effect () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_al_gen_effect) () { alGetError (); @@ -1345,7 +1345,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_al_gen_filter () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_al_gen_filter) () { alGetError (); @@ -1385,7 +1385,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_al_gen_source () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_al_gen_source) () { alGetError (); @@ -1435,7 +1435,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_gen_sources (int n) { + HL_PRIM varray* HL_NAME(hl_al_gen_sources) (int n) { alGetError (); @@ -1473,7 +1473,7 @@ namespace lime { } - HL_PRIM bool hl_lime_al_get_boolean (int param) { + HL_PRIM bool HL_NAME(hl_al_get_boolean) (int param) { return alGetBoolean (param); @@ -1499,7 +1499,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_booleanv (int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_booleanv) (int param, int count) { varray* result = hl_alloc_array (&hlt_bool, count); alGetBooleanv (param, (ALboolean*)hl_aptr (result, bool)); @@ -1524,7 +1524,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_buffer3f (HL_CFFIPointer* buffer, int param) { + HL_PRIM varray* HL_NAME(hl_al_get_buffer3f) (HL_CFFIPointer* buffer, int param) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; varray* result = hl_alloc_array (&hlt_f32, 3); @@ -1550,7 +1550,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_buffer3i (HL_CFFIPointer* buffer, int param) { + HL_PRIM varray* HL_NAME(hl_al_get_buffer3i) (HL_CFFIPointer* buffer, int param) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; varray* result = hl_alloc_array (&hlt_i32, 3); @@ -1571,7 +1571,7 @@ namespace lime { } - HL_PRIM float hl_lime_al_get_bufferf (HL_CFFIPointer* buffer, int param) { + HL_PRIM float HL_NAME(hl_al_get_bufferf) (HL_CFFIPointer* buffer, int param) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; ALfloat data; @@ -1601,7 +1601,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_bufferfv (HL_CFFIPointer* buffer, int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_bufferfv) (HL_CFFIPointer* buffer, int param, int count) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; varray* result = hl_alloc_array (&hlt_f32, count); @@ -1621,7 +1621,7 @@ namespace lime { } - HL_PRIM int hl_lime_al_get_bufferi (HL_CFFIPointer* buffer, int param) { + HL_PRIM int HL_NAME(hl_al_get_bufferi) (HL_CFFIPointer* buffer, int param) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; ALint data; @@ -1651,7 +1651,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_bufferiv (HL_CFFIPointer* buffer, int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_bufferiv) (HL_CFFIPointer* buffer, int param, int count) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; varray* result = hl_alloc_array (&hlt_i32, count); @@ -1668,7 +1668,7 @@ namespace lime { } - HL_PRIM double hl_lime_al_get_double (int param) { + HL_PRIM double HL_NAME(hl_al_get_double) (int param) { return alGetDouble (param); @@ -1694,7 +1694,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_doublev (int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_doublev) (int param, int count) { varray* result = hl_alloc_array (&hlt_f64, count); alGetDoublev (param, hl_aptr (result, double)); @@ -1710,7 +1710,7 @@ namespace lime { } - HL_PRIM int hl_lime_al_get_enum_value (hl_vstring* ename) { + HL_PRIM int HL_NAME(hl_al_get_enum_value) (hl_vstring* ename) { return alGetEnumValue (ename ? hl_to_utf8 (ename->bytes) : NULL); @@ -1724,7 +1724,7 @@ namespace lime { } - HL_PRIM int hl_lime_al_get_error () { + HL_PRIM int HL_NAME(hl_al_get_error) () { return alGetError (); @@ -1745,7 +1745,7 @@ namespace lime { } - HL_PRIM int hl_lime_al_get_filteri (HL_CFFIPointer* filter, int param) { + HL_PRIM int HL_NAME(hl_al_get_filteri) (HL_CFFIPointer* filter, int param) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)filter->ptr; @@ -1766,7 +1766,7 @@ namespace lime { } - HL_PRIM float hl_lime_al_get_float (int param) { + HL_PRIM float HL_NAME(hl_al_get_float) (int param) { return alGetFloat (param); @@ -1792,7 +1792,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_floatv (int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_floatv) (int param, int count) { varray* result = hl_alloc_array (&hlt_f32, count); alGetFloatv (param, hl_aptr (result, float)); @@ -1808,7 +1808,7 @@ namespace lime { } - HL_PRIM int hl_lime_al_get_integer (int param) { + HL_PRIM int HL_NAME(hl_al_get_integer) (int param) { return alGetInteger (param); @@ -1834,7 +1834,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_integerv (int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_integerv) (int param, int count) { varray* result = hl_alloc_array (&hlt_i32, count); alGetIntegerv (param, hl_aptr (result, int)); @@ -1858,7 +1858,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_listener3f (int param) { + HL_PRIM varray* HL_NAME(hl_al_get_listener3f) (int param) { varray* result = hl_alloc_array (&hlt_f32, 3); alGetListener3f (param, &hl_aptr (result, float)[0], &hl_aptr (result, float)[2], &hl_aptr (result, float)[3]); @@ -1882,7 +1882,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_listener3i (int param) { + HL_PRIM varray* HL_NAME(hl_al_get_listener3i) (int param) { varray* result = hl_alloc_array (&hlt_i32, 3); alGetListener3i (param, &hl_aptr (result, int)[0], &hl_aptr (result, int)[2], &hl_aptr (result, int)[3]); @@ -1900,7 +1900,7 @@ namespace lime { } - HL_PRIM float hl_lime_al_get_listenerf (int param) { + HL_PRIM float HL_NAME(hl_al_get_listenerf) (int param) { ALfloat data; alGetListenerf (param, &data); @@ -1928,7 +1928,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_listenerfv (int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_listenerfv) (int param, int count) { varray* result = hl_alloc_array (&hlt_f32, count); alGetListenerfv (param, hl_aptr (result, float)); @@ -1946,7 +1946,7 @@ namespace lime { } - HL_PRIM int hl_lime_al_get_listeneri (int param) { + HL_PRIM int HL_NAME(hl_al_get_listeneri) (int param) { ALint data; alGetListeneri (param, &data); @@ -1974,7 +1974,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_listeneriv (int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_listeneriv) (int param, int count) { varray* result = hl_alloc_array (&hlt_i32, count); alGetListeneriv (param, hl_aptr (result, int)); @@ -1990,7 +1990,7 @@ namespace lime { } - HL_PRIM double hl_lime_al_get_proc_address (hl_vstring* fname) { + HL_PRIM double HL_NAME(hl_al_get_proc_address) (hl_vstring* fname) { return (uintptr_t)alGetProcAddress (fname ? hl_to_utf8 (fname->bytes) : NULL); @@ -2013,7 +2013,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_source3f (HL_CFFIPointer* source, int param) { + HL_PRIM varray* HL_NAME(hl_al_get_source3f) (HL_CFFIPointer* source, int param) { ALuint id = (ALuint)(uintptr_t)source->ptr; varray* result = hl_alloc_array (&hlt_f32, 3); @@ -2039,7 +2039,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_source3i (HL_CFFIPointer* source, int param) { + HL_PRIM varray* HL_NAME(hl_al_get_source3i) (HL_CFFIPointer* source, int param) { ALuint id = (ALuint)(uintptr_t)source->ptr; varray* result = hl_alloc_array (&hlt_i32, 3); @@ -2059,7 +2059,7 @@ namespace lime { } - HL_PRIM float hl_lime_al_get_sourcef (HL_CFFIPointer* source, int param) { + HL_PRIM float HL_NAME(hl_al_get_sourcef) (HL_CFFIPointer* source, int param) { ALuint id = (ALuint)(uintptr_t)source->ptr; ALfloat data; @@ -2089,7 +2089,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_sourcefv (HL_CFFIPointer* source, int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_sourcefv) (HL_CFFIPointer* source, int param, int count) { ALuint id = (ALuint)(uintptr_t)source->ptr; varray* result = hl_alloc_array (&hlt_f32, count); @@ -2130,7 +2130,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_al_get_sourcei (HL_CFFIPointer* source, int param) { + HL_PRIM vdynamic* HL_NAME(hl_al_get_sourcei) (HL_CFFIPointer* source, int param) { ALuint id = (ALuint)(uintptr_t)source->ptr; ALint data; @@ -2183,7 +2183,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_get_sourceiv (HL_CFFIPointer* source, int param, int count) { + HL_PRIM varray* HL_NAME(hl_al_get_sourceiv) (HL_CFFIPointer* source, int param, int count) { ALuint id = (ALuint)(uintptr_t)source->ptr; varray* result = hl_alloc_array (&hlt_i32, count); @@ -2201,7 +2201,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_al_get_string (int param) { + HL_PRIM vbyte* HL_NAME(hl_al_get_string) (int param) { const char* result = alGetString (param); int length = strlen (result); @@ -2224,7 +2224,7 @@ namespace lime { } - HL_PRIM bool hl_lime_al_is_aux (HL_CFFIPointer* aux) { + HL_PRIM bool HL_NAME(hl_al_is_aux) (HL_CFFIPointer* aux) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)aux->ptr; @@ -2244,7 +2244,7 @@ namespace lime { } - HL_PRIM bool hl_lime_al_is_buffer (HL_CFFIPointer* buffer) { + HL_PRIM bool HL_NAME(hl_al_is_buffer) (HL_CFFIPointer* buffer) { ALuint id = (ALuint)(uintptr_t)buffer->ptr; return alIsBuffer (id); @@ -2264,7 +2264,7 @@ namespace lime { } - HL_PRIM bool hl_lime_al_is_effect (HL_CFFIPointer* effect) { + HL_PRIM bool HL_NAME(hl_al_is_effect) (HL_CFFIPointer* effect) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)effect->ptr; @@ -2283,7 +2283,7 @@ namespace lime { } - HL_PRIM bool hl_lime_al_is_enabled (int capability) { + HL_PRIM bool HL_NAME(hl_al_is_enabled) (int capability) { return alIsEnabled (capability); @@ -2301,7 +2301,7 @@ namespace lime { } - HL_PRIM bool hl_lime_al_is_extension_present (hl_vstring* extname) { + HL_PRIM bool HL_NAME(hl_al_is_extension_present) (hl_vstring* extname) { #ifdef LIME_OPENALSOFT return alIsExtensionPresent (extname ? hl_to_utf8 (extname->bytes) : NULL); @@ -2324,7 +2324,7 @@ namespace lime { } - HL_PRIM bool hl_lime_al_is_filter (HL_CFFIPointer* filter) { + HL_PRIM bool HL_NAME(hl_al_is_filter) (HL_CFFIPointer* filter) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)filter->ptr; @@ -2344,7 +2344,7 @@ namespace lime { } - HL_PRIM bool hl_lime_al_is_source (HL_CFFIPointer* source) { + HL_PRIM bool HL_NAME(hl_al_is_source) (HL_CFFIPointer* source) { ALuint id = (ALuint)(uintptr_t)source->ptr; return alIsSource (id); @@ -2359,7 +2359,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_listener3f (int param, float value1, float value2, float value3) { + HL_PRIM void HL_NAME(hl_al_listener3f) (int param, float value1, float value2, float value3) { alListener3f (param, value1, value2, value3); @@ -2373,7 +2373,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_listener3i (int param, int value1, int value2, int value3) { + HL_PRIM void HL_NAME(hl_al_listener3i) (int param, int value1, int value2, int value3) { alListener3i (param, value1, value2, value3); @@ -2387,7 +2387,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_listenerf (int param, float value1) { + HL_PRIM void HL_NAME(hl_al_listenerf) (int param, float value1) { alListenerf (param, value1); @@ -2415,7 +2415,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_listenerfv (int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_listenerfv) (int param, varray* values) { if (values) { @@ -2434,7 +2434,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_listeneri (int param, int value1) { + HL_PRIM void HL_NAME(hl_al_listeneri) (int param, int value1) { alListeneri (param, value1); @@ -2462,7 +2462,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_listeneriv (int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_listeneriv) (int param, varray* values) { if (values) { @@ -2484,7 +2484,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_remove_direct_filter (HL_CFFIPointer* source) { + HL_PRIM void HL_NAME(hl_al_remove_direct_filter) (HL_CFFIPointer* source) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)source->ptr; @@ -2504,7 +2504,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_remove_send (HL_CFFIPointer* source, int index) { + HL_PRIM void HL_NAME(hl_al_remove_send) (HL_CFFIPointer* source, int index) { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)source->ptr; @@ -2522,7 +2522,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_pause (HL_CFFIPointer* source) { + HL_PRIM void HL_NAME(hl_al_source_pause) (HL_CFFIPointer* source) { ALuint id = (ALuint)(uintptr_t)source->ptr; alSourcePause (id); @@ -2551,7 +2551,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_pausev (int n, varray* sources) { + HL_PRIM void HL_NAME(hl_al_source_pausev) (int n, varray* sources) { if (sources) { @@ -2581,7 +2581,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_play (HL_CFFIPointer* source) { + HL_PRIM void HL_NAME(hl_al_source_play) (HL_CFFIPointer* source) { ALuint id = (ALuint)(uintptr_t)source->ptr; alSourcePlay (id); @@ -2610,7 +2610,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_playv (int n, varray* sources) { + HL_PRIM void HL_NAME(hl_al_source_playv) (int n, varray* sources) { if (sources) { @@ -2655,7 +2655,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_queue_buffers (HL_CFFIPointer* source, int nb, varray* buffers) { + HL_PRIM void HL_NAME(hl_al_source_queue_buffers) (HL_CFFIPointer* source, int nb, varray* buffers) { ALuint id = (ALuint)(uintptr_t)source->ptr; @@ -2687,7 +2687,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_rewind (HL_CFFIPointer* source) { + HL_PRIM void HL_NAME(hl_al_source_rewind) (HL_CFFIPointer* source) { ALuint id = (ALuint)(uintptr_t)source->ptr; alSourceRewind (id); @@ -2716,7 +2716,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_rewindv (int n, varray* sources) { + HL_PRIM void HL_NAME(hl_al_source_rewindv) (int n, varray* sources) { if (sources) { @@ -2746,7 +2746,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_stop (HL_CFFIPointer* source) { + HL_PRIM void HL_NAME(hl_al_source_stop) (HL_CFFIPointer* source) { ALuint id = (ALuint)(uintptr_t)source->ptr; alSourceStop (id); @@ -2775,7 +2775,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source_stopv (int n, varray* sources) { + HL_PRIM void HL_NAME(hl_al_source_stopv) (int n, varray* sources) { if (sources) { @@ -2834,7 +2834,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_al_source_unqueue_buffers (HL_CFFIPointer* source, int nb) { + HL_PRIM varray* HL_NAME(hl_al_source_unqueue_buffers) (HL_CFFIPointer* source, int nb) { ALuint id = (ALuint)(uintptr_t)source->ptr; ALuint* buffers = new ALuint[nb]; @@ -2880,7 +2880,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source3f (HL_CFFIPointer* source, int param, float value1, float value2, float value3) { + HL_PRIM void HL_NAME(hl_al_source3f) (HL_CFFIPointer* source, int param, float value1, float value2, float value3) { ALuint id = (ALuint)(uintptr_t)source->ptr; alSource3f (id, param, value1, value2, value3); @@ -2912,7 +2912,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_source3i (HL_CFFIPointer* source, int param, vdynamic* value1, int value2, int value3) { + HL_PRIM void HL_NAME(hl_al_source3i) (HL_CFFIPointer* source, int param, vdynamic* value1, int value2, int value3) { ALuint id = (ALuint)(uintptr_t)source->ptr; ALuint data1; @@ -2944,7 +2944,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_sourcef (HL_CFFIPointer* source, int param, float value) { + HL_PRIM void HL_NAME(hl_al_sourcef) (HL_CFFIPointer* source, int param, float value) { ALuint id = (ALuint)(uintptr_t)source->ptr; alSourcef (id, param, value); @@ -2975,7 +2975,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_sourcefv (HL_CFFIPointer* source, int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_sourcefv) (HL_CFFIPointer* source, int param, varray* values) { ALuint id = (ALuint)(uintptr_t)source->ptr; @@ -3025,7 +3025,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_sourcei (HL_CFFIPointer* source, int param, vdynamic* val) { + HL_PRIM void HL_NAME(hl_al_sourcei) (HL_CFFIPointer* source, int param, vdynamic* val) { ALuint id = (ALuint)(uintptr_t)source->ptr; ALuint data = 0; @@ -3084,7 +3084,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_sourceiv (HL_CFFIPointer* source, int param, varray* values) { + HL_PRIM void HL_NAME(hl_al_sourceiv) (HL_CFFIPointer* source, int param, varray* values) { ALuint id = (ALuint)(uintptr_t)source->ptr; @@ -3105,7 +3105,7 @@ namespace lime { } - HL_PRIM void hl_lime_al_speed_of_sound (float speed) { + HL_PRIM void HL_NAME(hl_al_speed_of_sound) (float speed) { alSpeedOfSound (speed); @@ -3124,7 +3124,7 @@ namespace lime { } - HL_PRIM bool hl_lime_alc_close_device (HL_CFFIPointer* device) { + HL_PRIM bool HL_NAME(hl_alc_close_device) (HL_CFFIPointer* device) { al_gc_mutex.Lock (); ALCdevice* alcDevice = (ALCdevice*)device->ptr; @@ -3171,7 +3171,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_alc_create_context (HL_CFFIPointer* device, varray* attrlist) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_alc_create_context) (HL_CFFIPointer* device, varray* attrlist) { ALCdevice* alcDevice = (ALCdevice*)device->ptr; ALCcontext* alcContext = alcCreateContext (alcDevice, attrlist ? hl_aptr (attrlist, int) : NULL); @@ -3208,7 +3208,7 @@ namespace lime { } - HL_PRIM void hl_lime_alc_destroy_context (HL_CFFIPointer* context) { + HL_PRIM void HL_NAME(hl_alc_destroy_context) (HL_CFFIPointer* context) { al_gc_mutex.Lock (); ALCcontext* alcContext = (ALCcontext*)context->ptr; @@ -3255,7 +3255,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_alc_get_contexts_device (HL_CFFIPointer* context) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_alc_get_contexts_device) (HL_CFFIPointer* context) { ALCcontext* alcContext = (ALCcontext*)context->ptr; ALCdevice* alcDevice = alcGetContextsDevice (alcContext); @@ -3302,7 +3302,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_alc_get_current_context () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_alc_get_current_context) () { ALCcontext* alcContext = alcGetCurrentContext (); @@ -3333,7 +3333,7 @@ namespace lime { } - HL_PRIM int hl_lime_alc_get_error (HL_CFFIPointer* device) { + HL_PRIM int HL_NAME(hl_alc_get_error) (HL_CFFIPointer* device) { ALCdevice* alcDevice = (ALCdevice*)device->ptr; return alcGetError (alcDevice); @@ -3362,7 +3362,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_alc_get_integerv (HL_CFFIPointer* device, int param, int size) { + HL_PRIM varray* HL_NAME(hl_alc_get_integerv) (HL_CFFIPointer* device, int param, int size) { ALCdevice* alcDevice = (ALCdevice*)device->ptr; varray* result = hl_alloc_array (&hlt_i32, size); @@ -3381,7 +3381,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_alc_get_string (HL_CFFIPointer* device, int param) { + HL_PRIM vbyte* HL_NAME(hl_alc_get_string) (HL_CFFIPointer* device, int param) { ALCdevice* alcDevice = (ALCdevice*)device->ptr; const char* result = alcGetString (alcDevice, param); @@ -3401,7 +3401,7 @@ namespace lime { } - HL_PRIM bool hl_lime_alc_make_context_current (HL_CFFIPointer* context) { + HL_PRIM bool HL_NAME(hl_alc_make_context_current) (HL_CFFIPointer* context) { ALCcontext* alcContext = context ? (ALCcontext*)context->ptr : 0; return alcMakeContextCurrent (alcContext); @@ -3421,7 +3421,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_alc_open_device (hl_vstring* devicename) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_alc_open_device) (hl_vstring* devicename) { ALCdevice* alcDevice = alcOpenDevice (devicename ? (char*)hl_to_utf8 ((const uchar*)devicename->bytes) : 0); atexit (lime_al_atexit); @@ -3443,7 +3443,7 @@ namespace lime { } - HL_PRIM void hl_lime_alc_pause_device (HL_CFFIPointer* device) { + HL_PRIM void HL_NAME(hl_alc_pause_device) (HL_CFFIPointer* device) { #ifdef LIME_OPENALSOFT ALCdevice* alcDevice = (ALCdevice*)device->ptr; @@ -3461,7 +3461,7 @@ namespace lime { } - HL_PRIM void hl_lime_alc_process_context (HL_CFFIPointer* context) { + HL_PRIM void HL_NAME(hl_alc_process_context) (HL_CFFIPointer* context) { ALCcontext* alcContext = (ALCcontext*)context->ptr; alcProcessContext (alcContext); @@ -3479,7 +3479,7 @@ namespace lime { } - HL_PRIM void hl_lime_alc_resume_device (HL_CFFIPointer* device) { + HL_PRIM void HL_NAME(hl_alc_resume_device) (HL_CFFIPointer* device) { #ifdef LIME_OPENALSOFT ALCdevice* alcDevice = device ? (ALCdevice*)device->ptr : NULL; @@ -3497,7 +3497,7 @@ namespace lime { } - HL_PRIM void hl_lime_alc_suspend_context (HL_CFFIPointer* context) { + HL_PRIM void HL_NAME(hl_alc_suspend_context) (HL_CFFIPointer* context) { ALCcontext* alcContext = context ? (ALCcontext*)context->ptr : NULL; alcSuspendContext (alcContext); @@ -3631,120 +3631,120 @@ namespace lime { #define _TARRAYBUFFER _TBYTES #define _TARRAYBUFFERVIEW _OBJ (_I32 _TARRAYBUFFER _I32 _I32 _I32 _I32) - DEFINE_HL_PRIM (_VOID, lime_al_auxf, _TCFFIPOINTER _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_al_auxfv, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_auxi, _TCFFIPOINTER _I32 _DYN); - DEFINE_HL_PRIM (_VOID, lime_al_auxiv, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_buffer_data, _TCFFIPOINTER _I32 _TARRAYBUFFERVIEW _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_al_buffer3f, _TCFFIPOINTER _I32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_al_buffer3i, _TCFFIPOINTER _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_al_bufferf, _TCFFIPOINTER _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_al_bufferfv, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_bufferi, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_al_bufferiv, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_cleanup, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_al_delete_auxiliary_effect_slot, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_delete_buffer, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_delete_buffers, _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_delete_effect, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_delete_filter, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_delete_source, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_delete_sources, _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_disable, _I32); - DEFINE_HL_PRIM (_VOID, lime_al_distance_model, _I32); - DEFINE_HL_PRIM (_VOID, lime_al_doppler_factor, _F32); - DEFINE_HL_PRIM (_VOID, lime_al_doppler_velocity, _F32); - DEFINE_HL_PRIM (_VOID, lime_al_effectf, _TCFFIPOINTER _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_al_effectfv, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_effecti, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_al_effectiv, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_enable, _I32); - DEFINE_HL_PRIM (_VOID, lime_al_filteri, _TCFFIPOINTER _I32 _DYN); - DEFINE_HL_PRIM (_VOID, lime_al_filterf, _TCFFIPOINTER _I32 _F32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_al_gen_aux, _NO_ARG); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_al_gen_buffer, _NO_ARG); - DEFINE_HL_PRIM (_ARR, lime_al_gen_buffers, _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_al_gen_effect, _NO_ARG); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_al_gen_filter, _NO_ARG); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_al_gen_source, _NO_ARG); - DEFINE_HL_PRIM (_ARR, lime_al_gen_sources, _I32); - DEFINE_HL_PRIM (_BOOL, lime_al_get_boolean, _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_booleanv, _I32 _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_buffer3f, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_buffer3i, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_F32, lime_al_get_bufferf, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_bufferfv, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_al_get_bufferi, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_bufferiv, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_F64, lime_al_get_double, _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_doublev, _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_al_get_enum_value, _STRING); - DEFINE_HL_PRIM (_I32, lime_al_get_error, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_al_get_filteri, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_F32, lime_al_get_float, _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_floatv, _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_al_get_integer, _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_integerv, _I32 _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_listener3f, _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_listener3i, _I32); - DEFINE_HL_PRIM (_F32, lime_al_get_listenerf, _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_listenerfv, _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_al_get_listeneri, _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_listeneriv, _I32 _I32); - DEFINE_HL_PRIM (_F64, lime_al_get_proc_address, _STRING); - DEFINE_HL_PRIM (_ARR, lime_al_get_source3f, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_source3i, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_F32, lime_al_get_sourcef, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_sourcefv, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_DYN, lime_al_get_sourcei, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_ARR, lime_al_get_sourceiv, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_BYTES, lime_al_get_string, _I32); - DEFINE_HL_PRIM (_BOOL, lime_al_is_aux, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_al_is_buffer, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_al_is_effect, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_al_is_enabled, _I32); - DEFINE_HL_PRIM (_BOOL, lime_al_is_extension_present, _STRING); - DEFINE_HL_PRIM (_BOOL, lime_al_is_filter, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_al_is_source, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_listener3f, _I32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_al_listener3i, _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_al_listenerf, _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_al_listenerfv, _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_listeneri, _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_al_listeneriv, _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_remove_direct_filter, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_remove_send, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_al_source_pause, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_source_pausev, _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_source_play, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_source_playv, _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_source_queue_buffers, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_source_rewind, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_source_rewindv, _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_source_stop, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_al_source_stopv, _I32 _ARR); - DEFINE_HL_PRIM (_ARR, lime_al_source_unqueue_buffers, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_al_source3f, _TCFFIPOINTER _I32 _F32 _F32 _F32); - DEFINE_HL_PRIM (_VOID, lime_al_source3i, _TCFFIPOINTER _I32 _DYN _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_al_sourcef, _TCFFIPOINTER _I32 _F32); - DEFINE_HL_PRIM (_VOID, lime_al_sourcefv, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_sourcei, _TCFFIPOINTER _I32 _DYN); - DEFINE_HL_PRIM (_VOID, lime_al_sourceiv, _TCFFIPOINTER _I32 _ARR); - DEFINE_HL_PRIM (_VOID, lime_al_speed_of_sound, _F32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_alc_create_context, _TCFFIPOINTER _ARR); - DEFINE_HL_PRIM (_BOOL, lime_alc_close_device, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_alc_destroy_context, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_alc_get_contexts_device, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_alc_get_current_context, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_alc_get_error, _TCFFIPOINTER); - DEFINE_HL_PRIM (_ARR, lime_alc_get_integerv, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_BYTES, lime_alc_get_string, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_BOOL, lime_alc_make_context_current, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_alc_open_device, _STRING); - DEFINE_HL_PRIM (_VOID, lime_alc_pause_device, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_alc_process_context, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_alc_resume_device, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_alc_suspend_context, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_auxf, _TCFFIPOINTER _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_al_auxfv, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_auxi, _TCFFIPOINTER _I32 _DYN); + DEFINE_HL_PRIM (_VOID, hl_al_auxiv, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_buffer_data, _TCFFIPOINTER _I32 _TARRAYBUFFERVIEW _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_al_buffer3f, _TCFFIPOINTER _I32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_al_buffer3i, _TCFFIPOINTER _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_al_bufferf, _TCFFIPOINTER _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_al_bufferfv, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_bufferi, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_al_bufferiv, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_cleanup, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_al_delete_auxiliary_effect_slot, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_delete_buffer, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_delete_buffers, _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_delete_effect, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_delete_filter, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_delete_source, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_delete_sources, _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_disable, _I32); + DEFINE_HL_PRIM (_VOID, hl_al_distance_model, _I32); + DEFINE_HL_PRIM (_VOID, hl_al_doppler_factor, _F32); + DEFINE_HL_PRIM (_VOID, hl_al_doppler_velocity, _F32); + DEFINE_HL_PRIM (_VOID, hl_al_effectf, _TCFFIPOINTER _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_al_effectfv, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_effecti, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_al_effectiv, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_enable, _I32); + DEFINE_HL_PRIM (_VOID, hl_al_filteri, _TCFFIPOINTER _I32 _DYN); + DEFINE_HL_PRIM (_VOID, hl_al_filterf, _TCFFIPOINTER _I32 _F32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_al_gen_aux, _NO_ARG); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_al_gen_buffer, _NO_ARG); + DEFINE_HL_PRIM (_ARR, hl_al_gen_buffers, _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_al_gen_effect, _NO_ARG); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_al_gen_filter, _NO_ARG); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_al_gen_source, _NO_ARG); + DEFINE_HL_PRIM (_ARR, hl_al_gen_sources, _I32); + DEFINE_HL_PRIM (_BOOL, hl_al_get_boolean, _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_booleanv, _I32 _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_buffer3f, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_buffer3i, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_F32, hl_al_get_bufferf, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_bufferfv, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_al_get_bufferi, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_bufferiv, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_F64, hl_al_get_double, _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_doublev, _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_al_get_enum_value, _STRING); + DEFINE_HL_PRIM (_I32, hl_al_get_error, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_al_get_filteri, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_F32, hl_al_get_float, _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_floatv, _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_al_get_integer, _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_integerv, _I32 _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_listener3f, _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_listener3i, _I32); + DEFINE_HL_PRIM (_F32, hl_al_get_listenerf, _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_listenerfv, _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_al_get_listeneri, _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_listeneriv, _I32 _I32); + DEFINE_HL_PRIM (_F64, hl_al_get_proc_address, _STRING); + DEFINE_HL_PRIM (_ARR, hl_al_get_source3f, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_source3i, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_F32, hl_al_get_sourcef, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_sourcefv, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_DYN, hl_al_get_sourcei, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_ARR, hl_al_get_sourceiv, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_BYTES, hl_al_get_string, _I32); + DEFINE_HL_PRIM (_BOOL, hl_al_is_aux, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_al_is_buffer, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_al_is_effect, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_al_is_enabled, _I32); + DEFINE_HL_PRIM (_BOOL, hl_al_is_extension_present, _STRING); + DEFINE_HL_PRIM (_BOOL, hl_al_is_filter, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_al_is_source, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_listener3f, _I32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_al_listener3i, _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_al_listenerf, _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_al_listenerfv, _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_listeneri, _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_al_listeneriv, _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_remove_direct_filter, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_remove_send, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_al_source_pause, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_source_pausev, _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_source_play, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_source_playv, _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_source_queue_buffers, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_source_rewind, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_source_rewindv, _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_source_stop, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_al_source_stopv, _I32 _ARR); + DEFINE_HL_PRIM (_ARR, hl_al_source_unqueue_buffers, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_al_source3f, _TCFFIPOINTER _I32 _F32 _F32 _F32); + DEFINE_HL_PRIM (_VOID, hl_al_source3i, _TCFFIPOINTER _I32 _DYN _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_al_sourcef, _TCFFIPOINTER _I32 _F32); + DEFINE_HL_PRIM (_VOID, hl_al_sourcefv, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_sourcei, _TCFFIPOINTER _I32 _DYN); + DEFINE_HL_PRIM (_VOID, hl_al_sourceiv, _TCFFIPOINTER _I32 _ARR); + DEFINE_HL_PRIM (_VOID, hl_al_speed_of_sound, _F32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_alc_create_context, _TCFFIPOINTER _ARR); + DEFINE_HL_PRIM (_BOOL, hl_alc_close_device, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_alc_destroy_context, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_alc_get_contexts_device, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_alc_get_current_context, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_alc_get_error, _TCFFIPOINTER); + DEFINE_HL_PRIM (_ARR, hl_alc_get_integerv, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_BYTES, hl_alc_get_string, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_BOOL, hl_alc_make_context_current, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_alc_open_device, _STRING); + DEFINE_HL_PRIM (_VOID, hl_alc_pause_device, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_alc_process_context, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_alc_resume_device, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_alc_suspend_context, _TCFFIPOINTER); } diff --git a/project/src/net/curl/CURLBindings.cpp b/project/src/net/curl/CURLBindings.cpp index 2b9ac1dbef..d7f28b18cc 100644 --- a/project/src/net/curl/CURLBindings.cpp +++ b/project/src/net/curl/CURLBindings.cpp @@ -407,7 +407,7 @@ namespace lime { } - HL_PRIM void hl_lime_curl_easy_cleanup (HL_CFFIPointer* handle) { + HL_PRIM void HL_NAME(hl_curl_easy_cleanup) (HL_CFFIPointer* handle) { hl_gc_curl (handle); @@ -482,7 +482,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_curl_easy_duphandle (HL_CFFIPointer* handle) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_curl_easy_duphandle) (HL_CFFIPointer* handle) { curl_gc_mutex.Lock (); @@ -553,7 +553,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_curl_easy_escape (HL_CFFIPointer* curl, hl_vstring* url, int length) { + HL_PRIM vbyte* HL_NAME(hl_curl_easy_escape) (HL_CFFIPointer* curl, hl_vstring* url, int length) { char* result = curl_easy_escape ((CURL*)curl->ptr, url ? hl_to_utf8 (url->bytes) : NULL, length); return (vbyte*)result; @@ -665,7 +665,7 @@ namespace lime { } - HL_PRIM void hl_lime_curl_easy_flush (HL_CFFIPointer* easy_handle) { + HL_PRIM void HL_NAME(hl_curl_easy_flush) (HL_CFFIPointer* easy_handle) { curl_gc_mutex.Lock (); int code; @@ -907,7 +907,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_curl_easy_getinfo (HL_CFFIPointer* curl, int info) { + HL_PRIM vdynamic* HL_NAME(hl_curl_easy_getinfo) (HL_CFFIPointer* curl, int info) { CURLcode code = CURLE_OK; CURL* handle = (CURL*)curl->ptr; @@ -1078,7 +1078,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_curl_easy_init () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_curl_easy_init) () { curl_gc_mutex.Lock (); @@ -1136,7 +1136,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_easy_pause (HL_CFFIPointer* handle, int bitmask) { + HL_PRIM int HL_NAME(hl_curl_easy_pause) (HL_CFFIPointer* handle, int bitmask) { return curl_easy_pause ((CURL*)handle->ptr, bitmask); @@ -1159,7 +1159,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_easy_perform (HL_CFFIPointer* easy_handle) { + HL_PRIM int HL_NAME(hl_curl_easy_perform) (HL_CFFIPointer* easy_handle) { int code; System::GCEnterBlocking (); @@ -1168,7 +1168,7 @@ namespace lime { System::GCExitBlocking (); - hl_lime_curl_easy_flush (easy_handle); + lime_hl_curl_easy_flush (easy_handle); return code; @@ -1184,7 +1184,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_easy_recv (HL_CFFIPointer* curl, double buffer, int buflen, int n) { + HL_PRIM int HL_NAME(hl_curl_easy_recv) (HL_CFFIPointer* curl, double buffer, int buflen, int n) { // TODO @@ -1200,7 +1200,7 @@ namespace lime { } - HL_PRIM void hl_lime_curl_easy_reset (HL_CFFIPointer* curl) { + HL_PRIM void HL_NAME(hl_curl_easy_reset) (HL_CFFIPointer* curl) { curl_easy_reset ((CURL*)curl->ptr); @@ -1216,7 +1216,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_easy_send (HL_CFFIPointer* curl, double buffer, int buflen, int n) { + HL_PRIM int HL_NAME(hl_curl_easy_send) (HL_CFFIPointer* curl, double buffer, int buflen, int n) { // TODO @@ -1765,7 +1765,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_easy_setopt (HL_CFFIPointer* handle, int option, vdynamic* parameter, Bytes* bytes) { + HL_PRIM int HL_NAME(hl_curl_easy_setopt) (HL_CFFIPointer* handle, int option, vdynamic* parameter, Bytes* bytes) { CURLcode code = CURLE_OK; CURL* easy_handle = (CURL*)handle->ptr; @@ -2202,7 +2202,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_curl_easy_strerror (int errornum) { + HL_PRIM vbyte* HL_NAME(hl_curl_easy_strerror) (int errornum) { const char* result = curl_easy_strerror ((CURLcode)errornum); int length = strlen (result); @@ -2221,7 +2221,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_curl_easy_unescape (HL_CFFIPointer* curl, hl_vstring* url, int inlength, int outlength) { + HL_PRIM vbyte* HL_NAME(hl_curl_easy_unescape) (HL_CFFIPointer* curl, hl_vstring* url, int inlength, int outlength) { char* result = curl_easy_unescape ((CURL*)curl->ptr, url ? hl_to_utf8 (url->bytes) : NULL, inlength, &outlength); int length = strlen (result); @@ -2245,7 +2245,7 @@ namespace lime { } - HL_PRIM double hl_lime_curl_getdate (hl_vstring* datestring, double now) { + HL_PRIM double HL_NAME(hl_curl_getdate) (hl_vstring* datestring, double now) { time_t time = (time_t)now; return curl_getdate (datestring ? hl_to_utf8 (datestring->bytes) : NULL, &time); @@ -2260,7 +2260,7 @@ namespace lime { } - HL_PRIM void hl_lime_curl_global_cleanup () { + HL_PRIM void HL_NAME(hl_curl_global_cleanup) () { curl_global_cleanup (); @@ -2274,7 +2274,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_global_init (int flags) { + HL_PRIM int HL_NAME(hl_curl_global_init) (int flags) { return curl_global_init (flags); @@ -2295,7 +2295,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_multi_cleanup (HL_CFFIPointer* multi_handle) { + HL_PRIM int HL_NAME(hl_curl_multi_cleanup) (HL_CFFIPointer* multi_handle) { // curl_gc_mutex.Lock (); @@ -2332,7 +2332,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_curl_multi_init () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_curl_multi_init) () { curl_gc_mutex.Lock (); @@ -2376,7 +2376,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_multi_add_handle (HL_CFFIPointer* multi_handle, vdynamic* curl_object, HL_CFFIPointer* curl_handle) { + HL_PRIM int HL_NAME(hl_curl_multi_add_handle) (HL_CFFIPointer* multi_handle, vdynamic* curl_object, HL_CFFIPointer* curl_handle) { curl_gc_mutex.Lock (); @@ -2404,7 +2404,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_multi_get_running_handles (HL_CFFIPointer* multi_handle) { + HL_PRIM int HL_NAME(hl_curl_multi_get_running_handles) (HL_CFFIPointer* multi_handle) { return curlMultiRunningHandles[multi_handle]; @@ -2449,7 +2449,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_curl_multi_info_read (HL_CFFIPointer* multi_handle, vdynamic* result) { + HL_PRIM vdynamic* HL_NAME(hl_curl_multi_info_read) (HL_CFFIPointer* multi_handle, vdynamic* result) { int msgs_in_queue; CURLMsg* msg = curl_multi_info_read ((CURLM*)multi_handle->ptr, &msgs_in_queue); @@ -2512,7 +2512,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_multi_perform (HL_CFFIPointer* multi_handle) { + HL_PRIM int HL_NAME(hl_curl_multi_perform) (HL_CFFIPointer* multi_handle) { curl_gc_mutex.Lock (); @@ -2524,7 +2524,7 @@ namespace lime { for (std::vector::iterator it = handles->begin (); it != handles->end (); ++it) { curl_gc_mutex.Unlock (); - hl_lime_curl_easy_flush ((HL_CFFIPointer*)*it); + lime_hl_curl_easy_flush ((HL_CFFIPointer*)*it); curl_gc_mutex.Lock (); } @@ -2576,7 +2576,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_multi_remove_handle (HL_CFFIPointer* multi_handle, HL_CFFIPointer* curl_handle) { + HL_PRIM int HL_NAME(hl_curl_multi_remove_handle) (HL_CFFIPointer* multi_handle, HL_CFFIPointer* curl_handle) { curl_gc_mutex.Lock (); @@ -2664,7 +2664,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_multi_setopt (HL_CFFIPointer* multi_handle, int option, vdynamic* parameter) { + HL_PRIM int HL_NAME(hl_curl_multi_setopt) (HL_CFFIPointer* multi_handle, int option, vdynamic* parameter) { CURLMcode code = CURLM_OK; CURLM* multi = (CURLM*)multi_handle->ptr; @@ -2727,7 +2727,7 @@ namespace lime { } - HL_PRIM int hl_lime_curl_multi_wait (HL_CFFIPointer* multi_handle, int timeout_ms) { + HL_PRIM int HL_NAME(hl_curl_multi_wait) (HL_CFFIPointer* multi_handle, int timeout_ms) { System::GCEnterBlocking (); @@ -2771,7 +2771,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_curl_version () { + HL_PRIM vbyte* HL_NAME(hl_curl_version) () { char* result = curl_version (); int length = strlen (result); @@ -2793,7 +2793,7 @@ namespace lime { } - HL_PRIM vdynamic* hl_lime_curl_version_info (int type) { + HL_PRIM vdynamic* HL_NAME(hl_curl_version_info) (int type) { curl_version_info_data* data = curl_version_info ((CURLversion)type); @@ -2837,34 +2837,34 @@ namespace lime { #define _TBYTES _OBJ (_I32 _BYTES) #define _TCFFIPOINTER _DYN - DEFINE_HL_PRIM (_VOID, lime_curl_easy_cleanup, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_curl_easy_duphandle, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BYTES, lime_curl_easy_escape, _TCFFIPOINTER _STRING _I32); - DEFINE_HL_PRIM (_DYN, lime_curl_easy_getinfo, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_curl_easy_init, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_curl_easy_flush, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_curl_easy_pause, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_I32, lime_curl_easy_perform, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_curl_easy_recv, _TCFFIPOINTER _F64 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_curl_easy_reset, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_curl_easy_send, _TCFFIPOINTER _F64 _I32 _I32); - DEFINE_HL_PRIM (_I32, lime_curl_easy_setopt, _TCFFIPOINTER _I32 _DYN _TBYTES); - DEFINE_HL_PRIM (_BYTES, lime_curl_easy_strerror, _I32); - DEFINE_HL_PRIM (_BYTES, lime_curl_easy_unescape, _TCFFIPOINTER _STRING _I32 _I32); - DEFINE_HL_PRIM (_F64, lime_curl_getdate, _STRING _F64); - DEFINE_HL_PRIM (_VOID, lime_curl_global_cleanup, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_curl_global_init, _I32); - DEFINE_HL_PRIM (_I32, lime_curl_multi_cleanup, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_curl_multi_init, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_curl_multi_add_handle, _TCFFIPOINTER _DYN _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_curl_multi_get_running_handles, _TCFFIPOINTER); - DEFINE_HL_PRIM (_DYN, lime_curl_multi_info_read, _TCFFIPOINTER _DYN); - DEFINE_HL_PRIM (_I32, lime_curl_multi_perform, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_curl_multi_remove_handle, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_curl_multi_setopt, _TCFFIPOINTER _I32 _DYN); - DEFINE_HL_PRIM (_I32, lime_curl_multi_wait, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_BYTES, lime_curl_version, _NO_ARG); - DEFINE_HL_PRIM (_DYN, lime_curl_version_info, _I32); + DEFINE_HL_PRIM (_VOID, hl_curl_easy_cleanup, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_curl_easy_duphandle, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BYTES, hl_curl_easy_escape, _TCFFIPOINTER _STRING _I32); + DEFINE_HL_PRIM (_DYN, hl_curl_easy_getinfo, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_curl_easy_init, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_curl_easy_flush, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_curl_easy_pause, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_I32, hl_curl_easy_perform, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_curl_easy_recv, _TCFFIPOINTER _F64 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_curl_easy_reset, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_curl_easy_send, _TCFFIPOINTER _F64 _I32 _I32); + DEFINE_HL_PRIM (_I32, hl_curl_easy_setopt, _TCFFIPOINTER _I32 _DYN _TBYTES); + DEFINE_HL_PRIM (_BYTES, hl_curl_easy_strerror, _I32); + DEFINE_HL_PRIM (_BYTES, hl_curl_easy_unescape, _TCFFIPOINTER _STRING _I32 _I32); + DEFINE_HL_PRIM (_F64, hl_curl_getdate, _STRING _F64); + DEFINE_HL_PRIM (_VOID, hl_curl_global_cleanup, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_curl_global_init, _I32); + DEFINE_HL_PRIM (_I32, hl_curl_multi_cleanup, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_curl_multi_init, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_curl_multi_add_handle, _TCFFIPOINTER _DYN _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_curl_multi_get_running_handles, _TCFFIPOINTER); + DEFINE_HL_PRIM (_DYN, hl_curl_multi_info_read, _TCFFIPOINTER _DYN); + DEFINE_HL_PRIM (_I32, hl_curl_multi_perform, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_curl_multi_remove_handle, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_curl_multi_setopt, _TCFFIPOINTER _I32 _DYN); + DEFINE_HL_PRIM (_I32, hl_curl_multi_wait, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_BYTES, hl_curl_version, _NO_ARG); + DEFINE_HL_PRIM (_DYN, hl_curl_version_info, _I32); } diff --git a/project/src/system/FileWatcher.cpp b/project/src/system/FileWatcher.cpp index 620d580b2e..507f316ed4 100644 --- a/project/src/system/FileWatcher.cpp +++ b/project/src/system/FileWatcher.cpp @@ -1,5 +1,6 @@ -#include +// include order is important #include +#include namespace lime { diff --git a/project/src/text/harfbuzz/HarfbuzzBindings.cpp b/project/src/text/harfbuzz/HarfbuzzBindings.cpp index dfdde0cf6e..5b1270c850 100644 --- a/project/src/text/harfbuzz/HarfbuzzBindings.cpp +++ b/project/src/text/harfbuzz/HarfbuzzBindings.cpp @@ -114,7 +114,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_blob_create (double data, int length, int memoryMode) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_blob_create) (double data, int length, int memoryMode) { hb_blob_t* blob = hb_blob_create ((const char*)(uintptr_t)data, length, (hb_memory_mode_t)memoryMode, 0, 0); return HLCFFIPointer (blob, (hl_finalizer)hl_gc_hb_blob); @@ -130,7 +130,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_blob_create_sub_blob (HL_CFFIPointer* parent, int offset, int length) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_blob_create_sub_blob) (HL_CFFIPointer* parent, int offset, int length) { hb_blob_t* blob = hb_blob_create_sub_blob ((hb_blob_t*)parent->ptr, offset, length); return HLCFFIPointer (blob, (hl_finalizer)hl_gc_hb_blob); @@ -146,7 +146,7 @@ namespace lime { } - HL_PRIM double hl_lime_hb_blob_get_data (HL_CFFIPointer* blob) { + HL_PRIM double HL_NAME(hl_hb_blob_get_data) (HL_CFFIPointer* blob) { unsigned int length = 0; return (uintptr_t)hb_blob_get_data ((hb_blob_t*)blob->ptr, &length); @@ -162,7 +162,7 @@ namespace lime { } - HL_PRIM double hl_lime_hb_blob_get_data_writable (HL_CFFIPointer* blob) { + HL_PRIM double HL_NAME(hl_hb_blob_get_data_writable) (HL_CFFIPointer* blob) { unsigned int length = 0; return (uintptr_t)hb_blob_get_data ((hb_blob_t*)blob->ptr, &length); @@ -178,7 +178,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_blob_get_empty () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_blob_get_empty) () { hb_blob_t* blob = hb_blob_get_empty (); return HLCFFIPointer (blob, (hl_finalizer)hl_gc_hb_blob); @@ -193,7 +193,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_blob_get_length (HL_CFFIPointer* blob) { + HL_PRIM int HL_NAME(hl_hb_blob_get_length) (HL_CFFIPointer* blob) { return hb_blob_get_length ((hb_blob_t*)blob->ptr); @@ -207,7 +207,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_blob_is_immutable (HL_CFFIPointer* blob) { + HL_PRIM bool HL_NAME(hl_hb_blob_is_immutable) (HL_CFFIPointer* blob) { return hb_blob_is_immutable ((hb_blob_t*)blob->ptr); @@ -221,7 +221,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_blob_make_immutable (HL_CFFIPointer* blob) { + HL_PRIM void HL_NAME(hl_hb_blob_make_immutable) (HL_CFFIPointer* blob) { hb_blob_make_immutable ((hb_blob_t*)blob->ptr); @@ -235,7 +235,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_add (HL_CFFIPointer* buffer, int codepoint, int cluster) { + HL_PRIM void HL_NAME(hl_hb_buffer_add) (HL_CFFIPointer* buffer, int codepoint, int cluster) { hb_buffer_add ((hb_buffer_t*)buffer->ptr, (hb_codepoint_t)codepoint, cluster); @@ -249,7 +249,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_add_codepoints (HL_CFFIPointer* buffer, double text, int textLength, int itemOffset, int itemLength) { + HL_PRIM void HL_NAME(hl_hb_buffer_add_codepoints) (HL_CFFIPointer* buffer, double text, int textLength, int itemOffset, int itemLength) { hb_buffer_add_codepoints ((hb_buffer_t*)buffer->ptr, (const hb_codepoint_t*)(uintptr_t)text, textLength, itemOffset, itemLength); @@ -263,7 +263,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_add_utf8 (HL_CFFIPointer* buffer, hl_vstring* text, int itemOffset, int itemLength) { + HL_PRIM void HL_NAME(hl_hb_buffer_add_utf8) (HL_CFFIPointer* buffer, hl_vstring* text, int itemOffset, int itemLength) { hb_buffer_add_utf8 ((hb_buffer_t*)buffer->ptr, text ? hl_to_utf8 (text->bytes) : NULL, text ? text->length : 0, itemOffset, itemLength); @@ -277,7 +277,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_add_utf16 (HL_CFFIPointer* buffer, double text, int textLength, int itemOffset, int itemLength) { + HL_PRIM void HL_NAME(hl_hb_buffer_add_utf16) (HL_CFFIPointer* buffer, double text, int textLength, int itemOffset, int itemLength) { hb_buffer_add_utf16 ((hb_buffer_t*)buffer->ptr, (const uint16_t*)(uintptr_t)text, textLength, itemOffset, itemLength); @@ -291,7 +291,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_add_utf32 (HL_CFFIPointer* buffer, double text, int textLength, int itemOffset, int itemLength) { + HL_PRIM void HL_NAME(hl_hb_buffer_add_utf32) (HL_CFFIPointer* buffer, double text, int textLength, int itemOffset, int itemLength) { hb_buffer_add_utf32 ((hb_buffer_t*)buffer->ptr, (const uint32_t*)(uintptr_t)text, textLength, itemOffset, itemLength); @@ -305,7 +305,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_buffer_allocation_successful (HL_CFFIPointer* buffer) { + HL_PRIM bool HL_NAME(hl_hb_buffer_allocation_successful) (HL_CFFIPointer* buffer) { return hb_buffer_allocation_successful ((hb_buffer_t*)buffer->ptr); @@ -319,7 +319,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_clear_contents (HL_CFFIPointer* buffer) { + HL_PRIM void HL_NAME(hl_hb_buffer_clear_contents) (HL_CFFIPointer* buffer) { hb_buffer_clear_contents ((hb_buffer_t*)buffer->ptr); @@ -334,7 +334,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_buffer_create () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_buffer_create) () { hb_buffer_t* buffer = hb_buffer_create (); return HLCFFIPointer (buffer, (hl_finalizer)hl_gc_hb_buffer); @@ -349,7 +349,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_buffer_get_cluster_level (HL_CFFIPointer* buffer) { + HL_PRIM int HL_NAME(hl_hb_buffer_get_cluster_level) (HL_CFFIPointer* buffer) { return hb_buffer_get_cluster_level ((hb_buffer_t*)buffer->ptr); @@ -363,7 +363,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_buffer_get_content_type (HL_CFFIPointer* buffer) { + HL_PRIM int HL_NAME(hl_hb_buffer_get_content_type) (HL_CFFIPointer* buffer) { return hb_buffer_get_content_type ((hb_buffer_t*)buffer->ptr); @@ -377,7 +377,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_buffer_get_direction (HL_CFFIPointer* buffer) { + HL_PRIM int HL_NAME(hl_hb_buffer_get_direction) (HL_CFFIPointer* buffer) { return hb_buffer_get_direction ((hb_buffer_t*)buffer->ptr); @@ -392,7 +392,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_buffer_get_empty () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_buffer_get_empty) () { hb_buffer_t* buffer = hb_buffer_get_empty (); return HLCFFIPointer (buffer, (hl_finalizer)hl_gc_hb_buffer); @@ -407,7 +407,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_buffer_get_flags (HL_CFFIPointer* buffer) { + HL_PRIM int HL_NAME(hl_hb_buffer_get_flags) (HL_CFFIPointer* buffer) { return hb_buffer_get_flags ((hb_buffer_t*)buffer->ptr); @@ -445,7 +445,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_hb_buffer_get_glyph_infos (HL_CFFIPointer* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_hb_buffer_get_glyph_infos) (HL_CFFIPointer* buffer, Bytes* bytes) { unsigned int length = 0; hb_glyph_info_t* info = hb_buffer_get_glyph_infos ((hb_buffer_t*)buffer->ptr, &length); @@ -507,7 +507,7 @@ namespace lime { } - HL_PRIM Bytes* hl_lime_hb_buffer_get_glyph_positions (HL_CFFIPointer* buffer, Bytes* bytes) { + HL_PRIM Bytes* HL_NAME(hl_hb_buffer_get_glyph_positions) (HL_CFFIPointer* buffer, Bytes* bytes) { unsigned int length = 0; hb_glyph_position_t* positions = hb_buffer_get_glyph_positions ((hb_buffer_t*)buffer->ptr, &length); @@ -546,7 +546,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_buffer_get_language (HL_CFFIPointer* buffer) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_buffer_get_language) (HL_CFFIPointer* buffer) { hb_language_t language = hb_buffer_get_language ((hb_buffer_t*)buffer->ptr); return HLCFFIPointer ((void*)language); @@ -561,7 +561,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_buffer_get_length (HL_CFFIPointer* buffer) { + HL_PRIM int HL_NAME(hl_hb_buffer_get_length) (HL_CFFIPointer* buffer) { return hb_buffer_get_length ((hb_buffer_t*)buffer->ptr); @@ -575,7 +575,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_buffer_get_replacement_codepoint (HL_CFFIPointer* buffer) { + HL_PRIM int HL_NAME(hl_hb_buffer_get_replacement_codepoint) (HL_CFFIPointer* buffer) { return hb_buffer_get_replacement_codepoint ((hb_buffer_t*)buffer->ptr); @@ -589,7 +589,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_buffer_get_script (HL_CFFIPointer* buffer) { + HL_PRIM int HL_NAME(hl_hb_buffer_get_script) (HL_CFFIPointer* buffer) { return hb_buffer_get_script ((hb_buffer_t*)buffer->ptr); @@ -603,7 +603,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_get_segment_properties (HL_CFFIPointer* buffer, HL_CFFIPointer* props) { + HL_PRIM void HL_NAME(hl_hb_buffer_get_segment_properties) (HL_CFFIPointer* buffer, HL_CFFIPointer* props) { hb_buffer_get_segment_properties ((hb_buffer_t*)buffer->ptr, (hb_segment_properties_t*)props->ptr); @@ -617,7 +617,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_guess_segment_properties (HL_CFFIPointer* buffer) { + HL_PRIM void HL_NAME(hl_hb_buffer_guess_segment_properties) (HL_CFFIPointer* buffer) { hb_buffer_guess_segment_properties ((hb_buffer_t*)buffer->ptr); @@ -631,7 +631,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_normalize_glyphs (HL_CFFIPointer* buffer) { + HL_PRIM void HL_NAME(hl_hb_buffer_normalize_glyphs) (HL_CFFIPointer* buffer) { hb_buffer_normalize_glyphs ((hb_buffer_t*)buffer->ptr); @@ -645,7 +645,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_buffer_preallocate (HL_CFFIPointer* buffer, int size) { + HL_PRIM bool HL_NAME(hl_hb_buffer_preallocate) (HL_CFFIPointer* buffer, int size) { return hb_buffer_pre_allocate ((hb_buffer_t*)buffer->ptr, size); @@ -659,7 +659,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_reset (HL_CFFIPointer* buffer) { + HL_PRIM void HL_NAME(hl_hb_buffer_reset) (HL_CFFIPointer* buffer) { hb_buffer_reset ((hb_buffer_t*)buffer->ptr); @@ -673,7 +673,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_reverse (HL_CFFIPointer* buffer) { + HL_PRIM void HL_NAME(hl_hb_buffer_reverse) (HL_CFFIPointer* buffer) { hb_buffer_reverse ((hb_buffer_t*)buffer->ptr); @@ -687,7 +687,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_reverse_clusters (HL_CFFIPointer* buffer) { + HL_PRIM void HL_NAME(hl_hb_buffer_reverse_clusters) (HL_CFFIPointer* buffer) { hb_buffer_reverse_clusters ((hb_buffer_t*)buffer->ptr); @@ -701,7 +701,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_buffer_serialize_format_from_string (hl_vstring* str) { + HL_PRIM int HL_NAME(hl_hb_buffer_serialize_format_from_string) (hl_vstring* str) { return hb_buffer_serialize_format_from_string (str ? hl_to_utf8 (str->bytes) : NULL, str ? str->length : 0); @@ -718,7 +718,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_hb_buffer_serialize_format_to_string (int format) { + HL_PRIM vbyte* HL_NAME(hl_hb_buffer_serialize_format_to_string) (int format) { const char* result = hb_buffer_serialize_format_to_string ((hb_buffer_serialize_format_t)format); @@ -762,7 +762,7 @@ namespace lime { } - HL_PRIM varray* hl_lime_hb_buffer_serialize_list_formats () { + HL_PRIM varray* HL_NAME(hl_hb_buffer_serialize_list_formats) () { const char** formats = hb_buffer_serialize_list_formats (); @@ -791,7 +791,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_set_cluster_level (HL_CFFIPointer* buffer, int clusterLevel) { + HL_PRIM void HL_NAME(hl_hb_buffer_set_cluster_level) (HL_CFFIPointer* buffer, int clusterLevel) { hb_buffer_set_cluster_level ((hb_buffer_t*)buffer->ptr, (hb_buffer_cluster_level_t)clusterLevel); @@ -805,7 +805,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_set_content_type (HL_CFFIPointer* buffer, int contentType) { + HL_PRIM void HL_NAME(hl_hb_buffer_set_content_type) (HL_CFFIPointer* buffer, int contentType) { hb_buffer_set_content_type ((hb_buffer_t*)buffer->ptr, (hb_buffer_content_type_t)contentType); @@ -819,7 +819,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_set_direction (HL_CFFIPointer* buffer, int direction) { + HL_PRIM void HL_NAME(hl_hb_buffer_set_direction) (HL_CFFIPointer* buffer, int direction) { hb_buffer_set_direction ((hb_buffer_t*)buffer->ptr, (hb_direction_t)direction); @@ -833,7 +833,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_set_flags (HL_CFFIPointer* buffer, int flags) { + HL_PRIM void HL_NAME(hl_hb_buffer_set_flags) (HL_CFFIPointer* buffer, int flags) { hb_buffer_set_flags ((hb_buffer_t*)buffer->ptr, (hb_buffer_flags_t)flags); @@ -847,7 +847,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_set_language (HL_CFFIPointer* buffer, HL_CFFIPointer* language) { + HL_PRIM void HL_NAME(hl_hb_buffer_set_language) (HL_CFFIPointer* buffer, HL_CFFIPointer* language) { hb_buffer_set_language ((hb_buffer_t*)buffer->ptr, (hb_language_t)language->ptr); @@ -861,7 +861,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_buffer_set_length (HL_CFFIPointer* buffer, int length) { + HL_PRIM bool HL_NAME(hl_hb_buffer_set_length) (HL_CFFIPointer* buffer, int length) { return hb_buffer_set_length ((hb_buffer_t*)buffer->ptr, length); @@ -875,7 +875,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_set_replacement_codepoint (HL_CFFIPointer* buffer, int replacement) { + HL_PRIM void HL_NAME(hl_hb_buffer_set_replacement_codepoint) (HL_CFFIPointer* buffer, int replacement) { hb_buffer_set_replacement_codepoint ((hb_buffer_t*)buffer->ptr, (hb_codepoint_t)replacement); @@ -892,7 +892,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_set_script (HL_CFFIPointer* buffer, int script) { + HL_PRIM void HL_NAME(hl_hb_buffer_set_script) (HL_CFFIPointer* buffer, int script) { hb_buffer_set_script ((hb_buffer_t*)buffer->ptr, (hb_script_t)script); @@ -906,7 +906,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_buffer_set_segment_properties (HL_CFFIPointer* buffer, HL_CFFIPointer* props) { + HL_PRIM void HL_NAME(hl_hb_buffer_set_segment_properties) (HL_CFFIPointer* buffer, HL_CFFIPointer* props) { hb_buffer_set_segment_properties ((hb_buffer_t*)buffer->ptr, (const hb_segment_properties_t*)props->ptr); @@ -921,7 +921,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_face_create (HL_CFFIPointer* blob, int index) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_face_create) (HL_CFFIPointer* blob, int index) { hb_face_t* face = hb_face_create ((hb_blob_t*)blob->ptr, index); return HLCFFIPointer (face, (hl_finalizer)hl_gc_hb_face); @@ -937,7 +937,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_face_get_empty () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_face_get_empty) () { hb_face_t* face = hb_face_get_empty (); return HLCFFIPointer (face, (hl_finalizer)hl_gc_hb_face); @@ -952,7 +952,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_face_get_glyph_count (HL_CFFIPointer* face) { + HL_PRIM int HL_NAME(hl_hb_face_get_glyph_count) (HL_CFFIPointer* face) { return hb_face_get_glyph_count ((hb_face_t*)face->ptr); @@ -966,7 +966,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_face_get_index (HL_CFFIPointer* face) { + HL_PRIM int HL_NAME(hl_hb_face_get_index) (HL_CFFIPointer* face) { return hb_face_get_index ((hb_face_t*)face->ptr); @@ -980,7 +980,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_face_get_upem (HL_CFFIPointer* face) { + HL_PRIM int HL_NAME(hl_hb_face_get_upem) (HL_CFFIPointer* face) { return hb_face_get_upem ((hb_face_t*)face->ptr); @@ -994,7 +994,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_face_is_immutable (HL_CFFIPointer* face) { + HL_PRIM bool HL_NAME(hl_hb_face_is_immutable) (HL_CFFIPointer* face) { return hb_face_is_immutable ((hb_face_t*)face->ptr); @@ -1008,7 +1008,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_face_make_immutable (HL_CFFIPointer* face) { + HL_PRIM void HL_NAME(hl_hb_face_make_immutable) (HL_CFFIPointer* face) { hb_face_make_immutable ((hb_face_t*)face->ptr); @@ -1025,7 +1025,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_face_reference_blob (HL_CFFIPointer* face) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_face_reference_blob) (HL_CFFIPointer* face) { hb_blob_t* blob = hb_face_reference_blob ((hb_face_t*)face->ptr); @@ -1043,7 +1043,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_face_reference_table (HL_CFFIPointer* face, int tag) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_face_reference_table) (HL_CFFIPointer* face, int tag) { hb_blob_t* blob = hb_face_reference_table ((hb_face_t*)face->ptr, (hb_tag_t)tag); return HLCFFIPointer (blob, (hl_finalizer)hl_gc_hb_blob); @@ -1058,7 +1058,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_face_set_glyph_count (HL_CFFIPointer* face, int glyphCount) { + HL_PRIM void HL_NAME(hl_hb_face_set_glyph_count) (HL_CFFIPointer* face, int glyphCount) { hb_face_set_glyph_count ((hb_face_t*)face->ptr, glyphCount); @@ -1072,7 +1072,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_face_set_index (HL_CFFIPointer* face, int index) { + HL_PRIM void HL_NAME(hl_hb_face_set_index) (HL_CFFIPointer* face, int index) { hb_face_set_index ((hb_face_t*)face->ptr, index); @@ -1086,7 +1086,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_face_set_upem (HL_CFFIPointer* face, int upem) { + HL_PRIM void HL_NAME(hl_hb_face_set_upem) (HL_CFFIPointer* face, int upem) { hb_face_set_upem ((hb_face_t*)face->ptr, upem); @@ -1112,7 +1112,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_feature_from_string (hl_vstring* str) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_feature_from_string) (hl_vstring* str) { hb_feature_t feature; @@ -1140,7 +1140,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_hb_feature_to_string (HL_CFFIPointer* feature) { + HL_PRIM vbyte* HL_NAME(hl_hb_feature_to_string) (HL_CFFIPointer* feature) { char* result = (char*)malloc (128); hb_feature_to_string ((hb_feature_t*)feature->ptr, result, 128); @@ -1160,7 +1160,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_font_add_glyph_origin_for_direction (HL_CFFIPointer* font, int glyph, int direction, int x, int y) { + HL_PRIM void HL_NAME(hl_hb_font_add_glyph_origin_for_direction) (HL_CFFIPointer* font, int glyph, int direction, int x, int y) { hb_font_add_glyph_origin_for_direction ((hb_font_t*)font->ptr, (hb_codepoint_t)glyph, (hb_direction_t)direction, &x, &y); @@ -1175,7 +1175,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_font_create (HL_CFFIPointer* face) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_font_create) (HL_CFFIPointer* face) { hb_font_t* font = hb_font_create ((hb_face_t*)face->ptr); return HLCFFIPointer (font, (hl_finalizer)hl_gc_hb_font); @@ -1191,7 +1191,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_font_create_sub_font (HL_CFFIPointer* parent) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_font_create_sub_font) (HL_CFFIPointer* parent) { hb_font_t* font = hb_font_create_sub_font ((hb_font_t*)parent->ptr); return HLCFFIPointer (font, (hl_finalizer)hl_gc_hb_font); @@ -1207,7 +1207,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_font_get_empty () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_font_get_empty) () { hb_font_t* font = hb_font_get_empty (); return HLCFFIPointer (font, (hl_finalizer)hl_gc_hb_font); @@ -1223,7 +1223,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_font_get_face (HL_CFFIPointer* font) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_font_get_face) (HL_CFFIPointer* font) { // TODO: Manage memory differently here? @@ -1244,7 +1244,7 @@ namespace lime { } - HL_PRIM Vector2* hl_lime_hb_font_get_glyph_advance_for_direction (HL_CFFIPointer* font, int glyph, int direction, Vector2* out) { + HL_PRIM Vector2* HL_NAME(hl_hb_font_get_glyph_advance_for_direction) (HL_CFFIPointer* font, int glyph, int direction, Vector2* out) { hb_position_t x; hb_position_t y; @@ -1267,7 +1267,7 @@ namespace lime { } - HL_PRIM Vector2* hl_lime_hb_font_get_glyph_kerning_for_direction (HL_CFFIPointer* font, int firstGlyph, int secondGlyph, int direction, Vector2* out) { + HL_PRIM Vector2* HL_NAME(hl_hb_font_get_glyph_kerning_for_direction) (HL_CFFIPointer* font, int firstGlyph, int secondGlyph, int direction, Vector2* out) { hb_position_t x; hb_position_t y; @@ -1290,7 +1290,7 @@ namespace lime { } - HL_PRIM Vector2* hl_lime_hb_font_get_glyph_origin_for_direction (HL_CFFIPointer* font, int glyph, int direction, Vector2* out) { + HL_PRIM Vector2* HL_NAME(hl_hb_font_get_glyph_origin_for_direction) (HL_CFFIPointer* font, int glyph, int direction, Vector2* out) { hb_position_t x; hb_position_t y; @@ -1310,7 +1310,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_font_get_parent (HL_CFFIPointer* font) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_font_get_parent) (HL_CFFIPointer* font) { // Manage memory differently here? @@ -1331,7 +1331,7 @@ namespace lime { } - HL_PRIM Vector2* hl_lime_hb_font_get_ppem (HL_CFFIPointer* font, Vector2* out) { + HL_PRIM Vector2* HL_NAME(hl_hb_font_get_ppem) (HL_CFFIPointer* font, Vector2* out) { int xppem = 0; int yppem = 0; @@ -1354,7 +1354,7 @@ namespace lime { } - HL_PRIM Vector2* hl_lime_hb_font_get_scale (HL_CFFIPointer* font, Vector2* out) { + HL_PRIM Vector2* HL_NAME(hl_hb_font_get_scale) (HL_CFFIPointer* font, Vector2* out) { int xScale = 0; int yScale = 0; @@ -1383,7 +1383,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_font_glyph_from_string (HL_CFFIPointer* font, hl_vstring* s) { + HL_PRIM int HL_NAME(hl_hb_font_glyph_from_string) (HL_CFFIPointer* font, hl_vstring* s) { hb_codepoint_t glyph = 0; @@ -1409,7 +1409,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_hb_font_glyph_to_string (HL_CFFIPointer* font, int codepoint) { + HL_PRIM vbyte* HL_NAME(hl_hb_font_glyph_to_string) (HL_CFFIPointer* font, int codepoint) { char* result = (char*)malloc (1024); hb_font_glyph_to_string ((hb_font_t*)font->ptr, (hb_codepoint_t)codepoint, result, 1024); @@ -1429,7 +1429,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_font_is_immutable (HL_CFFIPointer* font) { + HL_PRIM bool HL_NAME(hl_hb_font_is_immutable) (HL_CFFIPointer* font) { return hb_font_is_immutable ((hb_font_t*)font->ptr); @@ -1443,7 +1443,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_font_make_immutable (HL_CFFIPointer* font) { + HL_PRIM void HL_NAME(hl_hb_font_make_immutable) (HL_CFFIPointer* font) { hb_font_make_immutable ((hb_font_t*)font->ptr); @@ -1457,7 +1457,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_font_set_ppem (HL_CFFIPointer* font, int xppem, int yppem) { + HL_PRIM void HL_NAME(hl_hb_font_set_ppem) (HL_CFFIPointer* font, int xppem, int yppem) { hb_font_set_ppem ((hb_font_t*)font->ptr, xppem, yppem); @@ -1471,7 +1471,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_font_set_scale (HL_CFFIPointer* font, int xScale, int yScale) { + HL_PRIM void HL_NAME(hl_hb_font_set_scale) (HL_CFFIPointer* font, int xScale, int yScale) { hb_font_set_scale ((hb_font_t*)font->ptr, xScale, yScale); @@ -1485,7 +1485,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_font_subtract_glyph_origin_for_direction (HL_CFFIPointer* font, int glyph, int direction, int x, int y) { + HL_PRIM void HL_NAME(hl_hb_font_subtract_glyph_origin_for_direction) (HL_CFFIPointer* font, int glyph, int direction, int x, int y) { hb_font_subtract_glyph_origin_for_direction ((hb_font_t*)font->ptr, (hb_codepoint_t)glyph, (hb_direction_t)direction, &x, &y); @@ -1501,7 +1501,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_ft_font_create (HL_CFFIPointer* font) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_ft_font_create) (HL_CFFIPointer* font) { Font* _font = (Font*)font->ptr; hb_font_t* __font = hb_ft_font_create ((FT_Face)_font->face, NULL); @@ -1519,7 +1519,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_ft_font_create_referenced (HL_CFFIPointer* font) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_ft_font_create_referenced) (HL_CFFIPointer* font) { Font* _font = (Font*)font->ptr; hb_font_t* __font = hb_ft_font_create_referenced ((FT_Face)_font->face); @@ -1535,7 +1535,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_ft_font_get_load_flags (HL_CFFIPointer* font) { + HL_PRIM int HL_NAME(hl_hb_ft_font_get_load_flags) (HL_CFFIPointer* font) { return hb_ft_font_get_load_flags ((hb_font_t*)font->ptr); @@ -1549,7 +1549,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_ft_font_set_load_flags (HL_CFFIPointer* font, int loadFlags) { + HL_PRIM void HL_NAME(hl_hb_ft_font_set_load_flags) (HL_CFFIPointer* font, int loadFlags) { hb_ft_font_set_load_flags ((hb_font_t*)font->ptr, loadFlags); @@ -1564,7 +1564,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_language_from_string (hl_vstring* str) { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_language_from_string) (hl_vstring* str) { hb_language_t language = hb_language_from_string (str ? hl_to_utf8 (str->bytes) : NULL, str ? str->length : 0); return HLCFFIPointer ((void*)language); @@ -1580,7 +1580,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_language_get_default () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_language_get_default) () { hb_language_t language = hb_language_get_default (); return HLCFFIPointer ((void*)language); @@ -1597,7 +1597,7 @@ namespace lime { } - HL_PRIM vbyte* hl_lime_hb_language_to_string (HL_CFFIPointer* language) { + HL_PRIM vbyte* HL_NAME(hl_hb_language_to_string) (HL_CFFIPointer* language) { hb_language_t _language = (hb_language_t)language->ptr; const char* result = hb_language_to_string (_language); @@ -1617,7 +1617,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_segment_properties_equal (HL_CFFIPointer* a, HL_CFFIPointer* b) { + HL_PRIM bool HL_NAME(hl_hb_segment_properties_equal) (HL_CFFIPointer* a, HL_CFFIPointer* b) { return hb_segment_properties_equal ((hb_segment_properties_t*)a->ptr, (hb_segment_properties_t*)b->ptr); @@ -1631,7 +1631,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_segment_properties_hash (HL_CFFIPointer* p) { + HL_PRIM int HL_NAME(hl_hb_segment_properties_hash) (HL_CFFIPointer* p) { return hb_segment_properties_hash ((hb_segment_properties_t*)p->ptr); @@ -1645,7 +1645,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_add (HL_CFFIPointer* set, int codepoint) { + HL_PRIM void HL_NAME(hl_hb_set_add) (HL_CFFIPointer* set, int codepoint) { hb_set_add ((hb_set_t*)set->ptr, (hb_codepoint_t)codepoint); @@ -1659,7 +1659,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_add_range (HL_CFFIPointer* set, int first, int last) { + HL_PRIM void HL_NAME(hl_hb_set_add_range) (HL_CFFIPointer* set, int first, int last) { hb_set_add_range ((hb_set_t*)set->ptr, (hb_codepoint_t)first, (hb_codepoint_t)last); @@ -1673,7 +1673,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_set_allocation_successful (HL_CFFIPointer* set) { + HL_PRIM bool HL_NAME(hl_hb_set_allocation_successful) (HL_CFFIPointer* set) { return hb_set_allocation_successful ((hb_set_t*)set->ptr); @@ -1687,7 +1687,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_clear (HL_CFFIPointer* set) { + HL_PRIM void HL_NAME(hl_hb_set_clear) (HL_CFFIPointer* set) { hb_set_clear ((hb_set_t*)set->ptr); @@ -1702,7 +1702,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_set_create () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_set_create) () { hb_set_t* set = hb_set_create (); return HLCFFIPointer (set, (hl_finalizer)hl_gc_hb_set); @@ -1717,7 +1717,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_del (HL_CFFIPointer* set, int codepoint) { + HL_PRIM void HL_NAME(hl_hb_set_del) (HL_CFFIPointer* set, int codepoint) { hb_set_del ((hb_set_t*)set->ptr, (hb_codepoint_t)codepoint); @@ -1731,7 +1731,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_del_range (HL_CFFIPointer* set, int first, int last) { + HL_PRIM void HL_NAME(hl_hb_set_del_range) (HL_CFFIPointer* set, int first, int last) { hb_set_del_range ((hb_set_t*)set->ptr, (hb_codepoint_t)first, (hb_codepoint_t)last); @@ -1746,7 +1746,7 @@ namespace lime { } - HL_PRIM HL_CFFIPointer* hl_lime_hb_set_get_empty () { + HL_PRIM HL_CFFIPointer* HL_NAME(hl_hb_set_get_empty) () { hb_set_t* set = hb_set_get_empty (); return HLCFFIPointer (set, (hl_finalizer)hl_gc_hb_set); @@ -1761,7 +1761,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_set_get_max (HL_CFFIPointer* set) { + HL_PRIM int HL_NAME(hl_hb_set_get_max) (HL_CFFIPointer* set) { return hb_set_get_max ((hb_set_t*)set->ptr); @@ -1775,7 +1775,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_set_get_min (HL_CFFIPointer* set) { + HL_PRIM int HL_NAME(hl_hb_set_get_min) (HL_CFFIPointer* set) { return hb_set_get_min ((hb_set_t*)set->ptr); @@ -1789,7 +1789,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_set_get_population (HL_CFFIPointer* set) { + HL_PRIM int HL_NAME(hl_hb_set_get_population) (HL_CFFIPointer* set) { return hb_set_get_population ((hb_set_t*)set->ptr); @@ -1803,7 +1803,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_set_has (HL_CFFIPointer* set, int codepoint) { + HL_PRIM bool HL_NAME(hl_hb_set_has) (HL_CFFIPointer* set, int codepoint) { return hb_set_has ((hb_set_t*)set->ptr, (hb_codepoint_t)codepoint); @@ -1817,7 +1817,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_intersect (HL_CFFIPointer* set, HL_CFFIPointer* other) { + HL_PRIM void HL_NAME(hl_hb_set_intersect) (HL_CFFIPointer* set, HL_CFFIPointer* other) { return hb_set_intersect ((hb_set_t*)set->ptr, (hb_set_t*)other->ptr); @@ -1831,7 +1831,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_invert (HL_CFFIPointer* set) { + HL_PRIM void HL_NAME(hl_hb_set_invert) (HL_CFFIPointer* set) { hb_set_invert ((hb_set_t*)set->ptr); @@ -1845,7 +1845,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_set_is_empty (HL_CFFIPointer* set) { + HL_PRIM bool HL_NAME(hl_hb_set_is_empty) (HL_CFFIPointer* set) { return hb_set_is_empty ((hb_set_t*)set->ptr); @@ -1859,7 +1859,7 @@ namespace lime { } - HL_PRIM bool hl_lime_hb_set_is_equal (HL_CFFIPointer* set, HL_CFFIPointer* other) { + HL_PRIM bool HL_NAME(hl_hb_set_is_equal) (HL_CFFIPointer* set, HL_CFFIPointer* other) { return hb_set_is_equal ((hb_set_t*)set->ptr, (hb_set_t*)other->ptr); @@ -1883,7 +1883,7 @@ namespace lime { } - HL_PRIM int hl_lime_hb_set_next (HL_CFFIPointer* set) { + HL_PRIM int HL_NAME(hl_hb_set_next) (HL_CFFIPointer* set) { hb_codepoint_t codepoint = 0; @@ -1919,7 +1919,7 @@ namespace lime { } - HL_PRIM Vector2* hl_lime_hb_set_next_range (HL_CFFIPointer* set, Vector2* out) { + HL_PRIM Vector2* HL_NAME(hl_hb_set_next_range) (HL_CFFIPointer* set, Vector2* out) { hb_codepoint_t first = 0; hb_codepoint_t last = 0; @@ -1946,7 +1946,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_set (HL_CFFIPointer* set, HL_CFFIPointer* other) { + HL_PRIM void HL_NAME(hl_hb_set_set) (HL_CFFIPointer* set, HL_CFFIPointer* other) { return hb_set_set ((hb_set_t*)set->ptr, (hb_set_t*)other->ptr); @@ -1960,7 +1960,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_subtract (HL_CFFIPointer* set, HL_CFFIPointer* other) { + HL_PRIM void HL_NAME(hl_hb_set_subtract) (HL_CFFIPointer* set, HL_CFFIPointer* other) { return hb_set_subtract ((hb_set_t*)set->ptr, (hb_set_t*)other->ptr); @@ -1974,7 +1974,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_symmetric_difference (HL_CFFIPointer* set, HL_CFFIPointer* other) { + HL_PRIM void HL_NAME(hl_hb_set_symmetric_difference) (HL_CFFIPointer* set, HL_CFFIPointer* other) { return hb_set_symmetric_difference ((hb_set_t*)set->ptr, (hb_set_t*)other->ptr); @@ -1988,7 +1988,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_set_union (HL_CFFIPointer* set, HL_CFFIPointer* other) { + HL_PRIM void HL_NAME(hl_hb_set_union) (HL_CFFIPointer* set, HL_CFFIPointer* other) { return hb_set_union ((hb_set_t*)set->ptr, (hb_set_t*)other->ptr); @@ -2004,7 +2004,7 @@ namespace lime { } - HL_PRIM void hl_lime_hb_shape (HL_CFFIPointer* font, HL_CFFIPointer* buffer, hl_varray* features) { + HL_PRIM void HL_NAME(hl_hb_shape) (HL_CFFIPointer* font, HL_CFFIPointer* buffer, hl_varray* features) { int length = features ? features->size : 0; double* _features = features ? hl_aptr (features, double) : NULL; @@ -2166,116 +2166,116 @@ namespace lime { #define _TVECTOR2 _OBJ (_F64 _F64) - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_blob_create, _F64 _I32 _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_blob_create_sub_blob, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_F64, lime_hb_blob_get_data, _TCFFIPOINTER); - DEFINE_HL_PRIM (_F64, lime_hb_blob_get_data_writable, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_blob_get_empty, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_hb_blob_get_length, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_hb_blob_is_immutable, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_blob_make_immutable, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_add, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_add_codepoints, _TCFFIPOINTER _F64 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_add_utf8, _TCFFIPOINTER _STRING _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_add_utf16, _TCFFIPOINTER _F64 _I32 _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_add_utf32, _TCFFIPOINTER _F64 _I32 _I32 _I32); - DEFINE_HL_PRIM (_BOOL, lime_hb_buffer_allocation_successful, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_clear_contents, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_buffer_create, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_hb_buffer_get_cluster_level, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_buffer_get_content_type, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_buffer_get_direction, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_buffer_get_empty, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_hb_buffer_get_flags, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TBYTES, lime_hb_buffer_get_glyph_infos, _TCFFIPOINTER _TBYTES); - DEFINE_HL_PRIM (_TBYTES, lime_hb_buffer_get_glyph_positions, _TCFFIPOINTER _TBYTES); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_buffer_get_language, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_buffer_get_length, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_buffer_get_replacement_codepoint, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_buffer_get_script, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_get_segment_properties, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_guess_segment_properties, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_normalize_glyphs, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_hb_buffer_preallocate, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_reset, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_reverse, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_reverse_clusters, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_buffer_serialize_format_from_string, _STRING); - DEFINE_HL_PRIM (_BYTES, lime_hb_buffer_serialize_format_to_string, _I32); - DEFINE_HL_PRIM (_ARR, lime_hb_buffer_serialize_list_formats, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_set_cluster_level, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_set_content_type, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_set_direction, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_set_flags, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_set_language, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_hb_buffer_set_length, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_set_replacement_codepoint, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_set_script, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_buffer_set_segment_properties, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_face_create, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_face_get_empty, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_hb_face_get_glyph_count, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_face_get_index, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_face_get_upem, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_hb_face_is_immutable, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_face_make_immutable, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_face_reference_blob, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_face_reference_table, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_face_set_glyph_count, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_face_set_index, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_face_set_upem, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_feature_from_string, _STRING); - DEFINE_HL_PRIM (_BYTES, lime_hb_feature_to_string, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_font_add_glyph_origin_for_direction, _TCFFIPOINTER _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_font_create, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_font_create_sub_font, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_font_get_empty, _NO_ARG); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_font_get_face, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TVECTOR2, lime_hb_font_get_glyph_advance_for_direction, _TCFFIPOINTER _I32 _I32 _TVECTOR2); - DEFINE_HL_PRIM (_TVECTOR2, lime_hb_font_get_glyph_kerning_for_direction, _TCFFIPOINTER _I32 _I32 _I32 _TVECTOR2); - DEFINE_HL_PRIM (_TVECTOR2, lime_hb_font_get_glyph_origin_for_direction, _TCFFIPOINTER _I32 _I32 _TVECTOR2); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_font_get_parent, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TVECTOR2, lime_hb_font_get_ppem, _TCFFIPOINTER _TVECTOR2); - DEFINE_HL_PRIM (_TVECTOR2, lime_hb_font_get_scale, _TCFFIPOINTER _TVECTOR2); - DEFINE_HL_PRIM (_I32, lime_hb_font_glyph_from_string, _TCFFIPOINTER _STRING); - DEFINE_HL_PRIM (_BYTES, lime_hb_font_glyph_to_string, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_BOOL, lime_hb_font_is_immutable, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_font_make_immutable, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_font_set_ppem, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_font_set_scale, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_font_subtract_glyph_origin_for_direction, _TCFFIPOINTER _I32 _I32 _I32 _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_ft_font_create, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_ft_font_create_referenced, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_ft_font_get_load_flags, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_ft_font_set_load_flags, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_language_from_string, _STRING); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_language_get_default, _NO_ARG); - DEFINE_HL_PRIM (_BYTES, lime_hb_language_to_string, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_hb_segment_properties_equal, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_segment_properties_hash, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_set_add, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_set_add_range, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_BOOL, lime_hb_set_allocation_successful, _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_set_clear, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_set_create, _NO_ARG); - DEFINE_HL_PRIM (_VOID, lime_hb_set_del, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_set_del_range, _TCFFIPOINTER _I32 _I32); - DEFINE_HL_PRIM (_TCFFIPOINTER, lime_hb_set_get_empty, _NO_ARG); - DEFINE_HL_PRIM (_I32, lime_hb_set_get_max, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_set_get_min, _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_set_get_population, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_hb_set_has, _TCFFIPOINTER _I32); - DEFINE_HL_PRIM (_VOID, lime_hb_set_intersect, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_set_invert, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_hb_set_is_empty, _TCFFIPOINTER); - DEFINE_HL_PRIM (_BOOL, lime_hb_set_is_equal, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_I32, lime_hb_set_next, _TCFFIPOINTER); - DEFINE_HL_PRIM (_TVECTOR2, lime_hb_set_next_range, _TCFFIPOINTER _TVECTOR2); - DEFINE_HL_PRIM (_VOID, lime_hb_set_set, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_set_subtract, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_set_symmetric_difference, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_set_union, _TCFFIPOINTER _TCFFIPOINTER); - DEFINE_HL_PRIM (_VOID, lime_hb_shape, _TCFFIPOINTER _TCFFIPOINTER _ARR); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_blob_create, _F64 _I32 _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_blob_create_sub_blob, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_F64, hl_hb_blob_get_data, _TCFFIPOINTER); + DEFINE_HL_PRIM (_F64, hl_hb_blob_get_data_writable, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_blob_get_empty, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_hb_blob_get_length, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_hb_blob_is_immutable, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_blob_make_immutable, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_add, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_add_codepoints, _TCFFIPOINTER _F64 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_add_utf8, _TCFFIPOINTER _STRING _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_add_utf16, _TCFFIPOINTER _F64 _I32 _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_add_utf32, _TCFFIPOINTER _F64 _I32 _I32 _I32); + DEFINE_HL_PRIM (_BOOL, hl_hb_buffer_allocation_successful, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_clear_contents, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_buffer_create, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_hb_buffer_get_cluster_level, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_buffer_get_content_type, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_buffer_get_direction, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_buffer_get_empty, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_hb_buffer_get_flags, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TBYTES, hl_hb_buffer_get_glyph_infos, _TCFFIPOINTER _TBYTES); + DEFINE_HL_PRIM (_TBYTES, hl_hb_buffer_get_glyph_positions, _TCFFIPOINTER _TBYTES); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_buffer_get_language, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_buffer_get_length, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_buffer_get_replacement_codepoint, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_buffer_get_script, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_get_segment_properties, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_guess_segment_properties, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_normalize_glyphs, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_hb_buffer_preallocate, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_reset, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_reverse, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_reverse_clusters, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_buffer_serialize_format_from_string, _STRING); + DEFINE_HL_PRIM (_BYTES, hl_hb_buffer_serialize_format_to_string, _I32); + DEFINE_HL_PRIM (_ARR, hl_hb_buffer_serialize_list_formats, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_set_cluster_level, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_set_content_type, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_set_direction, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_set_flags, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_set_language, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_hb_buffer_set_length, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_set_replacement_codepoint, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_set_script, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_buffer_set_segment_properties, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_face_create, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_face_get_empty, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_hb_face_get_glyph_count, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_face_get_index, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_face_get_upem, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_hb_face_is_immutable, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_face_make_immutable, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_face_reference_blob, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_face_reference_table, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_face_set_glyph_count, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_face_set_index, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_face_set_upem, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_feature_from_string, _STRING); + DEFINE_HL_PRIM (_BYTES, hl_hb_feature_to_string, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_font_add_glyph_origin_for_direction, _TCFFIPOINTER _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_font_create, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_font_create_sub_font, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_font_get_empty, _NO_ARG); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_font_get_face, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TVECTOR2, hl_hb_font_get_glyph_advance_for_direction, _TCFFIPOINTER _I32 _I32 _TVECTOR2); + DEFINE_HL_PRIM (_TVECTOR2, hl_hb_font_get_glyph_kerning_for_direction, _TCFFIPOINTER _I32 _I32 _I32 _TVECTOR2); + DEFINE_HL_PRIM (_TVECTOR2, hl_hb_font_get_glyph_origin_for_direction, _TCFFIPOINTER _I32 _I32 _TVECTOR2); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_font_get_parent, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TVECTOR2, hl_hb_font_get_ppem, _TCFFIPOINTER _TVECTOR2); + DEFINE_HL_PRIM (_TVECTOR2, hl_hb_font_get_scale, _TCFFIPOINTER _TVECTOR2); + DEFINE_HL_PRIM (_I32, hl_hb_font_glyph_from_string, _TCFFIPOINTER _STRING); + DEFINE_HL_PRIM (_BYTES, hl_hb_font_glyph_to_string, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_BOOL, hl_hb_font_is_immutable, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_font_make_immutable, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_font_set_ppem, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_font_set_scale, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_font_subtract_glyph_origin_for_direction, _TCFFIPOINTER _I32 _I32 _I32 _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_ft_font_create, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_ft_font_create_referenced, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_ft_font_get_load_flags, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_ft_font_set_load_flags, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_language_from_string, _STRING); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_language_get_default, _NO_ARG); + DEFINE_HL_PRIM (_BYTES, hl_hb_language_to_string, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_hb_segment_properties_equal, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_segment_properties_hash, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_set_add, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_set_add_range, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_BOOL, hl_hb_set_allocation_successful, _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_set_clear, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_set_create, _NO_ARG); + DEFINE_HL_PRIM (_VOID, hl_hb_set_del, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_set_del_range, _TCFFIPOINTER _I32 _I32); + DEFINE_HL_PRIM (_TCFFIPOINTER, hl_hb_set_get_empty, _NO_ARG); + DEFINE_HL_PRIM (_I32, hl_hb_set_get_max, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_set_get_min, _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_set_get_population, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_hb_set_has, _TCFFIPOINTER _I32); + DEFINE_HL_PRIM (_VOID, hl_hb_set_intersect, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_set_invert, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_hb_set_is_empty, _TCFFIPOINTER); + DEFINE_HL_PRIM (_BOOL, hl_hb_set_is_equal, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_I32, hl_hb_set_next, _TCFFIPOINTER); + DEFINE_HL_PRIM (_TVECTOR2, hl_hb_set_next_range, _TCFFIPOINTER _TVECTOR2); + DEFINE_HL_PRIM (_VOID, hl_hb_set_set, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_set_subtract, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_set_symmetric_difference, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_set_union, _TCFFIPOINTER _TCFFIPOINTER); + DEFINE_HL_PRIM (_VOID, hl_hb_shape, _TCFFIPOINTER _TCFFIPOINTER _ARR); } diff --git a/src/lime/_internal/backend/native/NativeApplication.hx b/src/lime/_internal/backend/native/NativeApplication.hx index c909e1f63a..fdb53733ca 100644 --- a/src/lime/_internal/backend/native/NativeApplication.hx +++ b/src/lime/_internal/backend/native/NativeApplication.hx @@ -739,12 +739,12 @@ class NativeApplication @:keep /*private*/ class KeyEventInfo { - public var keyCode:#if neko Float #else Int #end; + public var keyCode: Float; public var modifier:Int; public var type:KeyEventType; public var windowID:Int; - public function new(type:KeyEventType = null, windowID:Int = 0, keyCode:#if neko Float #else Int #end = 0, modifier:Int = 0) + public function new(type:KeyEventType = null, windowID:Int = 0, keyCode: Float = 0, modifier:Int = 0) { this.type = type; this.windowID = windowID; diff --git a/src/lime/_internal/backend/native/NativeCFFI.hx b/src/lime/_internal/backend/native/NativeCFFI.hx index 603d433f25..774ab6a27b 100644 --- a/src/lime/_internal/backend/native/NativeCFFI.hx +++ b/src/lime/_internal/backend/native/NativeCFFI.hx @@ -755,609 +755,609 @@ class NativeCFFI #end #if hl - @:hlNative("lime", "lime_application_create") private static function lime_application_create():CFFIPointer + @:hlNative("lime", "hl_application_create") private static function lime_application_create():CFFIPointer { return null; } - @:hlNative("lime", "lime_application_event_manager_register") private static function lime_application_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_application_event_manager_register") private static function lime_application_event_manager_register(callback:Void->Void, eventObject:ApplicationEventInfo):Void {} - @:hlNative("lime", "lime_application_exec") private static function lime_application_exec(handle:CFFIPointer):Int + @:hlNative("lime", "hl_application_exec") private static function lime_application_exec(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_application_init") private static function lime_application_init(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_application_init") private static function lime_application_init(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_application_quit") private static function lime_application_quit(handle:CFFIPointer):Int + @:hlNative("lime", "hl_application_quit") private static function lime_application_quit(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_application_set_frame_rate") private static function lime_application_set_frame_rate(handle:CFFIPointer, value:Float):Void {} + @:hlNative("lime", "hl_application_set_frame_rate") private static function lime_application_set_frame_rate(handle:CFFIPointer, value:Float):Void {} - @:hlNative("lime", "lime_application_update") private static function lime_application_update(handle:CFFIPointer):Bool + @:hlNative("lime", "hl_application_update") private static function lime_application_update(handle:CFFIPointer):Bool { return false; } // @:cffi private static function lime_audio_load (data:Dynamic, buffer:Dynamic):Dynamic; - @:hlNative("lime", "lime_audio_load_bytes") private static function lime_audio_load_bytes(data:Bytes, buffer:AudioBuffer):AudioBuffer + @:hlNative("lime", "hl_audio_load_bytes") private static function lime_audio_load_bytes(data:Bytes, buffer:AudioBuffer):AudioBuffer { return null; } - @:hlNative("lime", "lime_audio_load_file") private static function lime_audio_load_file(path:String, buffer:AudioBuffer):AudioBuffer + @:hlNative("lime", "hl_audio_load_file") private static function lime_audio_load_file(path:String, buffer:AudioBuffer):AudioBuffer { return null; } - @:hlNative("lime", "lime_bytes_from_data_pointer") private static function lime_bytes_from_data_pointer(data:Float, length:Int, bytes:Bytes):Bytes + @:hlNative("lime", "hl_bytes_from_data_pointer") private static function lime_bytes_from_data_pointer(data:Float, length:Int, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_bytes_get_data_pointer") private static function lime_bytes_get_data_pointer(data:Bytes):Float + @:hlNative("lime", "hl_bytes_get_data_pointer") private static function lime_bytes_get_data_pointer(data:Bytes):Float { return 0; } - @:hlNative("lime", "lime_bytes_get_data_pointer_offset") private static function lime_bytes_get_data_pointer_offset(data:Bytes, offset:Int):Float + @:hlNative("lime", "hl_bytes_get_data_pointer_offset") private static function lime_bytes_get_data_pointer_offset(data:Bytes, offset:Int):Float { return 0; } - @:hlNative("lime", "lime_bytes_read_file") private static function lime_bytes_read_file(path:String, bytes:Bytes):Bytes + @:hlNative("lime", "hl_bytes_read_file") private static function lime_bytes_read_file(path:String, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_cffi_get_native_pointer") private static function lime_cffi_get_native_pointer(ptr:CFFIPointer):Float + @:hlNative("lime", "hl_cffi_get_native_pointer") private static function lime_cffi_get_native_pointer(ptr:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_clipboard_event_manager_register") private static function lime_clipboard_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_clipboard_event_manager_register") private static function lime_clipboard_event_manager_register(callback:Void->Void, eventObject:ClipboardEventInfo):Void {} - @:hlNative("lime", "lime_clipboard_get_text") private static function lime_clipboard_get_text():hl.Bytes + @:hlNative("lime", "hl_clipboard_get_text") private static function lime_clipboard_get_text():hl.Bytes { return null; } - @:hlNative("lime", "lime_clipboard_set_text") private static function lime_clipboard_set_text(text:String):Void {} + @:hlNative("lime", "hl_clipboard_set_text") private static function lime_clipboard_set_text(text:String):Void {} - @:hlNative("lime", "lime_data_pointer_offset") private static function lime_data_pointer_offset(dataPointer:DataPointer, offset:Int):Float + @:hlNative("lime", "hl_data_pointer_offset") private static function lime_data_pointer_offset(dataPointer:DataPointer, offset:Int):Float { return 0; } - @:hlNative("lime", "lime_deflate_compress") private static function lime_deflate_compress(data:Bytes, bytes:Bytes):Bytes + @:hlNative("lime", "hl_deflate_compress") private static function lime_deflate_compress(data:Bytes, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_deflate_decompress") private static function lime_deflate_decompress(data:Bytes, bytes:Bytes):Bytes + @:hlNative("lime", "hl_deflate_decompress") private static function lime_deflate_decompress(data:Bytes, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_drop_event_manager_register") private static function lime_drop_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_drop_event_manager_register") private static function lime_drop_event_manager_register(callback:Void->Void, eventObject:DropEventInfo):Void {} - @:hlNative("lime", "lime_file_dialog_open_directory") private static function lime_file_dialog_open_directory(title:String, filter:String, + @:hlNative("lime", "hl_file_dialog_open_directory") private static function lime_file_dialog_open_directory(title:String, filter:String, defaultPath:String):hl.Bytes { return null; } - @:hlNative("lime", "lime_file_dialog_open_file") private static function lime_file_dialog_open_file(title:String, filter:String, + @:hlNative("lime", "hl_file_dialog_open_file") private static function lime_file_dialog_open_file(title:String, filter:String, defaultPath:String):hl.Bytes { return null; } - @:hlNative("lime", "lime_file_dialog_open_files") private static function lime_file_dialog_open_files(title:String, filter:String, + @:hlNative("lime", "hl_file_dialog_open_files") private static function lime_file_dialog_open_files(title:String, filter:String, defaultPath:String):hl.NativeArray { return null; } - @:hlNative("lime", "lime_file_dialog_save_file") private static function lime_file_dialog_save_file(title:String, filter:String, + @:hlNative("lime", "hl_file_dialog_save_file") private static function lime_file_dialog_save_file(title:String, filter:String, defaultPath:String):hl.Bytes { return null; } - @:hlNative("lime", "lime_file_watcher_create") private static function lime_file_watcher_create(callback:Dynamic):CFFIPointer + @:hlNative("lime", "hl_file_watcher_create") private static function lime_file_watcher_create(callback:Dynamic):CFFIPointer { return null; } - @:hlNative("lime", "lime_file_watcher_add_directory") private static function lime_file_watcher_add_directory(handle:CFFIPointer, path:String, + @:hlNative("lime", "hl_file_watcher_add_directory") private static function lime_file_watcher_add_directory(handle:CFFIPointer, path:String, recursive:Bool):Int { return 0; } - @:hlNative("lime", "lime_file_watcher_remove_directory") private static function lime_file_watcher_remove_directory(handle:CFFIPointer, + @:hlNative("lime", "hl_file_watcher_remove_directory") private static function lime_file_watcher_remove_directory(handle:CFFIPointer, watchID:Int):Void {} - @:hlNative("lime", "lime_file_watcher_update") private static function lime_file_watcher_update(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_file_watcher_update") private static function lime_file_watcher_update(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_font_get_ascender") private static function lime_font_get_ascender(handle:CFFIPointer):Int + @:hlNative("lime", "hl_font_get_ascender") private static function lime_font_get_ascender(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_font_get_descender") private static function lime_font_get_descender(handle:CFFIPointer):Int + @:hlNative("lime", "hl_font_get_descender") private static function lime_font_get_descender(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_font_get_family_name") private static function lime_font_get_family_name(handle:CFFIPointer):hl.Bytes + @:hlNative("lime", "hl_font_get_family_name") private static function lime_font_get_family_name(handle:CFFIPointer):hl.Bytes { return null; } - @:hlNative("lime", "lime_font_get_glyph_index") private static function lime_font_get_glyph_index(handle:CFFIPointer, character:String):Int + @:hlNative("lime", "hl_font_get_glyph_index") private static function lime_font_get_glyph_index(handle:CFFIPointer, character:String):Int { return 0; } - @:hlNative("lime", "lime_font_get_glyph_indices") private static function lime_font_get_glyph_indices(handle:CFFIPointer, + @:hlNative("lime", "hl_font_get_glyph_indices") private static function lime_font_get_glyph_indices(handle:CFFIPointer, characters:String):hl.NativeArray { return null; } - @:hlNative("lime", "lime_font_get_glyph_metrics") private static function lime_font_get_glyph_metrics(handle:CFFIPointer, index:Int):Dynamic + @:hlNative("lime", "hl_font_get_glyph_metrics") private static function lime_font_get_glyph_metrics(handle:CFFIPointer, index:Int):Dynamic { return null; } - @:hlNative("lime", "lime_font_get_height") private static function lime_font_get_height(handle:CFFIPointer):Int + @:hlNative("lime", "hl_font_get_height") private static function lime_font_get_height(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_font_get_num_glyphs") private static function lime_font_get_num_glyphs(handle:CFFIPointer):Int + @:hlNative("lime", "hl_font_get_num_glyphs") private static function lime_font_get_num_glyphs(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_font_get_underline_position") private static function lime_font_get_underline_position(handle:CFFIPointer):Int + @:hlNative("lime", "hl_font_get_underline_position") private static function lime_font_get_underline_position(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_font_get_underline_thickness") private static function lime_font_get_underline_thickness(handle:CFFIPointer):Int + @:hlNative("lime", "hl_font_get_underline_thickness") private static function lime_font_get_underline_thickness(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_font_get_units_per_em") private static function lime_font_get_units_per_em(handle:CFFIPointer):Int + @:hlNative("lime", "hl_font_get_units_per_em") private static function lime_font_get_units_per_em(handle:CFFIPointer):Int { return 0; } // @:hlNative("lime", "") private static function lime_font_load (data:Dynamic):Dynamic { return null; } - @:hlNative("lime", "lime_font_load_bytes") private static function lime_font_load_bytes(data:Bytes):CFFIPointer + @:hlNative("lime", "hl_font_load_bytes") private static function lime_font_load_bytes(data:Bytes):CFFIPointer { return null; } - @:hlNative("lime", "lime_font_load_file") private static function lime_font_load_file(path:String):CFFIPointer + @:hlNative("lime", "hl_font_load_file") private static function lime_font_load_file(path:String):CFFIPointer { return null; } - @:hlNative("lime", "lime_font_outline_decompose") private static function lime_font_outline_decompose(handle:CFFIPointer, size:Int):Dynamic + @:hlNative("lime", "hl_font_outline_decompose") private static function lime_font_outline_decompose(handle:CFFIPointer, size:Int):Dynamic { return null; } - @:hlNative("lime", "lime_font_render_glyph") private static function lime_font_render_glyph(handle:CFFIPointer, index:Int, data:Bytes):Bytes + @:hlNative("lime", "hl_font_render_glyph") private static function lime_font_render_glyph(handle:CFFIPointer, index:Int, data:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_font_render_glyphs") private static function lime_font_render_glyphs(handle:CFFIPointer, indices:hl.NativeArray, + @:hlNative("lime", "hl_font_render_glyphs") private static function lime_font_render_glyphs(handle:CFFIPointer, indices:hl.NativeArray, data:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_font_set_size") private static function lime_font_set_size(handle:CFFIPointer, size:Int):Void {} + @:hlNative("lime", "hl_font_set_size") private static function lime_font_set_size(handle:CFFIPointer, size:Int):Void {} - @:hlNative("lime", "lime_gamepad_add_mappings") private static function lime_gamepad_add_mappings(mappings:hl.NativeArray):Void {} + @:hlNative("lime", "hl_gamepad_add_mappings") private static function lime_gamepad_add_mappings(mappings:hl.NativeArray):Void {} - @:hlNative("lime", "lime_gamepad_get_device_guid") private static function lime_gamepad_get_device_guid(id:Int):hl.Bytes + @:hlNative("lime", "hl_gamepad_get_device_guid") private static function lime_gamepad_get_device_guid(id:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_gamepad_get_device_name") private static function lime_gamepad_get_device_name(id:Int):hl.Bytes + @:hlNative("lime", "hl_gamepad_get_device_name") private static function lime_gamepad_get_device_name(id:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_gamepad_event_manager_register") private static function lime_gamepad_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_gamepad_event_manager_register") private static function lime_gamepad_event_manager_register(callback:Void->Void, eventObject:GamepadEventInfo):Void {} - @:hlNative("lime", "lime_gzip_compress") private static function lime_gzip_compress(data:Bytes, bytes:Bytes):Bytes + @:hlNative("lime", "hl_gzip_compress") private static function lime_gzip_compress(data:Bytes, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_gzip_decompress") private static function lime_gzip_decompress(data:Bytes, bytes:Bytes):Bytes + @:hlNative("lime", "hl_gzip_decompress") private static function lime_gzip_decompress(data:Bytes, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_haptic_vibrate") private static function lime_haptic_vibrate(period:Int, duration:Int):Void {} + @:hlNative("lime", "hl_haptic_vibrate") private static function lime_haptic_vibrate(period:Int, duration:Int):Void {} - @:hlNative("lime", "lime_image_encode") private static function lime_image_encode(data:ImageBuffer, type:Int, quality:Int, bytes:Bytes):Bytes + @:hlNative("lime", "hl_image_encode") private static function lime_image_encode(data:ImageBuffer, type:Int, quality:Int, bytes:Bytes):Bytes { return null; } // @:cffi private static function lime_image_load (data:Dynamic, buffer:Dynamic):Dynamic; - @:hlNative("lime", "lime_image_load_bytes") private static function lime_image_load_bytes(data:Bytes, buffer:ImageBuffer):ImageBuffer + @:hlNative("lime", "hl_image_load_bytes") private static function lime_image_load_bytes(data:Bytes, buffer:ImageBuffer):ImageBuffer { return null; } - @:hlNative("lime", "lime_image_load_file") private static function lime_image_load_file(path:String, buffer:ImageBuffer):ImageBuffer + @:hlNative("lime", "hl_image_load_file") private static function lime_image_load_file(path:String, buffer:ImageBuffer):ImageBuffer { return null; } - @:hlNative("lime", "lime_image_data_util_color_transform") private static function lime_image_data_util_color_transform(image:Image, rect:Rectangle, + @:hlNative("lime", "hl_image_data_util_color_transform") private static function lime_image_data_util_color_transform(image:Image, rect:Rectangle, colorMatrix:ArrayBufferView):Void {} // @:cffi private static function lime_image_data_util_copy_channel (image:Dynamic, sourceImage:Dynamic, sourceRect:Dynamic, destPoint:Dynamic, srcChannel:Int, destChannel:Int):Void; - @:hlNative("lime", "lime_image_data_util_copy_channel") private static function lime_image_data_util_copy_channel(image:Image, sourceImage:Image, + @:hlNative("lime", "hl_image_data_util_copy_channel") private static function lime_image_data_util_copy_channel(image:Image, sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, srcChannel:Int, destChannel:Int):Void {} // @:cffi private static function lime_image_data_util_copy_pixels (image:Dynamic, sourceImage:Dynamic, sourceRect:Dynamic, destPoint:Dynamic, alphaImage:Dynamic, alphaPoint:Dynamic, mergeAlpha:Bool):Void; - @:hlNative("lime", "lime_image_data_util_copy_pixels") private static function lime_image_data_util_copy_pixels(image:Image, sourceImage:Image, + @:hlNative("lime", "hl_image_data_util_copy_pixels") private static function lime_image_data_util_copy_pixels(image:Image, sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, alphaImage:Image, alphaPoint:Vector2, mergeAlpha:Bool):Void {} - @:hlNative("lime", "lime_image_data_util_fill_rect") private static function lime_image_data_util_fill_rect(image:Image, rect:Rectangle, rg:Int, + @:hlNative("lime", "hl_image_data_util_fill_rect") private static function lime_image_data_util_fill_rect(image:Image, rect:Rectangle, rg:Int, ba:Int):Void {} - @:hlNative("lime", "lime_image_data_util_flood_fill") private static function lime_image_data_util_flood_fill(image:Image, x:Int, y:Int, rg:Int, + @:hlNative("lime", "hl_image_data_util_flood_fill") private static function lime_image_data_util_flood_fill(image:Image, x:Int, y:Int, rg:Int, ba:Int):Void {} - @:hlNative("lime", "lime_image_data_util_get_pixels") private static function lime_image_data_util_get_pixels(image:Image, rect:Rectangle, format:Int, + @:hlNative("lime", "hl_image_data_util_get_pixels") private static function lime_image_data_util_get_pixels(image:Image, rect:Rectangle, format:Int, bytes:Bytes):Void {} // @:cffi private static function lime_image_data_util_merge (image:Dynamic, sourceImage:Dynamic, sourceRect:Dynamic, destPoint:Dynamic, redMultiplier:Int, greenMultiplier:Int, blueMultiplier:Int, alphaMultiplier:Int):Void; - @:hlNative("lime", "lime_image_data_util_merge") private static function lime_image_data_util_merge(image:Image, sourceImage:Image, sourceRect:Rectangle, + @:hlNative("lime", "hl_image_data_util_merge") private static function lime_image_data_util_merge(image:Image, sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, redMultiplier:Int, greenMultiplier:Int, blueMultiplier:Int, alphaMultiplier:Int):Void {} - @:hlNative("lime", "lime_image_data_util_multiply_alpha") private static function lime_image_data_util_multiply_alpha(image:Image):Void {} + @:hlNative("lime", "hl_image_data_util_multiply_alpha") private static function lime_image_data_util_multiply_alpha(image:Image):Void {} - @:hlNative("lime", "lime_image_data_util_resize") private static function lime_image_data_util_resize(image:Image, buffer:ImageBuffer, width:Int, + @:hlNative("lime", "hl_image_data_util_resize") private static function lime_image_data_util_resize(image:Image, buffer:ImageBuffer, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_image_data_util_set_format") private static function lime_image_data_util_set_format(image:Image, format:Int):Void {} + @:hlNative("lime", "hl_image_data_util_set_format") private static function lime_image_data_util_set_format(image:Image, format:Int):Void {} // @:cffi private static function lime_image_data_util_set_pixels (image:Dynamic, rect:Dynamic, bytes:Dynamic, offset:Int, format:Int, endian:Int):Void; - @:hlNative("lime", "lime_image_data_util_set_pixels") private static function lime_image_data_util_set_pixels(image:Image, rect:Rectangle, bytes:Bytes, + @:hlNative("lime", "hl_image_data_util_set_pixels") private static function lime_image_data_util_set_pixels(image:Image, rect:Rectangle, bytes:Bytes, offset:Int, format:Int, endian:Int):Void {} // @:cffi private static function lime_image_data_util_threshold (image:Dynamic, sourceImage:Dynamic, sourceRect:Dynamic, destPoint:Dynamic, operation:Int, thresholdRG:Int, thresholdBA:Int, colorRG:Int, colorBA:Int, maskRG:Int, maskBA:Int, copySource:Bool):Int; - @:hlNative("lime", "lime_image_data_util_threshold") private static function lime_image_data_util_threshold(image:Image, sourceImage:Image, + @:hlNative("lime", "hl_image_data_util_threshold") private static function lime_image_data_util_threshold(image:Image, sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, operation:Int, thresholdRG:Int, thresholdBA:Int, colorRG:Int, colorBA:Int, maskRG:Int, maskBA:Int, copySource:Bool):Int { return 0; } - @:hlNative("lime", "lime_image_data_util_unmultiply_alpha") private static function lime_image_data_util_unmultiply_alpha(image:Image):Void {} + @:hlNative("lime", "hl_image_data_util_unmultiply_alpha") private static function lime_image_data_util_unmultiply_alpha(image:Image):Void {} - @:hlNative("lime", "lime_joystick_get_device_guid") private static function lime_joystick_get_device_guid(id:Int):hl.Bytes + @:hlNative("lime", "hl_joystick_get_device_guid") private static function lime_joystick_get_device_guid(id:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_joystick_get_device_name") private static function lime_joystick_get_device_name(id:Int):hl.Bytes + @:hlNative("lime", "hl_joystick_get_device_name") private static function lime_joystick_get_device_name(id:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_joystick_get_num_axes") private static function lime_joystick_get_num_axes(id:Int):Int + @:hlNative("lime", "hl_joystick_get_num_axes") private static function lime_joystick_get_num_axes(id:Int):Int { return 0; } - @:hlNative("lime", "lime_joystick_get_num_buttons") private static function lime_joystick_get_num_buttons(id:Int):Int + @:hlNative("lime", "hl_joystick_get_num_buttons") private static function lime_joystick_get_num_buttons(id:Int):Int { return 0; } - @:hlNative("lime", "lime_joystick_get_num_hats") private static function lime_joystick_get_num_hats(id:Int):Int + @:hlNative("lime", "hl_joystick_get_num_hats") private static function lime_joystick_get_num_hats(id:Int):Int { return 0; } - @:hlNative("lime", "lime_joystick_get_num_trackballs") private static function lime_joystick_get_num_trackballs(id:Int):Int + @:hlNative("lime", "hl_joystick_get_num_trackballs") private static function lime_joystick_get_num_trackballs(id:Int):Int { return 0; } - @:hlNative("lime", "lime_joystick_event_manager_register") private static function lime_joystick_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_joystick_event_manager_register") private static function lime_joystick_event_manager_register(callback:Void->Void, eventObject:JoystickEventInfo):Void {} - @:hlNative("lime", "lime_jpeg_decode_bytes") private static function lime_jpeg_decode_bytes(data:Bytes, decodeData:Bool, buffer:ImageBuffer):ImageBuffer + @:hlNative("lime", "hl_jpeg_decode_bytes") private static function lime_jpeg_decode_bytes(data:Bytes, decodeData:Bool, buffer:ImageBuffer):ImageBuffer { return null; } - @:hlNative("lime", "lime_jpeg_decode_file") private static function lime_jpeg_decode_file(path:String, decodeData:Bool, buffer:ImageBuffer):ImageBuffer + @:hlNative("lime", "hl_jpeg_decode_file") private static function lime_jpeg_decode_file(path:String, decodeData:Bool, buffer:ImageBuffer):ImageBuffer { return null; } - @:hlNative("lime", "lime_key_code_from_scan_code") private static function lime_key_code_from_scan_code(scanCode:hl.F32):hl.F32 + @:hlNative("lime", "hl_key_code_from_scan_code") private static function lime_key_code_from_scan_code(scanCode:hl.F32):hl.F32 { return 0; } - @:hlNative("lime", "lime_key_code_to_scan_code") private static function lime_key_code_to_scan_code(keyCode:hl.F32):hl.F32 + @:hlNative("lime", "hl_key_code_to_scan_code") private static function lime_key_code_to_scan_code(keyCode:hl.F32):hl.F32 { return 0; } - @:hlNative("lime", "lime_key_event_manager_register") private static function lime_key_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_key_event_manager_register") private static function lime_key_event_manager_register(callback:Void->Void, eventObject:KeyEventInfo):Void {} - @:hlNative("lime", "lime_lzma_compress") private static function lime_lzma_compress(data:Bytes, bytes:Bytes):Bytes + @:hlNative("lime", "hl_lzma_compress") private static function lime_lzma_compress(data:Bytes, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_lzma_decompress") private static function lime_lzma_decompress(data:Bytes, bytes:Bytes):Bytes + @:hlNative("lime", "hl_lzma_decompress") private static function lime_lzma_decompress(data:Bytes, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_mouse_event_manager_register") private static function lime_mouse_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_mouse_event_manager_register") private static function lime_mouse_event_manager_register(callback:Void->Void, eventObject:MouseEventInfo):Void {} // @:cffi private static function lime_neko_execute (module:String):Void; - @:hlNative("lime", "lime_png_decode_bytes") private static function lime_png_decode_bytes(data:Bytes, decodeData:Bool, buffer:ImageBuffer):ImageBuffer + @:hlNative("lime", "hl_png_decode_bytes") private static function lime_png_decode_bytes(data:Bytes, decodeData:Bool, buffer:ImageBuffer):ImageBuffer { return null; } - @:hlNative("lime", "lime_png_decode_file") private static function lime_png_decode_file(path:String, decodeData:Bool, buffer:ImageBuffer):ImageBuffer + @:hlNative("lime", "hl_png_decode_file") private static function lime_png_decode_file(path:String, decodeData:Bool, buffer:ImageBuffer):ImageBuffer { return null; } - @:hlNative("lime", "lime_render_event_manager_register") private static function lime_render_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_render_event_manager_register") private static function lime_render_event_manager_register(callback:Void->Void, eventObject:RenderEventInfo):Void {} - @:hlNative("lime", "lime_sensor_event_manager_register") private static function lime_sensor_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_sensor_event_manager_register") private static function lime_sensor_event_manager_register(callback:Void->Void, eventObject:SensorEventInfo):Void {} - @:hlNative("lime", "lime_system_get_allow_screen_timeout") private static function lime_system_get_allow_screen_timeout():Bool + @:hlNative("lime", "hl_system_get_allow_screen_timeout") private static function lime_system_get_allow_screen_timeout():Bool { return false; } - @:hlNative("lime", "lime_system_set_allow_screen_timeout") private static function lime_system_set_allow_screen_timeout(value:Bool):Bool + @:hlNative("lime", "hl_system_set_allow_screen_timeout") private static function lime_system_set_allow_screen_timeout(value:Bool):Bool { return false; } - @:hlNative("lime", "lime_system_get_device_model") private static function lime_system_get_device_model():hl.Bytes + @:hlNative("lime", "hl_system_get_device_model") private static function lime_system_get_device_model():hl.Bytes { return null; } - @:hlNative("lime", "lime_system_get_device_vendor") private static function lime_system_get_device_vendor():hl.Bytes + @:hlNative("lime", "hl_system_get_device_vendor") private static function lime_system_get_device_vendor():hl.Bytes { return null; } - @:hlNative("lime", "lime_system_get_directory") private static function lime_system_get_directory(type:Int, company:String, title:String):hl.Bytes + @:hlNative("lime", "hl_system_get_directory") private static function lime_system_get_directory(type:Int, company:String, title:String):hl.Bytes { return null; } - @:hlNative("lime", "lime_system_get_display") private static function lime_system_get_display(index:Int):Dynamic + @:hlNative("lime", "hl_system_get_display") private static function lime_system_get_display(index:Int):Dynamic { return null; } - @:hlNative("lime", "lime_system_get_ios_tablet") private static function lime_system_get_ios_tablet():Bool + @:hlNative("lime", "hl_system_get_ios_tablet") private static function lime_system_get_ios_tablet():Bool { return false; } - @:hlNative("lime", "lime_system_get_num_displays") private static function lime_system_get_num_displays():Int + @:hlNative("lime", "hl_system_get_num_displays") private static function lime_system_get_num_displays():Int { return 0; } - @:hlNative("lime", "lime_system_get_platform_label") private static function lime_system_get_platform_label():hl.Bytes + @:hlNative("lime", "hl_system_get_platform_label") private static function lime_system_get_platform_label():hl.Bytes { return null; } - @:hlNative("lime", "lime_system_get_platform_name") private static function lime_system_get_platform_name():hl.Bytes + @:hlNative("lime", "hl_system_get_platform_name") private static function lime_system_get_platform_name():hl.Bytes { return null; } - @:hlNative("lime", "lime_system_get_platform_version") private static function lime_system_get_platform_version():hl.Bytes + @:hlNative("lime", "hl_system_get_platform_version") private static function lime_system_get_platform_version():hl.Bytes { return null; } - @:hlNative("lime", "lime_system_get_timer") private static function lime_system_get_timer():Float + @:hlNative("lime", "hl_system_get_timer") private static function lime_system_get_timer():Float { return 0; } - @:hlNative("lime", "lime_system_open_file") private static function lime_system_open_file(path:String):Void {} + @:hlNative("lime", "hl_system_open_file") private static function lime_system_open_file(path:String):Void {} - @:hlNative("lime", "lime_system_open_url") private static function lime_system_open_url(url:String, target:String):Void {} + @:hlNative("lime", "hl_system_open_url") private static function lime_system_open_url(url:String, target:String):Void {} - @:hlNative("lime", "lime_text_event_manager_register") private static function lime_text_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_text_event_manager_register") private static function lime_text_event_manager_register(callback:Void->Void, eventObject:TextEventInfo):Void {} - @:hlNative("lime", "lime_touch_event_manager_register") private static function lime_touch_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_touch_event_manager_register") private static function lime_touch_event_manager_register(callback:Void->Void, eventObject:TouchEventInfo):Void {} - @:hlNative("lime", "lime_window_alert") private static function lime_window_alert(handle:CFFIPointer, message:String, title:String):Void {} + @:hlNative("lime", "hl_window_alert") private static function lime_window_alert(handle:CFFIPointer, message:String, title:String):Void {} - @:hlNative("lime", "lime_window_close") private static function lime_window_close(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_window_close") private static function lime_window_close(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_window_context_flip") private static function lime_window_context_flip(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_window_context_flip") private static function lime_window_context_flip(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_window_context_lock") private static function lime_window_context_lock(handle:CFFIPointer):Dynamic + @:hlNative("lime", "hl_window_context_lock") private static function lime_window_context_lock(handle:CFFIPointer):Dynamic { return null; } - @:hlNative("lime", "lime_window_context_make_current") private static function lime_window_context_make_current(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_window_context_make_current") private static function lime_window_context_make_current(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_window_context_unlock") private static function lime_window_context_unlock(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_window_context_unlock") private static function lime_window_context_unlock(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_window_create") private static function lime_window_create(application:CFFIPointer, width:Int, height:Int, flags:Int, + @:hlNative("lime", "hl_window_create") private static function lime_window_create(application:CFFIPointer, width:Int, height:Int, flags:Int, title:String):CFFIPointer { return null; } - @:hlNative("lime", "lime_window_focus") private static function lime_window_focus(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_window_focus") private static function lime_window_focus(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_window_get_context") private static function lime_window_get_context(handle:CFFIPointer):Float + @:hlNative("lime", "hl_window_get_context") private static function lime_window_get_context(handle:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_window_get_context_type") private static function lime_window_get_context_type(handle:CFFIPointer):hl.Bytes + @:hlNative("lime", "hl_window_get_context_type") private static function lime_window_get_context_type(handle:CFFIPointer):hl.Bytes { return null; } - @:hlNative("lime", "lime_window_get_display") private static function lime_window_get_display(handle:CFFIPointer):Int + @:hlNative("lime", "hl_window_get_display") private static function lime_window_get_display(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_window_get_display_mode") private static function lime_window_get_display_mode(handle:CFFIPointer, result:DisplayMode):Void {} + @:hlNative("lime", "hl_window_get_display_mode") private static function lime_window_get_display_mode(handle:CFFIPointer, result:DisplayMode):Void {} - @:hlNative("lime", "lime_window_get_height") private static function lime_window_get_height(handle:CFFIPointer):Int + @:hlNative("lime", "hl_window_get_height") private static function lime_window_get_height(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_window_get_id") private static function lime_window_get_id(handle:CFFIPointer):Int + @:hlNative("lime", "hl_window_get_id") private static function lime_window_get_id(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_window_get_mouse_lock") private static function lime_window_get_mouse_lock(handle:CFFIPointer):Bool + @:hlNative("lime", "hl_window_get_mouse_lock") private static function lime_window_get_mouse_lock(handle:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_window_get_scale") private static function lime_window_get_scale(handle:CFFIPointer):Float + @:hlNative("lime", "hl_window_get_scale") private static function lime_window_get_scale(handle:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_window_get_text_input_enabled") private static function lime_window_get_text_input_enabled(handle:CFFIPointer):Bool + @:hlNative("lime", "hl_window_get_text_input_enabled") private static function lime_window_get_text_input_enabled(handle:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_window_get_width") private static function lime_window_get_width(handle:CFFIPointer):Int + @:hlNative("lime", "hl_window_get_width") private static function lime_window_get_width(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_window_get_x") private static function lime_window_get_x(handle:CFFIPointer):Int + @:hlNative("lime", "hl_window_get_x") private static function lime_window_get_x(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_window_get_y") private static function lime_window_get_y(handle:CFFIPointer):Int + @:hlNative("lime", "hl_window_get_y") private static function lime_window_get_y(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_window_move") private static function lime_window_move(handle:CFFIPointer, x:Int, y:Int):Void {} + @:hlNative("lime", "hl_window_move") private static function lime_window_move(handle:CFFIPointer, x:Int, y:Int):Void {} - @:hlNative("lime", "lime_window_read_pixels") private static function lime_window_read_pixels(handle:CFFIPointer, rect:Rectangle, + @:hlNative("lime", "hl_window_read_pixels") private static function lime_window_read_pixels(handle:CFFIPointer, rect:Rectangle, imageBuffer:ImageBuffer):Dynamic { return null; } - @:hlNative("lime", "lime_window_resize") private static function lime_window_resize(handle:CFFIPointer, width:Int, height:Int):Void {} + @:hlNative("lime", "hl_window_resize") private static function lime_window_resize(handle:CFFIPointer, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_window_set_borderless") private static function lime_window_set_borderless(handle:CFFIPointer, borderless:Bool):Bool + @:hlNative("lime", "hl_window_set_borderless") private static function lime_window_set_borderless(handle:CFFIPointer, borderless:Bool):Bool { return false; } - @:hlNative("lime", "lime_window_set_cursor") private static function lime_window_set_cursor(handle:CFFIPointer, cursor:Int):Void {} + @:hlNative("lime", "hl_window_set_cursor") private static function lime_window_set_cursor(handle:CFFIPointer, cursor:Int):Void {} - @:hlNative("lime", "lime_window_set_display_mode") private static function lime_window_set_display_mode(handle:CFFIPointer, displayMode:DisplayMode, + @:hlNative("lime", "hl_window_set_display_mode") private static function lime_window_set_display_mode(handle:CFFIPointer, displayMode:DisplayMode, result:DisplayMode):Void {} - @:hlNative("lime", "lime_window_set_fullscreen") private static function lime_window_set_fullscreen(handle:CFFIPointer, fullscreen:Bool):Bool + @:hlNative("lime", "hl_window_set_fullscreen") private static function lime_window_set_fullscreen(handle:CFFIPointer, fullscreen:Bool):Bool { return false; } - @:hlNative("lime", "lime_window_set_icon") private static function lime_window_set_icon(handle:CFFIPointer, buffer:ImageBuffer):Void {} + @:hlNative("lime", "hl_window_set_icon") private static function lime_window_set_icon(handle:CFFIPointer, buffer:ImageBuffer):Void {} - @:hlNative("lime", "lime_window_set_maximized") private static function lime_window_set_maximized(handle:CFFIPointer, maximized:Bool):Bool + @:hlNative("lime", "hl_window_set_maximized") private static function lime_window_set_maximized(handle:CFFIPointer, maximized:Bool):Bool { return false; } - @:hlNative("lime", "lime_window_set_minimized") private static function lime_window_set_minimized(handle:CFFIPointer, minimized:Bool):Bool + @:hlNative("lime", "hl_window_set_minimized") private static function lime_window_set_minimized(handle:CFFIPointer, minimized:Bool):Bool { return false; } - @:hlNative("lime", "lime_window_set_mouse_lock") private static function lime_window_set_mouse_lock(handle:CFFIPointer, mouseLock:Bool):Void {} + @:hlNative("lime", "hl_window_set_mouse_lock") private static function lime_window_set_mouse_lock(handle:CFFIPointer, mouseLock:Bool):Void {} - @:hlNative("lime", "lime_window_set_resizable") private static function lime_window_set_resizable(handle:CFFIPointer, resizable:Bool):Bool + @:hlNative("lime", "hl_window_set_resizable") private static function lime_window_set_resizable(handle:CFFIPointer, resizable:Bool):Bool { return false; } - @:hlNative("lime", "lime_window_set_text_input_enabled") private static function lime_window_set_text_input_enabled(handle:CFFIPointer, + @:hlNative("lime", "hl_window_set_text_input_enabled") private static function lime_window_set_text_input_enabled(handle:CFFIPointer, enabled:Bool):Void {} - @:hlNative("lime", "lime_window_set_title") private static function lime_window_set_title(handle:CFFIPointer, title:String):String + @:hlNative("lime", "hl_window_set_title") private static function lime_window_set_title(handle:CFFIPointer, title:String):String { return null; } - @:hlNative("lime", "lime_window_warp_mouse") private static function lime_window_warp_mouse(handle:CFFIPointer, x:Int, y:Int):Void {} + @:hlNative("lime", "hl_window_warp_mouse") private static function lime_window_warp_mouse(handle:CFFIPointer, x:Int, y:Int):Void {} - @:hlNative("lime", "lime_window_event_manager_register") private static function lime_window_event_manager_register(callback:Void->Void, + @:hlNative("lime", "hl_window_event_manager_register") private static function lime_window_event_manager_register(callback:Void->Void, eventObject:WindowEventInfo):Void {} - @:hlNative("lime", "lime_zlib_compress") private static function lime_zlib_compress(data:Bytes, bytes:Bytes):Bytes + @:hlNative("lime", "hl_zlib_compress") private static function lime_zlib_compress(data:Bytes, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_zlib_decompress") private static function lime_zlib_decompress(data:Bytes, bytes:Bytes):Bytes + @:hlNative("lime", "hl_zlib_decompress") private static function lime_zlib_decompress(data:Bytes, bytes:Bytes):Bytes { return null; } @@ -1924,398 +1924,398 @@ class NativeCFFI #end #if hl - @:hlNative("lime", "lime_al_buffer_data") private static function lime_al_buffer_data(buffer:CFFIPointer, format:Int, data:ArrayBufferView, size:Int, + @:hlNative("lime", "hl_al_buffer_data") private static function lime_al_buffer_data(buffer:CFFIPointer, format:Int, data:ArrayBufferView, size:Int, freq:Int):Void {} - @:hlNative("lime", "lime_al_buffer3f") private static function lime_al_buffer3f(buffer:CFFIPointer, param:Int, value1:hl.F32, value2:hl.F32, + @:hlNative("lime", "hl_al_buffer3f") private static function lime_al_buffer3f(buffer:CFFIPointer, param:Int, value1:hl.F32, value2:hl.F32, value3:hl.F32):Void {} - @:hlNative("lime", "lime_al_buffer3i") private static function lime_al_buffer3i(buffer:CFFIPointer, param:Int, value1:Int, value2:Int, value3:Int):Void {} + @:hlNative("lime", "hl_al_buffer3i") private static function lime_al_buffer3i(buffer:CFFIPointer, param:Int, value1:Int, value2:Int, value3:Int):Void {} - @:hlNative("lime", "lime_al_bufferf") private static function lime_al_bufferf(buffer:CFFIPointer, param:Int, value:hl.F32):Void {} + @:hlNative("lime", "hl_al_bufferf") private static function lime_al_bufferf(buffer:CFFIPointer, param:Int, value:hl.F32):Void {} - @:hlNative("lime", "lime_al_bufferfv") private static function lime_al_bufferfv(buffer:CFFIPointer, param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_bufferfv") private static function lime_al_bufferfv(buffer:CFFIPointer, param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_bufferi") private static function lime_al_bufferi(buffer:CFFIPointer, param:Int, value:Int):Void {} + @:hlNative("lime", "hl_al_bufferi") private static function lime_al_bufferi(buffer:CFFIPointer, param:Int, value:Int):Void {} - @:hlNative("lime", "lime_al_bufferiv") private static function lime_al_bufferiv(buffer:CFFIPointer, param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_bufferiv") private static function lime_al_bufferiv(buffer:CFFIPointer, param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_cleanup") private static function lime_al_cleanup():Void {} + @:hlNative("lime", "hl_al_cleanup") private static function lime_al_cleanup():Void {} - @:hlNative("lime", "lime_al_delete_buffer") private static function lime_al_delete_buffer(buffer:CFFIPointer):Void {} + @:hlNative("lime", "hl_al_delete_buffer") private static function lime_al_delete_buffer(buffer:CFFIPointer):Void {} - @:hlNative("lime", "lime_al_delete_buffers") private static function lime_al_delete_buffers(n:Int, buffers:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_delete_buffers") private static function lime_al_delete_buffers(n:Int, buffers:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_delete_source") private static function lime_al_delete_source(source:CFFIPointer):Void {} + @:hlNative("lime", "hl_al_delete_source") private static function lime_al_delete_source(source:CFFIPointer):Void {} - @:hlNative("lime", "lime_al_delete_sources") private static function lime_al_delete_sources(n:Int, sources:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_delete_sources") private static function lime_al_delete_sources(n:Int, sources:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_disable") private static function lime_al_disable(capability:Int):Void {} + @:hlNative("lime", "hl_al_disable") private static function lime_al_disable(capability:Int):Void {} - @:hlNative("lime", "lime_al_distance_model") private static function lime_al_distance_model(distanceModel:Int):Void {} + @:hlNative("lime", "hl_al_distance_model") private static function lime_al_distance_model(distanceModel:Int):Void {} - @:hlNative("lime", "lime_al_doppler_factor") private static function lime_al_doppler_factor(value:hl.F32):Void {} + @:hlNative("lime", "hl_al_doppler_factor") private static function lime_al_doppler_factor(value:hl.F32):Void {} - @:hlNative("lime", "lime_al_doppler_velocity") private static function lime_al_doppler_velocity(value:hl.F32):Void {} + @:hlNative("lime", "hl_al_doppler_velocity") private static function lime_al_doppler_velocity(value:hl.F32):Void {} - @:hlNative("lime", "lime_al_enable") private static function lime_al_enable(capability:Int):Void {} + @:hlNative("lime", "hl_al_enable") private static function lime_al_enable(capability:Int):Void {} - @:hlNative("lime", "lime_al_gen_source") private static function lime_al_gen_source():CFFIPointer + @:hlNative("lime", "hl_al_gen_source") private static function lime_al_gen_source():CFFIPointer { return null; } - @:hlNative("lime", "lime_al_gen_sources") private static function lime_al_gen_sources(n:Int):hl.NativeArray + @:hlNative("lime", "hl_al_gen_sources") private static function lime_al_gen_sources(n:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_boolean") private static function lime_al_get_boolean(param:Int):Bool + @:hlNative("lime", "hl_al_get_boolean") private static function lime_al_get_boolean(param:Int):Bool { return false; } - @:hlNative("lime", "lime_al_get_booleanv") private static function lime_al_get_booleanv(param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_booleanv") private static function lime_al_get_booleanv(param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_gen_buffer") private static function lime_al_gen_buffer():CFFIPointer + @:hlNative("lime", "hl_al_gen_buffer") private static function lime_al_gen_buffer():CFFIPointer { return null; } - @:hlNative("lime", "lime_al_gen_buffers") private static function lime_al_gen_buffers(n:Int):hl.NativeArray + @:hlNative("lime", "hl_al_gen_buffers") private static function lime_al_gen_buffers(n:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_buffer3f") private static function lime_al_get_buffer3f(buffer:CFFIPointer, param:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_buffer3f") private static function lime_al_get_buffer3f(buffer:CFFIPointer, param:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_buffer3i") private static function lime_al_get_buffer3i(buffer:CFFIPointer, param:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_buffer3i") private static function lime_al_get_buffer3i(buffer:CFFIPointer, param:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_bufferf") private static function lime_al_get_bufferf(buffer:CFFIPointer, param:Int):hl.F32 + @:hlNative("lime", "hl_al_get_bufferf") private static function lime_al_get_bufferf(buffer:CFFIPointer, param:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_al_get_bufferfv") private static function lime_al_get_bufferfv(buffer:CFFIPointer, param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_bufferfv") private static function lime_al_get_bufferfv(buffer:CFFIPointer, param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_bufferi") private static function lime_al_get_bufferi(buffer:CFFIPointer, param:Int):Int + @:hlNative("lime", "hl_al_get_bufferi") private static function lime_al_get_bufferi(buffer:CFFIPointer, param:Int):Int { return 0; } - @:hlNative("lime", "lime_al_get_bufferiv") private static function lime_al_get_bufferiv(buffer:CFFIPointer, param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_bufferiv") private static function lime_al_get_bufferiv(buffer:CFFIPointer, param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_double") private static function lime_al_get_double(param:Int):Float + @:hlNative("lime", "hl_al_get_double") private static function lime_al_get_double(param:Int):Float { return 0; } - @:hlNative("lime", "lime_al_get_doublev") private static function lime_al_get_doublev(param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_doublev") private static function lime_al_get_doublev(param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_enum_value") private static function lime_al_get_enum_value(ename:String):Int + @:hlNative("lime", "hl_al_get_enum_value") private static function lime_al_get_enum_value(ename:String):Int { return 0; } - @:hlNative("lime", "lime_al_get_error") private static function lime_al_get_error():Int + @:hlNative("lime", "hl_al_get_error") private static function lime_al_get_error():Int { return 0; } - @:hlNative("lime", "lime_al_get_float") private static function lime_al_get_float(param:Int):hl.F32 + @:hlNative("lime", "hl_al_get_float") private static function lime_al_get_float(param:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_al_get_floatv") private static function lime_al_get_floatv(param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_floatv") private static function lime_al_get_floatv(param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_integer") private static function lime_al_get_integer(param:Int):Int + @:hlNative("lime", "hl_al_get_integer") private static function lime_al_get_integer(param:Int):Int { return 0; } - @:hlNative("lime", "lime_al_get_integerv") private static function lime_al_get_integerv(param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_integerv") private static function lime_al_get_integerv(param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_listener3f") private static function lime_al_get_listener3f(param:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_listener3f") private static function lime_al_get_listener3f(param:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_listener3i") private static function lime_al_get_listener3i(param:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_listener3i") private static function lime_al_get_listener3i(param:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_listenerf") private static function lime_al_get_listenerf(param:Int):hl.F32 + @:hlNative("lime", "hl_al_get_listenerf") private static function lime_al_get_listenerf(param:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_al_get_listenerfv") private static function lime_al_get_listenerfv(param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_listenerfv") private static function lime_al_get_listenerfv(param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_listeneri") private static function lime_al_get_listeneri(param:Int):Int + @:hlNative("lime", "hl_al_get_listeneri") private static function lime_al_get_listeneri(param:Int):Int { return 0; } - @:hlNative("lime", "lime_al_get_listeneriv") private static function lime_al_get_listeneriv(param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_listeneriv") private static function lime_al_get_listeneriv(param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_proc_address") private static function lime_al_get_proc_address(fname:String):Float + @:hlNative("lime", "hl_al_get_proc_address") private static function lime_al_get_proc_address(fname:String):Float { return 0; } - @:hlNative("lime", "lime_al_get_source3f") private static function lime_al_get_source3f(source:CFFIPointer, param:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_source3f") private static function lime_al_get_source3f(source:CFFIPointer, param:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_source3i") private static function lime_al_get_source3i(source:CFFIPointer, param:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_source3i") private static function lime_al_get_source3i(source:CFFIPointer, param:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_sourcef") private static function lime_al_get_sourcef(source:CFFIPointer, param:Int):hl.F32 + @:hlNative("lime", "hl_al_get_sourcef") private static function lime_al_get_sourcef(source:CFFIPointer, param:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_al_get_sourcefv") private static function lime_al_get_sourcefv(source:CFFIPointer, param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_sourcefv") private static function lime_al_get_sourcefv(source:CFFIPointer, param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_sourcei") private static function lime_al_get_sourcei(source:CFFIPointer, param:Int):Dynamic + @:hlNative("lime", "hl_al_get_sourcei") private static function lime_al_get_sourcei(source:CFFIPointer, param:Int):Dynamic { return null; } - @:hlNative("lime", "lime_al_get_sourceiv") private static function lime_al_get_sourceiv(source:CFFIPointer, param:Int, count:Int):hl.NativeArray + @:hlNative("lime", "hl_al_get_sourceiv") private static function lime_al_get_sourceiv(source:CFFIPointer, param:Int, count:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_get_string") private static function lime_al_get_string(param:Int):hl.Bytes + @:hlNative("lime", "hl_al_get_string") private static function lime_al_get_string(param:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_al_is_buffer") private static function lime_al_is_buffer(buffer:CFFIPointer):Bool + @:hlNative("lime", "hl_al_is_buffer") private static function lime_al_is_buffer(buffer:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_al_is_enabled") private static function lime_al_is_enabled(capability:Int):Bool + @:hlNative("lime", "hl_al_is_enabled") private static function lime_al_is_enabled(capability:Int):Bool { return false; } - @:hlNative("lime", "lime_al_is_extension_present") private static function lime_al_is_extension_present(extname:String):Bool + @:hlNative("lime", "hl_al_is_extension_present") private static function lime_al_is_extension_present(extname:String):Bool { return false; } - @:hlNative("lime", "lime_al_is_source") private static function lime_al_is_source(source:CFFIPointer):Bool + @:hlNative("lime", "hl_al_is_source") private static function lime_al_is_source(source:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_al_listener3f") private static function lime_al_listener3f(param:Int, value1:hl.F32, value2:hl.F32, value3:hl.F32):Void {} + @:hlNative("lime", "hl_al_listener3f") private static function lime_al_listener3f(param:Int, value1:hl.F32, value2:hl.F32, value3:hl.F32):Void {} - @:hlNative("lime", "lime_al_listener3i") private static function lime_al_listener3i(param:Int, value1:Int, value2:Int, value3:Int):Void {} + @:hlNative("lime", "hl_al_listener3i") private static function lime_al_listener3i(param:Int, value1:Int, value2:Int, value3:Int):Void {} - @:hlNative("lime", "lime_al_listenerf") private static function lime_al_listenerf(param:Int, value1:hl.F32):Void {} + @:hlNative("lime", "hl_al_listenerf") private static function lime_al_listenerf(param:Int, value1:hl.F32):Void {} - @:hlNative("lime", "lime_al_listenerfv") private static function lime_al_listenerfv(param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_listenerfv") private static function lime_al_listenerfv(param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_listeneri") private static function lime_al_listeneri(param:Int, value1:Int):Void {} + @:hlNative("lime", "hl_al_listeneri") private static function lime_al_listeneri(param:Int, value1:Int):Void {} - @:hlNative("lime", "lime_al_listeneriv") private static function lime_al_listeneriv(param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_listeneriv") private static function lime_al_listeneriv(param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_source_pause") private static function lime_al_source_pause(source:CFFIPointer):Void {} + @:hlNative("lime", "hl_al_source_pause") private static function lime_al_source_pause(source:CFFIPointer):Void {} - @:hlNative("lime", "lime_al_source_pausev") private static function lime_al_source_pausev(n:Int, sources:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_source_pausev") private static function lime_al_source_pausev(n:Int, sources:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_source_play") private static function lime_al_source_play(source:CFFIPointer):Void {} + @:hlNative("lime", "hl_al_source_play") private static function lime_al_source_play(source:CFFIPointer):Void {} - @:hlNative("lime", "lime_al_source_playv") private static function lime_al_source_playv(n:Int, sources:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_source_playv") private static function lime_al_source_playv(n:Int, sources:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_source_queue_buffers") private static function lime_al_source_queue_buffers(source:CFFIPointer, nb:Int, + @:hlNative("lime", "hl_al_source_queue_buffers") private static function lime_al_source_queue_buffers(source:CFFIPointer, nb:Int, buffers:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_source_rewind") private static function lime_al_source_rewind(source:CFFIPointer):Void {} + @:hlNative("lime", "hl_al_source_rewind") private static function lime_al_source_rewind(source:CFFIPointer):Void {} - @:hlNative("lime", "lime_al_source_rewindv") private static function lime_al_source_rewindv(n:Int, sources:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_source_rewindv") private static function lime_al_source_rewindv(n:Int, sources:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_source_stop") private static function lime_al_source_stop(source:CFFIPointer):Void {} + @:hlNative("lime", "hl_al_source_stop") private static function lime_al_source_stop(source:CFFIPointer):Void {} - @:hlNative("lime", "lime_al_source_stopv") private static function lime_al_source_stopv(n:Int, sources:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_source_stopv") private static function lime_al_source_stopv(n:Int, sources:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_source_unqueue_buffers") private static function lime_al_source_unqueue_buffers(source:CFFIPointer, + @:hlNative("lime", "hl_al_source_unqueue_buffers") private static function lime_al_source_unqueue_buffers(source:CFFIPointer, nb:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_al_source3f") private static function lime_al_source3f(source:CFFIPointer, param:Int, value1:hl.F32, value2:hl.F32, + @:hlNative("lime", "hl_al_source3f") private static function lime_al_source3f(source:CFFIPointer, param:Int, value1:hl.F32, value2:hl.F32, value3:hl.F32):Void {} - @:hlNative("lime", "lime_al_source3i") private static function lime_al_source3i(source:CFFIPointer, param:Int, value1:Dynamic, value2:Int, + @:hlNative("lime", "hl_al_source3i") private static function lime_al_source3i(source:CFFIPointer, param:Int, value1:Dynamic, value2:Int, value3:Int):Void {} - @:hlNative("lime", "lime_al_sourcef") private static function lime_al_sourcef(source:CFFIPointer, param:Int, value:hl.F32):Void {} + @:hlNative("lime", "hl_al_sourcef") private static function lime_al_sourcef(source:CFFIPointer, param:Int, value:hl.F32):Void {} - @:hlNative("lime", "lime_al_sourcefv") private static function lime_al_sourcefv(source:CFFIPointer, param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_sourcefv") private static function lime_al_sourcefv(source:CFFIPointer, param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_sourcei") private static function lime_al_sourcei(source:CFFIPointer, param:Int, value:Dynamic):Void {} + @:hlNative("lime", "hl_al_sourcei") private static function lime_al_sourcei(source:CFFIPointer, param:Int, value:Dynamic):Void {} - @:hlNative("lime", "lime_al_sourceiv") private static function lime_al_sourceiv(source:CFFIPointer, param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_sourceiv") private static function lime_al_sourceiv(source:CFFIPointer, param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_speed_of_sound") private static function lime_al_speed_of_sound(speed:hl.F32):Void {} + @:hlNative("lime", "hl_al_speed_of_sound") private static function lime_al_speed_of_sound(speed:hl.F32):Void {} - @:hlNative("lime", "lime_alc_close_device") private static function lime_alc_close_device(device:CFFIPointer):Bool + @:hlNative("lime", "hl_alc_close_device") private static function lime_alc_close_device(device:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_alc_create_context") private static function lime_alc_create_context(device:CFFIPointer, attrlist:hl.NativeArray):CFFIPointer + @:hlNative("lime", "hl_alc_create_context") private static function lime_alc_create_context(device:CFFIPointer, attrlist:hl.NativeArray):CFFIPointer { return null; } - @:hlNative("lime", "lime_alc_destroy_context") private static function lime_alc_destroy_context(context:CFFIPointer):Void {} + @:hlNative("lime", "hl_alc_destroy_context") private static function lime_alc_destroy_context(context:CFFIPointer):Void {} - @:hlNative("lime", "lime_alc_get_contexts_device") private static function lime_alc_get_contexts_device(context:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_alc_get_contexts_device") private static function lime_alc_get_contexts_device(context:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_alc_get_current_context") private static function lime_alc_get_current_context():CFFIPointer + @:hlNative("lime", "hl_alc_get_current_context") private static function lime_alc_get_current_context():CFFIPointer { return null; } - @:hlNative("lime", "lime_alc_get_error") private static function lime_alc_get_error(device:CFFIPointer):Int + @:hlNative("lime", "hl_alc_get_error") private static function lime_alc_get_error(device:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_alc_get_integerv") private static function lime_alc_get_integerv(device:CFFIPointer, param:Int, size:Int):hl.NativeArray + @:hlNative("lime", "hl_alc_get_integerv") private static function lime_alc_get_integerv(device:CFFIPointer, param:Int, size:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_alc_get_string") private static function lime_alc_get_string(device:CFFIPointer, param:Int):hl.Bytes + @:hlNative("lime", "hl_alc_get_string") private static function lime_alc_get_string(device:CFFIPointer, param:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_alc_make_context_current") private static function lime_alc_make_context_current(context:ALContext):Bool + @:hlNative("lime", "hl_alc_make_context_current") private static function lime_alc_make_context_current(context:ALContext):Bool { return false; } - @:hlNative("lime", "lime_alc_open_device") private static function lime_alc_open_device(devicename:String):CFFIPointer + @:hlNative("lime", "hl_alc_open_device") private static function lime_alc_open_device(devicename:String):CFFIPointer { return null; }; - @:hlNative("lime", "lime_alc_pause_device") private static function lime_alc_pause_device(device:ALDevice):Void {} + @:hlNative("lime", "hl_alc_pause_device") private static function lime_alc_pause_device(device:ALDevice):Void {} - @:hlNative("lime", "lime_alc_process_context") private static function lime_alc_process_context(context:ALContext):Void {} + @:hlNative("lime", "hl_alc_process_context") private static function lime_alc_process_context(context:ALContext):Void {} - @:hlNative("lime", "lime_alc_resume_device") private static function lime_alc_resume_device(device:ALDevice):Void {} + @:hlNative("lime", "hl_alc_resume_device") private static function lime_alc_resume_device(device:ALDevice):Void {} - @:hlNative("lime", "lime_alc_suspend_context") private static function lime_alc_suspend_context(context:ALContext):Void {} + @:hlNative("lime", "hl_alc_suspend_context") private static function lime_alc_suspend_context(context:ALContext):Void {} - @:hlNative("lime", "lime_al_gen_filter") private static function lime_al_gen_filter():CFFIPointer + @:hlNative("lime", "hl_al_gen_filter") private static function lime_al_gen_filter():CFFIPointer { return null; } - @:hlNative("lime", "lime_al_filteri") private static function lime_al_filteri(filter:CFFIPointer, param:Int, value:Dynamic):Void {} + @:hlNative("lime", "hl_al_filteri") private static function lime_al_filteri(filter:CFFIPointer, param:Int, value:Dynamic):Void {} - @:hlNative("lime", "lime_al_filterf") private static function lime_al_filterf(filter:CFFIPointer, param:Int, value:hl.F32):Void {} + @:hlNative("lime", "hl_al_filterf") private static function lime_al_filterf(filter:CFFIPointer, param:Int, value:hl.F32):Void {} - @:hlNative("lime", "lime_al_remove_direct_filter") private static function lime_al_remove_direct_filter(source:CFFIPointer):Void {} + @:hlNative("lime", "hl_al_remove_direct_filter") private static function lime_al_remove_direct_filter(source:CFFIPointer):Void {} - @:hlNative("lime", "lime_al_is_filter") private static function lime_al_is_filter(filter:CFFIPointer):Bool + @:hlNative("lime", "hl_al_is_filter") private static function lime_al_is_filter(filter:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_al_get_filteri") private static function lime_al_get_filteri(filter:CFFIPointer, param:Int):Int + @:hlNative("lime", "hl_al_get_filteri") private static function lime_al_get_filteri(filter:CFFIPointer, param:Int):Int { return 0; } - @:hlNative("lime", "lime_al_gen_effect") private static function lime_al_gen_effect():CFFIPointer + @:hlNative("lime", "hl_al_gen_effect") private static function lime_al_gen_effect():CFFIPointer { return null; } - @:hlNative("lime", "lime_al_effectf") private static function lime_al_effectf(effect:CFFIPointer, param:Int, value:hl.F32):Void {} + @:hlNative("lime", "hl_al_effectf") private static function lime_al_effectf(effect:CFFIPointer, param:Int, value:hl.F32):Void {} - @:hlNative("lime", "lime_al_effectfv") private static function lime_al_effectfv(effect:CFFIPointer, param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_effectfv") private static function lime_al_effectfv(effect:CFFIPointer, param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_effecti") private static function lime_al_effecti(effect:CFFIPointer, param:Int, value:Int):Void {} + @:hlNative("lime", "hl_al_effecti") private static function lime_al_effecti(effect:CFFIPointer, param:Int, value:Int):Void {} - @:hlNative("lime", "lime_al_effectiv") private static function lime_al_effectiv(effect:CFFIPointer, param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_effectiv") private static function lime_al_effectiv(effect:CFFIPointer, param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_is_effect") private static function lime_al_is_effect(effect:CFFIPointer):Bool + @:hlNative("lime", "hl_al_is_effect") private static function lime_al_is_effect(effect:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_al_gen_aux") private static function lime_al_gen_aux():CFFIPointer + @:hlNative("lime", "hl_al_gen_aux") private static function lime_al_gen_aux():CFFIPointer { return null; } - @:hlNative("lime", "lime_al_auxf") private static function lime_al_auxf(aux:CFFIPointer, param:Int, value:hl.F32):Void {} + @:hlNative("lime", "hl_al_auxf") private static function lime_al_auxf(aux:CFFIPointer, param:Int, value:hl.F32):Void {} - @:hlNative("lime", "lime_al_auxfv") private static function lime_al_auxfv(aux:CFFIPointer, param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_auxfv") private static function lime_al_auxfv(aux:CFFIPointer, param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_auxi") private static function lime_al_auxi(aux:CFFIPointer, param:Int, value:Dynamic):Void {} + @:hlNative("lime", "hl_al_auxi") private static function lime_al_auxi(aux:CFFIPointer, param:Int, value:Dynamic):Void {} - @:hlNative("lime", "lime_al_auxiv") private static function lime_al_auxiv(aux:CFFIPointer, param:Int, values:hl.NativeArray):Void {} + @:hlNative("lime", "hl_al_auxiv") private static function lime_al_auxiv(aux:CFFIPointer, param:Int, values:hl.NativeArray):Void {} - @:hlNative("lime", "lime_al_is_aux") private static function lime_al_is_aux(aux:CFFIPointer):Bool + @:hlNative("lime", "hl_al_is_aux") private static function lime_al_is_aux(aux:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_al_remove_send") private static function lime_al_remove_send(source:CFFIPointer, index:Int):Void {} + @:hlNative("lime", "hl_al_remove_send") private static function lime_al_remove_send(source:CFFIPointer, index:Int):Void {} #end #end #if (lime_cffi && !macro && lime_cairo) @@ -2878,406 +2878,406 @@ class NativeCFFI #end #if hl - @:hlNative("lime", "lime_cairo_arc") private static function lime_cairo_arc(handle:CFFIPointer, xc:Float, yc:Float, radius:Float, angle1:Float, + @:hlNative("lime", "hl_cairo_arc") private static function lime_cairo_arc(handle:CFFIPointer, xc:Float, yc:Float, radius:Float, angle1:Float, angle2:Float):Void {} - @:hlNative("lime", "lime_cairo_arc_negative") private static function lime_cairo_arc_negative(handle:CFFIPointer, xc:Float, yc:Float, radius:Float, + @:hlNative("lime", "hl_cairo_arc_negative") private static function lime_cairo_arc_negative(handle:CFFIPointer, xc:Float, yc:Float, radius:Float, angle1:Float, angle2:Float):Void {} - @:hlNative("lime", "lime_cairo_clip") private static function lime_cairo_clip(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_clip") private static function lime_cairo_clip(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_clip_preserve") private static function lime_cairo_clip_preserve(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_clip_preserve") private static function lime_cairo_clip_preserve(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_clip_extents") private static function lime_cairo_clip_extents(handle:CFFIPointer, x1:Float, y1:Float, x2:Float, + @:hlNative("lime", "hl_cairo_clip_extents") private static function lime_cairo_clip_extents(handle:CFFIPointer, x1:Float, y1:Float, x2:Float, y2:Float):Void {} - @:hlNative("lime", "lime_cairo_close_path") private static function lime_cairo_close_path(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_close_path") private static function lime_cairo_close_path(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_copy_page") private static function lime_cairo_copy_page(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_copy_page") private static function lime_cairo_copy_page(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_create") private static function lime_cairo_create(handle:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_cairo_create") private static function lime_cairo_create(handle:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_curve_to") private static function lime_cairo_curve_to(handle:CFFIPointer, x1:Float, y1:Float, x2:Float, y2:Float, + @:hlNative("lime", "hl_cairo_curve_to") private static function lime_cairo_curve_to(handle:CFFIPointer, x1:Float, y1:Float, x2:Float, y2:Float, x3:Float, y3:Float):Void {} - @:hlNative("lime", "lime_cairo_fill") private static function lime_cairo_fill(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_fill") private static function lime_cairo_fill(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_fill_extents") private static function lime_cairo_fill_extents(handle:CFFIPointer, x1:Float, y1:Float, x2:Float, + @:hlNative("lime", "hl_cairo_fill_extents") private static function lime_cairo_fill_extents(handle:CFFIPointer, x1:Float, y1:Float, x2:Float, y2:Float):Void {} - @:hlNative("lime", "lime_cairo_fill_preserve") private static function lime_cairo_fill_preserve(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_fill_preserve") private static function lime_cairo_fill_preserve(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_get_antialias") private static function lime_cairo_get_antialias(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_get_antialias") private static function lime_cairo_get_antialias(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_get_current_point") private static function lime_cairo_get_current_point(handle:CFFIPointer, out:Vector2):Vector2 + @:hlNative("lime", "hl_cairo_get_current_point") private static function lime_cairo_get_current_point(handle:CFFIPointer, out:Vector2):Vector2 { return null; } - @:hlNative("lime", "lime_cairo_get_dash") private static function lime_cairo_get_dash(handle:CFFIPointer):hl.NativeArray + @:hlNative("lime", "hl_cairo_get_dash") private static function lime_cairo_get_dash(handle:CFFIPointer):hl.NativeArray { return null; } - @:hlNative("lime", "lime_cairo_get_dash_count") private static function lime_cairo_get_dash_count(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_get_dash_count") private static function lime_cairo_get_dash_count(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_get_fill_rule") private static function lime_cairo_get_fill_rule(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_get_fill_rule") private static function lime_cairo_get_fill_rule(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_get_font_face") private static function lime_cairo_get_font_face(handle:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_cairo_get_font_face") private static function lime_cairo_get_font_face(handle:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_get_font_options") private static function lime_cairo_get_font_options(handle:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_cairo_get_font_options") private static function lime_cairo_get_font_options(handle:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_get_group_target") private static function lime_cairo_get_group_target(handle:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_cairo_get_group_target") private static function lime_cairo_get_group_target(handle:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_get_line_cap") private static function lime_cairo_get_line_cap(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_get_line_cap") private static function lime_cairo_get_line_cap(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_get_line_join") private static function lime_cairo_get_line_join(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_get_line_join") private static function lime_cairo_get_line_join(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_get_line_width") private static function lime_cairo_get_line_width(handle:CFFIPointer):Float + @:hlNative("lime", "hl_cairo_get_line_width") private static function lime_cairo_get_line_width(handle:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_cairo_get_matrix") private static function lime_cairo_get_matrix(handle:CFFIPointer, out:Matrix3):Matrix3 + @:hlNative("lime", "hl_cairo_get_matrix") private static function lime_cairo_get_matrix(handle:CFFIPointer, out:Matrix3):Matrix3 { return null; } - @:hlNative("lime", "lime_cairo_get_miter_limit") private static function lime_cairo_get_miter_limit(handle:CFFIPointer):Float + @:hlNative("lime", "hl_cairo_get_miter_limit") private static function lime_cairo_get_miter_limit(handle:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_cairo_get_operator") private static function lime_cairo_get_operator(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_get_operator") private static function lime_cairo_get_operator(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_get_source") private static function lime_cairo_get_source(handle:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_cairo_get_source") private static function lime_cairo_get_source(handle:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_get_target") private static function lime_cairo_get_target(handle:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_cairo_get_target") private static function lime_cairo_get_target(handle:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_get_tolerance") private static function lime_cairo_get_tolerance(handle:CFFIPointer):Float + @:hlNative("lime", "hl_cairo_get_tolerance") private static function lime_cairo_get_tolerance(handle:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_cairo_has_current_point") private static function lime_cairo_has_current_point(handle:CFFIPointer):Bool + @:hlNative("lime", "hl_cairo_has_current_point") private static function lime_cairo_has_current_point(handle:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_cairo_identity_matrix") private static function lime_cairo_identity_matrix(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_identity_matrix") private static function lime_cairo_identity_matrix(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_in_clip") private static function lime_cairo_in_clip(handle:CFFIPointer, x:Float, y:Float):Bool + @:hlNative("lime", "hl_cairo_in_clip") private static function lime_cairo_in_clip(handle:CFFIPointer, x:Float, y:Float):Bool { return false; } - @:hlNative("lime", "lime_cairo_in_fill") private static function lime_cairo_in_fill(handle:CFFIPointer, x:Float, y:Float):Bool + @:hlNative("lime", "hl_cairo_in_fill") private static function lime_cairo_in_fill(handle:CFFIPointer, x:Float, y:Float):Bool { return false; } - @:hlNative("lime", "lime_cairo_in_stroke") private static function lime_cairo_in_stroke(handle:CFFIPointer, x:Float, y:Float):Bool + @:hlNative("lime", "hl_cairo_in_stroke") private static function lime_cairo_in_stroke(handle:CFFIPointer, x:Float, y:Float):Bool { return false; } - @:hlNative("lime", "lime_cairo_line_to") private static function lime_cairo_line_to(handle:CFFIPointer, x:Float, y:Float):Void {} + @:hlNative("lime", "hl_cairo_line_to") private static function lime_cairo_line_to(handle:CFFIPointer, x:Float, y:Float):Void {} - @:hlNative("lime", "lime_cairo_mask") private static function lime_cairo_mask(handle:CFFIPointer, pattern:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_mask") private static function lime_cairo_mask(handle:CFFIPointer, pattern:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_mask_surface") private static function lime_cairo_mask_surface(handle:CFFIPointer, surface:CFFIPointer, x:Float, + @:hlNative("lime", "hl_cairo_mask_surface") private static function lime_cairo_mask_surface(handle:CFFIPointer, surface:CFFIPointer, x:Float, y:Float):Void {} - @:hlNative("lime", "lime_cairo_move_to") private static function lime_cairo_move_to(handle:CFFIPointer, x:Float, y:Float):Void {} + @:hlNative("lime", "hl_cairo_move_to") private static function lime_cairo_move_to(handle:CFFIPointer, x:Float, y:Float):Void {} - @:hlNative("lime", "lime_cairo_new_path") private static function lime_cairo_new_path(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_new_path") private static function lime_cairo_new_path(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_paint") private static function lime_cairo_paint(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_paint") private static function lime_cairo_paint(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_paint_with_alpha") private static function lime_cairo_paint_with_alpha(handle:CFFIPointer, alpha:Float):Void {} + @:hlNative("lime", "hl_cairo_paint_with_alpha") private static function lime_cairo_paint_with_alpha(handle:CFFIPointer, alpha:Float):Void {} - @:hlNative("lime", "lime_cairo_pop_group") private static function lime_cairo_pop_group(handle:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_cairo_pop_group") private static function lime_cairo_pop_group(handle:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_pop_group_to_source") private static function lime_cairo_pop_group_to_source(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_pop_group_to_source") private static function lime_cairo_pop_group_to_source(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_push_group") private static function lime_cairo_push_group(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_push_group") private static function lime_cairo_push_group(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_push_group_with_content") private static function lime_cairo_push_group_with_content(handle:CFFIPointer, + @:hlNative("lime", "hl_cairo_push_group_with_content") private static function lime_cairo_push_group_with_content(handle:CFFIPointer, content:Int):Void {} - @:hlNative("lime", "lime_cairo_rectangle") private static function lime_cairo_rectangle(handle:CFFIPointer, x:Float, y:Float, width:Float, + @:hlNative("lime", "hl_cairo_rectangle") private static function lime_cairo_rectangle(handle:CFFIPointer, x:Float, y:Float, width:Float, height:Float):Void {} - @:hlNative("lime", "lime_cairo_rel_curve_to") private static function lime_cairo_rel_curve_to(handle:CFFIPointer, dx1:Float, dy1:Float, dx2:Float, + @:hlNative("lime", "hl_cairo_rel_curve_to") private static function lime_cairo_rel_curve_to(handle:CFFIPointer, dx1:Float, dy1:Float, dx2:Float, dy2:Float, dx3:Float, dy3:Float):Void {} - @:hlNative("lime", "lime_cairo_rel_line_to") private static function lime_cairo_rel_line_to(handle:CFFIPointer, dx:Float, dy:Float):Void {} + @:hlNative("lime", "hl_cairo_rel_line_to") private static function lime_cairo_rel_line_to(handle:CFFIPointer, dx:Float, dy:Float):Void {} - @:hlNative("lime", "lime_cairo_rel_move_to") private static function lime_cairo_rel_move_to(handle:CFFIPointer, dx:Float, dy:Float):Void {} + @:hlNative("lime", "hl_cairo_rel_move_to") private static function lime_cairo_rel_move_to(handle:CFFIPointer, dx:Float, dy:Float):Void {} - @:hlNative("lime", "lime_cairo_reset_clip") private static function lime_cairo_reset_clip(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_reset_clip") private static function lime_cairo_reset_clip(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_restore") private static function lime_cairo_restore(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_restore") private static function lime_cairo_restore(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_rotate") private static function lime_cairo_rotate(handle:CFFIPointer, amount:Float):Void {} + @:hlNative("lime", "hl_cairo_rotate") private static function lime_cairo_rotate(handle:CFFIPointer, amount:Float):Void {} - @:hlNative("lime", "lime_cairo_save") private static function lime_cairo_save(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_save") private static function lime_cairo_save(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_scale") private static function lime_cairo_scale(handle:CFFIPointer, x:Float, y:Float):Void {} + @:hlNative("lime", "hl_cairo_scale") private static function lime_cairo_scale(handle:CFFIPointer, x:Float, y:Float):Void {} - @:hlNative("lime", "lime_cairo_set_antialias") private static function lime_cairo_set_antialias(handle:CFFIPointer, cap:Int):Void {} + @:hlNative("lime", "hl_cairo_set_antialias") private static function lime_cairo_set_antialias(handle:CFFIPointer, cap:Int):Void {} - @:hlNative("lime", "lime_cairo_set_dash") private static function lime_cairo_set_dash(handle:CFFIPointer, dash:hl.NativeArray):Void {} + @:hlNative("lime", "hl_cairo_set_dash") private static function lime_cairo_set_dash(handle:CFFIPointer, dash:hl.NativeArray):Void {} - @:hlNative("lime", "lime_cairo_set_fill_rule") private static function lime_cairo_set_fill_rule(handle:CFFIPointer, cap:Int):Void {} + @:hlNative("lime", "hl_cairo_set_fill_rule") private static function lime_cairo_set_fill_rule(handle:CFFIPointer, cap:Int):Void {} - @:hlNative("lime", "lime_cairo_set_font_face") private static function lime_cairo_set_font_face(handle:CFFIPointer, face:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_set_font_face") private static function lime_cairo_set_font_face(handle:CFFIPointer, face:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_set_font_options") private static function lime_cairo_set_font_options(handle:CFFIPointer, options:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_set_font_options") private static function lime_cairo_set_font_options(handle:CFFIPointer, options:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_set_font_size") private static function lime_cairo_set_font_size(handle:CFFIPointer, size:Float):Void {} + @:hlNative("lime", "hl_cairo_set_font_size") private static function lime_cairo_set_font_size(handle:CFFIPointer, size:Float):Void {} - @:hlNative("lime", "lime_cairo_set_line_cap") private static function lime_cairo_set_line_cap(handle:CFFIPointer, cap:Int):Void {} + @:hlNative("lime", "hl_cairo_set_line_cap") private static function lime_cairo_set_line_cap(handle:CFFIPointer, cap:Int):Void {} - @:hlNative("lime", "lime_cairo_set_line_join") private static function lime_cairo_set_line_join(handle:CFFIPointer, join:Int):Void {} + @:hlNative("lime", "hl_cairo_set_line_join") private static function lime_cairo_set_line_join(handle:CFFIPointer, join:Int):Void {} - @:hlNative("lime", "lime_cairo_set_line_width") private static function lime_cairo_set_line_width(handle:CFFIPointer, width:Float):Void {} + @:hlNative("lime", "hl_cairo_set_line_width") private static function lime_cairo_set_line_width(handle:CFFIPointer, width:Float):Void {} - @:hlNative("lime", "lime_cairo_set_matrix") private static function lime_cairo_set_matrix(handle:CFFIPointer, matrix:Matrix3):Void {} + @:hlNative("lime", "hl_cairo_set_matrix") private static function lime_cairo_set_matrix(handle:CFFIPointer, matrix:Matrix3):Void {} - @:hlNative("lime", "lime_cairo_set_miter_limit") private static function lime_cairo_set_miter_limit(handle:CFFIPointer, miterLimit:Float):Void {} + @:hlNative("lime", "hl_cairo_set_miter_limit") private static function lime_cairo_set_miter_limit(handle:CFFIPointer, miterLimit:Float):Void {} - @:hlNative("lime", "lime_cairo_set_operator") private static function lime_cairo_set_operator(handle:CFFIPointer, op:Int):Void {} + @:hlNative("lime", "hl_cairo_set_operator") private static function lime_cairo_set_operator(handle:CFFIPointer, op:Int):Void {} - @:hlNative("lime", "lime_cairo_set_source") private static function lime_cairo_set_source(handle:CFFIPointer, pattern:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_set_source") private static function lime_cairo_set_source(handle:CFFIPointer, pattern:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_set_source_rgb") private static function lime_cairo_set_source_rgb(handle:CFFIPointer, r:Float, g:Float, b:Float):Void {} + @:hlNative("lime", "hl_cairo_set_source_rgb") private static function lime_cairo_set_source_rgb(handle:CFFIPointer, r:Float, g:Float, b:Float):Void {} - @:hlNative("lime", "lime_cairo_set_source_rgba") private static function lime_cairo_set_source_rgba(handle:CFFIPointer, r:Float, g:Float, b:Float, + @:hlNative("lime", "hl_cairo_set_source_rgba") private static function lime_cairo_set_source_rgba(handle:CFFIPointer, r:Float, g:Float, b:Float, a:Float):Void {} - @:hlNative("lime", "lime_cairo_set_source_surface") private static function lime_cairo_set_source_surface(handle:CFFIPointer, surface:CFFIPointer, + @:hlNative("lime", "hl_cairo_set_source_surface") private static function lime_cairo_set_source_surface(handle:CFFIPointer, surface:CFFIPointer, x:Float, y:Float):Void {} - @:hlNative("lime", "lime_cairo_set_tolerance") private static function lime_cairo_set_tolerance(handle:CFFIPointer, tolerance:Float):Void {} + @:hlNative("lime", "hl_cairo_set_tolerance") private static function lime_cairo_set_tolerance(handle:CFFIPointer, tolerance:Float):Void {} - @:hlNative("lime", "lime_cairo_show_glyphs") private static function lime_cairo_show_glyphs(handle:CFFIPointer, glyphs:hl.NativeArray):Void {} + @:hlNative("lime", "hl_cairo_show_glyphs") private static function lime_cairo_show_glyphs(handle:CFFIPointer, glyphs:hl.NativeArray):Void {} - @:hlNative("lime", "lime_cairo_show_page") private static function lime_cairo_show_page(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_show_page") private static function lime_cairo_show_page(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_show_text") private static function lime_cairo_show_text(handle:CFFIPointer, text:String):Void {} + @:hlNative("lime", "hl_cairo_show_text") private static function lime_cairo_show_text(handle:CFFIPointer, text:String):Void {} - @:hlNative("lime", "lime_cairo_status") private static function lime_cairo_status(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_status") private static function lime_cairo_status(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_stroke") private static function lime_cairo_stroke(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_stroke") private static function lime_cairo_stroke(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_stroke_extents") private static function lime_cairo_stroke_extents(handle:CFFIPointer, x1:Float, y1:Float, x2:Float, + @:hlNative("lime", "hl_cairo_stroke_extents") private static function lime_cairo_stroke_extents(handle:CFFIPointer, x1:Float, y1:Float, x2:Float, y2:Float):Void {} - @:hlNative("lime", "lime_cairo_stroke_preserve") private static function lime_cairo_stroke_preserve(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_stroke_preserve") private static function lime_cairo_stroke_preserve(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_cairo_text_path") private static function lime_cairo_text_path(handle:CFFIPointer, text:String):Void {} + @:hlNative("lime", "hl_cairo_text_path") private static function lime_cairo_text_path(handle:CFFIPointer, text:String):Void {} - @:hlNative("lime", "lime_cairo_transform") private static function lime_cairo_transform(handle:CFFIPointer, matrix:Matrix3):Void {} + @:hlNative("lime", "hl_cairo_transform") private static function lime_cairo_transform(handle:CFFIPointer, matrix:Matrix3):Void {} - @:hlNative("lime", "lime_cairo_translate") private static function lime_cairo_translate(handle:CFFIPointer, x:Float, y:Float):Void {} + @:hlNative("lime", "hl_cairo_translate") private static function lime_cairo_translate(handle:CFFIPointer, x:Float, y:Float):Void {} - @:hlNative("lime", "lime_cairo_version") private static function lime_cairo_version():Int + @:hlNative("lime", "hl_cairo_version") private static function lime_cairo_version():Int { return 0; } - @:hlNative("lime", "lime_cairo_version_string") private static function lime_cairo_version_string():hl.Bytes + @:hlNative("lime", "hl_cairo_version_string") private static function lime_cairo_version_string():hl.Bytes { return null; } - @:hlNative("lime", "lime_cairo_font_face_status") private static function lime_cairo_font_face_status(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_font_face_status") private static function lime_cairo_font_face_status(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_font_options_create") private static function lime_cairo_font_options_create():CFFIPointer + @:hlNative("lime", "hl_cairo_font_options_create") private static function lime_cairo_font_options_create():CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_font_options_get_antialias") private static function lime_cairo_font_options_get_antialias(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_font_options_get_antialias") private static function lime_cairo_font_options_get_antialias(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_font_options_get_hint_metrics") private static function lime_cairo_font_options_get_hint_metrics(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_font_options_get_hint_metrics") private static function lime_cairo_font_options_get_hint_metrics(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_font_options_get_hint_style") private static function lime_cairo_font_options_get_hint_style(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_font_options_get_hint_style") private static function lime_cairo_font_options_get_hint_style(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_font_options_get_subpixel_order") private static function lime_cairo_font_options_get_subpixel_order(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_font_options_get_subpixel_order") private static function lime_cairo_font_options_get_subpixel_order(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_font_options_set_antialias") private static function lime_cairo_font_options_set_antialias(handle:CFFIPointer, + @:hlNative("lime", "hl_cairo_font_options_set_antialias") private static function lime_cairo_font_options_set_antialias(handle:CFFIPointer, v:Int):Void {} - @:hlNative("lime", "lime_cairo_font_options_set_hint_metrics") private static function lime_cairo_font_options_set_hint_metrics(handle:CFFIPointer, + @:hlNative("lime", "hl_cairo_font_options_set_hint_metrics") private static function lime_cairo_font_options_set_hint_metrics(handle:CFFIPointer, v:Int):Void {} - @:hlNative("lime", "lime_cairo_font_options_set_hint_style") private static function lime_cairo_font_options_set_hint_style(handle:CFFIPointer, + @:hlNative("lime", "hl_cairo_font_options_set_hint_style") private static function lime_cairo_font_options_set_hint_style(handle:CFFIPointer, v:Int):Void {} - @:hlNative("lime", "lime_cairo_font_options_set_subpixel_order") private static function lime_cairo_font_options_set_subpixel_order(handle:CFFIPointer, + @:hlNative("lime", "hl_cairo_font_options_set_subpixel_order") private static function lime_cairo_font_options_set_subpixel_order(handle:CFFIPointer, v:Int):Void {} - @:hlNative("lime", "lime_cairo_ft_font_face_create") private static function lime_cairo_ft_font_face_create(face:CFFIPointer, flags:Int):CFFIPointer + @:hlNative("lime", "hl_cairo_ft_font_face_create") private static function lime_cairo_ft_font_face_create(face:CFFIPointer, flags:Int):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_image_surface_create") private static function lime_cairo_image_surface_create(format:Int, width:Int, + @:hlNative("lime", "hl_cairo_image_surface_create") private static function lime_cairo_image_surface_create(format:Int, width:Int, height:Int):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_image_surface_create_for_data") private static function lime_cairo_image_surface_create_for_data(data:Float, format:Int, + @:hlNative("lime", "hl_cairo_image_surface_create_for_data") private static function lime_cairo_image_surface_create_for_data(data:Float, format:Int, width:Int, height:Int, stride:Int):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_image_surface_get_data") private static function lime_cairo_image_surface_get_data(handle:CFFIPointer):Float + @:hlNative("lime", "hl_cairo_image_surface_get_data") private static function lime_cairo_image_surface_get_data(handle:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_cairo_image_surface_get_format") private static function lime_cairo_image_surface_get_format(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_image_surface_get_format") private static function lime_cairo_image_surface_get_format(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_image_surface_get_height") private static function lime_cairo_image_surface_get_height(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_image_surface_get_height") private static function lime_cairo_image_surface_get_height(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_image_surface_get_stride") private static function lime_cairo_image_surface_get_stride(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_image_surface_get_stride") private static function lime_cairo_image_surface_get_stride(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_image_surface_get_width") private static function lime_cairo_image_surface_get_width(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_image_surface_get_width") private static function lime_cairo_image_surface_get_width(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_pattern_add_color_stop_rgb") private static function lime_cairo_pattern_add_color_stop_rgb(handle:CFFIPointer, + @:hlNative("lime", "hl_cairo_pattern_add_color_stop_rgb") private static function lime_cairo_pattern_add_color_stop_rgb(handle:CFFIPointer, offset:Float, red:Float, green:Float, blue:Float):Void {} - @:hlNative("lime", "lime_cairo_pattern_add_color_stop_rgba") private static function lime_cairo_pattern_add_color_stop_rgba(handle:CFFIPointer, + @:hlNative("lime", "hl_cairo_pattern_add_color_stop_rgba") private static function lime_cairo_pattern_add_color_stop_rgba(handle:CFFIPointer, offset:Float, red:Float, green:Float, blue:Float, alpha:Float):Void {} - @:hlNative("lime", "lime_cairo_pattern_create_for_surface") private static function lime_cairo_pattern_create_for_surface(surface:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_cairo_pattern_create_for_surface") private static function lime_cairo_pattern_create_for_surface(surface:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_pattern_create_linear") private static function lime_cairo_pattern_create_linear(x0:Float, y0:Float, x1:Float, + @:hlNative("lime", "hl_cairo_pattern_create_linear") private static function lime_cairo_pattern_create_linear(x0:Float, y0:Float, x1:Float, y1:Float):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_pattern_create_radial") private static function lime_cairo_pattern_create_radial(cx0:Float, cy0:Float, radius0:Float, + @:hlNative("lime", "hl_cairo_pattern_create_radial") private static function lime_cairo_pattern_create_radial(cx0:Float, cy0:Float, radius0:Float, cx1:Float, cy1:Float, radius1:Float):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_pattern_create_rgb") private static function lime_cairo_pattern_create_rgb(r:Float, g:Float, b:Float):CFFIPointer + @:hlNative("lime", "hl_cairo_pattern_create_rgb") private static function lime_cairo_pattern_create_rgb(r:Float, g:Float, b:Float):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_pattern_create_rgba") private static function lime_cairo_pattern_create_rgba(r:Float, g:Float, b:Float, a:Float):CFFIPointer + @:hlNative("lime", "hl_cairo_pattern_create_rgba") private static function lime_cairo_pattern_create_rgba(r:Float, g:Float, b:Float, a:Float):CFFIPointer { return null; } - @:hlNative("lime", "lime_cairo_pattern_get_color_stop_count") private static function lime_cairo_pattern_get_color_stop_count(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_pattern_get_color_stop_count") private static function lime_cairo_pattern_get_color_stop_count(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_pattern_get_extend") private static function lime_cairo_pattern_get_extend(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_pattern_get_extend") private static function lime_cairo_pattern_get_extend(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_pattern_get_filter") private static function lime_cairo_pattern_get_filter(handle:CFFIPointer):Int + @:hlNative("lime", "hl_cairo_pattern_get_filter") private static function lime_cairo_pattern_get_filter(handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_cairo_pattern_get_matrix") private static function lime_cairo_pattern_get_matrix(handle:CFFIPointer, out:Matrix3):Matrix3 + @:hlNative("lime", "hl_cairo_pattern_get_matrix") private static function lime_cairo_pattern_get_matrix(handle:CFFIPointer, out:Matrix3):Matrix3 { return null; } - @:hlNative("lime", "lime_cairo_pattern_set_extend") private static function lime_cairo_pattern_set_extend(handle:CFFIPointer, extend:Int):Void {} + @:hlNative("lime", "hl_cairo_pattern_set_extend") private static function lime_cairo_pattern_set_extend(handle:CFFIPointer, extend:Int):Void {} - @:hlNative("lime", "lime_cairo_pattern_set_filter") private static function lime_cairo_pattern_set_filter(handle:CFFIPointer, filter:Int):Void {} + @:hlNative("lime", "hl_cairo_pattern_set_filter") private static function lime_cairo_pattern_set_filter(handle:CFFIPointer, filter:Int):Void {} - @:hlNative("lime", "lime_cairo_pattern_set_matrix") private static function lime_cairo_pattern_set_matrix(handle:CFFIPointer, matrix:Matrix3):Void {} + @:hlNative("lime", "hl_cairo_pattern_set_matrix") private static function lime_cairo_pattern_set_matrix(handle:CFFIPointer, matrix:Matrix3):Void {} - @:hlNative("lime", "lime_cairo_surface_flush") private static function lime_cairo_surface_flush(surface:CFFIPointer):Void {} + @:hlNative("lime", "hl_cairo_surface_flush") private static function lime_cairo_surface_flush(surface:CFFIPointer):Void {} #end #end #if (lime_cffi && !macro && lime_curl) @@ -3409,129 +3409,129 @@ class NativeCFFI #end #if hl - @:hlNative("lime", "lime_curl_getdate") private static function lime_curl_getdate(date:String, now:Float):Float + @:hlNative("lime", "hl_curl_getdate") private static function lime_curl_getdate(date:String, now:Float):Float { return 0; } - @:hlNative("lime", "lime_curl_global_cleanup") private static function lime_curl_global_cleanup():Void {} + @:hlNative("lime", "hl_curl_global_cleanup") private static function lime_curl_global_cleanup():Void {} - @:hlNative("lime", "lime_curl_global_init") private static function lime_curl_global_init(flags:Int):Int + @:hlNative("lime", "hl_curl_global_init") private static function lime_curl_global_init(flags:Int):Int { return 0; } - @:hlNative("lime", "lime_curl_version") private static function lime_curl_version():hl.Bytes + @:hlNative("lime", "hl_curl_version") private static function lime_curl_version():hl.Bytes { return null; } - @:hlNative("lime", "lime_curl_version_info") private static function lime_curl_version_info(type:Int):Dynamic + @:hlNative("lime", "hl_curl_version_info") private static function lime_curl_version_info(type:Int):Dynamic { return null; } - @:hlNative("lime", "lime_curl_easy_cleanup") private static function lime_curl_easy_cleanup(handle:CFFIPointer):Void {} + @:hlNative("lime", "hl_curl_easy_cleanup") private static function lime_curl_easy_cleanup(handle:CFFIPointer):Void {} - @:hlNative("lime", "lime_curl_easy_duphandle") private static function lime_curl_easy_duphandle(handle:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_curl_easy_duphandle") private static function lime_curl_easy_duphandle(handle:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_curl_easy_escape") private static function lime_curl_easy_escape(curl:CFFIPointer, url:String, length:Int):hl.Bytes + @:hlNative("lime", "hl_curl_easy_escape") private static function lime_curl_easy_escape(curl:CFFIPointer, url:String, length:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_curl_easy_flush") private static function lime_curl_easy_flush(curl:CFFIPointer):Void {} + @:hlNative("lime", "hl_curl_easy_flush") private static function lime_curl_easy_flush(curl:CFFIPointer):Void {} - @:hlNative("lime", "lime_curl_easy_getinfo") private static function lime_curl_easy_getinfo(curl:CFFIPointer, info:Int):Dynamic + @:hlNative("lime", "hl_curl_easy_getinfo") private static function lime_curl_easy_getinfo(curl:CFFIPointer, info:Int):Dynamic { return null; } - @:hlNative("lime", "lime_curl_easy_init") private static function lime_curl_easy_init():CFFIPointer + @:hlNative("lime", "hl_curl_easy_init") private static function lime_curl_easy_init():CFFIPointer { return null; } - @:hlNative("lime", "lime_curl_easy_pause") private static function lime_curl_easy_pause(handle:CFFIPointer, bitmask:Int):Int + @:hlNative("lime", "hl_curl_easy_pause") private static function lime_curl_easy_pause(handle:CFFIPointer, bitmask:Int):Int { return 0; } - @:hlNative("lime", "lime_curl_easy_perform") private static function lime_curl_easy_perform(easy_handle:CFFIPointer):Int + @:hlNative("lime", "hl_curl_easy_perform") private static function lime_curl_easy_perform(easy_handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_curl_easy_recv") private static function lime_curl_easy_recv(curl:CFFIPointer, buffer:Float, buflen:Int, n:Int):Int + @:hlNative("lime", "hl_curl_easy_recv") private static function lime_curl_easy_recv(curl:CFFIPointer, buffer:Float, buflen:Int, n:Int):Int { return 0; }; - @:hlNative("lime", "lime_curl_easy_reset") private static function lime_curl_easy_reset(curl:CFFIPointer):Void {} + @:hlNative("lime", "hl_curl_easy_reset") private static function lime_curl_easy_reset(curl:CFFIPointer):Void {} - @:hlNative("lime", "lime_curl_easy_send") private static function lime_curl_easy_send(curl:CFFIPointer, buffer:Float, buflen:Int, n:Int):Int + @:hlNative("lime", "hl_curl_easy_send") private static function lime_curl_easy_send(curl:CFFIPointer, buffer:Float, buflen:Int, n:Int):Int { return 0; } - @:hlNative("lime", "lime_curl_easy_setopt") private static function lime_curl_easy_setopt(handle:CFFIPointer, option:Int, parameter:Dynamic, + @:hlNative("lime", "hl_curl_easy_setopt") private static function lime_curl_easy_setopt(handle:CFFIPointer, option:Int, parameter:Dynamic, writeBytes:Bytes):Int { return 0; } - @:hlNative("lime", "lime_curl_easy_strerror") private static function lime_curl_easy_strerror(errornum:Int):hl.Bytes + @:hlNative("lime", "hl_curl_easy_strerror") private static function lime_curl_easy_strerror(errornum:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_curl_easy_unescape") private static function lime_curl_easy_unescape(curl:CFFIPointer, url:String, inlength:Int, + @:hlNative("lime", "hl_curl_easy_unescape") private static function lime_curl_easy_unescape(curl:CFFIPointer, url:String, inlength:Int, outlength:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_curl_multi_init") private static function lime_curl_multi_init():CFFIPointer + @:hlNative("lime", "hl_curl_multi_init") private static function lime_curl_multi_init():CFFIPointer { return null; } - @:hlNative("lime", "lime_curl_multi_add_handle") private static function lime_curl_multi_add_handle(multi_handle:CFFIPointer, curl_object:Dynamic, + @:hlNative("lime", "hl_curl_multi_add_handle") private static function lime_curl_multi_add_handle(multi_handle:CFFIPointer, curl_object:Dynamic, curl_handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_curl_multi_get_running_handles") private static function lime_curl_multi_get_running_handles(multi_handle:CFFIPointer):Int + @:hlNative("lime", "hl_curl_multi_get_running_handles") private static function lime_curl_multi_get_running_handles(multi_handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_curl_multi_info_read") private static function lime_curl_multi_info_read(multi_handle:CFFIPointer, object:Dynamic):Dynamic + @:hlNative("lime", "hl_curl_multi_info_read") private static function lime_curl_multi_info_read(multi_handle:CFFIPointer, object:Dynamic):Dynamic { return null; } - @:hlNative("lime", "lime_curl_multi_perform") private static function lime_curl_multi_perform(multi_handle:CFFIPointer):Int + @:hlNative("lime", "hl_curl_multi_perform") private static function lime_curl_multi_perform(multi_handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_curl_multi_remove_handle") private static function lime_curl_multi_remove_handle(multi_handle:CFFIPointer, + @:hlNative("lime", "hl_curl_multi_remove_handle") private static function lime_curl_multi_remove_handle(multi_handle:CFFIPointer, curl_handle:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_curl_multi_setopt") private static function lime_curl_multi_setopt(multi_handle:CFFIPointer, option:Int, parameter:Dynamic):Int + @:hlNative("lime", "hl_curl_multi_setopt") private static function lime_curl_multi_setopt(multi_handle:CFFIPointer, option:Int, parameter:Dynamic):Int { return 0; } - @:hlNative("lime", "lime_curl_multi_wait") private static function lime_curl_multi_wait(multi_handle:CFFIPointer, timeout_ms:Int):Int + @:hlNative("lime", "hl_curl_multi_wait") private static function lime_curl_multi_wait(multi_handle:CFFIPointer, timeout_ms:Int):Int { return 0; } @@ -4804,820 +4804,820 @@ class NativeCFFI #end #if hl - @:hlNative("lime", "lime_gl_active_texture") private static function lime_gl_active_texture(texture:Int):Void {} + @:hlNative("lime", "hl_gl_active_texture") private static function lime_gl_active_texture(texture:Int):Void {} - @:hlNative("lime", "lime_gl_attach_shader") private static function lime_gl_attach_shader(program:Int, shader:Int):Void {} + @:hlNative("lime", "hl_gl_attach_shader") private static function lime_gl_attach_shader(program:Int, shader:Int):Void {} - @:hlNative("lime", "lime_gl_begin_query") private static function lime_gl_begin_query(target:Int, query:Int):Void {} + @:hlNative("lime", "hl_gl_begin_query") private static function lime_gl_begin_query(target:Int, query:Int):Void {} - @:hlNative("lime", "lime_gl_begin_transform_feedback") private static function lime_gl_begin_transform_feedback(primitiveNode:Int):Void {} + @:hlNative("lime", "hl_gl_begin_transform_feedback") private static function lime_gl_begin_transform_feedback(primitiveNode:Int):Void {} - @:hlNative("lime", "lime_gl_bind_attrib_location") private static function lime_gl_bind_attrib_location(program:Int, index:Int, name:String):Void {} + @:hlNative("lime", "hl_gl_bind_attrib_location") private static function lime_gl_bind_attrib_location(program:Int, index:Int, name:String):Void {} - @:hlNative("lime", "lime_gl_bind_buffer") private static function lime_gl_bind_buffer(target:Int, buffer:Int):Void {} + @:hlNative("lime", "hl_gl_bind_buffer") private static function lime_gl_bind_buffer(target:Int, buffer:Int):Void {} - @:hlNative("lime", "lime_gl_bind_buffer_base") private static function lime_gl_bind_buffer_base(target:Int, index:Int, buffer:Int):Void {} + @:hlNative("lime", "hl_gl_bind_buffer_base") private static function lime_gl_bind_buffer_base(target:Int, index:Int, buffer:Int):Void {} - @:hlNative("lime", "lime_gl_bind_buffer_range") private static function lime_gl_bind_buffer_range(target:Int, index:Int, buffer:Int, offset:DataPointer, + @:hlNative("lime", "hl_gl_bind_buffer_range") private static function lime_gl_bind_buffer_range(target:Int, index:Int, buffer:Int, offset:DataPointer, size:Int):Void {} - @:hlNative("lime", "lime_gl_bind_framebuffer") private static function lime_gl_bind_framebuffer(target:Int, framebuffer:Int):Void {} + @:hlNative("lime", "hl_gl_bind_framebuffer") private static function lime_gl_bind_framebuffer(target:Int, framebuffer:Int):Void {} - @:hlNative("lime", "lime_gl_bind_renderbuffer") private static function lime_gl_bind_renderbuffer(target:Int, renderbuffer:Int):Void {} + @:hlNative("lime", "hl_gl_bind_renderbuffer") private static function lime_gl_bind_renderbuffer(target:Int, renderbuffer:Int):Void {} - @:hlNative("lime", "lime_gl_bind_sampler") private static function lime_gl_bind_sampler(target:Int, sampler:Int):Void {} + @:hlNative("lime", "hl_gl_bind_sampler") private static function lime_gl_bind_sampler(target:Int, sampler:Int):Void {} - @:hlNative("lime", "lime_gl_bind_texture") private static function lime_gl_bind_texture(target:Int, texture:Int):Void {} + @:hlNative("lime", "hl_gl_bind_texture") private static function lime_gl_bind_texture(target:Int, texture:Int):Void {} - @:hlNative("lime", "lime_gl_bind_transform_feedback") private static function lime_gl_bind_transform_feedback(target:Int, transformFeedback:Int):Void {} + @:hlNative("lime", "hl_gl_bind_transform_feedback") private static function lime_gl_bind_transform_feedback(target:Int, transformFeedback:Int):Void {} - @:hlNative("lime", "lime_gl_bind_vertex_array") private static function lime_gl_bind_vertex_array(vertexArray:Int):Void {} + @:hlNative("lime", "hl_gl_bind_vertex_array") private static function lime_gl_bind_vertex_array(vertexArray:Int):Void {} - @:hlNative("lime", "lime_gl_blend_color") private static function lime_gl_blend_color(red:hl.F32, green:hl.F32, blue:hl.F32, alpha:hl.F32):Void {} + @:hlNative("lime", "hl_gl_blend_color") private static function lime_gl_blend_color(red:hl.F32, green:hl.F32, blue:hl.F32, alpha:hl.F32):Void {} - @:hlNative("lime", "lime_gl_blend_equation") private static function lime_gl_blend_equation(mode:Int):Void {} + @:hlNative("lime", "hl_gl_blend_equation") private static function lime_gl_blend_equation(mode:Int):Void {} - @:hlNative("lime", "lime_gl_blend_equation_separate") private static function lime_gl_blend_equation_separate(modeRGB:Int, modeAlpha:Int):Void {} + @:hlNative("lime", "hl_gl_blend_equation_separate") private static function lime_gl_blend_equation_separate(modeRGB:Int, modeAlpha:Int):Void {} - @:hlNative("lime", "lime_gl_blend_func") private static function lime_gl_blend_func(sfactor:Int, dfactor:Int):Void {} + @:hlNative("lime", "hl_gl_blend_func") private static function lime_gl_blend_func(sfactor:Int, dfactor:Int):Void {} - @:hlNative("lime", "lime_gl_blend_func_separate") private static function lime_gl_blend_func_separate(srcRGB:Int, dstRGB:Int, srcAlpha:Int, + @:hlNative("lime", "hl_gl_blend_func_separate") private static function lime_gl_blend_func_separate(srcRGB:Int, dstRGB:Int, srcAlpha:Int, dstAlpha:Int):Void {} - @:hlNative("lime", "lime_gl_blit_framebuffer") private static function lime_gl_blit_framebuffer(srcX0:Int, srcY0:Int, srcX1:Int, srcY1:Int, dstX0:Int, + @:hlNative("lime", "hl_gl_blit_framebuffer") private static function lime_gl_blit_framebuffer(srcX0:Int, srcY0:Int, srcX1:Int, srcY1:Int, dstX0:Int, dstY0:Int, dstX1:Int, dstY1:Int, mask:Int, filter:Int):Void {} - @:hlNative("lime", "lime_gl_buffer_data") private static function lime_gl_buffer_data(target:Int, size:Int, srcData:DataPointer, usage:Int):Void {} + @:hlNative("lime", "hl_gl_buffer_data") private static function lime_gl_buffer_data(target:Int, size:Int, srcData:DataPointer, usage:Int):Void {} - @:hlNative("lime", "lime_gl_buffer_sub_data") private static function lime_gl_buffer_sub_data(target:Int, offset:Int, size:Int, + @:hlNative("lime", "hl_gl_buffer_sub_data") private static function lime_gl_buffer_sub_data(target:Int, offset:Int, size:Int, srcData:DataPointer):Void {} - @:hlNative("lime", "lime_gl_check_framebuffer_status") private static function lime_gl_check_framebuffer_status(target:Int):Int + @:hlNative("lime", "hl_gl_check_framebuffer_status") private static function lime_gl_check_framebuffer_status(target:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_clear") private static function lime_gl_clear(mask:Int):Void {} + @:hlNative("lime", "hl_gl_clear") private static function lime_gl_clear(mask:Int):Void {} - @:hlNative("lime", "lime_gl_clear_bufferfi") private static function lime_gl_clear_bufferfi(buffer:Int, drawBuffer:Int, depth:hl.F32, stencil:Int):Void {} + @:hlNative("lime", "hl_gl_clear_bufferfi") private static function lime_gl_clear_bufferfi(buffer:Int, drawBuffer:Int, depth:hl.F32, stencil:Int):Void {} - @:hlNative("lime", "lime_gl_clear_bufferfv") private static function lime_gl_clear_bufferfv(buffer:Int, drawBuffer:Int, data:DataPointer):Void {} + @:hlNative("lime", "hl_gl_clear_bufferfv") private static function lime_gl_clear_bufferfv(buffer:Int, drawBuffer:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_clear_bufferiv") private static function lime_gl_clear_bufferiv(buffer:Int, drawBuffer:Int, data:DataPointer):Void {} + @:hlNative("lime", "hl_gl_clear_bufferiv") private static function lime_gl_clear_bufferiv(buffer:Int, drawBuffer:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_clear_bufferuiv") private static function lime_gl_clear_bufferuiv(buffer:Int, drawBuffer:Int, data:DataPointer):Void {} + @:hlNative("lime", "hl_gl_clear_bufferuiv") private static function lime_gl_clear_bufferuiv(buffer:Int, drawBuffer:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_client_wait_sync") private static function lime_gl_client_wait_sync(sync:CFFIPointer, flags:Int, timeoutA:Int, + @:hlNative("lime", "hl_gl_client_wait_sync") private static function lime_gl_client_wait_sync(sync:CFFIPointer, flags:Int, timeoutA:Int, timeoutB:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_clear_color") private static function lime_gl_clear_color(red:hl.F32, green:hl.F32, blue:hl.F32, alpha:hl.F32):Void {} + @:hlNative("lime", "hl_gl_clear_color") private static function lime_gl_clear_color(red:hl.F32, green:hl.F32, blue:hl.F32, alpha:hl.F32):Void {} - @:hlNative("lime", "lime_gl_clear_depthf") private static function lime_gl_clear_depthf(depth:hl.F32):Void {} + @:hlNative("lime", "hl_gl_clear_depthf") private static function lime_gl_clear_depthf(depth:hl.F32):Void {} - @:hlNative("lime", "lime_gl_clear_stencil") private static function lime_gl_clear_stencil(s:Int):Void {} + @:hlNative("lime", "hl_gl_clear_stencil") private static function lime_gl_clear_stencil(s:Int):Void {} - @:hlNative("lime", "lime_gl_color_mask") private static function lime_gl_color_mask(red:Bool, green:Bool, blue:Bool, alpha:Bool):Void {} + @:hlNative("lime", "hl_gl_color_mask") private static function lime_gl_color_mask(red:Bool, green:Bool, blue:Bool, alpha:Bool):Void {} - @:hlNative("lime", "lime_gl_compile_shader") private static function lime_gl_compile_shader(shader:Int):Void {} + @:hlNative("lime", "hl_gl_compile_shader") private static function lime_gl_compile_shader(shader:Int):Void {} - @:hlNative("lime", "lime_gl_compressed_tex_image_2d") private static function lime_gl_compressed_tex_image_2d(target:Int, level:Int, internalformat:Int, + @:hlNative("lime", "hl_gl_compressed_tex_image_2d") private static function lime_gl_compressed_tex_image_2d(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, imageSize:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_compressed_tex_image_3d") private static function lime_gl_compressed_tex_image_3d(target:Int, level:Int, internalformat:Int, + @:hlNative("lime", "hl_gl_compressed_tex_image_3d") private static function lime_gl_compressed_tex_image_3d(target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int, border:Int, imageSize:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_compressed_tex_sub_image_2d") private static function lime_gl_compressed_tex_sub_image_2d(target:Int, level:Int, xoffset:Int, + @:hlNative("lime", "hl_gl_compressed_tex_sub_image_2d") private static function lime_gl_compressed_tex_sub_image_2d(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, imageSize:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_compressed_tex_sub_image_3d") private static function lime_gl_compressed_tex_sub_image_3d(target:Int, level:Int, xoffset:Int, + @:hlNative("lime", "hl_gl_compressed_tex_sub_image_3d") private static function lime_gl_compressed_tex_sub_image_3d(target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, width:Int, height:Int, depth:Int, format:Int, imageSize:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_copy_buffer_sub_data") private static function lime_gl_copy_buffer_sub_data(readTarget:Int, writeTarget:Int, + @:hlNative("lime", "hl_gl_copy_buffer_sub_data") private static function lime_gl_copy_buffer_sub_data(readTarget:Int, writeTarget:Int, readOffset:DataPointer, writeOffset:DataPointer, size:Int):Void {} - @:hlNative("lime", "lime_gl_copy_tex_image_2d") private static function lime_gl_copy_tex_image_2d(target:Int, level:Int, internalformat:Int, x:Int, y:Int, + @:hlNative("lime", "hl_gl_copy_tex_image_2d") private static function lime_gl_copy_tex_image_2d(target:Int, level:Int, internalformat:Int, x:Int, y:Int, width:Int, height:Int, border:Int):Void {} - @:hlNative("lime", "lime_gl_copy_tex_sub_image_2d") private static function lime_gl_copy_tex_sub_image_2d(target:Int, level:Int, xoffset:Int, yoffset:Int, + @:hlNative("lime", "hl_gl_copy_tex_sub_image_2d") private static function lime_gl_copy_tex_sub_image_2d(target:Int, level:Int, xoffset:Int, yoffset:Int, x:Int, y:Int, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_gl_copy_tex_sub_image_3d") private static function lime_gl_copy_tex_sub_image_3d(target:Int, level:Int, xoffset:Int, yoffset:Int, + @:hlNative("lime", "hl_gl_copy_tex_sub_image_3d") private static function lime_gl_copy_tex_sub_image_3d(target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, x:Int, y:Int, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_gl_create_buffer") private static function lime_gl_create_buffer():Int + @:hlNative("lime", "hl_gl_create_buffer") private static function lime_gl_create_buffer():Int { return 0; } - @:hlNative("lime", "lime_gl_create_framebuffer") private static function lime_gl_create_framebuffer():Int + @:hlNative("lime", "hl_gl_create_framebuffer") private static function lime_gl_create_framebuffer():Int { return 0; } - @:hlNative("lime", "lime_gl_create_program") private static function lime_gl_create_program():Int + @:hlNative("lime", "hl_gl_create_program") private static function lime_gl_create_program():Int { return 0; } - @:hlNative("lime", "lime_gl_create_query") private static function lime_gl_create_query():Int + @:hlNative("lime", "hl_gl_create_query") private static function lime_gl_create_query():Int { return 0; } - @:hlNative("lime", "lime_gl_create_renderbuffer") private static function lime_gl_create_renderbuffer():Int + @:hlNative("lime", "hl_gl_create_renderbuffer") private static function lime_gl_create_renderbuffer():Int { return 0; } - @:hlNative("lime", "lime_gl_create_sampler") private static function lime_gl_create_sampler():Int + @:hlNative("lime", "hl_gl_create_sampler") private static function lime_gl_create_sampler():Int { return 0; } - @:hlNative("lime", "lime_gl_create_shader") private static function lime_gl_create_shader(type:Int):Int + @:hlNative("lime", "hl_gl_create_shader") private static function lime_gl_create_shader(type:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_create_texture") private static function lime_gl_create_texture():Int + @:hlNative("lime", "hl_gl_create_texture") private static function lime_gl_create_texture():Int { return 0; } - @:hlNative("lime", "lime_gl_create_transform_feedback") private static function lime_gl_create_transform_feedback():Int + @:hlNative("lime", "hl_gl_create_transform_feedback") private static function lime_gl_create_transform_feedback():Int { return 0; } - @:hlNative("lime", "lime_gl_create_vertex_array") private static function lime_gl_create_vertex_array():Int + @:hlNative("lime", "hl_gl_create_vertex_array") private static function lime_gl_create_vertex_array():Int { return 0; } - @:hlNative("lime", "lime_gl_cull_face") private static function lime_gl_cull_face(mode:Int):Void {} + @:hlNative("lime", "hl_gl_cull_face") private static function lime_gl_cull_face(mode:Int):Void {} - @:hlNative("lime", "lime_gl_delete_buffer") private static function lime_gl_delete_buffer(buffer:Int):Void {} + @:hlNative("lime", "hl_gl_delete_buffer") private static function lime_gl_delete_buffer(buffer:Int):Void {} - @:hlNative("lime", "lime_gl_delete_framebuffer") private static function lime_gl_delete_framebuffer(framebuffer:Int):Void {} + @:hlNative("lime", "hl_gl_delete_framebuffer") private static function lime_gl_delete_framebuffer(framebuffer:Int):Void {} - @:hlNative("lime", "lime_gl_delete_program") private static function lime_gl_delete_program(program:Int):Void {} + @:hlNative("lime", "hl_gl_delete_program") private static function lime_gl_delete_program(program:Int):Void {} - @:hlNative("lime", "lime_gl_delete_query") private static function lime_gl_delete_query(query:Int):Void {} + @:hlNative("lime", "hl_gl_delete_query") private static function lime_gl_delete_query(query:Int):Void {} - @:hlNative("lime", "lime_gl_delete_renderbuffer") private static function lime_gl_delete_renderbuffer(renderbuffer:Int):Void {} + @:hlNative("lime", "hl_gl_delete_renderbuffer") private static function lime_gl_delete_renderbuffer(renderbuffer:Int):Void {} - @:hlNative("lime", "lime_gl_delete_sampler") private static function lime_gl_delete_sampler(sampler:Int):Void {} + @:hlNative("lime", "hl_gl_delete_sampler") private static function lime_gl_delete_sampler(sampler:Int):Void {} - @:hlNative("lime", "lime_gl_delete_shader") private static function lime_gl_delete_shader(shader:Int):Void {} + @:hlNative("lime", "hl_gl_delete_shader") private static function lime_gl_delete_shader(shader:Int):Void {} - @:hlNative("lime", "lime_gl_delete_sync") private static function lime_gl_delete_sync(sync:CFFIPointer):Void {} + @:hlNative("lime", "hl_gl_delete_sync") private static function lime_gl_delete_sync(sync:CFFIPointer):Void {} - @:hlNative("lime", "lime_gl_delete_texture") private static function lime_gl_delete_texture(texture:Int):Void {} + @:hlNative("lime", "hl_gl_delete_texture") private static function lime_gl_delete_texture(texture:Int):Void {} - @:hlNative("lime", "lime_gl_delete_transform_feedback") private static function lime_gl_delete_transform_feedback(transformFeedback:Int):Void {} + @:hlNative("lime", "hl_gl_delete_transform_feedback") private static function lime_gl_delete_transform_feedback(transformFeedback:Int):Void {} - @:hlNative("lime", "lime_gl_delete_vertex_array") private static function lime_gl_delete_vertex_array(vertexArray:Int):Void {} + @:hlNative("lime", "hl_gl_delete_vertex_array") private static function lime_gl_delete_vertex_array(vertexArray:Int):Void {} - @:hlNative("lime", "lime_gl_depth_func") private static function lime_gl_depth_func(func:Int):Void {} + @:hlNative("lime", "hl_gl_depth_func") private static function lime_gl_depth_func(func:Int):Void {} - @:hlNative("lime", "lime_gl_depth_mask") private static function lime_gl_depth_mask(flag:Bool):Void {} + @:hlNative("lime", "hl_gl_depth_mask") private static function lime_gl_depth_mask(flag:Bool):Void {} - @:hlNative("lime", "lime_gl_depth_rangef") private static function lime_gl_depth_rangef(zNear:hl.F32, zFar:hl.F32):Void {} + @:hlNative("lime", "hl_gl_depth_rangef") private static function lime_gl_depth_rangef(zNear:hl.F32, zFar:hl.F32):Void {} - @:hlNative("lime", "lime_gl_detach_shader") private static function lime_gl_detach_shader(program:Int, shader:Int):Void {} + @:hlNative("lime", "hl_gl_detach_shader") private static function lime_gl_detach_shader(program:Int, shader:Int):Void {} - @:hlNative("lime", "lime_gl_disable") private static function lime_gl_disable(cap:Int):Void {} + @:hlNative("lime", "hl_gl_disable") private static function lime_gl_disable(cap:Int):Void {} - @:hlNative("lime", "lime_gl_disable_vertex_attrib_array") private static function lime_gl_disable_vertex_attrib_array(index:Int):Void {} + @:hlNative("lime", "hl_gl_disable_vertex_attrib_array") private static function lime_gl_disable_vertex_attrib_array(index:Int):Void {} - @:hlNative("lime", "lime_gl_draw_arrays") private static function lime_gl_draw_arrays(mode:Int, first:Int, count:Int):Void {} + @:hlNative("lime", "hl_gl_draw_arrays") private static function lime_gl_draw_arrays(mode:Int, first:Int, count:Int):Void {} - @:hlNative("lime", "lime_gl_draw_arrays_instanced") private static function lime_gl_draw_arrays_instanced(mode:Int, first:Int, count:Int, + @:hlNative("lime", "hl_gl_draw_arrays_instanced") private static function lime_gl_draw_arrays_instanced(mode:Int, first:Int, count:Int, instanceCount:Int):Void {} - @:hlNative("lime", "lime_gl_draw_buffers") private static function lime_gl_draw_buffers(buffers:hl.NativeArray):Void {} + @:hlNative("lime", "hl_gl_draw_buffers") private static function lime_gl_draw_buffers(buffers:hl.NativeArray):Void {} - @:hlNative("lime", "lime_gl_draw_elements") private static function lime_gl_draw_elements(mode:Int, count:Int, type:Int, offset:DataPointer):Void {} + @:hlNative("lime", "hl_gl_draw_elements") private static function lime_gl_draw_elements(mode:Int, count:Int, type:Int, offset:DataPointer):Void {} - @:hlNative("lime", "lime_gl_draw_elements_instanced") private static function lime_gl_draw_elements_instanced(mode:Int, count:Int, type:Int, + @:hlNative("lime", "hl_gl_draw_elements_instanced") private static function lime_gl_draw_elements_instanced(mode:Int, count:Int, type:Int, offset:DataPointer, instanceCount:Int):Void {} - @:hlNative("lime", "lime_gl_draw_range_elements") private static function lime_gl_draw_range_elements(mode:Int, start:Int, end:Int, count:Int, type:Int, + @:hlNative("lime", "hl_gl_draw_range_elements") private static function lime_gl_draw_range_elements(mode:Int, start:Int, end:Int, count:Int, type:Int, offset:DataPointer):Void {} - @:hlNative("lime", "lime_gl_enable") private static function lime_gl_enable(cap:Int):Void {} + @:hlNative("lime", "hl_gl_enable") private static function lime_gl_enable(cap:Int):Void {} - @:hlNative("lime", "lime_gl_enable_vertex_attrib_array") private static function lime_gl_enable_vertex_attrib_array(index:Int):Void {} + @:hlNative("lime", "hl_gl_enable_vertex_attrib_array") private static function lime_gl_enable_vertex_attrib_array(index:Int):Void {} - @:hlNative("lime", "lime_gl_end_query") private static function lime_gl_end_query(target:Int):Void {} + @:hlNative("lime", "hl_gl_end_query") private static function lime_gl_end_query(target:Int):Void {} - @:hlNative("lime", "lime_gl_end_transform_feedback") private static function lime_gl_end_transform_feedback():Void {} + @:hlNative("lime", "hl_gl_end_transform_feedback") private static function lime_gl_end_transform_feedback():Void {} - @:hlNative("lime", "lime_gl_fence_sync") private static function lime_gl_fence_sync(condition:Int, flags:Int):CFFIPointer + @:hlNative("lime", "hl_gl_fence_sync") private static function lime_gl_fence_sync(condition:Int, flags:Int):CFFIPointer { return null; } - @:hlNative("lime", "lime_gl_finish") private static function lime_gl_finish():Void {} + @:hlNative("lime", "hl_gl_finish") private static function lime_gl_finish():Void {} - @:hlNative("lime", "lime_gl_flush") private static function lime_gl_flush():Void {} + @:hlNative("lime", "hl_gl_flush") private static function lime_gl_flush():Void {} - @:hlNative("lime", "lime_gl_framebuffer_renderbuffer") private static function lime_gl_framebuffer_renderbuffer(target:Int, attachment:Int, + @:hlNative("lime", "hl_gl_framebuffer_renderbuffer") private static function lime_gl_framebuffer_renderbuffer(target:Int, attachment:Int, renderbuffertarget:Int, renderbuffer:Int):Void {} - @:hlNative("lime", "lime_gl_framebuffer_texture2D") private static function lime_gl_framebuffer_texture2D(target:Int, attachment:Int, textarget:Int, + @:hlNative("lime", "hl_gl_framebuffer_texture2D") private static function lime_gl_framebuffer_texture2D(target:Int, attachment:Int, textarget:Int, texture:Int, level:Int):Void {} - @:hlNative("lime", "lime_gl_framebuffer_texture_layer") private static function lime_gl_framebuffer_texture_layer(target:Int, attachment:Int, texture:Int, + @:hlNative("lime", "hl_gl_framebuffer_texture_layer") private static function lime_gl_framebuffer_texture_layer(target:Int, attachment:Int, texture:Int, level:Int, layer:Int):Void {} - @:hlNative("lime", "lime_gl_front_face") private static function lime_gl_front_face(mode:Int):Void {} + @:hlNative("lime", "hl_gl_front_face") private static function lime_gl_front_face(mode:Int):Void {} - @:hlNative("lime", "lime_gl_generate_mipmap") private static function lime_gl_generate_mipmap(target:Int):Void {} + @:hlNative("lime", "hl_gl_generate_mipmap") private static function lime_gl_generate_mipmap(target:Int):Void {} - @:hlNative("lime", "lime_gl_get_active_attrib") private static function lime_gl_get_active_attrib(program:Int, index:Int):Dynamic + @:hlNative("lime", "hl_gl_get_active_attrib") private static function lime_gl_get_active_attrib(program:Int, index:Int):Dynamic { return null; } - @:hlNative("lime", "lime_gl_get_active_uniform") private static function lime_gl_get_active_uniform(program:Int, index:Int):Dynamic + @:hlNative("lime", "hl_gl_get_active_uniform") private static function lime_gl_get_active_uniform(program:Int, index:Int):Dynamic { return null; } - @:hlNative("lime", "lime_gl_get_active_uniform_blocki") private static function lime_gl_get_active_uniform_blocki(program:Int, uniformBlockIndex:Int, + @:hlNative("lime", "hl_gl_get_active_uniform_blocki") private static function lime_gl_get_active_uniform_blocki(program:Int, uniformBlockIndex:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_active_uniform_blockiv") private static function lime_gl_get_active_uniform_blockiv(program:Int, uniformBlockIndex:Int, + @:hlNative("lime", "hl_gl_get_active_uniform_blockiv") private static function lime_gl_get_active_uniform_blockiv(program:Int, uniformBlockIndex:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_active_uniform_block_name") private static function lime_gl_get_active_uniform_block_name(program:Int, + @:hlNative("lime", "hl_gl_get_active_uniform_block_name") private static function lime_gl_get_active_uniform_block_name(program:Int, uniformBlockIndex:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_gl_get_active_uniformsiv") private static function lime_gl_get_active_uniformsiv(program:Int, uniformIndices:hl.NativeArray, + @:hlNative("lime", "hl_gl_get_active_uniformsiv") private static function lime_gl_get_active_uniformsiv(program:Int, uniformIndices:hl.NativeArray, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_attached_shaders") private static function lime_gl_get_attached_shaders(program:Int):hl.NativeArray + @:hlNative("lime", "hl_gl_get_attached_shaders") private static function lime_gl_get_attached_shaders(program:Int):hl.NativeArray { return null; } - @:hlNative("lime", "lime_gl_get_attrib_location") private static function lime_gl_get_attrib_location(program:Int, name:String):Int + @:hlNative("lime", "hl_gl_get_attrib_location") private static function lime_gl_get_attrib_location(program:Int, name:String):Int { return 0; } - @:hlNative("lime", "lime_gl_get_boolean") private static function lime_gl_get_boolean(pname:Int):Bool + @:hlNative("lime", "hl_gl_get_boolean") private static function lime_gl_get_boolean(pname:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_get_booleanv") private static function lime_gl_get_booleanv(pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_booleanv") private static function lime_gl_get_booleanv(pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_buffer_parameteri") private static function lime_gl_get_buffer_parameteri(target:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_buffer_parameteri") private static function lime_gl_get_buffer_parameteri(target:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_buffer_parameteri64v") private static function lime_gl_get_buffer_parameteri64v(target:Int, index:Int, + @:hlNative("lime", "hl_gl_get_buffer_parameteri64v") private static function lime_gl_get_buffer_parameteri64v(target:Int, index:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_buffer_parameteriv") private static function lime_gl_get_buffer_parameteriv(target:Int, pname:Int, + @:hlNative("lime", "hl_gl_get_buffer_parameteriv") private static function lime_gl_get_buffer_parameteriv(target:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_buffer_pointerv") private static function lime_gl_get_buffer_pointerv(target:Int, pname:Int):DataPointer + @:hlNative("lime", "hl_gl_get_buffer_pointerv") private static function lime_gl_get_buffer_pointerv(target:Int, pname:Int):DataPointer { return 0; } - @:hlNative("lime", "lime_gl_get_buffer_sub_data") private static function lime_gl_get_buffer_sub_data(target:Int, offset:DataPointer, size:Int, + @:hlNative("lime", "hl_gl_get_buffer_sub_data") private static function lime_gl_get_buffer_sub_data(target:Int, offset:DataPointer, size:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_context_attributes") private static function lime_gl_get_context_attributes():Dynamic + @:hlNative("lime", "hl_gl_get_context_attributes") private static function lime_gl_get_context_attributes():Dynamic { return null; } - @:hlNative("lime", "lime_gl_get_error") private static function lime_gl_get_error():Int + @:hlNative("lime", "hl_gl_get_error") private static function lime_gl_get_error():Int { return 0; } - @:hlNative("lime", "lime_gl_get_extension") private static function lime_gl_get_extension(name:String):CFFIPointer + @:hlNative("lime", "hl_gl_get_extension") private static function lime_gl_get_extension(name:String):CFFIPointer { return null; } - @:hlNative("lime", "lime_gl_get_float") private static function lime_gl_get_float(pname:Int):hl.F32 + @:hlNative("lime", "hl_gl_get_float") private static function lime_gl_get_float(pname:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_gl_get_floatv") private static function lime_gl_get_floatv(pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_floatv") private static function lime_gl_get_floatv(pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_frag_data_location") private static function lime_gl_get_frag_data_location(program:Int, name:String):Int + @:hlNative("lime", "hl_gl_get_frag_data_location") private static function lime_gl_get_frag_data_location(program:Int, name:String):Int { return 0; } - @:hlNative("lime", "lime_gl_get_framebuffer_attachment_parameteri") private static function lime_gl_get_framebuffer_attachment_parameteri(target:Int, + @:hlNative("lime", "hl_gl_get_framebuffer_attachment_parameteri") private static function lime_gl_get_framebuffer_attachment_parameteri(target:Int, attachment:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_framebuffer_attachment_parameteriv") private static function lime_gl_get_framebuffer_attachment_parameteriv(target:Int, + @:hlNative("lime", "hl_gl_get_framebuffer_attachment_parameteriv") private static function lime_gl_get_framebuffer_attachment_parameteriv(target:Int, attachment:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_integer") private static function lime_gl_get_integer(pname:Int):Int + @:hlNative("lime", "hl_gl_get_integer") private static function lime_gl_get_integer(pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_integer64v") private static function lime_gl_get_integer64v(pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_integer64v") private static function lime_gl_get_integer64v(pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_integer64i_v") private static function lime_gl_get_integer64i_v(pname:Int, index:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_integer64i_v") private static function lime_gl_get_integer64i_v(pname:Int, index:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_integerv") private static function lime_gl_get_integerv(pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_integerv") private static function lime_gl_get_integerv(pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_integeri_v") private static function lime_gl_get_integeri_v(pname:Int, index:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_integeri_v") private static function lime_gl_get_integeri_v(pname:Int, index:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_internalformativ") private static function lime_gl_get_internalformativ(target:Int, internalformat:Int, pname:Int, + @:hlNative("lime", "hl_gl_get_internalformativ") private static function lime_gl_get_internalformativ(target:Int, internalformat:Int, pname:Int, bufSize:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_program_binary") private static function lime_gl_get_program_binary(program:Int, binaryFormat:Int, bytes:Bytes):Void {} + @:hlNative("lime", "hl_gl_get_program_binary") private static function lime_gl_get_program_binary(program:Int, binaryFormat:Int, bytes:Bytes):Void {} - @:hlNative("lime", "lime_gl_get_program_info_log") private static function lime_gl_get_program_info_log(program:Int):hl.Bytes + @:hlNative("lime", "hl_gl_get_program_info_log") private static function lime_gl_get_program_info_log(program:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_gl_get_programi") private static function lime_gl_get_programi(program:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_programi") private static function lime_gl_get_programi(program:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_programiv") private static function lime_gl_get_programiv(program:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_programiv") private static function lime_gl_get_programiv(program:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_queryi") private static function lime_gl_get_queryi(target:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_queryi") private static function lime_gl_get_queryi(target:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_queryiv") private static function lime_gl_get_queryiv(target:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_queryiv") private static function lime_gl_get_queryiv(target:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_query_objectui") private static function lime_gl_get_query_objectui(target:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_query_objectui") private static function lime_gl_get_query_objectui(target:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_query_objectuiv") private static function lime_gl_get_query_objectuiv(target:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_query_objectuiv") private static function lime_gl_get_query_objectuiv(target:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_renderbuffer_parameteri") private static function lime_gl_get_renderbuffer_parameteri(target:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_renderbuffer_parameteri") private static function lime_gl_get_renderbuffer_parameteri(target:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_renderbuffer_parameteriv") private static function lime_gl_get_renderbuffer_parameteriv(target:Int, pname:Int, + @:hlNative("lime", "hl_gl_get_renderbuffer_parameteriv") private static function lime_gl_get_renderbuffer_parameteriv(target:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_sampler_parameterf") private static function lime_gl_get_sampler_parameterf(target:Int, pname:Int):hl.F32 + @:hlNative("lime", "hl_gl_get_sampler_parameterf") private static function lime_gl_get_sampler_parameterf(target:Int, pname:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_gl_get_sampler_parameterfv") private static function lime_gl_get_sampler_parameterfv(target:Int, pname:Int, + @:hlNative("lime", "hl_gl_get_sampler_parameterfv") private static function lime_gl_get_sampler_parameterfv(target:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_sampler_parameteri") private static function lime_gl_get_sampler_parameteri(target:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_sampler_parameteri") private static function lime_gl_get_sampler_parameteri(target:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_sampler_parameteriv") private static function lime_gl_get_sampler_parameteriv(target:Int, pname:Int, + @:hlNative("lime", "hl_gl_get_sampler_parameteriv") private static function lime_gl_get_sampler_parameteriv(target:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_shader_info_log") private static function lime_gl_get_shader_info_log(shader:Int):hl.Bytes + @:hlNative("lime", "hl_gl_get_shader_info_log") private static function lime_gl_get_shader_info_log(shader:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_gl_get_shaderi") private static function lime_gl_get_shaderi(shader:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_shaderi") private static function lime_gl_get_shaderi(shader:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_shaderiv") private static function lime_gl_get_shaderiv(shader:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_shaderiv") private static function lime_gl_get_shaderiv(shader:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_shader_precision_format") private static function lime_gl_get_shader_precision_format(shadertype:Int, + @:hlNative("lime", "hl_gl_get_shader_precision_format") private static function lime_gl_get_shader_precision_format(shadertype:Int, precisiontype:Int):Dynamic { return null; } - @:hlNative("lime", "lime_gl_get_shader_source") private static function lime_gl_get_shader_source(shader:Int):hl.Bytes + @:hlNative("lime", "hl_gl_get_shader_source") private static function lime_gl_get_shader_source(shader:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_gl_get_string") private static function lime_gl_get_string(pname:Int):hl.Bytes + @:hlNative("lime", "hl_gl_get_string") private static function lime_gl_get_string(pname:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_gl_get_stringi") private static function lime_gl_get_stringi(pname:Int, index:Int):hl.Bytes + @:hlNative("lime", "hl_gl_get_stringi") private static function lime_gl_get_stringi(pname:Int, index:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_gl_get_sync_parameteri") private static function lime_gl_get_sync_parameteri(sync:CFFIPointer, pname:Int):Int + @:hlNative("lime", "hl_gl_get_sync_parameteri") private static function lime_gl_get_sync_parameteri(sync:CFFIPointer, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_sync_parameteriv") private static function lime_gl_get_sync_parameteriv(sync:CFFIPointer, pname:Int, + @:hlNative("lime", "hl_gl_get_sync_parameteriv") private static function lime_gl_get_sync_parameteriv(sync:CFFIPointer, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_tex_parameterf") private static function lime_gl_get_tex_parameterf(target:Int, pname:Int):hl.F32 + @:hlNative("lime", "hl_gl_get_tex_parameterf") private static function lime_gl_get_tex_parameterf(target:Int, pname:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_gl_get_tex_parameterfv") private static function lime_gl_get_tex_parameterfv(target:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_tex_parameterfv") private static function lime_gl_get_tex_parameterfv(target:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_tex_parameteri") private static function lime_gl_get_tex_parameteri(target:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_tex_parameteri") private static function lime_gl_get_tex_parameteri(target:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_tex_parameteriv") private static function lime_gl_get_tex_parameteriv(target:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_tex_parameteriv") private static function lime_gl_get_tex_parameteriv(target:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_transform_feedback_varying") private static function lime_gl_get_transform_feedback_varying(program:Int, index:Int):Dynamic + @:hlNative("lime", "hl_gl_get_transform_feedback_varying") private static function lime_gl_get_transform_feedback_varying(program:Int, index:Int):Dynamic { return null; } - @:hlNative("lime", "lime_gl_get_uniformf") private static function lime_gl_get_uniformf(program:Int, location:Int):hl.F32 + @:hlNative("lime", "hl_gl_get_uniformf") private static function lime_gl_get_uniformf(program:Int, location:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_gl_get_uniformfv") private static function lime_gl_get_uniformfv(program:Int, location:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_uniformfv") private static function lime_gl_get_uniformfv(program:Int, location:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_uniformi") private static function lime_gl_get_uniformi(program:Int, location:Int):Int + @:hlNative("lime", "hl_gl_get_uniformi") private static function lime_gl_get_uniformi(program:Int, location:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_uniformiv") private static function lime_gl_get_uniformiv(program:Int, location:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_uniformiv") private static function lime_gl_get_uniformiv(program:Int, location:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_uniformui") private static function lime_gl_get_uniformui(program:Int, location:Int):Int + @:hlNative("lime", "hl_gl_get_uniformui") private static function lime_gl_get_uniformui(program:Int, location:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_uniformuiv") private static function lime_gl_get_uniformuiv(program:Int, location:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_uniformuiv") private static function lime_gl_get_uniformuiv(program:Int, location:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_uniform_block_index") private static function lime_gl_get_uniform_block_index(program:Int, uniformBlockName:String):Int + @:hlNative("lime", "hl_gl_get_uniform_block_index") private static function lime_gl_get_uniform_block_index(program:Int, uniformBlockName:String):Int { return 0; } - @:hlNative("lime", "lime_gl_get_uniform_location") private static function lime_gl_get_uniform_location(program:Int, name:String):Int + @:hlNative("lime", "hl_gl_get_uniform_location") private static function lime_gl_get_uniform_location(program:Int, name:String):Int { return 0; } - @:hlNative("lime", "lime_gl_get_vertex_attribf") private static function lime_gl_get_vertex_attribf(index:Int, pname:Int):hl.F32 + @:hlNative("lime", "hl_gl_get_vertex_attribf") private static function lime_gl_get_vertex_attribf(index:Int, pname:Int):hl.F32 { return 0; } - @:hlNative("lime", "lime_gl_get_vertex_attribfv") private static function lime_gl_get_vertex_attribfv(index:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_vertex_attribfv") private static function lime_gl_get_vertex_attribfv(index:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_vertex_attribi") private static function lime_gl_get_vertex_attribi(index:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_vertex_attribi") private static function lime_gl_get_vertex_attribi(index:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_vertex_attribiv") private static function lime_gl_get_vertex_attribiv(index:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_vertex_attribiv") private static function lime_gl_get_vertex_attribiv(index:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_vertex_attribii") private static function lime_gl_get_vertex_attribii(index:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_vertex_attribii") private static function lime_gl_get_vertex_attribii(index:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_vertex_attribiiv") private static function lime_gl_get_vertex_attribiiv(index:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_vertex_attribiiv") private static function lime_gl_get_vertex_attribiiv(index:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_vertex_attribiui") private static function lime_gl_get_vertex_attribiui(index:Int, pname:Int):Int + @:hlNative("lime", "hl_gl_get_vertex_attribiui") private static function lime_gl_get_vertex_attribiui(index:Int, pname:Int):Int { return 0; } - @:hlNative("lime", "lime_gl_get_vertex_attribiuiv") private static function lime_gl_get_vertex_attribiuiv(index:Int, pname:Int, params:DataPointer):Void {} + @:hlNative("lime", "hl_gl_get_vertex_attribiuiv") private static function lime_gl_get_vertex_attribiuiv(index:Int, pname:Int, params:DataPointer):Void {} - @:hlNative("lime", "lime_gl_get_vertex_attrib_pointerv") private static function lime_gl_get_vertex_attrib_pointerv(index:Int, pname:Int):DataPointer + @:hlNative("lime", "hl_gl_get_vertex_attrib_pointerv") private static function lime_gl_get_vertex_attrib_pointerv(index:Int, pname:Int):DataPointer { return 0; } - @:hlNative("lime", "lime_gl_hint") private static function lime_gl_hint(target:Int, mode:Int):Void {} + @:hlNative("lime", "hl_gl_hint") private static function lime_gl_hint(target:Int, mode:Int):Void {} - @:hlNative("lime", "lime_gl_invalidate_framebuffer") private static function lime_gl_invalidate_framebuffer(target:Int, + @:hlNative("lime", "hl_gl_invalidate_framebuffer") private static function lime_gl_invalidate_framebuffer(target:Int, attachments:hl.NativeArray):Void {} - @:hlNative("lime", "lime_gl_invalidate_sub_framebuffer") private static function lime_gl_invalidate_sub_framebuffer(target:Int, + @:hlNative("lime", "hl_gl_invalidate_sub_framebuffer") private static function lime_gl_invalidate_sub_framebuffer(target:Int, attachments:hl.NativeArray, x:Int, y:Int, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_gl_is_buffer") private static function lime_gl_is_buffer(buffer:Int):Bool + @:hlNative("lime", "hl_gl_is_buffer") private static function lime_gl_is_buffer(buffer:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_enabled") private static function lime_gl_is_enabled(cap:Int):Bool + @:hlNative("lime", "hl_gl_is_enabled") private static function lime_gl_is_enabled(cap:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_framebuffer") private static function lime_gl_is_framebuffer(framebuffer:Int):Bool + @:hlNative("lime", "hl_gl_is_framebuffer") private static function lime_gl_is_framebuffer(framebuffer:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_program") private static function lime_gl_is_program(program:Int):Bool + @:hlNative("lime", "hl_gl_is_program") private static function lime_gl_is_program(program:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_query") private static function lime_gl_is_query(query:Int):Bool + @:hlNative("lime", "hl_gl_is_query") private static function lime_gl_is_query(query:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_renderbuffer") private static function lime_gl_is_renderbuffer(renderbuffer:Int):Bool + @:hlNative("lime", "hl_gl_is_renderbuffer") private static function lime_gl_is_renderbuffer(renderbuffer:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_sampler") private static function lime_gl_is_sampler(sampler:Int):Bool + @:hlNative("lime", "hl_gl_is_sampler") private static function lime_gl_is_sampler(sampler:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_shader") private static function lime_gl_is_shader(shader:Int):Bool + @:hlNative("lime", "hl_gl_is_shader") private static function lime_gl_is_shader(shader:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_sync") private static function lime_gl_is_sync(sync:CFFIPointer):Bool + @:hlNative("lime", "hl_gl_is_sync") private static function lime_gl_is_sync(sync:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_gl_is_texture") private static function lime_gl_is_texture(texture:Int):Bool + @:hlNative("lime", "hl_gl_is_texture") private static function lime_gl_is_texture(texture:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_transform_feedback") private static function lime_gl_is_transform_feedback(transformFeedback:Int):Bool + @:hlNative("lime", "hl_gl_is_transform_feedback") private static function lime_gl_is_transform_feedback(transformFeedback:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_is_vertex_array") private static function lime_gl_is_vertex_array(vertexArray:Int):Bool + @:hlNative("lime", "hl_gl_is_vertex_array") private static function lime_gl_is_vertex_array(vertexArray:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_line_width") private static function lime_gl_line_width(width:hl.F32):Void {} + @:hlNative("lime", "hl_gl_line_width") private static function lime_gl_line_width(width:hl.F32):Void {} - @:hlNative("lime", "lime_gl_link_program") private static function lime_gl_link_program(program:Int):Void {} + @:hlNative("lime", "hl_gl_link_program") private static function lime_gl_link_program(program:Int):Void {} - @:hlNative("lime", "lime_gl_map_buffer_range") private static function lime_gl_map_buffer_range(target:Int, offset:DataPointer, length:Int, + @:hlNative("lime", "hl_gl_map_buffer_range") private static function lime_gl_map_buffer_range(target:Int, offset:DataPointer, length:Int, access:Int):DataPointer { return 0; } - @:hlNative("lime", "lime_gl_object_deregister") private static function lime_gl_object_deregister(object:GLObject):Void {} + @:hlNative("lime", "hl_gl_object_deregister") private static function lime_gl_object_deregister(object:GLObject):Void {} - @:hlNative("lime", "lime_gl_object_from_id") private static function lime_gl_object_from_id(id:Int, type:Int):GLObject + @:hlNative("lime", "hl_gl_object_from_id") private static function lime_gl_object_from_id(id:Int, type:Int):GLObject { return null; } - @:hlNative("lime", "lime_gl_object_register") private static function lime_gl_object_register(id:Int, type:Int, object:GLObject):CFFIPointer + @:hlNative("lime", "hl_gl_object_register") private static function lime_gl_object_register(id:Int, type:Int, object:GLObject):CFFIPointer { return null; } - @:hlNative("lime", "lime_gl_pause_transform_feedback") private static function lime_gl_pause_transform_feedback():Void {} + @:hlNative("lime", "hl_gl_pause_transform_feedback") private static function lime_gl_pause_transform_feedback():Void {} - @:hlNative("lime", "lime_gl_pixel_storei") private static function lime_gl_pixel_storei(pname:Int, param:Int):Void {} + @:hlNative("lime", "hl_gl_pixel_storei") private static function lime_gl_pixel_storei(pname:Int, param:Int):Void {} - @:hlNative("lime", "lime_gl_polygon_offset") private static function lime_gl_polygon_offset(factor:hl.F32, units:hl.F32):Void {} + @:hlNative("lime", "hl_gl_polygon_offset") private static function lime_gl_polygon_offset(factor:hl.F32, units:hl.F32):Void {} - @:hlNative("lime", "lime_gl_program_binary") private static function lime_gl_program_binary(program:Int, binaryFormat:Int, binary:DataPointer, + @:hlNative("lime", "hl_gl_program_binary") private static function lime_gl_program_binary(program:Int, binaryFormat:Int, binary:DataPointer, length:Int):Void {} - @:hlNative("lime", "lime_gl_program_parameteri") private static function lime_gl_program_parameteri(program:Int, pname:Int, value:Int):Void {} + @:hlNative("lime", "hl_gl_program_parameteri") private static function lime_gl_program_parameteri(program:Int, pname:Int, value:Int):Void {} - @:hlNative("lime", "lime_gl_read_buffer") private static function lime_gl_read_buffer(src:Int):Void {} + @:hlNative("lime", "hl_gl_read_buffer") private static function lime_gl_read_buffer(src:Int):Void {} - @:hlNative("lime", "lime_gl_read_pixels") private static function lime_gl_read_pixels(x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, + @:hlNative("lime", "hl_gl_read_pixels") private static function lime_gl_read_pixels(x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:DataPointer):Void {} - @:hlNative("lime", "lime_gl_release_shader_compiler") private static function lime_gl_release_shader_compiler():Void {} + @:hlNative("lime", "hl_gl_release_shader_compiler") private static function lime_gl_release_shader_compiler():Void {} - @:hlNative("lime", "lime_gl_renderbuffer_storage") private static function lime_gl_renderbuffer_storage(target:Int, internalformat:Int, width:Int, + @:hlNative("lime", "hl_gl_renderbuffer_storage") private static function lime_gl_renderbuffer_storage(target:Int, internalformat:Int, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_gl_renderbuffer_storage_multisample") private static function lime_gl_renderbuffer_storage_multisample(target:Int, samples:Int, + @:hlNative("lime", "hl_gl_renderbuffer_storage_multisample") private static function lime_gl_renderbuffer_storage_multisample(target:Int, samples:Int, internalformat:Int, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_gl_resume_transform_feedback") private static function lime_gl_resume_transform_feedback():Void {} + @:hlNative("lime", "hl_gl_resume_transform_feedback") private static function lime_gl_resume_transform_feedback():Void {} - @:hlNative("lime", "lime_gl_sample_coverage") private static function lime_gl_sample_coverage(value:hl.F32, invert:Bool):Void {} + @:hlNative("lime", "hl_gl_sample_coverage") private static function lime_gl_sample_coverage(value:hl.F32, invert:Bool):Void {} - @:hlNative("lime", "lime_gl_sampler_parameterf") private static function lime_gl_sampler_parameterf(sampler:Int, pname:Int, param:hl.F32):Void {} + @:hlNative("lime", "hl_gl_sampler_parameterf") private static function lime_gl_sampler_parameterf(sampler:Int, pname:Int, param:hl.F32):Void {} - @:hlNative("lime", "lime_gl_sampler_parameteri") private static function lime_gl_sampler_parameteri(sampler:Int, pname:Int, param:Int):Void {} + @:hlNative("lime", "hl_gl_sampler_parameteri") private static function lime_gl_sampler_parameteri(sampler:Int, pname:Int, param:Int):Void {} - @:hlNative("lime", "lime_gl_scissor") private static function lime_gl_scissor(x:Int, y:Int, width:Int, height:Int):Void {} + @:hlNative("lime", "hl_gl_scissor") private static function lime_gl_scissor(x:Int, y:Int, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_gl_shader_binary") private static function lime_gl_shader_binary(shaders:hl.NativeArray, binaryformat:Int, + @:hlNative("lime", "hl_gl_shader_binary") private static function lime_gl_shader_binary(shaders:hl.NativeArray, binaryformat:Int, binary:DataPointer, length:Int):Void {} - @:hlNative("lime", "lime_gl_shader_source") private static function lime_gl_shader_source(shader:Int, source:String):Void {} + @:hlNative("lime", "hl_gl_shader_source") private static function lime_gl_shader_source(shader:Int, source:String):Void {} - @:hlNative("lime", "lime_gl_stencil_func") private static function lime_gl_stencil_func(func:Int, ref:Int, mask:Int):Void {} + @:hlNative("lime", "hl_gl_stencil_func") private static function lime_gl_stencil_func(func:Int, ref:Int, mask:Int):Void {} - @:hlNative("lime", "lime_gl_stencil_func_separate") private static function lime_gl_stencil_func_separate(face:Int, func:Int, ref:Int, mask:Int):Void {} + @:hlNative("lime", "hl_gl_stencil_func_separate") private static function lime_gl_stencil_func_separate(face:Int, func:Int, ref:Int, mask:Int):Void {} - @:hlNative("lime", "lime_gl_stencil_mask") private static function lime_gl_stencil_mask(mask:Int):Void {} + @:hlNative("lime", "hl_gl_stencil_mask") private static function lime_gl_stencil_mask(mask:Int):Void {} - @:hlNative("lime", "lime_gl_stencil_mask_separate") private static function lime_gl_stencil_mask_separate(face:Int, mask:Int):Void {} + @:hlNative("lime", "hl_gl_stencil_mask_separate") private static function lime_gl_stencil_mask_separate(face:Int, mask:Int):Void {} - @:hlNative("lime", "lime_gl_stencil_op") private static function lime_gl_stencil_op(fail:Int, zfail:Int, zpass:Int):Void {} + @:hlNative("lime", "hl_gl_stencil_op") private static function lime_gl_stencil_op(fail:Int, zfail:Int, zpass:Int):Void {} - @:hlNative("lime", "lime_gl_stencil_op_separate") private static function lime_gl_stencil_op_separate(face:Int, fail:Int, zfail:Int, zpass:Int):Void {} + @:hlNative("lime", "hl_gl_stencil_op_separate") private static function lime_gl_stencil_op_separate(face:Int, fail:Int, zfail:Int, zpass:Int):Void {} - @:hlNative("lime", "lime_gl_tex_image_2d") private static function lime_gl_tex_image_2d(target:Int, level:Int, internalformat:Int, width:Int, height:Int, + @:hlNative("lime", "hl_gl_tex_image_2d") private static function lime_gl_tex_image_2d(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_tex_image_3d") private static function lime_gl_tex_image_3d(target:Int, level:Int, internalformat:Int, width:Int, height:Int, + @:hlNative("lime", "hl_gl_tex_image_3d") private static function lime_gl_tex_image_3d(target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int, border:Int, format:Int, type:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_tex_parameterf") private static function lime_gl_tex_parameterf(target:Int, pname:Int, param:hl.F32):Void {} + @:hlNative("lime", "hl_gl_tex_parameterf") private static function lime_gl_tex_parameterf(target:Int, pname:Int, param:hl.F32):Void {} - @:hlNative("lime", "lime_gl_tex_parameteri") private static function lime_gl_tex_parameteri(target:Int, pname:Int, param:Int):Void {} + @:hlNative("lime", "hl_gl_tex_parameteri") private static function lime_gl_tex_parameteri(target:Int, pname:Int, param:Int):Void {} - @:hlNative("lime", "lime_gl_tex_storage_2d") private static function lime_gl_tex_storage_2d(target:Int, level:Int, internalformat:Int, width:Int, + @:hlNative("lime", "hl_gl_tex_storage_2d") private static function lime_gl_tex_storage_2d(target:Int, level:Int, internalformat:Int, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_gl_tex_storage_3d") private static function lime_gl_tex_storage_3d(target:Int, level:Int, internalformat:Int, width:Int, + @:hlNative("lime", "hl_gl_tex_storage_3d") private static function lime_gl_tex_storage_3d(target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int):Void {} - @:hlNative("lime", "lime_gl_tex_sub_image_2d") private static function lime_gl_tex_sub_image_2d(target:Int, level:Int, xoffset:Int, yoffset:Int, + @:hlNative("lime", "hl_gl_tex_sub_image_2d") private static function lime_gl_tex_sub_image_2d(target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_tex_sub_image_3d") private static function lime_gl_tex_sub_image_3d(target:Int, level:Int, xoffset:Int, yoffset:Int, + @:hlNative("lime", "hl_gl_tex_sub_image_3d") private static function lime_gl_tex_sub_image_3d(target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, width:Int, height:Int, depth:Int, format:Int, type:Int, data:DataPointer):Void {} - @:hlNative("lime", "lime_gl_transform_feedback_varyings") private static function lime_gl_transform_feedback_varyings(program:Int, + @:hlNative("lime", "hl_gl_transform_feedback_varyings") private static function lime_gl_transform_feedback_varyings(program:Int, varyings:hl.NativeArray, bufferMode:Int):Void {} - @:hlNative("lime", "lime_gl_uniform1f") private static function lime_gl_uniform1f(location:Int, v0:hl.F32):Void {} + @:hlNative("lime", "hl_gl_uniform1f") private static function lime_gl_uniform1f(location:Int, v0:hl.F32):Void {} - @:hlNative("lime", "lime_gl_uniform1fv") private static function lime_gl_uniform1fv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform1fv") private static function lime_gl_uniform1fv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform1i") private static function lime_gl_uniform1i(location:Int, v0:Int):Void {} + @:hlNative("lime", "hl_gl_uniform1i") private static function lime_gl_uniform1i(location:Int, v0:Int):Void {} - @:hlNative("lime", "lime_gl_uniform1iv") private static function lime_gl_uniform1iv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform1iv") private static function lime_gl_uniform1iv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform1ui") private static function lime_gl_uniform1ui(location:Int, v0:Int):Void {} + @:hlNative("lime", "hl_gl_uniform1ui") private static function lime_gl_uniform1ui(location:Int, v0:Int):Void {} - @:hlNative("lime", "lime_gl_uniform1uiv") private static function lime_gl_uniform1uiv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform1uiv") private static function lime_gl_uniform1uiv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform2f") private static function lime_gl_uniform2f(location:Int, v0:hl.F32, v1:hl.F32):Void {} + @:hlNative("lime", "hl_gl_uniform2f") private static function lime_gl_uniform2f(location:Int, v0:hl.F32, v1:hl.F32):Void {} - @:hlNative("lime", "lime_gl_uniform2fv") private static function lime_gl_uniform2fv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform2fv") private static function lime_gl_uniform2fv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform2i") private static function lime_gl_uniform2i(location:Int, v0:Int, v1:Int):Void {} + @:hlNative("lime", "hl_gl_uniform2i") private static function lime_gl_uniform2i(location:Int, v0:Int, v1:Int):Void {} - @:hlNative("lime", "lime_gl_uniform2iv") private static function lime_gl_uniform2iv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform2iv") private static function lime_gl_uniform2iv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform2ui") private static function lime_gl_uniform2ui(location:Int, v0:Int, v1:Int):Void {} + @:hlNative("lime", "hl_gl_uniform2ui") private static function lime_gl_uniform2ui(location:Int, v0:Int, v1:Int):Void {} - @:hlNative("lime", "lime_gl_uniform2uiv") private static function lime_gl_uniform2uiv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform2uiv") private static function lime_gl_uniform2uiv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform3f") private static function lime_gl_uniform3f(location:Int, v0:hl.F32, v1:hl.F32, v2:hl.F32):Void {} + @:hlNative("lime", "hl_gl_uniform3f") private static function lime_gl_uniform3f(location:Int, v0:hl.F32, v1:hl.F32, v2:hl.F32):Void {} - @:hlNative("lime", "lime_gl_uniform3fv") private static function lime_gl_uniform3fv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform3fv") private static function lime_gl_uniform3fv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform3i") private static function lime_gl_uniform3i(location:Int, v0:Int, v1:Int, v2:Int):Void {} + @:hlNative("lime", "hl_gl_uniform3i") private static function lime_gl_uniform3i(location:Int, v0:Int, v1:Int, v2:Int):Void {} - @:hlNative("lime", "lime_gl_uniform3iv") private static function lime_gl_uniform3iv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform3iv") private static function lime_gl_uniform3iv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform3ui") private static function lime_gl_uniform3ui(location:Int, v0:Int, v1:Int, v2:Int):Void {} + @:hlNative("lime", "hl_gl_uniform3ui") private static function lime_gl_uniform3ui(location:Int, v0:Int, v1:Int, v2:Int):Void {} - @:hlNative("lime", "lime_gl_uniform3uiv") private static function lime_gl_uniform3uiv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform3uiv") private static function lime_gl_uniform3uiv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform4f") private static function lime_gl_uniform4f(location:Int, v0:hl.F32, v1:hl.F32, v2:hl.F32, v3:hl.F32):Void {} + @:hlNative("lime", "hl_gl_uniform4f") private static function lime_gl_uniform4f(location:Int, v0:hl.F32, v1:hl.F32, v2:hl.F32, v3:hl.F32):Void {} - @:hlNative("lime", "lime_gl_uniform4fv") private static function lime_gl_uniform4fv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform4fv") private static function lime_gl_uniform4fv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform4i") private static function lime_gl_uniform4i(location:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void {} + @:hlNative("lime", "hl_gl_uniform4i") private static function lime_gl_uniform4i(location:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void {} - @:hlNative("lime", "lime_gl_uniform4iv") private static function lime_gl_uniform4iv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform4iv") private static function lime_gl_uniform4iv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform4ui") private static function lime_gl_uniform4ui(location:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void {} + @:hlNative("lime", "hl_gl_uniform4ui") private static function lime_gl_uniform4ui(location:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void {} - @:hlNative("lime", "lime_gl_uniform4uiv") private static function lime_gl_uniform4uiv(location:Int, count:Int, v:DataPointer):Void {} + @:hlNative("lime", "hl_gl_uniform4uiv") private static function lime_gl_uniform4uiv(location:Int, count:Int, v:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_block_binding") private static function lime_gl_uniform_block_binding(program:Int, uniformBlockIndex:Int, + @:hlNative("lime", "hl_gl_uniform_block_binding") private static function lime_gl_uniform_block_binding(program:Int, uniformBlockIndex:Int, uniformBlockBinding:Int):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix2fv") private static function lime_gl_uniform_matrix2fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix2fv") private static function lime_gl_uniform_matrix2fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix2x3fv") private static function lime_gl_uniform_matrix2x3fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix2x3fv") private static function lime_gl_uniform_matrix2x3fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix2x4fv") private static function lime_gl_uniform_matrix2x4fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix2x4fv") private static function lime_gl_uniform_matrix2x4fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix3fv") private static function lime_gl_uniform_matrix3fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix3fv") private static function lime_gl_uniform_matrix3fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix3x2fv") private static function lime_gl_uniform_matrix3x2fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix3x2fv") private static function lime_gl_uniform_matrix3x2fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix3x4fv") private static function lime_gl_uniform_matrix3x4fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix3x4fv") private static function lime_gl_uniform_matrix3x4fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix4fv") private static function lime_gl_uniform_matrix4fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix4fv") private static function lime_gl_uniform_matrix4fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix4x2fv") private static function lime_gl_uniform_matrix4x2fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix4x2fv") private static function lime_gl_uniform_matrix4x2fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_uniform_matrix4x3fv") private static function lime_gl_uniform_matrix4x3fv(location:Int, count:Int, transpose:Bool, + @:hlNative("lime", "hl_gl_uniform_matrix4x3fv") private static function lime_gl_uniform_matrix4x3fv(location:Int, count:Int, transpose:Bool, value:DataPointer):Void {} - @:hlNative("lime", "lime_gl_unmap_buffer") private static function lime_gl_unmap_buffer(target:Int):Bool + @:hlNative("lime", "hl_gl_unmap_buffer") private static function lime_gl_unmap_buffer(target:Int):Bool { return false; } - @:hlNative("lime", "lime_gl_use_program") private static function lime_gl_use_program(program:Int):Void {} + @:hlNative("lime", "hl_gl_use_program") private static function lime_gl_use_program(program:Int):Void {} - @:hlNative("lime", "lime_gl_validate_program") private static function lime_gl_validate_program(program:Int):Void {} + @:hlNative("lime", "hl_gl_validate_program") private static function lime_gl_validate_program(program:Int):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib1f") private static function lime_gl_vertex_attrib1f(indx:Int, v0:hl.F32):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib1f") private static function lime_gl_vertex_attrib1f(indx:Int, v0:hl.F32):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib1fv") private static function lime_gl_vertex_attrib1fv(indx:Int, values:DataPointer):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib1fv") private static function lime_gl_vertex_attrib1fv(indx:Int, values:DataPointer):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib2f") private static function lime_gl_vertex_attrib2f(indx:Int, v0:hl.F32, v1:hl.F32):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib2f") private static function lime_gl_vertex_attrib2f(indx:Int, v0:hl.F32, v1:hl.F32):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib2fv") private static function lime_gl_vertex_attrib2fv(indx:Int, values:DataPointer):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib2fv") private static function lime_gl_vertex_attrib2fv(indx:Int, values:DataPointer):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib3f") private static function lime_gl_vertex_attrib3f(indx:Int, v0:hl.F32, v1:hl.F32, v2:hl.F32):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib3f") private static function lime_gl_vertex_attrib3f(indx:Int, v0:hl.F32, v1:hl.F32, v2:hl.F32):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib3fv") private static function lime_gl_vertex_attrib3fv(indx:Int, values:DataPointer):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib3fv") private static function lime_gl_vertex_attrib3fv(indx:Int, values:DataPointer):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib4f") private static function lime_gl_vertex_attrib4f(indx:Int, v0:hl.F32, v1:hl.F32, v2:hl.F32, v3:hl.F32):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib4f") private static function lime_gl_vertex_attrib4f(indx:Int, v0:hl.F32, v1:hl.F32, v2:hl.F32, v3:hl.F32):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib4fv") private static function lime_gl_vertex_attrib4fv(indx:Int, values:DataPointer):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib4fv") private static function lime_gl_vertex_attrib4fv(indx:Int, values:DataPointer):Void {} - @:hlNative("lime", "lime_gl_vertex_attribi4i") private static function lime_gl_vertex_attribi4i(indx:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void {} + @:hlNative("lime", "hl_gl_vertex_attribi4i") private static function lime_gl_vertex_attribi4i(indx:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void {} - @:hlNative("lime", "lime_gl_vertex_attribi4iv") private static function lime_gl_vertex_attribi4iv(indx:Int, values:DataPointer):Void {} + @:hlNative("lime", "hl_gl_vertex_attribi4iv") private static function lime_gl_vertex_attribi4iv(indx:Int, values:DataPointer):Void {} - @:hlNative("lime", "lime_gl_vertex_attribi4ui") private static function lime_gl_vertex_attribi4ui(indx:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void {} + @:hlNative("lime", "hl_gl_vertex_attribi4ui") private static function lime_gl_vertex_attribi4ui(indx:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void {} - @:hlNative("lime", "lime_gl_vertex_attribi4uiv") private static function lime_gl_vertex_attribi4uiv(indx:Int, values:DataPointer):Void {} + @:hlNative("lime", "hl_gl_vertex_attribi4uiv") private static function lime_gl_vertex_attribi4uiv(indx:Int, values:DataPointer):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib_divisor") private static function lime_gl_vertex_attrib_divisor(indx:Int, divisor:Int):Void {} + @:hlNative("lime", "hl_gl_vertex_attrib_divisor") private static function lime_gl_vertex_attrib_divisor(indx:Int, divisor:Int):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib_ipointer") private static function lime_gl_vertex_attrib_ipointer(indx:Int, size:Int, type:Int, stride:Int, + @:hlNative("lime", "hl_gl_vertex_attrib_ipointer") private static function lime_gl_vertex_attrib_ipointer(indx:Int, size:Int, type:Int, stride:Int, offset:DataPointer):Void {} - @:hlNative("lime", "lime_gl_vertex_attrib_pointer") private static function lime_gl_vertex_attrib_pointer(indx:Int, size:Int, type:Int, normalized:Bool, + @:hlNative("lime", "hl_gl_vertex_attrib_pointer") private static function lime_gl_vertex_attrib_pointer(indx:Int, size:Int, type:Int, normalized:Bool, stride:Int, offset:DataPointer):Void {} - @:hlNative("lime", "lime_gl_viewport") private static function lime_gl_viewport(x:Int, y:Int, width:Int, height:Int):Void {} + @:hlNative("lime", "hl_gl_viewport") private static function lime_gl_viewport(x:Int, y:Int, width:Int, height:Int):Void {} - @:hlNative("lime", "lime_gl_wait_sync") private static function lime_gl_wait_sync(sync:CFFIPointer, flags:Int, timeoutA:Int, timeoutB:Int):Void {} + @:hlNative("lime", "hl_gl_wait_sync") private static function lime_gl_wait_sync(sync:CFFIPointer, flags:Int, timeoutA:Int, timeoutB:Int):Void {} #end #end #if (lime_cffi && !macro && lime_harfbuzz) @@ -6147,441 +6147,441 @@ class NativeCFFI #end #if hl - @:hlNative("lime", "lime_hb_blob_create") private static function lime_hb_blob_create(data:DataPointer, length:Int, memoryMode:Int):CFFIPointer + @:hlNative("lime", "hl_hb_blob_create") private static function lime_hb_blob_create(data:DataPointer, length:Int, memoryMode:Int):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_blob_create_sub_blob") private static function lime_hb_blob_create_sub_blob(parent:CFFIPointer, offset:Int, + @:hlNative("lime", "hl_hb_blob_create_sub_blob") private static function lime_hb_blob_create_sub_blob(parent:CFFIPointer, offset:Int, length:Int):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_blob_get_data") private static function lime_hb_blob_get_data(blob:CFFIPointer):Float + @:hlNative("lime", "hl_hb_blob_get_data") private static function lime_hb_blob_get_data(blob:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_hb_blob_get_data_writable") private static function lime_hb_blob_get_data_writable(blob:CFFIPointer):Float + @:hlNative("lime", "hl_hb_blob_get_data_writable") private static function lime_hb_blob_get_data_writable(blob:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_hb_blob_get_empty") private static function lime_hb_blob_get_empty():CFFIPointer + @:hlNative("lime", "hl_hb_blob_get_empty") private static function lime_hb_blob_get_empty():CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_blob_get_length") private static function lime_hb_blob_get_length(blob:CFFIPointer):Int + @:hlNative("lime", "hl_hb_blob_get_length") private static function lime_hb_blob_get_length(blob:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_blob_is_immutable") private static function lime_hb_blob_is_immutable(blob:CFFIPointer):Bool + @:hlNative("lime", "hl_hb_blob_is_immutable") private static function lime_hb_blob_is_immutable(blob:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_hb_blob_make_immutable") private static function lime_hb_blob_make_immutable(blob:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_blob_make_immutable") private static function lime_hb_blob_make_immutable(blob:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_add") private static function lime_hb_buffer_add(buffer:CFFIPointer, codepoint:Int, cluster:Int):Void {} + @:hlNative("lime", "hl_hb_buffer_add") private static function lime_hb_buffer_add(buffer:CFFIPointer, codepoint:Int, cluster:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_add_codepoints") private static function lime_hb_buffer_add_codepoints(buffer:CFFIPointer, text:DataPointer, + @:hlNative("lime", "hl_hb_buffer_add_codepoints") private static function lime_hb_buffer_add_codepoints(buffer:CFFIPointer, text:DataPointer, textLength:Int, itemOffset:Int, itemLength:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_add_utf8") private static function lime_hb_buffer_add_utf8(buffer:CFFIPointer, text:String, itemOffset:Int, + @:hlNative("lime", "hl_hb_buffer_add_utf8") private static function lime_hb_buffer_add_utf8(buffer:CFFIPointer, text:String, itemOffset:Int, itemLength:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_add_utf16") private static function lime_hb_buffer_add_utf16(buffer:CFFIPointer, text:DataPointer, textLength:Int, + @:hlNative("lime", "hl_hb_buffer_add_utf16") private static function lime_hb_buffer_add_utf16(buffer:CFFIPointer, text:DataPointer, textLength:Int, itemOffset:Int, itemLength:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_add_utf32") private static function lime_hb_buffer_add_utf32(buffer:CFFIPointer, text:DataPointer, textLength:Int, + @:hlNative("lime", "hl_hb_buffer_add_utf32") private static function lime_hb_buffer_add_utf32(buffer:CFFIPointer, text:DataPointer, textLength:Int, itemOffset:Int, itemLength:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_allocation_successful") private static function lime_hb_buffer_allocation_successful(buffer:CFFIPointer):Bool + @:hlNative("lime", "hl_hb_buffer_allocation_successful") private static function lime_hb_buffer_allocation_successful(buffer:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_hb_buffer_clear_contents") private static function lime_hb_buffer_clear_contents(buffer:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_buffer_clear_contents") private static function lime_hb_buffer_clear_contents(buffer:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_create") private static function lime_hb_buffer_create():CFFIPointer + @:hlNative("lime", "hl_hb_buffer_create") private static function lime_hb_buffer_create():CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_buffer_get_cluster_level") private static function lime_hb_buffer_get_cluster_level(buffer:CFFIPointer):Int + @:hlNative("lime", "hl_hb_buffer_get_cluster_level") private static function lime_hb_buffer_get_cluster_level(buffer:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_buffer_get_content_type") private static function lime_hb_buffer_get_content_type(buffer:CFFIPointer):Int + @:hlNative("lime", "hl_hb_buffer_get_content_type") private static function lime_hb_buffer_get_content_type(buffer:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_buffer_get_direction") private static function lime_hb_buffer_get_direction(buffer:CFFIPointer):Int + @:hlNative("lime", "hl_hb_buffer_get_direction") private static function lime_hb_buffer_get_direction(buffer:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_buffer_get_empty") private static function lime_hb_buffer_get_empty():CFFIPointer + @:hlNative("lime", "hl_hb_buffer_get_empty") private static function lime_hb_buffer_get_empty():CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_buffer_get_flags") private static function lime_hb_buffer_get_flags(buffer:CFFIPointer):Int + @:hlNative("lime", "hl_hb_buffer_get_flags") private static function lime_hb_buffer_get_flags(buffer:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_buffer_get_glyph_infos") private static function lime_hb_buffer_get_glyph_infos(buffer:CFFIPointer, bytes:Bytes):Bytes + @:hlNative("lime", "hl_hb_buffer_get_glyph_infos") private static function lime_hb_buffer_get_glyph_infos(buffer:CFFIPointer, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_hb_buffer_get_glyph_positions") private static function lime_hb_buffer_get_glyph_positions(buffer:CFFIPointer, bytes:Bytes):Bytes + @:hlNative("lime", "hl_hb_buffer_get_glyph_positions") private static function lime_hb_buffer_get_glyph_positions(buffer:CFFIPointer, bytes:Bytes):Bytes { return null; } - @:hlNative("lime", "lime_hb_buffer_get_language") private static function lime_hb_buffer_get_language(buffer:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_hb_buffer_get_language") private static function lime_hb_buffer_get_language(buffer:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_buffer_get_length") private static function lime_hb_buffer_get_length(buffer:CFFIPointer):Int + @:hlNative("lime", "hl_hb_buffer_get_length") private static function lime_hb_buffer_get_length(buffer:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_buffer_get_replacement_codepoint") private static function lime_hb_buffer_get_replacement_codepoint(buffer:CFFIPointer):Int + @:hlNative("lime", "hl_hb_buffer_get_replacement_codepoint") private static function lime_hb_buffer_get_replacement_codepoint(buffer:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_buffer_get_script") private static function lime_hb_buffer_get_script(buffer:CFFIPointer):Int + @:hlNative("lime", "hl_hb_buffer_get_script") private static function lime_hb_buffer_get_script(buffer:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_buffer_get_segment_properties") private static function lime_hb_buffer_get_segment_properties(buffer:CFFIPointer, + @:hlNative("lime", "hl_hb_buffer_get_segment_properties") private static function lime_hb_buffer_get_segment_properties(buffer:CFFIPointer, props:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_guess_segment_properties") private static function lime_hb_buffer_guess_segment_properties(buffer:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_buffer_guess_segment_properties") private static function lime_hb_buffer_guess_segment_properties(buffer:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_normalize_glyphs") private static function lime_hb_buffer_normalize_glyphs(buffer:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_buffer_normalize_glyphs") private static function lime_hb_buffer_normalize_glyphs(buffer:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_preallocate") private static function lime_hb_buffer_preallocate(buffer:CFFIPointer, size:Int):Bool + @:hlNative("lime", "hl_hb_buffer_preallocate") private static function lime_hb_buffer_preallocate(buffer:CFFIPointer, size:Int):Bool { return false; } - @:hlNative("lime", "lime_hb_buffer_reset") private static function lime_hb_buffer_reset(buffer:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_buffer_reset") private static function lime_hb_buffer_reset(buffer:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_reverse") private static function lime_hb_buffer_reverse(buffer:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_buffer_reverse") private static function lime_hb_buffer_reverse(buffer:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_reverse_clusters") private static function lime_hb_buffer_reverse_clusters(buffer:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_buffer_reverse_clusters") private static function lime_hb_buffer_reverse_clusters(buffer:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_serialize_format_from_string") private static function lime_hb_buffer_serialize_format_from_string(str:String):Int + @:hlNative("lime", "hl_hb_buffer_serialize_format_from_string") private static function lime_hb_buffer_serialize_format_from_string(str:String):Int { return 0; } - @:hlNative("lime", "lime_hb_buffer_serialize_format_to_string") private static function lime_hb_buffer_serialize_format_to_string(format:Int):hl.Bytes + @:hlNative("lime", "hl_hb_buffer_serialize_format_to_string") private static function lime_hb_buffer_serialize_format_to_string(format:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_hb_buffer_serialize_list_formats") private static function lime_hb_buffer_serialize_list_formats():hl.NativeArray + @:hlNative("lime", "hl_hb_buffer_serialize_list_formats") private static function lime_hb_buffer_serialize_list_formats():hl.NativeArray { return null; } - @:hlNative("lime", "lime_hb_buffer_set_cluster_level") private static function lime_hb_buffer_set_cluster_level(buffer:CFFIPointer, + @:hlNative("lime", "hl_hb_buffer_set_cluster_level") private static function lime_hb_buffer_set_cluster_level(buffer:CFFIPointer, clusterLevel:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_set_content_type") private static function lime_hb_buffer_set_content_type(buffer:CFFIPointer, contentType:Int):Void {} + @:hlNative("lime", "hl_hb_buffer_set_content_type") private static function lime_hb_buffer_set_content_type(buffer:CFFIPointer, contentType:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_set_direction") private static function lime_hb_buffer_set_direction(buffer:CFFIPointer, direction:Int):Void {} + @:hlNative("lime", "hl_hb_buffer_set_direction") private static function lime_hb_buffer_set_direction(buffer:CFFIPointer, direction:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_set_flags") private static function lime_hb_buffer_set_flags(buffer:CFFIPointer, flags:Int):Void {} + @:hlNative("lime", "hl_hb_buffer_set_flags") private static function lime_hb_buffer_set_flags(buffer:CFFIPointer, flags:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_set_language") private static function lime_hb_buffer_set_language(buffer:CFFIPointer, language:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_buffer_set_language") private static function lime_hb_buffer_set_language(buffer:CFFIPointer, language:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_buffer_set_length") private static function lime_hb_buffer_set_length(buffer:CFFIPointer, length:Int):Bool + @:hlNative("lime", "hl_hb_buffer_set_length") private static function lime_hb_buffer_set_length(buffer:CFFIPointer, length:Int):Bool { return false; } - @:hlNative("lime", "lime_hb_buffer_set_replacement_codepoint") private static function lime_hb_buffer_set_replacement_codepoint(buffer:CFFIPointer, + @:hlNative("lime", "hl_hb_buffer_set_replacement_codepoint") private static function lime_hb_buffer_set_replacement_codepoint(buffer:CFFIPointer, replacement:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_set_script") private static function lime_hb_buffer_set_script(buffer:CFFIPointer, script:Int):Void {} + @:hlNative("lime", "hl_hb_buffer_set_script") private static function lime_hb_buffer_set_script(buffer:CFFIPointer, script:Int):Void {} - @:hlNative("lime", "lime_hb_buffer_set_segment_properties") private static function lime_hb_buffer_set_segment_properties(buffer:CFFIPointer, + @:hlNative("lime", "hl_hb_buffer_set_segment_properties") private static function lime_hb_buffer_set_segment_properties(buffer:CFFIPointer, props:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_face_create") private static function lime_hb_face_create(blob:CFFIPointer, index:Int):CFFIPointer + @:hlNative("lime", "hl_hb_face_create") private static function lime_hb_face_create(blob:CFFIPointer, index:Int):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_face_get_empty") private static function lime_hb_face_get_empty():CFFIPointer + @:hlNative("lime", "hl_hb_face_get_empty") private static function lime_hb_face_get_empty():CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_face_get_glyph_count") private static function lime_hb_face_get_glyph_count(face:CFFIPointer):Int + @:hlNative("lime", "hl_hb_face_get_glyph_count") private static function lime_hb_face_get_glyph_count(face:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_face_get_index") private static function lime_hb_face_get_index(face:CFFIPointer):Int + @:hlNative("lime", "hl_hb_face_get_index") private static function lime_hb_face_get_index(face:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_face_get_upem") private static function lime_hb_face_get_upem(face:CFFIPointer):Int + @:hlNative("lime", "hl_hb_face_get_upem") private static function lime_hb_face_get_upem(face:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_face_is_immutable") private static function lime_hb_face_is_immutable(face:CFFIPointer):Bool + @:hlNative("lime", "hl_hb_face_is_immutable") private static function lime_hb_face_is_immutable(face:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_hb_face_make_immutable") private static function lime_hb_face_make_immutable(face:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_face_make_immutable") private static function lime_hb_face_make_immutable(face:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_face_reference_blob") private static function lime_hb_face_reference_blob(face:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_hb_face_reference_blob") private static function lime_hb_face_reference_blob(face:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_face_reference_table") private static function lime_hb_face_reference_table(face:CFFIPointer, tag:Int):CFFIPointer + @:hlNative("lime", "hl_hb_face_reference_table") private static function lime_hb_face_reference_table(face:CFFIPointer, tag:Int):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_face_set_glyph_count") private static function lime_hb_face_set_glyph_count(face:CFFIPointer, glyphCount:Int):Void {} + @:hlNative("lime", "hl_hb_face_set_glyph_count") private static function lime_hb_face_set_glyph_count(face:CFFIPointer, glyphCount:Int):Void {} - @:hlNative("lime", "lime_hb_face_set_index") private static function lime_hb_face_set_index(face:CFFIPointer, index:Int):Void {} + @:hlNative("lime", "hl_hb_face_set_index") private static function lime_hb_face_set_index(face:CFFIPointer, index:Int):Void {} - @:hlNative("lime", "lime_hb_face_set_upem") private static function lime_hb_face_set_upem(face:CFFIPointer, upem:Int):Void {} + @:hlNative("lime", "hl_hb_face_set_upem") private static function lime_hb_face_set_upem(face:CFFIPointer, upem:Int):Void {} - @:hlNative("lime", "lime_hb_feature_from_string") private static function lime_hb_feature_from_string(str:String):CFFIPointer + @:hlNative("lime", "hl_hb_feature_from_string") private static function lime_hb_feature_from_string(str:String):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_feature_to_string") private static function lime_hb_feature_to_string(feature:CFFIPointer):hl.Bytes + @:hlNative("lime", "hl_hb_feature_to_string") private static function lime_hb_feature_to_string(feature:CFFIPointer):hl.Bytes { return null; } - @:hlNative("lime", "lime_hb_font_add_glyph_origin_for_direction") private static function lime_hb_font_add_glyph_origin_for_direction(font:CFFIPointer, + @:hlNative("lime", "hl_hb_font_add_glyph_origin_for_direction") private static function lime_hb_font_add_glyph_origin_for_direction(font:CFFIPointer, glyph:Int, direction:Int, x:Int, y:Int):Void {} - @:hlNative("lime", "lime_hb_font_create") private static function lime_hb_font_create(face:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_hb_font_create") private static function lime_hb_font_create(face:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_font_create_sub_font") private static function lime_hb_font_create_sub_font(parent:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_hb_font_create_sub_font") private static function lime_hb_font_create_sub_font(parent:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_font_get_empty") private static function lime_hb_font_get_empty():CFFIPointer + @:hlNative("lime", "hl_hb_font_get_empty") private static function lime_hb_font_get_empty():CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_font_get_face") private static function lime_hb_font_get_face(font:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_hb_font_get_face") private static function lime_hb_font_get_face(font:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_font_get_glyph_advance_for_direction") private static function lime_hb_font_get_glyph_advance_for_direction(font:CFFIPointer, + @:hlNative("lime", "hl_hb_font_get_glyph_advance_for_direction") private static function lime_hb_font_get_glyph_advance_for_direction(font:CFFIPointer, glyph:Int, direction:Int, out:Vector2):Vector2 { return null; } - @:hlNative("lime", "lime_hb_font_get_glyph_kerning_for_direction") private static function lime_hb_font_get_glyph_kerning_for_direction(font:CFFIPointer, + @:hlNative("lime", "hl_hb_font_get_glyph_kerning_for_direction") private static function lime_hb_font_get_glyph_kerning_for_direction(font:CFFIPointer, firstGlyph:Int, secondGlyph:Int, direction:Int, out:Vector2):Vector2 { return null; } - @:hlNative("lime", "lime_hb_font_get_glyph_origin_for_direction") private static function lime_hb_font_get_glyph_origin_for_direction(font:CFFIPointer, + @:hlNative("lime", "hl_hb_font_get_glyph_origin_for_direction") private static function lime_hb_font_get_glyph_origin_for_direction(font:CFFIPointer, glyph:Int, direction:Int, out:Vector2):Vector2 { return null; } - @:hlNative("lime", "lime_hb_font_get_parent") private static function lime_hb_font_get_parent(font:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_hb_font_get_parent") private static function lime_hb_font_get_parent(font:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_font_get_ppem") private static function lime_hb_font_get_ppem(font:CFFIPointer, out:Vector2):Vector2 + @:hlNative("lime", "hl_hb_font_get_ppem") private static function lime_hb_font_get_ppem(font:CFFIPointer, out:Vector2):Vector2 { return null; } - @:hlNative("lime", "lime_hb_font_get_scale") private static function lime_hb_font_get_scale(font:CFFIPointer, out:Vector2):Vector2 + @:hlNative("lime", "hl_hb_font_get_scale") private static function lime_hb_font_get_scale(font:CFFIPointer, out:Vector2):Vector2 { return null; } - @:hlNative("lime", "lime_hb_font_glyph_from_string") private static function lime_hb_font_glyph_from_string(font:CFFIPointer, s:String):Int + @:hlNative("lime", "hl_hb_font_glyph_from_string") private static function lime_hb_font_glyph_from_string(font:CFFIPointer, s:String):Int { return 0; } - @:hlNative("lime", "lime_hb_font_glyph_to_string") private static function lime_hb_font_glyph_to_string(font:CFFIPointer, codepoint:Int):hl.Bytes + @:hlNative("lime", "hl_hb_font_glyph_to_string") private static function lime_hb_font_glyph_to_string(font:CFFIPointer, codepoint:Int):hl.Bytes { return null; } - @:hlNative("lime", "lime_hb_font_is_immutable") private static function lime_hb_font_is_immutable(font:CFFIPointer):Bool + @:hlNative("lime", "hl_hb_font_is_immutable") private static function lime_hb_font_is_immutable(font:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_hb_font_make_immutable") private static function lime_hb_font_make_immutable(font:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_font_make_immutable") private static function lime_hb_font_make_immutable(font:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_font_set_ppem") private static function lime_hb_font_set_ppem(font:CFFIPointer, xppem:Int, yppem:Int):Void {} + @:hlNative("lime", "hl_hb_font_set_ppem") private static function lime_hb_font_set_ppem(font:CFFIPointer, xppem:Int, yppem:Int):Void {} - @:hlNative("lime", "lime_hb_font_set_scale") private static function lime_hb_font_set_scale(font:CFFIPointer, xScale:Int, yScale:Int):Void {} + @:hlNative("lime", "hl_hb_font_set_scale") private static function lime_hb_font_set_scale(font:CFFIPointer, xScale:Int, yScale:Int):Void {} @:hlNative("lime", - "lime_hb_font_subtract_glyph_origin_for_direction") private static function lime_hb_font_subtract_glyph_origin_for_direction(font:CFFIPointer, + "hl_hb_font_subtract_glyph_origin_for_direction") private static function lime_hb_font_subtract_glyph_origin_for_direction(font:CFFIPointer, glyph:Int, direction:Int, x:Int, y:Int):Void {} - @:hlNative("lime", "lime_hb_ft_font_create") private static function lime_hb_ft_font_create(font:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_hb_ft_font_create") private static function lime_hb_ft_font_create(font:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_ft_font_create_referenced") private static function lime_hb_ft_font_create_referenced(font:CFFIPointer):CFFIPointer + @:hlNative("lime", "hl_hb_ft_font_create_referenced") private static function lime_hb_ft_font_create_referenced(font:CFFIPointer):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_ft_font_get_load_flags") private static function lime_hb_ft_font_get_load_flags(font:CFFIPointer):Int + @:hlNative("lime", "hl_hb_ft_font_get_load_flags") private static function lime_hb_ft_font_get_load_flags(font:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_ft_font_set_load_flags") private static function lime_hb_ft_font_set_load_flags(font:CFFIPointer, loadFlags:Int):Void {} + @:hlNative("lime", "hl_hb_ft_font_set_load_flags") private static function lime_hb_ft_font_set_load_flags(font:CFFIPointer, loadFlags:Int):Void {} - @:hlNative("lime", "lime_hb_language_from_string") private static function lime_hb_language_from_string(str:String):CFFIPointer + @:hlNative("lime", "hl_hb_language_from_string") private static function lime_hb_language_from_string(str:String):CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_language_get_default") private static function lime_hb_language_get_default():CFFIPointer + @:hlNative("lime", "hl_hb_language_get_default") private static function lime_hb_language_get_default():CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_language_to_string") private static function lime_hb_language_to_string(language:CFFIPointer):hl.Bytes + @:hlNative("lime", "hl_hb_language_to_string") private static function lime_hb_language_to_string(language:CFFIPointer):hl.Bytes { return null; } - @:hlNative("lime", "lime_hb_segment_properties_equal") private static function lime_hb_segment_properties_equal(a:CFFIPointer, b:CFFIPointer):Bool + @:hlNative("lime", "hl_hb_segment_properties_equal") private static function lime_hb_segment_properties_equal(a:CFFIPointer, b:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_hb_segment_properties_hash") private static function lime_hb_segment_properties_hash(p:CFFIPointer):Int + @:hlNative("lime", "hl_hb_segment_properties_hash") private static function lime_hb_segment_properties_hash(p:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_set_add") private static function lime_hb_set_add(set:CFFIPointer, codepoint:Int):Void {} + @:hlNative("lime", "hl_hb_set_add") private static function lime_hb_set_add(set:CFFIPointer, codepoint:Int):Void {} - @:hlNative("lime", "lime_hb_set_add_range") private static function lime_hb_set_add_range(set:CFFIPointer, first:Int, last:Int):Void {} + @:hlNative("lime", "hl_hb_set_add_range") private static function lime_hb_set_add_range(set:CFFIPointer, first:Int, last:Int):Void {} - @:hlNative("lime", "lime_hb_set_allocation_successful") private static function lime_hb_set_allocation_successful(set:CFFIPointer):Bool + @:hlNative("lime", "hl_hb_set_allocation_successful") private static function lime_hb_set_allocation_successful(set:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_hb_set_clear") private static function lime_hb_set_clear(set:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_set_clear") private static function lime_hb_set_clear(set:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_set_create") private static function lime_hb_set_create():CFFIPointer + @:hlNative("lime", "hl_hb_set_create") private static function lime_hb_set_create():CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_set_del") private static function lime_hb_set_del(set:CFFIPointer, codepoint:Int):Void {} + @:hlNative("lime", "hl_hb_set_del") private static function lime_hb_set_del(set:CFFIPointer, codepoint:Int):Void {} - @:hlNative("lime", "lime_hb_set_del_range") private static function lime_hb_set_del_range(set:CFFIPointer, first:Int, last:Int):Void {} + @:hlNative("lime", "hl_hb_set_del_range") private static function lime_hb_set_del_range(set:CFFIPointer, first:Int, last:Int):Void {} - @:hlNative("lime", "lime_hb_set_get_empty") private static function lime_hb_set_get_empty():CFFIPointer + @:hlNative("lime", "hl_hb_set_get_empty") private static function lime_hb_set_get_empty():CFFIPointer { return null; } - @:hlNative("lime", "lime_hb_set_get_max") private static function lime_hb_set_get_max(set:CFFIPointer):Int + @:hlNative("lime", "hl_hb_set_get_max") private static function lime_hb_set_get_max(set:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_set_get_min") private static function lime_hb_set_get_min(set:CFFIPointer):Int + @:hlNative("lime", "hl_hb_set_get_min") private static function lime_hb_set_get_min(set:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_set_get_population") private static function lime_hb_set_get_population(set:CFFIPointer):Int + @:hlNative("lime", "hl_hb_set_get_population") private static function lime_hb_set_get_population(set:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_set_has") private static function lime_hb_set_has(set:CFFIPointer, codepoint:Int):Bool + @:hlNative("lime", "hl_hb_set_has") private static function lime_hb_set_has(set:CFFIPointer, codepoint:Int):Bool { return false; } - @:hlNative("lime", "lime_hb_set_intersect") private static function lime_hb_set_intersect(set:CFFIPointer, other:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_set_intersect") private static function lime_hb_set_intersect(set:CFFIPointer, other:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_set_invert") private static function lime_hb_set_invert(set:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_set_invert") private static function lime_hb_set_invert(set:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_set_is_empty") private static function lime_hb_set_is_empty(set:CFFIPointer):Bool + @:hlNative("lime", "hl_hb_set_is_empty") private static function lime_hb_set_is_empty(set:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_hb_set_is_equal") private static function lime_hb_set_is_equal(set:CFFIPointer, other:CFFIPointer):Bool + @:hlNative("lime", "hl_hb_set_is_equal") private static function lime_hb_set_is_equal(set:CFFIPointer, other:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_hb_set_next") private static function lime_hb_set_next(set:CFFIPointer):Int + @:hlNative("lime", "hl_hb_set_next") private static function lime_hb_set_next(set:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_hb_set_next_range") private static function lime_hb_set_next_range(set:CFFIPointer, out:Vector2):Vector2 + @:hlNative("lime", "hl_hb_set_next_range") private static function lime_hb_set_next_range(set:CFFIPointer, out:Vector2):Vector2 { return null; } - @:hlNative("lime", "lime_hb_set_set") private static function lime_hb_set_set(set:CFFIPointer, other:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_set_set") private static function lime_hb_set_set(set:CFFIPointer, other:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_set_subtract") private static function lime_hb_set_subtract(set:CFFIPointer, other:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_set_subtract") private static function lime_hb_set_subtract(set:CFFIPointer, other:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_set_symmetric_difference") private static function lime_hb_set_symmetric_difference(set:CFFIPointer, other:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_set_symmetric_difference") private static function lime_hb_set_symmetric_difference(set:CFFIPointer, other:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_set_union") private static function lime_hb_set_union(set:CFFIPointer, other:CFFIPointer):Void {} + @:hlNative("lime", "hl_hb_set_union") private static function lime_hb_set_union(set:CFFIPointer, other:CFFIPointer):Void {} - @:hlNative("lime", "lime_hb_shape") private static function lime_hb_shape(font:CFFIPointer, buffer:CFFIPointer, + @:hlNative("lime", "hl_hb_shape") private static function lime_hb_shape(font:CFFIPointer, buffer:CFFIPointer, features:hl.NativeArray):Void {} #end #end @@ -6737,150 +6737,150 @@ class NativeCFFI #end #if hl - @:hlNative("lime", "lime_vorbis_file_bitrate") private static function lime_vorbis_file_bitrate(vorbisFile:CFFIPointer, bitstream:Int):Int + @:hlNative("lime", "hl_vorbis_file_bitrate") private static function lime_vorbis_file_bitrate(vorbisFile:CFFIPointer, bitstream:Int):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_bitrate_instant") private static function lime_vorbis_file_bitrate_instant(vorbisFile:CFFIPointer):Int + @:hlNative("lime", "hl_vorbis_file_bitrate_instant") private static function lime_vorbis_file_bitrate_instant(vorbisFile:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_clear") private static function lime_vorbis_file_clear(vorbisFile:CFFIPointer):Void {} + @:hlNative("lime", "hl_vorbis_file_clear") private static function lime_vorbis_file_clear(vorbisFile:CFFIPointer):Void {} - @:hlNative("lime", "lime_vorbis_file_comment") private static function lime_vorbis_file_comment(vorbisFile:CFFIPointer, bitstream:Int):Dynamic + @:hlNative("lime", "hl_vorbis_file_comment") private static function lime_vorbis_file_comment(vorbisFile:CFFIPointer, bitstream:Int):Dynamic { return null; } - @:hlNative("lime", "lime_vorbis_file_crosslap") private static function lime_vorbis_file_crosslap(vorbisFile:CFFIPointer, otherVorbisFile:CFFIPointer):Int + @:hlNative("lime", "hl_vorbis_file_crosslap") private static function lime_vorbis_file_crosslap(vorbisFile:CFFIPointer, otherVorbisFile:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_from_bytes") private static function lime_vorbis_file_from_bytes(bytes:Bytes):CFFIPointer + @:hlNative("lime", "hl_vorbis_file_from_bytes") private static function lime_vorbis_file_from_bytes(bytes:Bytes):CFFIPointer { return null; } - @:hlNative("lime", "lime_vorbis_file_from_file") private static function lime_vorbis_file_from_file(path:String):CFFIPointer + @:hlNative("lime", "hl_vorbis_file_from_file") private static function lime_vorbis_file_from_file(path:String):CFFIPointer { return null; } - @:hlNative("lime", "lime_vorbis_file_info") private static function lime_vorbis_file_info(vorbisFile:CFFIPointer, bitstream:Int):Dynamic + @:hlNative("lime", "hl_vorbis_file_info") private static function lime_vorbis_file_info(vorbisFile:CFFIPointer, bitstream:Int):Dynamic { return null; } - @:hlNative("lime", "lime_vorbis_file_pcm_seek") private static function lime_vorbis_file_pcm_seek(vorbisFile:CFFIPointer, posLow:Int, posHigh:Int):Int + @:hlNative("lime", "hl_vorbis_file_pcm_seek") private static function lime_vorbis_file_pcm_seek(vorbisFile:CFFIPointer, posLow:Int, posHigh:Int):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_pcm_seek_lap") private static function lime_vorbis_file_pcm_seek_lap(vorbisFile:CFFIPointer, posLow:Int, + @:hlNative("lime", "hl_vorbis_file_pcm_seek_lap") private static function lime_vorbis_file_pcm_seek_lap(vorbisFile:CFFIPointer, posLow:Int, posHigh:Int):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_pcm_seek_page") private static function lime_vorbis_file_pcm_seek_page(vorbisFile:CFFIPointer, posLow:Int, + @:hlNative("lime", "hl_vorbis_file_pcm_seek_page") private static function lime_vorbis_file_pcm_seek_page(vorbisFile:CFFIPointer, posLow:Int, posHigh:Int):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_pcm_seek_page_lap") private static function lime_vorbis_file_pcm_seek_page_lap(vorbisFile:CFFIPointer, posLow:Int, + @:hlNative("lime", "hl_vorbis_file_pcm_seek_page_lap") private static function lime_vorbis_file_pcm_seek_page_lap(vorbisFile:CFFIPointer, posLow:Int, posHigh:Int):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_raw_seek") private static function lime_vorbis_file_raw_seek(vorbisFile:CFFIPointer, posLow:Int, posHigh:Int):Int + @:hlNative("lime", "hl_vorbis_file_raw_seek") private static function lime_vorbis_file_raw_seek(vorbisFile:CFFIPointer, posLow:Int, posHigh:Int):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_raw_seek_lap") private static function lime_vorbis_file_raw_seek_lap(vorbisFile:CFFIPointer, posLow:Int, + @:hlNative("lime", "hl_vorbis_file_raw_seek_lap") private static function lime_vorbis_file_raw_seek_lap(vorbisFile:CFFIPointer, posLow:Int, posHigh:Int):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_pcm_tell") private static function lime_vorbis_file_pcm_tell(vorbisFile:CFFIPointer):Dynamic + @:hlNative("lime", "hl_vorbis_file_pcm_tell") private static function lime_vorbis_file_pcm_tell(vorbisFile:CFFIPointer):Dynamic { return null; } - @:hlNative("lime", "lime_vorbis_file_pcm_total") private static function lime_vorbis_file_pcm_total(vorbisFile:CFFIPointer, bitstream:Int):Dynamic + @:hlNative("lime", "hl_vorbis_file_pcm_total") private static function lime_vorbis_file_pcm_total(vorbisFile:CFFIPointer, bitstream:Int):Dynamic { return null; } - @:hlNative("lime", "lime_vorbis_file_raw_tell") private static function lime_vorbis_file_raw_tell(vorbisFile:CFFIPointer):Dynamic + @:hlNative("lime", "hl_vorbis_file_raw_tell") private static function lime_vorbis_file_raw_tell(vorbisFile:CFFIPointer):Dynamic { return null; } - @:hlNative("lime", "lime_vorbis_file_raw_total") private static function lime_vorbis_file_raw_total(vorbisFile:CFFIPointer, bitstream:Int):Dynamic + @:hlNative("lime", "hl_vorbis_file_raw_total") private static function lime_vorbis_file_raw_total(vorbisFile:CFFIPointer, bitstream:Int):Dynamic { return null; } - @:hlNative("lime", "lime_vorbis_file_read") private static function lime_vorbis_file_read(vorbisFile:CFFIPointer, buffer:Bytes, position:Int, length:Int, + @:hlNative("lime", "hl_vorbis_file_read") private static function lime_vorbis_file_read(vorbisFile:CFFIPointer, buffer:Bytes, position:Int, length:Int, bigendianp:Bool, word:Int, signed:Bool):Dynamic { return null; } - @:hlNative("lime", "lime_vorbis_file_read_float") private static function lime_vorbis_file_read_float(vorbisFile:CFFIPointer, pcmChannels:Bytes, + @:hlNative("lime", "hl_vorbis_file_read_float") private static function lime_vorbis_file_read_float(vorbisFile:CFFIPointer, pcmChannels:Bytes, samples:Int):Dynamic { return null; } - @:hlNative("lime", "lime_vorbis_file_seekable") private static function lime_vorbis_file_seekable(vorbisFile:CFFIPointer):Bool + @:hlNative("lime", "hl_vorbis_file_seekable") private static function lime_vorbis_file_seekable(vorbisFile:CFFIPointer):Bool { return false; } - @:hlNative("lime", "lime_vorbis_file_serial_number") private static function lime_vorbis_file_serial_number(vorbisFile:CFFIPointer, bitstream:Int):Int + @:hlNative("lime", "hl_vorbis_file_serial_number") private static function lime_vorbis_file_serial_number(vorbisFile:CFFIPointer, bitstream:Int):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_streams") private static function lime_vorbis_file_streams(vorbisFile:CFFIPointer):Int + @:hlNative("lime", "hl_vorbis_file_streams") private static function lime_vorbis_file_streams(vorbisFile:CFFIPointer):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_time_seek") private static function lime_vorbis_file_time_seek(vorbisFile:CFFIPointer, s:Float):Int + @:hlNative("lime", "hl_vorbis_file_time_seek") private static function lime_vorbis_file_time_seek(vorbisFile:CFFIPointer, s:Float):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_time_seek_lap") private static function lime_vorbis_file_time_seek_lap(vorbisFile:CFFIPointer, s:Float):Int + @:hlNative("lime", "hl_vorbis_file_time_seek_lap") private static function lime_vorbis_file_time_seek_lap(vorbisFile:CFFIPointer, s:Float):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_time_seek_page") private static function lime_vorbis_file_time_seek_page(vorbisFile:CFFIPointer, s:Float):Int + @:hlNative("lime", "hl_vorbis_file_time_seek_page") private static function lime_vorbis_file_time_seek_page(vorbisFile:CFFIPointer, s:Float):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_time_seek_page_lap") private static function lime_vorbis_file_time_seek_page_lap(vorbisFile:CFFIPointer, s:Float):Int + @:hlNative("lime", "hl_vorbis_file_time_seek_page_lap") private static function lime_vorbis_file_time_seek_page_lap(vorbisFile:CFFIPointer, s:Float):Int { return 0; } - @:hlNative("lime", "lime_vorbis_file_time_tell") private static function lime_vorbis_file_time_tell(vorbisFile:CFFIPointer):Float + @:hlNative("lime", "hl_vorbis_file_time_tell") private static function lime_vorbis_file_time_tell(vorbisFile:CFFIPointer):Float { return 0; } - @:hlNative("lime", "lime_vorbis_file_time_total") private static function lime_vorbis_file_time_total(vorbisFile:CFFIPointer, bitstream:Int):Float + @:hlNative("lime", "hl_vorbis_file_time_total") private static function lime_vorbis_file_time_total(vorbisFile:CFFIPointer, bitstream:Int):Float { return 0; } diff --git a/src/lime/system/Locale.hx b/src/lime/system/Locale.hx index e0652d433d..25206e1123 100644 --- a/src/lime/system/Locale.hx +++ b/src/lime/system/Locale.hx @@ -45,7 +45,7 @@ abstract Locale(String) from String to String } #if hl - @:hlNative("lime", "lime_locale_get_system_locale") private static function lime_locale_get_system_locale():hl.Bytes + @:hlNative("lime", "hl_locale_get_system_locale") private static function lime_locale_get_system_locale():hl.Bytes { return null; } diff --git a/src/lime/tools/HashlinkHelper.hx b/src/lime/tools/HashlinkHelper.hx new file mode 100644 index 0000000000..dc600a2a88 --- /dev/null +++ b/src/lime/tools/HashlinkHelper.hx @@ -0,0 +1,84 @@ +package lime.tools; + +import hxp.Log; +import sys.FileSystem; +import lime.tools.ConfigHelper; +import lime.tools.HXProject; +import lime.tools.Platform; +import hxp.Path; +import hxp.System; + +class HashlinkHelper +{ + public static function copyHashlink(project:HXProject, targetDirectory:String, applicationDirectory:String, executablePath:String, ?is64 = true) + { + var platform = project.target; + var bindir = switch project.target + { + case LINUX: "Linux"; + case MAC: "Mac"; + case WINDOWS: "Windows"; + default: + Log.error('Hashlink is not supported on ${project.target} (Supported: Windows, Mac and Linux)'); + Sys.exit(1); + ""; + }; + if(is64) { + bindir += "64"; + } + + var hlPath = ConfigHelper.getConfigValue("HL_PATH"); + if (hlPath == null) + { + System.recursiveCopyTemplate(project.templatePaths, 'bin/hl/$bindir', applicationDirectory); + System.renameFile(Path.combine(applicationDirectory, "hl" + (project.target == WINDOWS ? ".exe" : "")), executablePath); + } + else + { + System.copyFile(Path.combine(hlPath, "hl" + (platform == WINDOWS ? ".exe" : "")), executablePath); + if (platform == WINDOWS) + { + System.copyFile(Path.combine(hlPath, "libhl.dll"), Path.combine(applicationDirectory, "libhl.dll")); + var msvcrPath = Path.combine(hlPath, "msvcr120.dll"); + if (FileSystem.exists(msvcrPath)) + { + System.copyFile(msvcrPath, Path.combine(applicationDirectory, "msvcr120.dll")); + } + var vcruntimePath = Path.combine(hlPath, "vcruntime.dll.dll"); + if (FileSystem.exists(vcruntimePath)) + { + System.copyFile(vcruntimePath, Path.combine(applicationDirectory, "vcruntime.dll")); + } + } + else if (platform == MAC || platform == IOS) + { + System.copyFile(Path.combine(hlPath, "libhl.dylib"), Path.combine(applicationDirectory, "libhl.dylib")); + } + else + { + System.copyFile(Path.combine(hlPath, "libhl.so"), Path.combine(applicationDirectory, "libhl.so")); + } + + for (file in System.readDirectory(hlPath) + .filter(function(f) return Path.extension(f) == "hdll" + && Path.withoutDirectory(f) != "sdl.hdll" + && Path.withoutDirectory(f) != "openal.hdll")) + { + System.copyFile(file, Path.combine(applicationDirectory, Path.withoutDirectory(file))); + } + } + + // make sure no hxcpp hash files or MSVC build artifacts remain + + for (file in System.readDirectory(applicationDirectory)) + { + switch Path.extension(file) + { + case "hash", "lib", "pdb", "ilk", "exp": + System.deleteFile(file); + default: + } + } + System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(applicationDirectory, "hlboot.dat")); + } +} diff --git a/templates/bin/hl/entitlements.xml b/templates/bin/hl/entitlements.xml new file mode 100644 index 0000000000..c834321b21 --- /dev/null +++ b/templates/bin/hl/entitlements.xml @@ -0,0 +1,8 @@ + + + + + com.apple.security.get-task-allow + + + \ No newline at end of file diff --git a/templates/bin/hl/linux/hl b/templates/bin/hl/linux/hl deleted file mode 100755 index aa15e016d9..0000000000 Binary files a/templates/bin/hl/linux/hl and /dev/null differ diff --git a/templates/bin/hl/linux/libhl.so b/templates/bin/hl/linux/libhl.so deleted file mode 100755 index 4d542f823b..0000000000 Binary files a/templates/bin/hl/linux/libhl.so and /dev/null differ diff --git a/templates/bin/hl/mac/hl b/templates/bin/hl/mac/hl deleted file mode 100755 index 7aec314442..0000000000 Binary files a/templates/bin/hl/mac/hl and /dev/null differ diff --git a/templates/bin/hl/mac/libhl.dylib b/templates/bin/hl/mac/libhl.dylib deleted file mode 100755 index c5616899e5..0000000000 Binary files a/templates/bin/hl/mac/libhl.dylib and /dev/null differ diff --git a/templates/bin/hl/windows/hl.exe b/templates/bin/hl/windows/hl.exe deleted file mode 100644 index 3a2303a86c..0000000000 Binary files a/templates/bin/hl/windows/hl.exe and /dev/null differ diff --git a/templates/bin/hl/windows/hl.lib b/templates/bin/hl/windows/hl.lib deleted file mode 100644 index 7228902b04..0000000000 Binary files a/templates/bin/hl/windows/hl.lib and /dev/null differ diff --git a/templates/bin/hl/windows/libhl.dll b/templates/bin/hl/windows/libhl.dll deleted file mode 100644 index 389f0b98cc..0000000000 Binary files a/templates/bin/hl/windows/libhl.dll and /dev/null differ diff --git a/templates/bin/hl/windows/libhl.lib b/templates/bin/hl/windows/libhl.lib deleted file mode 100644 index 4f3cc1cfa3..0000000000 Binary files a/templates/bin/hl/windows/libhl.lib and /dev/null differ diff --git a/templates/bin/hl/windows/msvcr120.dll b/templates/bin/hl/windows/msvcr120.dll deleted file mode 100644 index 8c36149a65..0000000000 Binary files a/templates/bin/hl/windows/msvcr120.dll and /dev/null differ diff --git a/tools/platforms/LinuxPlatform.hx b/tools/platforms/LinuxPlatform.hx index fb7b3ec342..f1b98633f5 100644 --- a/tools/platforms/LinuxPlatform.hx +++ b/tools/platforms/LinuxPlatform.hx @@ -1,5 +1,6 @@ package; +import lime.tools.HashlinkHelper; import hxp.Haxelib; import hxp.HXML; import hxp.Path; @@ -220,11 +221,7 @@ class LinuxPlatform extends PlatformTarget if (noOutput) return; - // System.copyFile(targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-Debug" : "") + ".hl", - // Path.combine(applicationDirectory, project.app.file + ".hl")); - System.recursiveCopyTemplate(project.templatePaths, "bin/hl/linux", applicationDirectory); - System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(applicationDirectory, "hlboot.dat")); - System.renameFile(Path.combine(applicationDirectory, "hl"), executablePath); + HashlinkHelper.copyHashlink(project, targetDirectory, applicationDirectory, executablePath, is64); } else if (targetType == "nodejs") { @@ -417,6 +414,11 @@ class LinuxPlatform extends PlatformTarget } } + if (targetFlags.exists("hl")) + { + CPPHelper.rebuild(project, commands, null, "BuildHashlink.xml"); + } + CPPHelper.rebuild(project, commands); } diff --git a/tools/platforms/MacPlatform.hx b/tools/platforms/MacPlatform.hx index 3882c98488..ac655a0d07 100644 --- a/tools/platforms/MacPlatform.hx +++ b/tools/platforms/MacPlatform.hx @@ -1,5 +1,6 @@ package; +import lime.tools.HashlinkHelper; import hxp.Haxelib; import hxp.HXML; import hxp.Log; @@ -205,11 +206,7 @@ class MacPlatform extends PlatformTarget if (noOutput) return; - // System.copyFile(targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-Debug" : "") + ".hl", - // Path.combine(executableDirectory, project.app.file + ".hl")); - System.recursiveCopyTemplate(project.templatePaths, "bin/hl/mac", executableDirectory); - System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(executableDirectory, "hlboot.dat")); - System.renameFile(Path.combine(executableDirectory, "hl"), executablePath); + HashlinkHelper.copyHashlink(project, targetDirectory, applicationDirectory, executablePath, is64); } else if (targetType == "java") { @@ -379,6 +376,11 @@ class MacPlatform extends PlatformTarget } } + if (targetFlags.exists("hl")) + { + CPPHelper.rebuild(project, commands, null, "BuildHashlink.xml"); + } + CPPHelper.rebuild(project, commands); } diff --git a/tools/platforms/WindowsPlatform.hx b/tools/platforms/WindowsPlatform.hx index 23749996d3..46433c6e9b 100644 --- a/tools/platforms/WindowsPlatform.hx +++ b/tools/platforms/WindowsPlatform.hx @@ -1,5 +1,6 @@ package; +import lime.tools.HashlinkHelper; import hxp.Haxelib; import hxp.HXML; import hxp.Log; @@ -144,7 +145,7 @@ class WindowsPlatform extends PlatformTarget else if (project.targetFlags.exists("hl")) { targetType = "hl"; - is64 = false; + is64 = !project.flags.exists("32"); } else if (project.targetFlags.exists("cppia")) { @@ -296,17 +297,6 @@ class WindowsPlatform extends PlatformTarget { ProjectHelper.copyLibrary(project, ndll, "Windows" + (is64 ? "64" : ""), "", ".hdll", applicationDirectory, project.debug, targetSuffix); - - if (!project.environment.exists("HL_PATH")) - { - var command = #if lime "lime" #else "hxp" #end; - - Log.warn("You must define HL_PATH to copy HashLink dependencies, please run '" + command + " setup hl' first"); - } - else - { - System.copyFile(project.environment.get("HL_PATH") + '/ssl.hdll', applicationDirectory + '/ssl.hdll'); - } } else { @@ -341,10 +331,7 @@ class WindowsPlatform extends PlatformTarget if (noOutput) return; - // System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(applicationDirectory, project.app.file + ".hl")); - System.recursiveCopyTemplate(project.templatePaths, "bin/hl/windows", applicationDirectory); - System.copyFile(targetDirectory + "/obj/ApplicationMain.hl", Path.combine(applicationDirectory, "hlboot.dat")); - System.renameFile(Path.combine(applicationDirectory, "hl.exe"), executablePath); + HashlinkHelper.copyHashlink(project, targetDirectory, applicationDirectory, executablePath, is64); var iconPath = Path.combine(applicationDirectory, "icon.ico"); @@ -647,44 +634,57 @@ class WindowsPlatform extends PlatformTarget // } var commands = []; - - if (!targetFlags.exists("64") - && (command == "rebuild" || System.hostArchitecture == X86 || (targetType != "cpp" && targetType != "winrt"))) + if (targetType == "hl") { - if (targetType == "winrt") + // default to 64 bit, just like upstream Hashlink releases + if (!targetFlags.exists("32") && (System.hostArchitecture == X64 || targetFlags.exists("64"))) { - commands.push(["-Dwinrt", "-DHXCPP_M32"]); - } - else if (targetType == "hl") - { - // TODO: Support single binary - commands.push(["-Dwindows", "-DHXCPP_M32", "-Dhashlink"]); + commands.push(["-Dwindows", "-DHXCPP_M64", "-Dhashlink"]); } else { - commands.push(["-Dwindows", "-DHXCPP_M32"]); + commands.push(["-Dwindows", "-DHXCPP_M32", "-Dhashlink"]); } } - - // TODO: Compiling with -Dfulldebug overwrites the same "-debug.pdb" - // as previous Windows builds. For now, force -64 to be done last - // so that it can be debugged in a default "rebuild" - - if (!targetFlags.exists("32") - && System.hostArchitecture == X64 - && (command != "rebuild" || targetType == "cpp" || targetType == "winrt") - && targetType != "hl") + else { - if (targetType == "winrt") + if (!targetFlags.exists("64") + && (command == "rebuild" || System.hostArchitecture == X86 || (targetType != "cpp" && targetType != "winrt"))) { - commands.push(["-Dwinrt", "-DHXCPP_M64"]); + if (targetType == "winrt") + { + commands.push(["-Dwinrt", "-DHXCPP_M32"]); + } + else + { + commands.push(["-Dwindows", "-DHXCPP_M32"]); + } } - else + + // TODO: Compiling with -Dfulldebug overwrites the same "-debug.pdb" + // as previous Windows builds. For now, force -64 to be done last + // so that it can be debugged in a default "rebuild" + + if (!targetFlags.exists("32") + && System.hostArchitecture == X64 + && (command != "rebuild" || targetType == "cpp" || targetType == "winrt")) { - commands.push(["-Dwindows", "-DHXCPP_M64"]); + if (targetType == "winrt") + { + commands.push(["-Dwinrt", "-DHXCPP_M64"]); + } + else + { + commands.push(["-Dwindows", "-DHXCPP_M64"]); + } } } + if (targetFlags.exists("hl")) + { + CPPHelper.rebuild(project, commands, null, "BuildHashlink.xml"); + } + CPPHelper.rebuild(project, commands); } } diff --git a/tools/utils/PlatformSetup.hx b/tools/utils/PlatformSetup.hx index dc38d3bb42..6b5274089f 100644 --- a/tools/utils/PlatformSetup.hx +++ b/tools/utils/PlatformSetup.hx @@ -1185,21 +1185,57 @@ class PlatformSetup public static function setupHL():Void { - Log.println("\x1b[1mIn order to build HashLink executables you must have"); - Log.println("HashLink binaries installed."); - Log.println("We recommend using version \"1.10.0\""); - Log.println("available as a free download from Github.\x1b[0m"); - - var answer = CLIHelper.ask("Would you like to visit the download page now?"); - - if (answer == YES || answer == ALWAYS) + getDefineValue("HL_PATH", "Path to a custom version of Hashlink. Leave empty to use lime's default version."); + if (System.hostPlatform == MAC) { - System.openURL(hashlinkURL); - } + Log.println("To use the hashlink debugger on macOS, the hl executable needs to be signed."); + if (ConfigHelper.getConfigValue("HL_PATH") != null) + { + Log.println("When building HL from source, make sure to have run `make codesign_osx` before installing."); + } + else + { + var answer = CLIHelper.ask("Would you like to do this now? (Requires sudo.)"); - getDefineValue("HL_PATH", "Path to Hashlink binaries."); - Log.println(""); - Log.println("Setup completed"); + if (answer == YES || answer == ALWAYS) + { + var openSSLConf = System.getTemporaryFile("cnf"); + var key = System.getTemporaryFile("pem"); + var cert = System.getTemporaryFile("cer"); + var limePath = Haxelib.getPath(new Haxelib("lime")); + var hlPath = limePath + "/templates/bin/hl/mac/hl"; + var entitlementsPath = sys.FileSystem.exists(limePath + "/project") ? (limePath + + "/project/lib/hashlink/other/osx/entitlements.xml") : (limePath + + "/templates/bin/hl/entitlements.xml"); + System.runCommand("", "sudo", ["security", "delete-identity", "-c", "hl-cert"], true, true, true); + sys.io.File.saveContent(openSSLConf, [ + "[req]", + "distinguished_name=codesign_dn", + "[codesign_dn]", + "commonName=hl-cert", + "[v3_req]", + "keyUsage=critical,digitalSignature", + "extendedKeyUsage=critical,codeSigning", + ].join("\n")); + System.runCommand("", "openssl", [ + "req", "-x509", "-newkey", "rsa:4096", "-keyout", key, "-nodes", "-days", "365", "-subj", "/CN=hl-cert", "-outform", "der", "-out", + cert, "-extensions", "v3_req", "-config", openSSLConf + ], true, false, true); + System.runCommand("", "sudo", [ + "security", + "add-trusted-cert", + "-d", + "-k /Library/Keychains/System.keychain", + cert + ], true, false, true); + System.runCommand("", "sudo", ["security", "import", key, "-k", "/Library/Keychains/System.keychain", "-A"], true, false, true); + System.runCommand("", "codesign", ["--entitlements", entitlementsPath, "-fs", "hl-cert", hlPath], true, false, true); + for (f in [key, cert, openSSLConf]) + sys.FileSystem.deleteFile(f); + Log.println("\nIf you update lime, you will have to run this again to sign the new hl executable"); + } + } + } } private static function throwPermissionsError()