mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-09 11:50:37 +01:00
2ae2a551a6
GLES drivers adapted, but only did make compile-tests. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6038 dfc29bdd-3216-0410-991c-e03cc46cb475
34 lines
675 B
C++
34 lines
675 B
C++
// This file is part of the "Irrlicht Engine".
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
#ifndef __IRR_ANDROID_TOOLS_H__
|
|
#define __IRR_ANDROID_TOOLS_H__
|
|
|
|
#include <irrlicht.h>
|
|
#include <android_native_app_glue.h>
|
|
|
|
namespace irr
|
|
{
|
|
namespace android
|
|
{
|
|
|
|
struct SDisplayMetrics
|
|
{
|
|
irr::s32 widthPixels;
|
|
irr::s32 heightPixels;
|
|
irr::f32 density;
|
|
irr::s32 densityDpi;
|
|
irr::f32 scaledDensity;
|
|
irr::f32 xdpi;
|
|
irr::f32 ydpi;
|
|
};
|
|
|
|
//! Access SDisplayMetrics
|
|
extern bool getDisplayMetrics(android_app* app, SDisplayMetrics & metrics);
|
|
|
|
extern void setSoftInputVisibility(android_app* app, bool visible);
|
|
}
|
|
}
|
|
|
|
#endif // __IRR_ANDROID_TOOLS_H__
|