GetCustomAttribute() private method

private GetCustomAttribute ( string attribute ) : object
attribute string
return object
コード例 #1
0
ファイル: GLPBRTTManager.cs プロジェクト: WolfgangSt/axiom
		internal GLPBRTTManager( BaseGLSupport glSupport, RenderTarget target )
			: base( glSupport )
		{
			_glSupport = glSupport;
			_mainWindow = target;

			_mainGLContext = (GLContext)target.GetCustomAttribute( "GLCONTEXT" );
		}
コード例 #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 );
			}
		}