From 1647f4b4f9ebef8b938222b1f48d9a15cc262e97 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 25 Mar 2020 20:48:19 +0100 Subject: clean-up the mess Signed-off-by: Toni Uhlig --- .../CSFML-2.1/doc/html/View_8h.htm | 593 +++++++++++++++++++++ 1 file changed, 593 insertions(+) create mode 100755 h1z1/libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/View_8h.htm (limited to 'h1z1/libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/View_8h.htm') diff --git a/h1z1/libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/View_8h.htm b/h1z1/libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/View_8h.htm new file mode 100755 index 0000000..b794fcd --- /dev/null +++ b/h1z1/libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/View_8h.htm @@ -0,0 +1,593 @@ + + + + CSFML - C binding of the Simple and Fast Multimedia Library + + + + + + + +
+ +
+
View.h File Reference
+
+
+ +

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

CSFML_GRAPHICS_API sfViewsfView_create (void)
 Create a default view.
 
CSFML_GRAPHICS_API sfViewsfView_createFromRect (sfFloatRect rectangle)
 Construct a view from a rectangle.
 
CSFML_GRAPHICS_API sfViewsfView_copy (const sfView *view)
 Copy an existing view.
 
CSFML_GRAPHICS_API void sfView_destroy (sfView *view)
 Destroy an existing view.
 
CSFML_GRAPHICS_API void sfView_setCenter (sfView *view, sfVector2f center)
 Set the center of a view.
 
CSFML_GRAPHICS_API void sfView_setSize (sfView *view, sfVector2f size)
 Set the size of a view.
 
CSFML_GRAPHICS_API void sfView_setRotation (sfView *view, float angle)
 Set the orientation of a view.
 
CSFML_GRAPHICS_API void sfView_setViewport (sfView *view, sfFloatRect viewport)
 Set the target viewport of a view.
 
CSFML_GRAPHICS_API void sfView_reset (sfView *view, sfFloatRect rectangle)
 Reset a view to the given rectangle.
 
CSFML_GRAPHICS_API sfVector2f sfView_getCenter (const sfView *view)
 Get the center of a view.
 
CSFML_GRAPHICS_API sfVector2f sfView_getSize (const sfView *view)
 Get the size of a view.
 
CSFML_GRAPHICS_API float sfView_getRotation (const sfView *view)
 Get the current orientation of a view.
 
CSFML_GRAPHICS_API sfFloatRect sfView_getViewport (const sfView *view)
 Get the target viewport rectangle of a view.
 
CSFML_GRAPHICS_API void sfView_move (sfView *view, sfVector2f offset)
 Move a view relatively to its current position.
 
CSFML_GRAPHICS_API void sfView_rotate (sfView *view, float angle)
 Rotate a view relatively to its current orientation.
 
CSFML_GRAPHICS_API void sfView_zoom (sfView *view, float factor)
 Resize a view rectangle relatively to its current size.
 
+

Function Documentation

+ +
+
+ + + + + + + + +
CSFML_GRAPHICS_API sfView* sfView_copy (const sfViewview)
+
+ +

Copy an existing view.

+
Parameters
+ + +
viewView to copy
+
+
+
Returns
Copied object
+ +
+
+ +
+
+ + + + + + + + +
CSFML_GRAPHICS_API sfView* sfView_create (void )
+
+ +

Create a default view.

+

This function creates a default view of (0, 0, 1000, 1000)

+
Returns
A new sfView object
+ +
+
+ +
+
+ + + + + + + + +
CSFML_GRAPHICS_API sfView* sfView_createFromRect (sfFloatRect rectangle)
+
+ +

Construct a view from a rectangle.

+
Parameters
+ + +
rectangleRectangle defining the zone to display
+
+
+
Returns
A new sfView object
+ +
+
+ +
+
+ + + + + + + + +
CSFML_GRAPHICS_API void sfView_destroy (sfViewview)
+
+ +

Destroy an existing view.

+
Parameters
+ + +
viewView to destroy
+
+
+ +
+
+ +
+
+ + + + + + + + +
CSFML_GRAPHICS_API sfVector2f sfView_getCenter (const sfViewview)
+
+ +

Get the center of a view.

+
Parameters
+ + +
viewView object
+
+
+
Returns
Center of the view
+ +
+
+ +
+
+ + + + + + + + +
CSFML_GRAPHICS_API float sfView_getRotation (const sfViewview)
+
+ +

Get the current orientation of a view.

+
Parameters
+ + +
viewView object
+
+
+
Returns
Rotation angle of the view, in degrees
+ +
+
+ +
+
+ + + + + + + + +
CSFML_GRAPHICS_API sfVector2f sfView_getSize (const sfViewview)
+
+ +

Get the size of a view.

+
Parameters
+ + +
viewView object
+
+
+
Returns
Size of the view
+ +
+
+ +
+
+ + + + + + + + +
CSFML_GRAPHICS_API sfFloatRect sfView_getViewport (const sfViewview)
+
+ +

Get the target viewport rectangle of a view.

+
Parameters
+ + +
viewView object
+
+
+
Returns
Viewport rectangle, expressed as a factor of the target size
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_GRAPHICS_API void sfView_move (sfViewview,
sfVector2f offset 
)
+
+ +

Move a view relatively to its current position.

+
Parameters
+ + + +
viewView object
offsetOffset
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_GRAPHICS_API void sfView_reset (sfViewview,
sfFloatRect rectangle 
)
+
+ +

Reset a view to the given rectangle.

+

Note that this function resets the rotation angle to 0.

+
Parameters
+ + + +
viewView object
rectangleRectangle defining the zone to display
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_GRAPHICS_API void sfView_rotate (sfViewview,
float angle 
)
+
+ +

Rotate a view relatively to its current orientation.

+
Parameters
+ + + +
viewView object
angleAngle to rotate, in degrees
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_GRAPHICS_API void sfView_setCenter (sfViewview,
sfVector2f center 
)
+
+ +

Set the center of a view.

+
Parameters
+ + + +
viewView object
centerNew center
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_GRAPHICS_API void sfView_setRotation (sfViewview,
float angle 
)
+
+ +

Set the orientation of a view.

+

The default rotation of a view is 0 degree.

+
Parameters
+ + + +
viewView object
angleNew angle, in degrees
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_GRAPHICS_API void sfView_setSize (sfViewview,
sfVector2f size 
)
+
+ +

Set the size of a view.

+
Parameters
+ + + +
viewView object
sizeNew size of the view
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_GRAPHICS_API void sfView_setViewport (sfViewview,
sfFloatRect viewport 
)
+
+ +

Set the target viewport of a view.

+

The viewport is the rectangle into which the contents of the view are displayed, expressed as a factor (between 0 and 1) of the size of the render target to which the view is applied. For example, a view which takes the left side of the target would be defined by a rect of (0, 0, 0.5, 1). By default, a view has a viewport which covers the entire target.

+
Parameters
+ + + +
viewView object
viewportNew viewport rectangle
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_GRAPHICS_API void sfView_zoom (sfViewview,
float factor 
)
+
+ +

Resize a view rectangle relatively to its current size.

+

Resizing the view simulates a zoom, as the zone displayed on screen grows or shrinks. factor is a multiplier:

+
    +
  • 1 keeps the size unchanged
  • +
  • > 1 makes the view bigger (objects appear smaller)
  • +
  • < 1 makes the view smaller (objects appear bigger)
  • +
+
Parameters
+ + + +
viewView object
factorZoom factor to apply
+
+
+ +
+
+
+ + + + -- cgit v1.2.3