GetCustomAttribute() private method

private GetCustomAttribute ( string attribute ) : object
attribute string
return object
Ejemplo n.º 1
0
		internal GLPBRTTManager( BaseGLSupport glSupport, RenderTarget target )
			: base( glSupport )
		{
			_glSupport = glSupport;
			_mainWindow = target;

			_mainGLContext = (GLContext)target.GetCustomAttribute( "GLCONTEXT" );
		}
Ejemplo n.º 2
0
		public override void Unbind( RenderTarget target )
		{
			// copy on unbind
			object attr = target.GetCustomAttribute( "target" );
			if ( attr != null )
			{
				GLSurfaceDesc surface = (GLSurfaceDesc)attr;
				if ( surface.Buffer != null )
					( (GLTextureBuffer)surface.Buffer ).CopyFromFrameBuffer( surface.ZOffset );
			}
		}