mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
18 lines
No EOL
260 B
C++
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);
|
|
}
|
|
|
|
}; |