// The Init signal is received once (only) during the Application lifetime
void Create( Application& application )
{
+ // Disable indicator
+ Dali::Window winHandle = application.GetWindow();
+ winHandle.ShowIndicator( Dali::Window::INVISIBLE );
+
// Get a handle to the stage
mStage = Stage::GetCurrent();
#include <dali-toolkit/public-api/image-loader/sync-image-loader.h>
GameTexture::GameTexture()
+: mUniqueId( 0 ),
+ mIsReady( false )
{
}
{
}
-GameTexture::GameTexture( const char* filename ) :
- mUniqueId( 0 )
+GameTexture::GameTexture( const char* filename )
+: mUniqueId( 0 ),
+ mIsReady( false )
{
Load( filename );
}
bool LoadFile( const char* filename, ByteArray& bytes )
{
FILE* fin = fopen( filename, "rb" );
- fseek( fin, 0, SEEK_END );
+ if( fseek( fin, 0, SEEK_END ) )
+ {
+ return false;
+ }
bytes.resize( ftell( fin ) );
std::fill( bytes.begin(), bytes.end(), 0 );
- fseek( fin, 0, SEEK_SET );
+ if( fseek( fin, 0, SEEK_SET ) )
+ {
+ return false;
+ }
size_t result = fread( bytes.data(), 1, bytes.size(), fin );
fclose( fin );
return (result != 0);