// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.

#pragma once

#if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)
    #define OUZEL_PLATFORM_WINDOWS 1
    #define OUZEL_SUPPORTS_DIRECT3D11 1
#elif defined(__APPLE__)
    #include <TargetConditionals.h>
    #if TARGET_OS_IOS
        #define OUZEL_PLATFORM_IOS 1
        #define OUZEL_SUPPORTS_OPENGLES 1
        #define OUZEL_SUPPORTS_METAL 1
    #elif TARGET_OS_TV
        #define OUZEL_PLATFORM_TVOS 1
        #define OUZEL_SUPPORTS_OPENGLES 1
        #define OUZEL_SUPPORTS_METAL 1
    #elif TARGET_OS_MAC
        #define OUZEL_PLATFORM_OSX 1
        #define OUZEL_SUPPORTS_OPENGL 1
        #define OUZEL_SUPPORTS_METAL 1
    #endif
#elif defined(__ANDROID__)
    #define OUZEL_PLATFORM_ANDROID 1
    #define OUZEL_SUPPORTS_OPENGLES 1
#elif defined(__linux__)
    #define OUZEL_PLATFORM_LINUX 1
    #define OUZEL_SUPPORTS_OPENGL 1
#endif

// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.

#pragma once

#if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)
    #define OUZEL_PLATFORM_WINDOWS 1
    #define OUZEL_SUPPORTS_DIRECT3D11 1
#elif defined(__APPLE__)
    #include <TargetConditionals.h>
    #if TARGET_OS_IOS
        #define OUZEL_PLATFORM_IOS 1
        #define OUZEL_SUPPORTS_OPENGLES 1
        #define OUZEL_SUPPORTS_METAL 1
    #elif TARGET_OS_TV
        #define OUZEL_PLATFORM_TVOS 1
        #define OUZEL_SUPPORTS_OPENGLES 1
        #define OUZEL_SUPPORTS_METAL 1
    #elif TARGET_OS_MAC
        #define OUZEL_PLATFORM_OSX 1
        #define OUZEL_SUPPORTS_OPENGL 1
        #define OUZEL_SUPPORTS_METAL 1
    #endif
#elif defined(__ANDROID__)
    #define OUZEL_PLATFORM_ANDROID 1
    #define OUZEL_SUPPORTS_OPENGLES 1
#elif defined(__linux__)
    #define OUZEL_PLATFORM_LINUX 1
    #if defined(__i386__) || defined(__x86_64__)
        #define OUZEL_SUPPORTS_OPENGL 1
    #else defined(__arm__) || defined(__aarch64__)
        #define OUZEL_SUPPORTS_OPENGLES 1
    #endif
#endif

Define OpenGLES support for ARM
Define OpenGLES support for ARM
