Varjo Native SDK
Varjo_gl.h
Go to the documentation of this file.
1 // Copyright 2019-2021 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 
31 VARJO_DEPRECATED_API struct varjo_GraphicsInfo* varjo_GLInit(struct varjo_Session* session, varjo_TextureFormat format, struct varjo_SwapChainConfig* config);
32 
36 VARJO_API struct varjo_Texture varjo_FromGLTexture(GLuint texture);
37 
41 VARJO_API GLuint varjo_ToGLTexture(struct varjo_Texture texture);
42 
51 VARJO_DEPRECATED_API void varjo_GLShutDown(struct varjo_Session* session);
52 
53 #if defined __cplusplus
54 }
55 #endif
56 
57 #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_GLShutDown
VARJO_DEPRECATED_API void varjo_GLShutDown(struct varjo_Session *session)
Closes the OpenGL connection.
varjo_ToGLTexture
GLuint varjo_ToGLTexture(struct varjo_Texture texture)
Converts a Varjo texture to OpenGL texture.
varjo_TextureFormat
int64_t varjo_TextureFormat
Definition: Varjo_types.h:209
varjo_Texture
API-agnostic texture handle.
Definition: Varjo_types.h:459
VARJO_DEPRECATED_API
#define VARJO_DEPRECATED_API
Definition: Varjo_export.h:30
varjo_GLInit
VARJO_DEPRECATED_API struct varjo_GraphicsInfo * varjo_GLInit(struct varjo_Session *session, varjo_TextureFormat format, struct varjo_SwapChainConfig *config)
Initializes OpenGL rendering system.