blob: 1a1808440f26042eea8d154d8cd4158326f7d82e [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Cocoa/Cocoa.h>
/**
* Creates framebuffers and their backing textures.
*/
@interface FlutterFrameBufferProvider : NSObject
- (nullable instancetype)initWithOpenGLContext:(nonnull const NSOpenGLContext*)openGLContext;
/**
* Returns the id of the framebuffer.
*/
- (uint32_t)glFrameBufferId;
/**
* Returns the id of the backing texture..
*/
- (uint32_t)glTextureId;
@end