mirror of
https://github.com/recp/cglm.git
synced 2025-12-25 04:44:58 +00:00
Add ivec2 files
This commit is contained in:
@@ -15,6 +15,7 @@ extern "C" {
|
||||
#include "call/vec2.h"
|
||||
#include "call/vec3.h"
|
||||
#include "call/vec4.h"
|
||||
#include "call/ivec2.h"
|
||||
#include "call/mat2.h"
|
||||
#include "call/mat3.h"
|
||||
#include "call/mat4.h"
|
||||
|
||||
23
include/cglm/call/ivec2.h
Normal file
23
include/cglm/call/ivec2.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_ivec2_h
|
||||
#define cglmc_ivec2_h
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "../cglm.h"
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_ivec2(int * __restrict v, ivec2 dest);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* cglmc_ivec2_h */
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "vec2.h"
|
||||
#include "vec3.h"
|
||||
#include "vec4.h"
|
||||
#include "ivec2.h"
|
||||
#include "mat4.h"
|
||||
#include "mat3.h"
|
||||
#include "mat2.h"
|
||||
|
||||
31
include/cglm/ivec2.h
Normal file
31
include/cglm/ivec2.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c), Recep Aslantas.
|
||||
*
|
||||
* MIT License (MIT), http://opensource.org/licenses/MIT
|
||||
* Full license can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
/*
|
||||
FUNCTIONS:
|
||||
CGLM_INLINE void glm_ivec2(int * __restrict v, ivec2 dest)
|
||||
*/
|
||||
|
||||
#ifndef cglm_ivec2_h
|
||||
#define cglm_ivec2_h
|
||||
|
||||
#include "common.h"
|
||||
|
||||
/*!
|
||||
* @brief init ivec2 using another vector
|
||||
*
|
||||
* @param[in] v a vector
|
||||
* @param[out] dest destination
|
||||
*/
|
||||
CGLM_INLINE
|
||||
void
|
||||
glm_ivec2(int * __restrict v, ivec2 dest) {
|
||||
dest[0] = v[0];
|
||||
dest[1] = v[1];
|
||||
}
|
||||
|
||||
#endif /* cglm_ivec2_h */
|
||||
Reference in New Issue
Block a user