Split Android graphics context implementations into their own files.

This commit is contained in:
Henrik Rydgård committed 2018-01-20 21:47:16 +01:00
1 parent d2e739092d
commit 133bef575a
14 files changed
+468 -339

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include "AndroidGraphicsContext.h"
// Doesn't do much. Just to fit in.
class AndroidJavaEGLGraphicsContext : public GraphicsContext {
public:
AndroidJavaEGLGraphicsContext();
~AndroidJavaEGLGraphicsContext() {
delete draw_;
}
void Shutdown() override;
void SwapBuffers() override {}
void SwapInterval(int interval) override {}
void Resize() override {}
Draw::DrawContext *GetDrawContext() override {
return draw_;
}
private:
Draw::DrawContext *draw_;
};