mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-22 13:01:05 +03:00
Fix Android build.
This commit is contained in:
@@ -7,6 +7,21 @@
|
||||
#include <eepp/graphics/renderer/renderergles2.hpp>
|
||||
#include <eepp/system/sys.hpp>
|
||||
|
||||
#ifdef EE_GLES1_LATE_INCLUDE
|
||||
#if EE_PLATFORM == EE_PLATFORM_IOS
|
||||
#include <OpenGLES/ES1/gl.h>
|
||||
#include <OpenGLES/ES1/glext.h>
|
||||
#else
|
||||
#include <GLES/gl.h>
|
||||
|
||||
#ifndef GL_GLEXT_PROTOTYPES
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#endif
|
||||
|
||||
#include <GLES/glext.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace EE { namespace Graphics {
|
||||
|
||||
#if defined( EE_GLEW_AVAILABLE ) || defined( EE_GLES2 )
|
||||
|
||||
@@ -35,7 +35,6 @@ constexpr Uint16 IPCVersion = 1;
|
||||
constexpr Uint16 IPCFlags = 0;
|
||||
constexpr std::size_t IPCHeaderSize = 12;
|
||||
constexpr std::size_t IPCInlinePayloadSize = 512;
|
||||
constexpr Uint32 IPCPipeBufferSize = 64 * 1024;
|
||||
using EndpointHash = std::array<char, 33>;
|
||||
using NativeName = std::array<wchar_t, 64>;
|
||||
|
||||
@@ -126,6 +125,8 @@ class IPC::Impl {
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr Uint32 IPCPipeBufferSize = 64 * 1024;
|
||||
|
||||
NativeName nativeName( std::wstring_view prefix, const EndpointHash& hash ) {
|
||||
NativeName name{};
|
||||
if ( prefix.size() + hash.size() > name.size() )
|
||||
|
||||
@@ -40,9 +40,9 @@ class AIAssistantPlugin : public PluginBase {
|
||||
|
||||
std::string getDescription() override { return Definition().description; }
|
||||
|
||||
bool hasSettingsPage() const { return true; }
|
||||
bool hasSettingsPage() const override { return true; }
|
||||
|
||||
void registerSettings( SettingsPage& page );
|
||||
void registerSettings( SettingsPage& page ) override;
|
||||
|
||||
const LLMProviders& getProviders() { return mProviders; }
|
||||
|
||||
|
||||
@@ -95,9 +95,9 @@ class AutoCompletePlugin : public Plugin {
|
||||
|
||||
bool isReady() const override { return true; }
|
||||
|
||||
bool hasSettingsPage() const { return true; }
|
||||
bool hasSettingsPage() const override { return true; }
|
||||
|
||||
void registerSettings( SettingsPage& page );
|
||||
void registerSettings( SettingsPage& page ) override;
|
||||
|
||||
void onRegister( UICodeEditor* ) override;
|
||||
|
||||
|
||||
@@ -68,9 +68,9 @@ class DebuggerPlugin : public PluginBase {
|
||||
|
||||
std::string getDescription() override { return Definition().description; }
|
||||
|
||||
bool hasSettingsPage() const { return true; }
|
||||
bool hasSettingsPage() const override { return true; }
|
||||
|
||||
void registerSettings( SettingsPage& page );
|
||||
void registerSettings( SettingsPage& page ) override;
|
||||
|
||||
void onSaveState( IniFile* state ) override;
|
||||
|
||||
|
||||
@@ -43,9 +43,9 @@ class DiscordRPCplugin : public PluginBase {
|
||||
|
||||
std::string getDescription() override { return Definition().description; }
|
||||
|
||||
bool hasSettingsPage() const { return true; }
|
||||
bool hasSettingsPage() const override { return true; }
|
||||
|
||||
void registerSettings( SettingsPage& page );
|
||||
void registerSettings( SettingsPage& page ) override;
|
||||
|
||||
protected:
|
||||
DiscordIPC mIPC;
|
||||
|
||||
@@ -83,9 +83,9 @@ class GitPlugin : public PluginBase {
|
||||
|
||||
std::string getDescription() override { return Definition().description; }
|
||||
|
||||
bool hasSettingsPage() const { return true; }
|
||||
bool hasSettingsPage() const override { return true; }
|
||||
|
||||
void registerSettings( SettingsPage& page );
|
||||
void registerSettings( SettingsPage& page ) override;
|
||||
|
||||
void onSaveState( IniFile* state ) override;
|
||||
|
||||
|
||||
@@ -39,9 +39,9 @@ class SpellCheckerPlugin : public PluginBase {
|
||||
|
||||
std::string getDescription() override { return Definition().description; }
|
||||
|
||||
bool hasSettingsPage() const { return true; }
|
||||
bool hasSettingsPage() const override { return true; }
|
||||
|
||||
void registerSettings( SettingsPage& page );
|
||||
void registerSettings( SettingsPage& page ) override;
|
||||
|
||||
void drawAfterLineText( UICodeEditor* editor, const Int64& index, Vector2f position,
|
||||
const Float& fontSize, const Float& lineHeight ) override;
|
||||
|
||||
@@ -36,9 +36,9 @@ class XMLToolsPlugin : public PluginBase {
|
||||
|
||||
std::string getDescription() override { return Definition().description; }
|
||||
|
||||
bool hasSettingsPage() const { return true; }
|
||||
bool hasSettingsPage() const override { return true; }
|
||||
|
||||
void registerSettings( SettingsPage& page );
|
||||
void registerSettings( SettingsPage& page ) override;
|
||||
|
||||
bool getHighlightMatch() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user