mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Merge pull request #274 from duarm/master
Adding initialization macros for ivec types
This commit is contained in:
@@ -8,6 +8,13 @@ Header: cglm/ivec2.h
|
|||||||
Table of contents (click to go):
|
Table of contents (click to go):
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Macros:
|
||||||
|
|
||||||
|
1. GLM_IVEC2_ONE_INIT
|
||||||
|
#. GLM_IVEC2_ZERO_INIT
|
||||||
|
#. GLM_IVEC2_ONE
|
||||||
|
#. GLM_IVEC2_ZERO
|
||||||
|
|
||||||
Functions:
|
Functions:
|
||||||
|
|
||||||
1. :c:func:`glm_ivec2`
|
1. :c:func:`glm_ivec2`
|
||||||
|
|||||||
@@ -8,6 +8,13 @@ Header: cglm/ivec3.h
|
|||||||
Table of contents (click to go):
|
Table of contents (click to go):
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Macros:
|
||||||
|
|
||||||
|
1. GLM_IVEC3_ONE_INIT
|
||||||
|
#. GLM_IVEC3_ZERO_INIT
|
||||||
|
#. GLM_IVEC3_ONE
|
||||||
|
#. GLM_IVEC3_ZERO
|
||||||
|
|
||||||
Functions:
|
Functions:
|
||||||
|
|
||||||
1. :c:func:`glm_ivec3`
|
1. :c:func:`glm_ivec3`
|
||||||
|
|||||||
@@ -8,6 +8,13 @@ Header: cglm/ivec4.h
|
|||||||
Table of contents (click to go):
|
Table of contents (click to go):
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Macros:
|
||||||
|
|
||||||
|
1. GLM_IVEC4_ONE_INIT
|
||||||
|
#. GLM_IVEC4_ZERO_INIT
|
||||||
|
#. GLM_IVEC4_ONE
|
||||||
|
#. GLM_IVEC4_ZERO
|
||||||
|
|
||||||
Functions:
|
Functions:
|
||||||
|
|
||||||
1. :c:func:`glm_ivec4`
|
1. :c:func:`glm_ivec4`
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ Table of contents (click to go):
|
|||||||
|
|
||||||
Macros:
|
Macros:
|
||||||
|
|
||||||
1. GLM_vec2_ONE_INIT
|
1. GLM_VEC2_ONE_INIT
|
||||||
#. GLM_vec2_ZERO_INIT
|
#. GLM_VEC2_ZERO_INIT
|
||||||
#. GLM_vec2_ONE
|
#. GLM_VEC2_ONE
|
||||||
#. GLM_vec2_ZERO
|
#. GLM_VEC2_ZERO
|
||||||
|
|
||||||
Functions:
|
Functions:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTIONS:
|
Macros:
|
||||||
|
GLM_IVEC2_ONE_INIT
|
||||||
|
GLM_IVEC2_ZERO_INIT
|
||||||
|
GLM_IVEC2_ONE
|
||||||
|
GLM_IVEC2_ZERO
|
||||||
|
|
||||||
|
Functions:
|
||||||
CGLM_INLINE void glm_ivec2(int * __restrict v, ivec2 dest)
|
CGLM_INLINE void glm_ivec2(int * __restrict v, ivec2 dest)
|
||||||
CGLM_INLINE void glm_ivec2_copy(ivec2 a, ivec2 dest)
|
CGLM_INLINE void glm_ivec2_copy(ivec2 a, ivec2 dest)
|
||||||
CGLM_INLINE void glm_ivec2_zero(ivec2 v)
|
CGLM_INLINE void glm_ivec2_zero(ivec2 v)
|
||||||
@@ -30,6 +36,12 @@ FUNCTIONS:
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
#define GLM_IVEC2_ONE_INIT {1, 1}
|
||||||
|
#define GLM_IVEC2_ZERO_INIT {0, 0}
|
||||||
|
|
||||||
|
#define GLM_IVEC2_ONE ((ivec2)GLM_IVEC2_ONE_INIT)
|
||||||
|
#define GLM_IVEC2_ZERO ((ivec2)GLM_IVEC2_ZERO_INIT)
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief init ivec2 using vec3 or vec4
|
* @brief init ivec2 using vec3 or vec4
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -6,7 +6,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTIONS:
|
Macros:
|
||||||
|
GLM_IVEC3_ONE_INIT
|
||||||
|
GLM_IVEC3_ZERO_INIT
|
||||||
|
GLM_IVEC3_ONE
|
||||||
|
GLM_IVEC3_ZERO
|
||||||
|
|
||||||
|
Functions:
|
||||||
CGLM_INLINE void glm_ivec3(ivec4 v4, ivec3 dest)
|
CGLM_INLINE void glm_ivec3(ivec4 v4, ivec3 dest)
|
||||||
CGLM_INLINE void glm_ivec3_copy(ivec3 a, ivec3 dest)
|
CGLM_INLINE void glm_ivec3_copy(ivec3 a, ivec3 dest)
|
||||||
CGLM_INLINE void glm_ivec3_zero(ivec3 v)
|
CGLM_INLINE void glm_ivec3_zero(ivec3 v)
|
||||||
@@ -30,6 +36,12 @@ FUNCTIONS:
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
#define GLM_IVEC3_ONE_INIT {1, 1, 1}
|
||||||
|
#define GLM_IVEC3_ZERO_INIT {0, 0, 0}
|
||||||
|
|
||||||
|
#define GLM_IVEC3_ONE ((ivec3)GLM_IVEC3_ONE_INIT)
|
||||||
|
#define GLM_IVEC3_ZERO ((ivec3)GLM_IVEC3_ZERO_INIT)
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief init ivec3 using ivec4
|
* @brief init ivec3 using ivec4
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -6,7 +6,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTIONS:
|
Macros:
|
||||||
|
GLM_IVEC4_ONE_INIT
|
||||||
|
GLM_IVEC4_ZERO_INIT
|
||||||
|
GLM_IVEC4_ONE
|
||||||
|
GLM_IVEC4_ZERO
|
||||||
|
|
||||||
|
Functions:
|
||||||
CGLM_INLINE void glm_ivec4(ivec3 v3, int last, ivec4 dest)
|
CGLM_INLINE void glm_ivec4(ivec3 v3, int last, ivec4 dest)
|
||||||
CGLM_INLINE void glm_ivec4_copy(ivec4 a, ivec4 dest)
|
CGLM_INLINE void glm_ivec4_copy(ivec4 a, ivec4 dest)
|
||||||
CGLM_INLINE void glm_ivec4_zero(ivec4 v)
|
CGLM_INLINE void glm_ivec4_zero(ivec4 v)
|
||||||
@@ -30,6 +36,12 @@ FUNCTIONS:
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
#define GLM_IVEC4_ONE_INIT {1, 1, 1, 1}
|
||||||
|
#define GLM_IVEC4_ZERO_INIT {0, 0, 0, 0}
|
||||||
|
|
||||||
|
#define GLM_IVEC4_ONE ((ivec4)GLM_IVEC4_ONE_INIT)
|
||||||
|
#define GLM_IVEC4_ZERO ((ivec4)GLM_IVEC4_ZERO_INIT)
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief init ivec4 using ivec3
|
* @brief init ivec4 using ivec3
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user