"Fossies" - the Fresh Open Source Software Archive

Member "FreeBASIC-1.09.0-win64/inc/allegro5/allegro_ttf.bi" (1 Jan 2022, 2370 Bytes) of package /windows/misc/FreeBASIC-1.09.0-win64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Visual Basic source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 '' FreeBASIC binding for allegro-5.0.11
    2 ''
    3 '' based on the C header files:
    4 ''   Copyright (c) 2004-2011 the Allegro 5 Development Team
    5 ''
    6 ''   This software is provided 'as-is', without any express or implied
    7 ''   warranty. In no event will the authors be held liable for any damages
    8 ''   arising from the use of this software.
    9 ''
   10 ''   Permission is granted to anyone to use this software for any purpose,
   11 ''   including commercial applications, and to alter it and redistribute it
   12 ''   freely, subject to the following restrictions:
   13 ''
   14 ''       1. The origin of this software must not be misrepresented; you must not
   15 ''       claim that you wrote the original software. If you use this software
   16 ''       in a product, an acknowledgment in the product documentation would be
   17 ''       appreciated but is not required.
   18 ''
   19 ''       2. Altered source versions must be plainly marked as such, and must not be
   20 ''       misrepresented as being the original software.
   21 ''
   22 ''       3. This notice may not be removed or altered from any source
   23 ''       distribution.
   24 ''
   25 '' translated to FreeBASIC by:
   26 ''   Copyright © 2015 FreeBASIC development team
   27 
   28 #pragma once
   29 
   30 #ifdef __FB_UNIX__
   31     #inclib "allegro_ttf"
   32 #elseif defined(__FB_WIN32__) and defined(ALLEGRO_STATICLINK)
   33     #inclib "allegro_ttf-5.0.10-static-md"
   34 #else
   35     #inclib "allegro_ttf-5.0.10-md"
   36 #endif
   37 
   38 #include once "allegro5/allegro.bi"
   39 #include once "allegro5/allegro_font.bi"
   40 
   41 extern "C"
   42 
   43 #define __al_included_allegro5_allegro_ttf_h
   44 const ALLEGRO_TTF_NO_KERNING = 1
   45 const ALLEGRO_TTF_MONOCHROME = 2
   46 const ALLEGRO_TTF_NO_AUTOHINT = 4
   47 
   48 declare function al_load_ttf_font(byval filename as const zstring ptr, byval size as long, byval flags as long) as ALLEGRO_FONT ptr
   49 declare function al_load_ttf_font_f(byval file as ALLEGRO_FILE ptr, byval filename as const zstring ptr, byval size as long, byval flags as long) as ALLEGRO_FONT ptr
   50 declare function al_load_ttf_font_stretch(byval filename as const zstring ptr, byval w as long, byval h as long, byval flags as long) as ALLEGRO_FONT ptr
   51 declare function al_load_ttf_font_stretch_f(byval file as ALLEGRO_FILE ptr, byval filename as const zstring ptr, byval w as long, byval h as long, byval flags as long) as ALLEGRO_FONT ptr
   52 declare function al_init_ttf_addon() as byte
   53 declare sub al_shutdown_ttf_addon()
   54 declare function al_get_allegro_ttf_version() as ulong
   55 
   56 end extern