/// <summary> /// </summary> /// <param name="poolId"> </param> /// <param name="renderSystem"> </param> /// <param name="creatorContext"> </param> /// <param name="depth"> </param> /// <param name="stencil"> </param> /// <param name="width"> </param> /// <param name="height"> </param> /// <param name="fsaa"> </param> /// <param name="multiSampleQuality"> </param> /// <param name="isManual"> </param> public GLES2DepthBuffer(PoolId poolId, GLES2RenderSystem renderSystem, GLES2Context creatorContext, GLES2RenderBuffer depth, GLES2RenderBuffer stencil, int width, int height, int fsaa, int multiSampleQuality, bool isManual) : base(poolId, 0, width, height, fsaa, "", isManual) { this._creatorContext = creatorContext; this._multiSampleQuality = multiSampleQuality; this._depthBuffer = depth; this._stencilBuffer = stencil; this._renderSystem = renderSystem; if (this._depthBuffer != null) { switch (this._depthBuffer.GLFormat) { case OpenTK.Graphics.ES20.All.DepthComponent16: bitDepth = 16; break; case GLenum.DepthComponent24Oes: case GLenum.DepthComponent32Oes: case GLenum.Depth24Stencil8Oes: //Packed depth / stencil bitDepth = 32; break; } } }
/// <summary> /// </summary> /// <param name="poolId"> </param> /// <param name="renderSystem"> </param> /// <param name="creatorContext"> </param> /// <param name="depth"> </param> /// <param name="stencil"> </param> /// <param name="width"> </param> /// <param name="height"> </param> /// <param name="fsaa"> </param> /// <param name="multiSampleQuality"> </param> /// <param name="isManual"> </param> public GLES2DepthBuffer( PoolId poolId, GLES2RenderSystem renderSystem, GLES2Context creatorContext, GLES2RenderBuffer depth, GLES2RenderBuffer stencil, int width, int height, int fsaa, int multiSampleQuality, bool isManual ) : base( poolId, 0, width, height, fsaa, "", isManual ) { this._creatorContext = creatorContext; this._multiSampleQuality = multiSampleQuality; this._depthBuffer = depth; this._stencilBuffer = stencil; this._renderSystem = renderSystem; if ( this._depthBuffer != null ) { switch ( this._depthBuffer.GLFormat ) { case OpenTK.Graphics.ES20.All.DepthComponent16: bitDepth = 16; break; case GLenum.DepthComponent24Oes: case GLenum.DepthComponent32Oes: case GLenum.Depth24Stencil8Oes: //Packed depth / stencil bitDepth = 32; break; } } }
public virtual Graphics.RenderWindow CreateWindow(bool autoCreateWindow, GLES2RenderSystem gLES2RenderSystem, string windowTitle) { //Meant to be overridden throw new NotImplementedException(); }
public virtual Graphics.RenderWindow CreateWindow( bool autoCreateWindow, GLES2RenderSystem gLES2RenderSystem, string windowTitle ) { //Meant to be overridden throw new NotImplementedException(); }