mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Switch to #pragma once
This commit is contained in:
1 parent
db4d5e4815
commit
3536aeafd6
126 files changed
+126
-625
No files matched your search
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_CLIPBOARD_H
|
||||
#define SFML_CLIPBOARD_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -80,5 +79,3 @@ CSFML_WINDOW_API void sfClipboard_setString(const char* text);
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API void sfClipboard_setUnicodeString(const sfChar32* text);
|
||||
|
||||
#endif // SFML_CLIPBOARD_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_CONTEXT_H
|
||||
#define SFML_CONTEXT_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -107,5 +106,3 @@ CSFML_WINDOW_API sfContextSettings sfContext_getSettings(const sfContext* contex
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API uint64_t sfContext_getActiveContextId(void);
|
||||
|
||||
#endif // SFML_CONTEXT_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_CURSOR_H
|
||||
#define SFML_CURSOR_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -142,6 +141,3 @@ CSFML_WINDOW_API sfCursor* sfCursor_createFromSystem(sfCursorType type);
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API void sfCursor_destroy(sfCursor* cursor);
|
||||
|
||||
|
||||
#endif // SFML_CURSOR_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_EVENT_H
|
||||
#define SFML_EVENT_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -217,6 +216,3 @@ typedef union
|
||||
sfTouchEvent touch; ///< Touch events parameters
|
||||
sfSensorEvent sensor; ///< Sensor event parameters
|
||||
} sfEvent;
|
||||
|
||||
|
||||
#endif // SFML_EVENT_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_WINDOW_EXPORT_H
|
||||
#define SFML_WINDOW_EXPORT_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -43,6 +42,3 @@
|
||||
#define CSFML_WINDOW_API CSFML_API_IMPORT
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // SFML_WINDOW_EXPORT_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_JOYSTICK_H
|
||||
#define SFML_JOYSTICK_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -145,6 +144,3 @@ CSFML_WINDOW_API sfJoystickIdentification sfJoystick_getIdentification(unsigned
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API void sfJoystick_update(void);
|
||||
|
||||
|
||||
#endif // SFML_JOYSTICK_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_JOYSTICKIDENDIFICATION_H
|
||||
#define SFML_JOYSTICKIDENDIFICATION_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -40,6 +39,3 @@ typedef struct
|
||||
unsigned int vendorId;
|
||||
unsigned int productId;
|
||||
} sfJoystickIdentification;
|
||||
|
||||
|
||||
#endif // SFML_JOYSTICKIDENDIFICATION_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_KEYBOARD_H
|
||||
#define SFML_KEYBOARD_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -419,5 +418,3 @@ CSFML_WINDOW_API const char* sfKeyboard_getDescription(sfScancode code);
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API void sfKeyboard_setVirtualKeyboardVisible(bool visible);
|
||||
|
||||
#endif // SFML_KEYBOARD_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_MOUSE_H
|
||||
#define SFML_MOUSE_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -118,6 +117,3 @@ CSFML_WINDOW_API sfVector2i sfMouse_getPositionWindowBase(const sfWindowBase* re
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API void sfMouse_setPositionWindowBase(sfVector2i position, const sfWindowBase* relativeTo);
|
||||
|
||||
|
||||
#endif // SFML_MOUSE_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_SENSOR_H
|
||||
#define SFML_SENSOR_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -84,6 +83,3 @@ CSFML_WINDOW_API void sfSensor_setEnabled(sfSensorType sensor, bool enabled);
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API sfVector3f sfSensor_getValue(sfSensorType sensor);
|
||||
|
||||
|
||||
#endif // SFML_SENSOR_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_TOUCH_H
|
||||
#define SFML_TOUCH_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -70,6 +69,3 @@ CSFML_WINDOW_API sfVector2i sfTouch_getPosition(unsigned int finger, const sfWin
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API sfVector2i sfTouch_getPositionWindowBase(unsigned int finger, const sfWindowBase* relativeTo);
|
||||
|
||||
|
||||
#endif // SFML_TOUCH_H
|
||||
@@ -22,14 +22,10 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_WINDOW_TYPES_H
|
||||
#define SFML_WINDOW_TYPES_H
|
||||
#pragma once
|
||||
|
||||
|
||||
typedef struct sfContext sfContext;
|
||||
typedef struct sfCursor sfCursor;
|
||||
typedef struct sfWindow sfWindow;
|
||||
typedef struct sfWindowBase sfWindowBase;
|
||||
|
||||
|
||||
#endif // SFML_WINDOW_TYPES_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_VIDEOMODE_H
|
||||
#define SFML_VIDEOMODE_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -85,6 +84,3 @@ CSFML_WINDOW_API const sfVideoMode* sfVideoMode_getFullscreenModes(size_t* count
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API bool sfVideoMode_isValid(sfVideoMode mode);
|
||||
|
||||
|
||||
#endif // SFML_VIDEOMODE_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_WINDOW_H
|
||||
#define SFML_WINDOW_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -488,6 +487,3 @@ CSFML_WINDOW_API sfWindowHandle sfWindow_getNativeHandle(const sfWindow* window)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API bool sfWindow_createVulkanSurface(sfWindow* window, const VkInstance* instance, VkSurfaceKHR* surface, const VkAllocationCallbacks* allocator);
|
||||
|
||||
|
||||
#endif // SFML_WINDOW_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_WINDOWBASE_H
|
||||
#define SFML_WINDOWBASE_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -391,5 +390,3 @@ CSFML_WINDOW_API sfWindowHandle sfWindowBase_getNativeHandle(const sfWindowBase*
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API bool sfWindowBase_createVulkanSurface(sfWindowBase* windowBase, const VkInstance* instance, VkSurfaceKHR* surface, const VkAllocationCallbacks* allocator);
|
||||
|
||||
#endif // SFML_WINDOWBASE_H
|
||||
@@ -22,8 +22,7 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SFML_WINDOWHANDLE_H
|
||||
#define SFML_WINDOWHANDLE_H
|
||||
#pragma once
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
@@ -52,6 +51,3 @@
|
||||
typedef void* sfWindowHandle;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // SFML_WINDOWHANDLE_H
|
||||
Reference in new issue
Block a user