.. _program_listing_file_Src_GraphicsEngineVulkan_scene_Vertex.hpp: Program Listing for File Vertex.hpp =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``Src/GraphicsEngineVulkan/scene/Vertex.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #ifdef __cplusplus #include #define KTG_VEC2 glm::vec2 #define KTG_VEC3 glm::vec3 #else #define KTG_VEC2 vec2 #define KTG_VEC3 vec3 #endif struct Vertex { KTG_VEC3 pos; KTG_VEC3 normal; KTG_VEC3 color; KTG_VEC2 texture_coords; #ifdef __cplusplus bool operator==(const Vertex &other) const { return pos == other.pos && normal == other.normal && texture_coords == other.texture_coords; } #endif }; #undef KTG_VEC2 #undef KTG_VEC3