Parcourir la source

Remove no longer needed RenderImage commands

Ronny Otto il y a 2 ans
Parent
commit
fced0e9d6e
1 fichiers modifiés avec 1 ajouts et 31 suppressions
  1. 1 31
      max2d.mod/max2d.bmx

+ 1 - 31
max2d.mod/max2d.bmx

@@ -1757,19 +1757,6 @@ Function CreateRenderImage:TRenderImage(width:UInt, height:UInt, flags:Int=-1)
 	Return TMax2DGraphics.Current().CreateRenderImage(width, height, flags)
 	Return TMax2DGraphics.Current().CreateRenderImage(width, height, flags)
 End Function
 End Function
 
 
-Rem
-bbdoc: Create a render image from a given #TPixmap
-about:
-@pixmap defines the #TPixmap to create a new #TRenderImage from.
-
-@useLinearFlitering defines the image flag to filter images when scaling.
-
-returns: #TRenderImage with the content of the passed #TPixmap
-End Rem
-'TODO
-'Function CreateRenderImage:TRenderImage(pixmap:TPixmap, useLinearFlitering:Int = True)
-'	Return TMax2DGraphics.Current().CreateRenderImageFromPixmap(pixmap, useLinearFlitering)
-'EndFunction
 
 
 Rem
 Rem
 bbdoc: Set a render image as currently active render target
 bbdoc: Set a render image as currently active render target
@@ -1788,6 +1775,7 @@ Function SetRenderImage(renderImage:TRenderImage)
 	EndIf
 	EndIf
 End Function
 End Function
 
 
+
 Rem
 Rem
 bbdoc: Create a #TPixmap from a render image
 bbdoc: Create a #TPixmap from a render image
 about:
 about:
@@ -1831,26 +1819,8 @@ returns: False if content the render image needs to be recreated
 End Rem
 End Rem
 'Function RenderImageValid:Int(renderImage:TRenderImage)
 'Function RenderImageValid:Int(renderImage:TRenderImage)
 '	RuntimeError "Not implemented"
 '	RuntimeError "Not implemented"
-	'If renderImage Then Return renderImage.Valid()
-	'Return False
 'End Function
 'End Function
 
 
-Rem
-bbdoc: Mark a render image (in-)valid
-about:
-When a running application is suspended (eg user logs out from the OS or hibernation) 
-then Direct3D-graphics loose their context ("D3DERR_DEVICELOST") and so the textures.
-Once you restored/recreated the content of your render image you can set it
-to be valid again.
-
-@renderImage defines the render image to backup
-
-@bool defines the new state of the valid flag (True or False)
-End Rem
-Function SetRenderImageValid(renderImage:TRenderImage, bool:Int = True)
-	RuntimeError "Not implemented"
-	'If renderImage Then renderImage.SetValid(bool)
-End Function
 
 
 Const COLLISION_LAYER_ALL:Int=0
 Const COLLISION_LAYER_ALL:Int=0
 Const COLLISION_LAYER_1:Int=$0001
 Const COLLISION_LAYER_1:Int=$0001