project_files/hwc/rtl/fpcrtl.h
author koda
Wed, 07 Nov 2012 18:04:27 +0000
branchwebgl
changeset 7983 02f36c3e7f6c
child 8047 25a4daa6473c
permissions -rw-r--r--
add xymeng's rtl port
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7983
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     1
#ifndef _FPCRTL_H_
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     2
#define _FPCRTL_H_
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     3
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     4
#include <stdio.h>
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     5
#include <stdlib.h>
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     6
#include <math.h>
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     7
#include <string.h>
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     8
#include <unistd.h>
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
     9
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    10
#include "system.h"
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    11
#include "misc.h"
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    12
#include "sysutils.h"
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    13
#include "fileio.h"
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    14
#include "pmath.h"
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    15
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    16
#ifndef EMSCRIPTEN
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    17
#include "GL/glew.h"
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    18
#endif
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    19
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    20
#define fpcrtl_memcpy                       memcpy
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    21
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    22
#define luapas_lua_gettop                   lua_gettop
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    23
#define luapas_lua_close                    lua_close
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    24
#define luapas_lua_createtable              lua_createtable
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    25
#define luapas_lua_error                    lua_error
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    26
#define luapas_lua_gc                       lua_gc
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    27
#define luapas_lua_getfield                 lua_getfield
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    28
#define luapas_lua_objlen                   lua_objlen
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    29
#define luapas_lua_call                     lua_call
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    30
#define luapas_lua_pcall                    lua_pcall
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    31
#define luapas_lua_pushboolean              lua_pushboolean
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    32
#define luapas_lua_pushcclosure             lua_pushcclosure
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    33
#define luapas_lua_pushinteger              lua_pushinteger
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    34
#define luapas_lua_pushnil                  lua_pushnil
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    35
#define luapas_lua_pushnumber               lua_pushnumber
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    36
#define luapas_lua_pushlstring              lua_pushlstring
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    37
#define luapas_lua_pushstring               lua_pushstring
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    38
#define luapas_lua_pushvalue                lua_pushvalue
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    39
#define luapas_lua_rawgeti                  lua_rawgeti
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    40
#define luapas_lua_setfield                 lua_setfield
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    41
#define luapas_lua_settop                   lua_settop
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    42
#define luapas_lua_toboolean                lua_toboolean
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    43
#define luapas_lua_tointeger                lua_tointeger
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    44
#define luapas_lua_tolstring                lua_tolstring
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    45
#define luapas_lua_tonumber                 lua_tonumber
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    46
#define luapas_lua_type                     lua_type
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    47
#define luapas_lua_typename                 lua_typename
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    48
#define luapas_luaL_argerror                luaL_argerror
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    49
#define luapas_luaL_checkinteger            luaL_checkinteger
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    50
#define luapas_luaL_checklstring            luaL_checklstring
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    51
#define luapas_luaL_loadfile                luaL_loadfile
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    52
#define luapas_luaL_loadstring              luaL_loadstring
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    53
#define luapas_luaL_newstate                luaL_newstate
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    54
#define luapas_luaL_optinteger              luaL_optinteger
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    55
#define luapas_luaL_optlstring              luaL_optlstring
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    56
#define luapas_luaL_prepbuffer              luaL_prepbuffer
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    57
#define luapas_luaL_ref                     luaL_ref
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    58
#define luapas_luaL_unref                   luaL_unref
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    59
#define luapas_luaopen_base                 luaopen_base
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    60
#define luapas_luaopen_math                 luaopen_math
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    61
#define luapas_luaopen_string               luaopen_string
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    62
#define luapas_luaopen_table                luaopen_table
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    63
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    64
#define sdlh_IMG_Load                       IMG_Load
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    65
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    66
#ifndef EMSCRIPTEN
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    67
#define sdlh_Mix_AllocateChannels           Mix_AllocateChannels
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    68
#define sdlh_Mix_CloseAudio                 Mix_CloseAudio
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    69
#define sdlh_Mix_FadeInChannelTimed         Mix_FadeInChannelTimed
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    70
#define sdlh_Mix_FadeInMusic                Mix_FadeInMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    71
#define sdlh_Mix_FadeOutChannel             Mix_FadeOutChannel
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    72
#define sdlh_Mix_FreeChunk                  Mix_FreeChunk
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    73
#define sdlh_Mix_FreeMusic                  Mix_FreeMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    74
#define sdlh_Mix_HaltChannel                Mix_HaltChannel
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    75
#define sdlh_Mix_HaltMusic                  Mix_HaltMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    76
#define sdlh_Mix_LoadMUS                    Mix_LoadMUS
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    77
#define sdlh_Mix_LoadWAV_RW                 Mix_LoadWAV_RW
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    78
#define sdlh_Mix_OpenAudio                  Mix_OpenAudio
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    79
#define sdlh_Mix_PauseMusic                 Mix_PauseMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    80
#define sdlh_Mix_PlayChannelTimed           Mix_PlayChannelTimed
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    81
#define sdlh_Mix_Playing                    Mix_Playing
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    82
#define sdlh_Mix_ResumeMusic                Mix_ResumeMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    83
#define sdlh_Mix_Volume                     Mix_Volume
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    84
#define sdlh_Mix_VolumeMusic                Mix_VolumeMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    85
#else
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    86
#define sdlh_Mix_AllocateChannels           stub_Mix_AllocateChannels
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    87
#define sdlh_Mix_CloseAudio                 stub_Mix_CloseAudio
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    88
#define sdlh_Mix_FadeInChannelTimed         stub_Mix_FadeInChannelTimed
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    89
#define sdlh_Mix_FadeInMusic                stub_Mix_FadeInMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    90
#define sdlh_Mix_FadeOutChannel             stub_Mix_FadeOutChannel
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    91
#define sdlh_Mix_FreeChunk                  stub_Mix_FreeChunk
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    92
#define sdlh_Mix_FreeMusic                  stub_Mix_FreeMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    93
#define sdlh_Mix_HaltChannel                stub_Mix_HaltChannel
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    94
#define sdlh_Mix_HaltMusic                  stub_Mix_HaltMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    95
#define sdlh_Mix_LoadMUS                    stub_Mix_LoadMUS
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    96
#define sdlh_Mix_LoadWAV_RW                 stub_Mix_LoadWAV_RW
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    97
#define sdlh_Mix_OpenAudio                  stub_Mix_OpenAudio
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    98
#define sdlh_Mix_PauseMusic                 stub_Mix_PauseMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
    99
#define sdlh_Mix_PlayChannelTimed           stub_Mix_PlayChannelTimed
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   100
#define sdlh_Mix_Playing                    stub_Mix_Playing
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   101
#define sdlh_Mix_ResumeMusic                stub_Mix_ResumeMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   102
#define sdlh_Mix_Volume                     stub_Mix_Volume
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   103
#define sdlh_Mix_VolumeMusic                stub_Mix_VolumeMusic
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   104
#endif
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   105
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   106
#define sdlh_SDL_ConvertSurface             SDL_ConvertSurface
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   107
#define sdlh_SDL_CreateRGBSurface           SDL_CreateRGBSurface
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   108
#define sdlh_SDL_CreateThread               SDL_CreateThread
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   109
#define sdlh_SDL_Delay                      SDL_Delay
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   110
#define sdlh_SDL_EnableKeyRepeat            SDL_EnableKeyRepeat
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   111
#define sdlh_SDL_EnableUNICODE              SDL_EnableUNICODE
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   112
#define sdlh_SDL_FillRect                   SDL_FillRect
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   113
#define sdlh_SDL_FreeSurface                SDL_FreeSurface
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   114
#define sdlh_SDL_GetError                   SDL_GetError
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   115
#define sdlh_SDL_GetKeyName                 SDL_GetKeyName
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   116
#define sdlh_SDL_GetKeyState                SDL_GetKeyState
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   117
#define sdlh_SDL_GetMouseState              SDL_GetMouseState
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   118
#define sdlh_SDL_GetRGBA                    SDL_GetRGBA
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   119
#define sdlh_SDL_GetTicks                   SDL_GetTicks
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   120
#define sdlh_SDL_GL_SetAttribute            SDL_GL_SetAttribute
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   121
#define sdlh_SDL_GL_SwapBuffers             SDL_GL_SwapBuffers
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   122
#define sdlh_SDL_Init                       SDL_Init
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   123
#define sdlh_SDL_InitSubSystem              SDL_InitSubSystem
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   124
#define sdlh_SDL_JoystickClose              SDL_JoystickClose
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   125
#define sdlh_SDL_JoystickEventState         SDL_JoystickEventState
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   126
#define sdlh_SDL_JoystickName               SDL_JoystickName
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   127
#define sdlh_SDL_JoystickNumAxes            SDL_JoystickNumAxes
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   128
#define sdlh_SDL_JoystickNumButtons         SDL_JoystickNumButtons
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   129
#define sdlh_SDL_JoystickNumHats            SDL_JoystickNumHats
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   130
#define sdlh_SDL_JoystickOpen               SDL_JoystickOpen
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   131
#define sdlh_SDL_LockSurface                SDL_LockSurface
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   132
#define sdlh_SDL_MapRGB                     SDL_MapRGB
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   133
#define sdlh_SDL_MapRGBA                    SDL_MapRGBA
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   134
#define sdlh_SDL_NumJoysticks               SDL_NumJoysticks
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   135
#define sdlh_SDL_PeepEvents                 SDL_PeepEvents
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   136
#define sdlh_SDL_PumpEvents                 SDL_PumpEvents
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   137
#define sdlh_SDL_Quit                       SDL_Quit
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   138
#define sdlh_SDL_RWFromFile                 SDL_RWFromFile
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   139
#define sdlh_SDL_SetColorKey                SDL_SetColorKey
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   140
#define sdlh_SDL_SetVideoMode               SDL_SetVideoMode
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   141
#ifndef EMSCRIPTEN
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   142
#define sdlh_SDL_ShowCursor                 SDL_ShowCursor
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   143
#else
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   144
#define sdlh_SDL_ShowCursor                 SDL_ShowCursor_patch
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   145
#endif
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   146
#define sdlh_SDL_UnlockSurface              SDL_UnlockSurface
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   147
#define sdlh_SDL_UpperBlit                  SDL_UpperBlit
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   148
#define sdlh_SDL_VideoDriverName            SDL_VideoDriverName
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   149
#define sdlh_SDL_WarpMouse                  SDL_WarpMouse
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   150
#define sdlh_SDL_WM_SetCaption              SDL_WM_SetCaption
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   151
#define sdlh_SDL_WM_SetIcon                 SDL_WM_SetIcon
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   152
#define sdlh_SDLNet_AddSocket               SDLNet_AddSocket
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   153
#define sdlh_SDLNet_AllocSocketSet          SDLNet_AllocSocketSet
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   154
#define sdlh_SDLNet_CheckSockets            SDLNet_CheckSockets
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   155
#define sdlh_SDLNet_FreeSocketSet           SDLNet_FreeSocketSet
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   156
#define sdlh_SDLNet_Init                    SDLNet_Init
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   157
#define sdlh_SDLNet_Quit                    SDLNet_Quit
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   158
#define sdlh_SDLNet_ResolveHost             SDLNet_ResolveHost
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   159
#define sdlh_SDLNet_TCP_Close               SDLNet_TCP_Close
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   160
#define sdlh_SDLNet_TCP_Open                SDLNet_TCP_Open
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   161
#define sdlh_SDLNet_TCP_Recv                SDLNet_TCP_Recv
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   162
#define sdlh_SDLNet_TCP_Send                SDLNet_TCP_Send
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   163
#define sdlh_TTF_Init                       TTF_Init
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   164
#define sdlh_TTF_OpenFont                   TTF_OpenFont
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   165
#define sdlh_TTF_Quit                       TTF_Quit
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   166
#define sdlh_TTF_RenderUTF8_Blended         TTF_RenderUTF8_Blended
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   167
#define sdlh_TTF_RenderUTF8_Solid           TTF_RenderUTF8_Solid
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   168
#define sdlh_TTF_SetFontStyle               TTF_SetFontStyle
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   169
#define sdlh_TTF_SizeUTF8                   TTF_SizeUTF8
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   170
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   171
#define _strconcat                          fpcrtl_strconcat
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   172
#define _strappend                          fpcrtl_strappend
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   173
#define _strprepend                         fpcrtl_strprepend
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   174
#define _strcompare                         fpcrtl_strcompare
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   175
#define _strncompare                        fpcrtl_strncompare
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   176
#define _strcomparec                        fpcrtl_strcomparec
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   177
#define _chrconcat                          fpcrtl_chrconcat
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   178
#define _pchar                              fpcrtl_pchar
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   179
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   180
// hooks are implemented in javascript
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   181
void start_hook(void);
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   182
void mainloop_hook(void);
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   183
void clear_filelist_hook(void);
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   184
void add_file_hook(const char* ptr);
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   185
void idb_loader_hook();
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   186
void showcursor_hook();
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   187
void hidecursor_hook();
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   188
void drawworld_init_hook();
02f36c3e7f6c add xymeng's rtl port
koda
parents:
diff changeset
   189
#endif