Varjo Native SDK
Varjo_gl.h
Go to the documentation of this file.
1 // Copyright 2019-2023 Varjo Technologies Oy. All rights reserved.
2 
3 #ifndef VARJO_GL_H
4 #define VARJO_GL_H
5 
6 #include "Varjo.h"
7 #include "Varjo_types_gl.h"
8 
9 #if defined __cplusplus
10 extern "C" {
11 #endif
12 
16 VARJO_API struct varjo_Texture varjo_FromGLTexture(GLuint texture);
17 
21 VARJO_API GLuint varjo_ToGLTexture(struct varjo_Texture texture);
22 
23 #if defined __cplusplus
24 }
25 #endif
26 
27 #endif // VARJO_GL_H
varjo_FromGLTexture
struct varjo_Texture varjo_FromGLTexture(GLuint texture)
Converts an OpenGL texture to varjo_Texture.
Varjo.h
Varjo_types_gl.h
varjo_ToGLTexture
GLuint varjo_ToGLTexture(struct varjo_Texture texture)
Converts varjo_Texture to OpenGL texture.
varjo_Texture
API-agnostic texture handle.
Definition: Varjo_types.h:512