AppleWin/source/frontends/sdl/imgui/sdlimguiframe.h
Andrea Odetti a3381bfcb6 Define ImTextureID in main config file.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 16:55:41 +00:00

24 lines
415 B
C++

#pragma once
#include "frontends/sdl/sdlframe.h"
#include "frontends/sdl/imgui/gles.h"
class SDLImGuiFrame : public SDLFrame
{
public:
SDLImGuiFrame();
~SDLImGuiFrame() override;
void UpdateTexture() override;
void RenderPresent() override;
private:
size_t myPitch;
size_t myOffset;
size_t myBorderlessWidth;
size_t myBorderlessHeight;
SDL_GLContext myGLContext;
ImTextureID myTexture;
};