mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Added RenderImage::Display() to CSFML and SFML.Net
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1243 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
531c54bb13
commit
e9c042d060
@ -172,6 +172,7 @@ EXPORTS
|
||||
sfRenderImage_GetHeight
|
||||
sfRenderImage_SetActive
|
||||
sfRenderImage_Flush
|
||||
sfRenderImage_Display
|
||||
sfRenderImage_DrawPostFX
|
||||
sfRenderImage_DrawSprite
|
||||
sfRenderImage_DrawShape
|
||||
|
@ -172,6 +172,7 @@ EXPORTS
|
||||
sfRenderImage_GetHeight
|
||||
sfRenderImage_SetActive
|
||||
sfRenderImage_Flush
|
||||
sfRenderImage_Display
|
||||
sfRenderImage_DrawPostFX
|
||||
sfRenderImage_DrawSprite
|
||||
sfRenderImage_DrawShape
|
||||
|
@ -96,11 +96,19 @@ CSFML_API sfBool sfRenderImage_SetActive(sfRenderImage* renderImage, sfBool acti
|
||||
/// You don't need to call this function if you're not
|
||||
/// dealing with OpenGL directly.
|
||||
///
|
||||
/// \param Renderimage : Renderwindow object
|
||||
/// \param Renderimage : Renderimage object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API void sfRenderImage_Flush(sfRenderImage* renderImage);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Update the contents of the target image
|
||||
///
|
||||
/// \param renderImage : Renderimage object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API void sfRenderImage_Display(sfRenderImage* renderImage);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Draw something on a renderimage
|
||||
///
|
||||
|
@ -99,9 +99,6 @@ sfBool sfRenderImage_SetActive(sfRenderImage* renderImage, sfBool active)
|
||||
///
|
||||
/// You don't need to call this function if you're not
|
||||
/// dealing with OpenGL directly.
|
||||
///
|
||||
/// \param Renderimage : Renderwindow object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderImage_Flush(sfRenderImage* renderImage)
|
||||
{
|
||||
@ -109,6 +106,15 @@ void sfRenderImage_Flush(sfRenderImage* renderImage)
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Update the contents of the target image
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderImage_Display(sfRenderImage* renderImage)
|
||||
{
|
||||
CSFML_CALL(renderImage, Display())
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Draw something on a renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -211,6 +211,16 @@ namespace SFML
|
||||
sfRenderImage_Flush(This);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Update the contents of the target image
|
||||
/// </summary>
|
||||
////////////////////////////////////////////////////////////
|
||||
public void Display()
|
||||
{
|
||||
sfRenderImage_Display(This);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// <summary>
|
||||
/// Target image of the render image
|
||||
@ -280,6 +290,9 @@ namespace SFML
|
||||
[DllImport("csfml-graphics"), SuppressUnmanagedCodeSecurity]
|
||||
static extern bool sfRenderImage_Flush(IntPtr This);
|
||||
|
||||
[DllImport("csfml-graphics"), SuppressUnmanagedCodeSecurity]
|
||||
static extern bool sfRenderImage_Display(IntPtr This);
|
||||
|
||||
[DllImport("csfml-graphics"), SuppressUnmanagedCodeSecurity]
|
||||
static extern void sfRenderImage_SetView(IntPtr This, IntPtr View);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user