mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 17:09:40 +00:00
glm --> opengl helper function
This commit is contained in:
19
include/cglm-opengl.h
Normal file
19
include/cglm-opengl.h
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c), Recep Aslantas.
|
||||||
|
*
|
||||||
|
* MIT License (MIT), http://opensource.org/licenses/MIT
|
||||||
|
* Full license can be found in the LICENSE file
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef cglm_mat_opengl_h
|
||||||
|
#define cglm_mat_opengl_h
|
||||||
|
|
||||||
|
#include "cglm.h"
|
||||||
|
|
||||||
|
CGLM_INLINE
|
||||||
|
void
|
||||||
|
glm_mat4_uniform(mat4 m, GLint location){
|
||||||
|
glUniformMatrix4fv(location, 1, GL_FALSE, (GLfloat *)m);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* cglm_mat_opengl_h */
|
Reference in New Issue
Block a user