Skip to content

Commit

Permalink
[update] 暴露framebuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfei committed May 27, 2020
1 parent 3ba1282 commit 6e31120
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions framework/Source/GPUImageFramebuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ typedef struct GPUTextureOptions {
@property(readonly) GPUTextureOptions textureOptions;
@property(readonly) GLuint texture;
@property(readonly) BOOL missingFramebuffer;
@property(readonly) GLuint framebuffer;

// Initialization and teardown
- (id)initWithSize:(CGSize)framebufferSize;
Expand Down
4 changes: 4 additions & 0 deletions framework/Source/GPUImageFramebuffer.m
Original file line number Diff line number Diff line change
Expand Up @@ -454,4 +454,8 @@ - (GLuint)texture;
return _texture;
}

- (GLuint)framebuffer {
return framebuffer;
}

@end

0 comments on commit 6e31120

Please sign in to comment.