GenerateHardwareTextureID() private static method

private static GenerateHardwareTextureID ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : int
pGL Javax.Microedition.Khronos.Opengles.IGL10
return int
示例#1
0
        public void LoadToHardware(GL10 pGL)
        {
            GLHelper.EnableTextures(pGL);

            this.mHardwareTextureID = Texture.GenerateHardwareTextureID(pGL);

            this.AllocateAndBindTextureOnHardware(pGL);

            this.ApplyTextureOptions(pGL);

            this.WriteTextureToHardware(pGL);

            this.mUpdateOnHardwareNeeded = false;
            this.mLoadedToHardware       = true;

            if (this.mTextureStateListener != null)
            {
                this.mTextureStateListener.OnLoadedToHardware(this);
            }
        }