mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-02 18:46:52 +00:00
Add way to query the size of an FBO
This commit is contained in:
parent
09a37c4e28
commit
f22ad17d40
@ -170,3 +170,8 @@ void fbo_destroy(FBO *fbo) {
|
||||
glDeleteTextures(1, &fbo->color_texture);
|
||||
glDeleteRenderbuffers(1, &fbo->z_stencil_buffer);
|
||||
}
|
||||
|
||||
void fbo_get_dimensions(FBO *fbo, int *w, int *h) {
|
||||
*w = fbo->width;
|
||||
*h = fbo->height;
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
// Simple wrapper around FBO functionality.
|
||||
// Very C-ish API because that's what I felt like, and it's cool to completely
|
||||
// hide the data from callers...
|
||||
|
||||
struct FBO;
|
||||
|
||||
@ -29,3 +31,4 @@ void fbo_bind_color_as_texture(FBO *fbo, int color);
|
||||
void fbo_bind_for_read(FBO *fbo);
|
||||
void fbo_unbind();
|
||||
void fbo_destroy(FBO *fbo);
|
||||
void fbo_get_dimensions(FBO *fbo, int *w, int *h);
|
Loading…
Reference in New Issue
Block a user