ultimatepp/uppsrc/VirtualGui/SDL2GL/Draw.cpp
cxl 33565baa3a VirtualGui, fixed issue with Splitter and Frame widgets
git-svn-id: svn://ultimatepp.org/upp/trunk@11914 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-04-25 17:26:13 +00:00

18 lines
No EOL
260 B
C++

#include "SDL2GL.h"
namespace Upp {
SystemDraw& SDL2GUI::BeginDraw()
{
gldraw.Init(GetSize(), (uint64)glcontext);
sysdraw.SetTarget(&gldraw);
return sysdraw;
}
void SDL2GUI::CommitDraw()
{
gldraw.Finish();
SDL_GL_SwapWindow(win);
}
};