diff options
Diffstat (limited to 'examples/vulkan')
4 files changed, 20 insertions, 0 deletions
diff --git a/examples/vulkan/hellovulkantexture/hellovulkantexture.h b/examples/vulkan/hellovulkantexture/hellovulkantexture.h index a8c96d1987..39cc0387c6 100644 --- a/examples/vulkan/hellovulkantexture/hellovulkantexture.h +++ b/examples/vulkan/hellovulkantexture/hellovulkantexture.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef HELLOVULKANTEXTURE_H +#define HELLOVULKANTEXTURE_H + #include <QVulkanWindow> #include <QImage> @@ -106,3 +109,5 @@ class VulkanWindow : public QVulkanWindow public: QVulkanWindowRenderer *createRenderer() override; }; + +#endif // HELLOVULKANTEXTURE_H diff --git a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h index e70d331ae8..e428c6ae93 100644 --- a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h +++ b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef HELLOVULKANWIDGET_H +#define HELLOVULKANWIDGET_H + #include "../shared/trianglerenderer.h" #include <QWidget> @@ -98,3 +101,5 @@ signals: void vulkanInfoReceived(const QString &text); void frameQueued(int colorValue); }; + +#endif // HELLOVULKANWIDGET_H diff --git a/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h b/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h index 5f52e402ca..7a6db84ae3 100644 --- a/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h +++ b/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef HELLOVULKANWINDOW_H +#define HELLOVULKANWINDOW_H + #include <QVulkanWindow> //! [0] @@ -75,3 +78,5 @@ public: QVulkanWindowRenderer *createRenderer() override; }; //! [0] + +#endif // HELLOVULKANWINDOW_H diff --git a/examples/vulkan/shared/trianglerenderer.h b/examples/vulkan/shared/trianglerenderer.h index 9a33291a95..bd3daf1d64 100644 --- a/examples/vulkan/shared/trianglerenderer.h +++ b/examples/vulkan/shared/trianglerenderer.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef TRIANGLERENDERER_H +#define TRIANGLERENDERER_H + #include <QVulkanWindow> class TriangleRenderer : public QVulkanWindowRenderer @@ -83,3 +86,5 @@ protected: QMatrix4x4 m_proj; float m_rotation = 0.0f; }; + +#endif // TRIANGLERENDERER_H |