ultimatepp/rainbow/SDL2GUI/Draw.cpp
cxl a060346fdd developing VirtualGui
git-svn-id: svn://ultimatepp.org/upp/trunk@11906 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-04-23 14:36:55 +00:00

18 lines
No EOL
261 B
C++

#include "SDL2GUI.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);
}
};