#PROJECT(vkvg VERSION 0.1.1 DESCRIPTION "Vulkan Vector Graphic" LANGUAGES ${LANG})
PROJECT(vkvg VERSION 0.1.1 DESCRIPTION "Vulkan Vector Graphic")
+ADD_COMPILE_DEFINITIONS(
+ "VKVG_VERSION_MAJOR=${vkvg_VERSION_MAJOR}"
+ "VKVG_VERSION_MINOR=${vkvg_VERSION_MINOR}"
+ "VKVG_VERSION_REVISION=${vkvg_VERSION_PATCH}"
+)
+
INCLUDE(CheckSymbolExists)
INCLUDE(CheckIncludeFile)
INCLUDE(GNUInstallDirs)
ADD_SUBDIRECTORY(tests)
ENDIF (VKVG_BUILD_TESTS)
-MESSAGE(STATUS "\n\n--------------------------------------------------------------------------")
-MESSAGE(STATUS "VKVG VERSION ${vkvg_VERSION_MAJOR}.${vkvg_VERSION_MINOR}.${vkvg_VERSION_MAJOR}")
-MESSAGE(STATUS "Build type\t\t= ${CMAKE_BUILD_TYPE}")
-MESSAGE(STATUS "VULKAN_SDK\t\t= $ENV{VULKAN_SDK}")
-MESSAGE(STATUS "VK_LAYER_PATH\t= $ENV{VK_LAYER_PATH}")
+MESSAGE(STATUS "VKVG version\t\t= ${vkvg_VERSION_MAJOR}.${vkvg_VERSION_MINOR}.${vkvg_VERSION_PATCH}")
IF (VKVG_BUILD_TESTS)
MESSAGE(STATUS "Build tests\t\t= true.")
ELSE ()
ELSE ()
MESSAGE(STATUS "Font filtering\t= Grayscale.")
ENDIF ()
-MESSAGE(STATUS "---------------------------------------------------------------------------\n\n")
IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
INCLUDE(InstallRequiredSystemLibraries)
#include <math.h>
#include <stdbool.h>
-/*! @defgroup VKVG version macros
- * @brief Compile-time and run-time version checks.
- *
- * vkvg library versioning follows the [Semantic Versioning 2.0.0](https://semver.org/)
- *
- * @{ */
-/*! @brief Major version number of the VKVG library.
- *
- * This is incremented when the API is changed in non-compatible ways.
- * @ingroup init
- */
-#define VKVG_VERSION_MAJOR 0
-/*! @brief The minor version number of the VKVG library.
- *
- * This is incremented when features are added to the API but it remains
- * backward-compatible.
- * @ingroup init
- */
-#define VKVG_VERSION_MINOR 1
-/*! @brief The revision number of the VKVG library.
- *
- * This is incremented when a bug fix release is made that does not contain any
- * API changes.
- * @ingroup init
- */
-#define VKVG_VERSION_REVISION 1
-/*! @} */
-
#ifndef cairo_public
# if defined (_MSC_VER)
# define vkvg_public __declspec(dllimport)
/**
* @brief compositing operators
- *
- * define the operation used to draw
+ *
+ * define the operation used to draw
*/
typedef enum _vkvg_operator {
VKVG_OPERATOR_CLEAR,
*/
void vkvg_set_source (VkvgContext ctx, VkvgPattern pat);
/**
- * @brief
- *
- * @param ctx
- * @param op
+ * @brief
+ *
+ * @param ctx
+ * @param op
*/
void vkvg_set_operator (VkvgContext ctx, vkvg_operator_t op);
/**
- * @brief
- *
- * @param ctx
- * @param fr
+ * @brief
+ *
+ * @param ctx
+ * @param fr
*/
void vkvg_set_fill_rule (VkvgContext ctx, vkvg_fill_rule_t fr);
/**
* @brief set the dash configuration for strokes
- *
+ *
* Sets the dash pattern to be used by the next #vkvg_stroke().
* A dash pattern is specified by dashes, an array of positive values.
* Each value provides the length of alternate "on" and "off" portions of the stroke.
void vkvg_set_dash (VkvgContext ctx, const float* dashes, uint32_t num_dashes, float offset);
/**
* @brief get current dash settings.
- *
+ *
* Get the current dash configuration for the supplied #context.
* If dashes pointer is NULL, only count and offset are returned, useful to query dash array dimension first.
* @param ctx a valid vkvg @ref context
/**
* @brief get current line width
- *
+ *
* This function return the current line width to use by vkvg_stroke() as set by #vkvg_set_line_width().
* @param ctx a valid vkvg @ref context
* @return current line width.