25 lines
384 B
C
25 lines
384 B
C
|
#pragma once
|
||
|
#include "../external/imgui/imgui.h"
|
||
|
#include <GL/mesa_gl.h>
|
||
|
#include <GL/glu.h>
|
||
|
#include <GL/khronos_glext.h>
|
||
|
|
||
|
class TextureBean
|
||
|
{
|
||
|
public:
|
||
|
TextureBean();
|
||
|
~TextureBean();
|
||
|
|
||
|
void Load();
|
||
|
ImTextureID GetTex(void) { return (ImTextureID)m_Glu[0]; }
|
||
|
public:
|
||
|
int m_Width;
|
||
|
int m_Height;
|
||
|
int m_Comp;
|
||
|
GLuint* m_Glu;
|
||
|
int m_Bpp;
|
||
|
unsigned char* m_PData;
|
||
|
int m_DataLen;
|
||
|
};
|
||
|
|