mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 23:29:55 -06:00
25 lines
482 B
C++
25 lines
482 B
C++
#ifndef GPU3D_TEXCACHEOPENGL
|
|
#define GPU3D_TEXCACHEOPENGL
|
|
|
|
#include "GPU3D_Texcache.h"
|
|
#include "OpenGLSupport.h"
|
|
|
|
namespace GPU3D
|
|
{
|
|
|
|
template <typename, typename>
|
|
class Texcache;
|
|
|
|
class TexcacheOpenGLLoader
|
|
{
|
|
public:
|
|
GLuint GenerateTexture(u32 width, u32 height, u32 layers);
|
|
void UploadTexture(GLuint handle, u32 width, u32 height, u32 layer, void* data);
|
|
void DeleteTexture(GLuint handle);
|
|
};
|
|
|
|
using TexcacheOpenGL = Texcache<TexcacheOpenGLLoader, GLuint>;
|
|
|
|
}
|
|
|
|
#endif |