SDK DOCUMENTATION
Varjo_gl.h
Go to the documentation of this file.
1 // Copyright 2019 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 
27 VARJO_API struct varjo_GraphicsInfo* varjo_GLInit(struct varjo_Session* session, varjo_TextureFormat format, struct varjo_SwapChainConfig* config);
28 
32 VARJO_API struct varjo_Texture varjo_FromGLTexture(GLuint texture);
33 
37 VARJO_API GLuint varjo_ToGLTexture(struct varjo_Texture texture);
38 
44 VARJO_API void varjo_GLShutDown(struct varjo_Session* session);
45 
46 #if defined __cplusplus
47 }
48 #endif
49 
50 #endif // VARJO_GL_H
struct varjo_Texture varjo_FromGLTexture(GLuint texture)
Converts an OpenGL texture to varjo_Texture.
GLuint varjo_ToGLTexture(struct varjo_Texture texture)
Converts a Varjo texture to OpenGL texture.
struct varjo_GraphicsInfo * varjo_GLInit(struct varjo_Session *session, varjo_TextureFormat format, struct varjo_SwapChainConfig *config)
Initializes OpenGL rendering system.
void varjo_GLShutDown(struct varjo_Session *session)
Closes the OpenGL connection.
int64_t varjo_TextureFormat
Definition: Varjo_types.h:136
API-agnostic texture handle.
Definition: Varjo_types.h:334
General graphics information.
Definition: Varjo_types.h:320
Config for swap chain texture size and count.
Definition: Varjo_types.h:288