mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Some comments and minor things changed.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user