Skip to content

Commit

Permalink
Merge pull request #1 from sunfei/master
Browse files Browse the repository at this point in the history
[update] 暴露framebuffer
  • Loading branch information
NaichuanYang committed May 27, 2020
2 parents 3ba1282 + 6e31120 commit 3e4078c
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 3e4078c

Please sign in to comment.