mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-16 20:52:30 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
36
src/gx/gll/GLAbstractWindow.h
Normal file
36
src/gx/gll/GLAbstractWindow.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#ifndef GX_GLL_GL_ABSTRACT_WINDOW_H
|
||||
#define GX_GLL_GL_ABSTRACT_WINDOW_H
|
||||
|
||||
#ifdef __OBJC__
|
||||
#include <AppKit/AppKit.h>
|
||||
#else
|
||||
#include <objc/runtime.h>
|
||||
typedef struct objc_object NSWindow;
|
||||
typedef struct objc_object NSView;
|
||||
#endif
|
||||
|
||||
struct CGRect;
|
||||
class GLContext;
|
||||
|
||||
class GLAbstractWindow {
|
||||
public:
|
||||
// Virtual member functions
|
||||
virtual int32_t GetWidth(void);
|
||||
virtual int32_t GetHeight(void);
|
||||
virtual CGRect GetRect(void) = 0;
|
||||
virtual void Show(void) = 0;
|
||||
virtual void Resize(uint32_t, uint32_t) = 0;
|
||||
virtual void SetTitle(const char*) = 0;
|
||||
virtual void CreateView(void) = 0;
|
||||
virtual void SetOpenGLContext(GLContext*) = 0;
|
||||
// virtual NSWindow* GetNSWindow(void) = 0;
|
||||
virtual NSView* GetNSView(void) = 0;
|
||||
virtual bool CanEnterFullscreenMode(void) = 0;
|
||||
// virtual void EnterFullscreenMode(uint32_t, bool) = 0;
|
||||
virtual void ExitFullscreenMode(void) = 0;
|
||||
virtual CGRect GetBackingRect() = 0;
|
||||
virtual int32_t GetBackingWidth();
|
||||
virtual int32_t GetBackingHeight();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue