blob: 6817d137dea9a92ec7d8767aa316c23e8acb3c3b [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_GRAPHICS_EXAMPLES_VKPROTO_GLFW_GLFW_SURFACE_H_
#define SRC_GRAPHICS_EXAMPLES_VKPROTO_GLFW_GLFW_SURFACE_H_
// clang-format off
// vulkan.h must be included before glfw3.h.
#include "vulkan/vulkan.h"
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
// clang-format on
#include "src/graphics/examples/vkproto/common/surface.h"
namespace vkp {
class GlfwSurface : public Surface {
public:
GlfwSurface(std::shared_ptr<vk::Instance> instance, GLFWwindow *window);
virtual ~GlfwSurface();
bool Init() override;
private:
VKP_DISALLOW_COPY_AND_ASSIGN(GlfwSurface);
GLFWwindow *window_;
};
} // namespace vkp
#endif // SRC_GRAPHICS_EXAMPLES_VKPROTO_GLFW_GLFW_SURFACE_H_