2019-08-23 11:56:54 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define BFSTDCALL
|
|
|
|
|
|
|
|
#include "../darwin/DarwinCommon.h"
|
|
|
|
#include "TargetConditionals.h"
|
2019-10-29 05:01:04 -07:00
|
|
|
#include <string>
|
2019-08-23 11:56:54 -07:00
|
|
|
|
|
|
|
#ifndef __IPHONEOS__
|
|
|
|
#define __IPHONEOS__
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define BF_PLATFORM_IOS
|
2019-10-23 07:12:36 -07:00
|
|
|
#define BF_PLATFORM_POSIX
|
2019-08-23 11:56:54 -07:00
|
|
|
#define BF_PLATFORM_OPENGL_ES2
|
|
|
|
#define BF_PLATFORM_FULLSCREEN
|
2019-10-29 05:01:04 -07:00
|
|
|
#define BF_PLATFORM_DARWIN
|
|
|
|
#define BF_PLATFORM_NAME "BF_PLATFORM_IOS"
|
2019-08-23 11:56:54 -07:00
|
|
|
|
|
|
|
#if !TARGET_IPHONE_SIMULATOR
|
|
|
|
#ifdef __LP64__
|
|
|
|
#ifdef __I386__
|
|
|
|
#define BF_PLATFORM_X64
|
|
|
|
#else
|
|
|
|
#define BF_PLATFORM_ARM64
|
|
|
|
#endif
|
|
|
|
#define BF64
|
|
|
|
#else ////
|
|
|
|
#ifdef __I386__
|
|
|
|
#define BF_PLATFORM_I386
|
|
|
|
#else
|
|
|
|
#define BF_PLATFORM_ARM32
|
|
|
|
#endif
|
|
|
|
#define BF32
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifdef __LP64__
|
|
|
|
#define BF_PLATFORM_X64
|
|
|
|
#define BF64
|
|
|
|
#else ////
|
|
|
|
#define BF_PLATFORM_I386
|
|
|
|
#define BF32
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2019-10-29 05:01:04 -07:00
|
|
|
#define BF_IMPORT extern "C"
|
|
|
|
|
2019-08-23 11:56:54 -07:00
|
|
|
#ifdef BFSYSLIB_DYNAMIC
|
2019-10-29 05:01:04 -07:00
|
|
|
#define BF_EXPORT extern "C"
|
2019-08-23 11:56:54 -07:00
|
|
|
#define BF_CALLTYPE
|
|
|
|
#else
|
|
|
|
#define BF_EXPORT extern "C"
|
|
|
|
#define BF_CALLTYPE
|
2019-10-29 05:01:04 -07:00
|
|
|
#define BF_RESOURCES_REL_DIR "../Resources"
|
2019-08-23 11:56:54 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BF_PLATFORM_ARM32
|
|
|
|
#define BF_REGISTER_COUNT 15
|
|
|
|
#elif defined BF32
|
|
|
|
#define BF_REGISTER_COUNT 7
|
|
|
|
#else
|
|
|
|
#define BF_REGISTER_COUNT 15
|
|
|
|
#endif
|
|
|
|
|
2019-10-29 05:01:04 -07:00
|
|
|
#define BF_DEBUG_BREAK()
|
|
|
|
|
|
|
|
#include "../PlatformInterface.h"
|