mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
boilerplate
This commit is contained in:
@@ -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"
|
||||
|
||||
23
include/cglm/call/perlin.h
Normal file
23
include/cglm/call/perlin.h
Normal 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 */
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
33
include/cglm/struct/perlin.h
Normal file
33
include/cglm/struct/perlin.h
Normal 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 */
|
||||
Reference in New Issue
Block a user