Files
UnrealEngine/Engine/Source/Developer/StandaloneRenderer/Private/Mac/OpenGL/SlateOpenGLMac.h
2025-05-18 13:04:45 +08:00

31 lines
768 B
Objective-C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "StandaloneRendererPrivate.h"
#include "OpenGL/SlateOpenGLRenderer.h"
#include "Mac/MacWindow.h"
#include "Mac/MacTextInputMethodSystem.h"
#include "Mac/CocoaTextView.h"
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
void LockGLContext(NSOpenGLContext* Context);
void UnlockGLContext(NSOpenGLContext* Context);
@interface FSlateOpenGLLayer : NSOpenGLLayer
@property (assign) NSOpenGLContext* Context;
@property (assign) NSOpenGLPixelFormat* PixelFormat;
@end
@interface FSlateCocoaView : FCocoaTextView
{
@public
GLuint Framebuffer;
GLuint Renderbuffer;
FSlateRect ViewportRect;
}
@property (assign) NSOpenGLContext* Context;
@property (assign) NSOpenGLPixelFormat* PixelFormat;
@end