Update AndroidJNIIOSystem.h
parent
e5cd5733e1
commit
5333e41607
|
@ -2,7 +2,7 @@
|
||||||
Open Asset Import Library (assimp)
|
Open Asset Import Library (assimp)
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
Copyright (c) 2006-2020, assimp team
|
Copyright (c) 2006-2021, assimp team
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
Redistribution and use of this software in source and binary forms,
|
||||||
|
@ -54,38 +54,32 @@ namespace Assimp {
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
/** Android extension to DefaultIOSystem using the standard C file functions */
|
/** Android extension to DefaultIOSystem using the standard C file functions */
|
||||||
class ASSIMP_API AndroidJNIIOSystem : public DefaultIOSystem
|
class ASSIMP_API AndroidJNIIOSystem : public DefaultIOSystem {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Initialize android activity data */
|
/** Initialize android activity data */
|
||||||
std::string mApkWorkspacePath;
|
std::string mApkWorkspacePath;
|
||||||
AAssetManager* mApkAssetManager;
|
AAssetManager* mApkAssetManager;
|
||||||
|
|
||||||
/** Constructor. */
|
/// Constructor.
|
||||||
AndroidJNIIOSystem(ANativeActivity* activity);
|
AndroidJNIIOSystem(ANativeActivity* activity);
|
||||||
|
|
||||||
|
/// Class constructor with past and asset manager.
|
||||||
AndroidJNIIOSystem(const char *internalPath, AAssetManager assetManager);
|
AndroidJNIIOSystem(const char *internalPath, AAssetManager assetManager);
|
||||||
|
|
||||||
/** Destructor. */
|
/// Destructor.
|
||||||
~AndroidJNIIOSystem();
|
~AndroidJNIIOSystem();
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
/// Tests for the existence of a file at the given path.
|
||||||
/** Tests for the existence of a file at the given path. */
|
|
||||||
bool Exists( const char* pFile) const;
|
bool Exists( const char* pFile) const;
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
/// Opens a file at the given path, with given mode
|
||||||
/** Opens a file at the given path, with given mode */
|
|
||||||
IOStream* Open( const char* strFile, const char* strMode);
|
IOStream* Open( const char* strFile, const char* strMode);
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
/// Inits Android extractor
|
||||||
// Inits Android extractor
|
|
||||||
void AndroidActivityInit(ANativeActivity* activity);
|
void AndroidActivityInit(ANativeActivity* activity);
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
/// Extracts android asset
|
||||||
// Extracts android asset
|
|
||||||
bool AndroidExtractAsset(std::string name);
|
bool AndroidExtractAsset(std::string name);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //!ns Assimp
|
} //!ns Assimp
|
||||||
|
|
Loading…
Reference in New Issue