boilerplate

This commit is contained in:
Marcin
2025-01-14 17:32:46 +00:00
parent a4cd7e008d
commit 3e52d90ecb
9 changed files with 80 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ extern "C" {
#include "call/quat.h"
#include "call/euler.h"
#include "call/plane.h"
#include "call/perlin.h"
#include "call/frustum.h"
#include "call/aabb2d.h"
#include "call/box.h"

View File

@@ -0,0 +1,23 @@
/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
#ifndef cglmc_perlin_h
#define cglmc_perlin_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
CGLM_EXPORT
float
glmc_perlin(vec4 point);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_perlin_h */

View File

@@ -30,6 +30,7 @@
#include "quat.h"
#include "euler.h"
#include "plane.h"
#include "perlin.h"
#include "aabb2d.h"
#include "box.h"
#include "color.h"

View File

@@ -31,6 +31,7 @@ extern "C" {
#include "struct/affine.h"
#include "struct/frustum.h"
#include "struct/plane.h"
#include "struct/perlin.h"
#include "struct/box.h"
#include "struct/color.h"
#include "struct/io.h"

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
#ifndef cglms_perlins_h
#define cglms_perlins_h
#include "../common.h"
#include "../types-struct.h"
#include "../perlin.h"
#include "vec4.h"
/*
Functions:
CGLM_INLINE float glms_perlin(vec4s point);
*/
/*!
* @brief Classic perlin noise
*
* @param[in] point 4D vector
* @returns perlin noise value
*/
CGLM_INLINE
float
glms_perlin(vec4s point) {
return glm_perlin(point.raw);
}
#endif /* cglms_perlins_h */