Started to port to iOS; fixing compiler errors here and there

This commit is contained in:
2026-03-17 02:22:17 -04:00
parent 9d831bdb25
commit d103caddab
6 changed files with 77 additions and 42 deletions

View File

@@ -52,11 +52,10 @@ public:
virtual StringVector getOptionStrings();
virtual bool isPowerVR() { return false; }
virtual bool isPowerVR();
virtual bool isSuperFast();
virtual void showKeyboard();
virtual void hideKeyboard();
virtual void isPowerVR();
private:
std::string _basePath;

View File

@@ -1,7 +1,7 @@
#pragma once
#include <sstream>
#include <type_traits>
#include <util/Mth.h>
#include "Mth.h"
/*
template<typename T>
struct is_option_type : std::false_type {};
@@ -104,4 +104,4 @@ public:
private:
std::string m_value;
};
};

View File

@@ -14,8 +14,8 @@
#define USE_VBO
#define GL_QUADS 0x0007
#if defined(__APPLE__)
#import <OpenGLES/ES1/gl.height>
#import <OpenGLES/ES1/glext.height>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#elif defined(ANDROID)
#include <GLES/gl.h>
#include <GLES/glext.h>

View File

@@ -3,8 +3,14 @@
#include "SoundSystem.h"
#include <AL/al.h>
#include <AL/alc.h>
// If audio breaks for other platforms, this is probably why. Here, I'm just calling where Apple's OpenAL headers live (they arent in just "AL"
#if defined(__APPLE__)
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#else
#include <AL/al.h>
#include <AL/alc.h>
#endif
#include <vector>
#include <list>