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
Varjo_types_gl.h
varjo_FromGLTexture
struct varjo_Texture varjo_FromGLTexture(GLuint texture)
Converts an OpenGL texture to varjo_Texture.
varjo_ToGLTexture
GLuint varjo_ToGLTexture(struct varjo_Texture texture)
Converts a Varjo texture to OpenGL texture.
varjo_GLInit
struct varjo_GraphicsInfo * varjo_GLInit(struct varjo_Session *session, varjo_TextureFormat format, struct varjo_SwapChainConfig *config)
Initializes OpenGL rendering system.
varjo_GLShutDown
void varjo_GLShutDown(struct varjo_Session *session)
Closes the OpenGL connection.
Varjo.h
varjo_TextureFormat
int64_t varjo_TextureFormat
Definition:
Varjo_types.h:136
varjo_Texture
API-agnostic texture handle.
Definition:
Varjo_types.h:334
varjo_GraphicsInfo
General graphics information.
Definition:
Varjo_types.h:320
varjo_SwapChainConfig
Config for swap chain texture size and count.
Definition:
Varjo_types.h:288
include
Varjo_gl.h
Generated by
1.8.14