1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-18 22:55:12 +00:00

more changes to make Rug work on Android

This commit is contained in:
Zeno Rogue
2018-02-03 19:19:27 +01:00
parent bd84b76c1b
commit 0a7c07fa7d
4 changed files with 95 additions and 27 deletions

View File

@@ -332,6 +332,14 @@ void setGLProjection(int col) {
stereo::set_projection(0);
}
inline int next_p2 (int a )
{
int rval=1;
// rval<<=1 Is A Prettier Way Of Writing rval*=2;
while(rval<a) rval<<=1;
return rval;
}
#if CAP_GLFONT
struct glfont_t {
@@ -345,14 +353,6 @@ struct glfont_t {
glfont_t *glfont[256];
inline int next_p2 (int a )
{
int rval=1;
// rval<<=1 Is A Prettier Way Of Writing rval*=2;
while(rval<a) rval<<=1;
return rval;
}
void glError(const char* GLcall, const char* file, const int line) {
GLenum errCode = glGetError();
if(errCode!=GL_NO_ERROR) {