public void OnResume() { this.mTextureManager.reloadTextures(); this.mFontManager.ReloadFonts(); BufferObjectManager.SetActiveInstance(this.mBufferObjectManager); this.mBufferObjectManager.ReloadBufferObjects(); }
public Line(float pX1, float pY1, float pX2, float pY2, float pLineWidth) : base(pX1, pY1) { this.mX2 = pX2; this.mY2 = pY2; this.mLineWidth = pLineWidth; this.mLineVertexBuffer = new LineVertexBuffer(GL11Consts.GlStaticDraw); BufferObjectManager.GetActiveInstance().LoadBufferObject(this.mLineVertexBuffer); this.UpdateVertexBuffer(); float width = this.GetWidth(); float height = this.GetHeight(); this.mRotationCenterX = width * 0.5f; this.mRotationCenterY = height * 0.5f; this.mScaleCenterX = this.mRotationCenterX; this.mScaleCenterY = this.mRotationCenterY; }
public Engine(/* final */ EngineOptions pEngineOptions) { Engine.Instance = this; //TextureRegionFactory.setAssetBasePath(""); TextureRegionFactory.SetAssetBasePath(""); //SoundFactory.setAssetBasePath(""); SoundFactory.SetAssetBasePath(""); //MusicFactory.setAssetBasePath(""); MusicFactory.SetAssetBasePath(""); //FontFactory.setAssetBasePath(""); FontFactory.setAssetBasePath(""); //BufferObjectManager.setActiveInstance(this.mBufferObjectManager); BufferObjectManager.SetActiveInstance(this.mBufferObjectManager); this.mEngineOptions = pEngineOptions; //this.SetTouchController(new SingleTouchController()); this.TouchController = new SingleTouchController(); //this.mCamera = pEngineOptions.getCamera(); this.mCamera = pEngineOptions.GetCamera(); if (this.mEngineOptions.NeedsSound()) { this.mSoundManager = new SoundManager(); } if (this.mEngineOptions.NeedsMusic()) { this.mMusicManager = new MusicManager(); } if (this.mEngineOptions.HasLoadingScreen()) { this.InitLoadingScreen(); } this.mUpdateThread.Start(); }