mirror of
https://github.com/LibreVR/Revive.git
synced 2026-08-04 00:54:37 -04:00
24 lines
555 B
C++
24 lines
555 B
C++
#pragma once
|
|
|
|
#include "TextureBase.h"
|
|
|
|
#include <GL/glew.h>
|
|
|
|
class TextureGL :
|
|
public TextureBase
|
|
{
|
|
public:
|
|
TextureGL();
|
|
virtual ~TextureGL();
|
|
|
|
virtual vr::VRTextureWithPose_t ToVRTexture();
|
|
virtual bool Init(ovrTextureType type, int Width, int Height, int MipLevels, int ArraySize,
|
|
ovrTextureFormat Format, unsigned int MiscFlags, unsigned int BindFlags);
|
|
|
|
GLuint Texture;
|
|
GLuint Framebuffer;
|
|
|
|
protected:
|
|
static GLenum TextureFormatToInternalFormat(ovrTextureFormat format);
|
|
static GLenum TextureFormatToGLFormat(ovrTextureFormat format);
|
|
};
|