mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
18 lines
No EOL
261 B
C++
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);
|
|
}
|
|
|
|
}; |