Some comments and minor things changed.

This commit is contained in:
Martín Lucas Golini
2013-09-08 19:24:06 -03:00
parent a4e6598c8c
commit 5bd65e9fc0
5 changed files with 19 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ namespace EE { namespace Window { namespace Backend { class cBackend; } } }
namespace EE { namespace Window {
/** @brief The window management class. Here the engine start working. (Singleton Class). */
/** @brief The window management class. Here the engine starts working. (Singleton Class). */
class EE_API cEngine {
SINGLETON_DECLARE_HEADERS(cEngine)

View File

@@ -416,10 +416,14 @@ class EE_API cWindow {
virtual std::string GetApkPath();
#endif
/** @return True if the current window support a threaded GL Context. This means that supports OpenGL Shared Contexts ( multithreaded opengl contexts ).
** Only supported with SDL2 backend.*/
virtual bool IsThreadedGLContext();
/** Activates the shared GL context in the current thread. */
virtual void SetGLContextThread();
/** Deactviates the shared GL context in the current thread. */
virtual void UnsetGLContextThread();
protected:
friend class cEngine;

View File

@@ -134,12 +134,13 @@ void String::StrCopy( char * Dst, const char * Src, eeUint DstSize ) {
}
Int32 String::StartsWith( const std::string& Start, const std::string Str ) {
Int32 Pos = -1;
Int32 Pos = -1;
Int32 s = (Int32)Start.size();
if ( Str.size() >= Start.size() ) {
for ( Uint32 i = 0; i < Start.size(); i++ ) {
if ( (Int32)Str.size() >= s ) {
for ( Int32 i = 0; i < s; i++ ) {
if ( Start[i] == Str[i] ) {
Pos = (Int32)i;
Pos = i;
} else {
Pos = -1;
break;

View File

@@ -262,9 +262,13 @@ bool cUITheme::SearchFilesInAtlas( cTextureAtlas * SG, std::string Element, Uint
break;
}
}
if ( Found ) {
break;
}
}
// Seach Simple Skin
// Search Simple Skin
if ( !IsComplex ) {
for ( i = 0; i < cUISkinState::StateCount; i++ ) {
ElemName = Element + "_" + cUISkin::GetSkinStateName( i );

View File

@@ -92,6 +92,10 @@ cWindowSDL::~cWindowSDL() {
SDL_GL_DeleteContext( mGLContext );
}
if ( NULL != mGLContextThread ) {
SDL_GL_DeleteContext( mGLContextThread );
}
#ifdef EE_USE_WMINFO
eeSAFE_DELETE( mWMinfo );
#endif