mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
add unproject function
This commit is contained in:
29
include/cglm/call/project.h
Normal file
29
include/cglm/call/project.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c), Recep Aslantas.
|
||||
*
|
||||
* MIT License (MIT), http://opensource.org/licenses/MIT
|
||||
* Full license can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
#ifndef cglmc_project_h
|
||||
#define cglmc_project_h
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "../cglm.h"
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_unprojecti(mat4 invMat, vec4 vp, vec3 coord, vec3 dest);
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_unproject(mat4 m, vec2 vp, vec3 coord, vec3 dest);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* cglmc_project_h */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user