Skip to content

Commit

Permalink
gl: rename capi Framebuffer handle to 'fbo' to make it more clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyran committed Feb 11, 2023
1 parent 0cb6f6a commit 115382d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/librashader.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ typedef struct libra_viewport_t {
/// OpenGL parameters for the output framebuffer.
typedef struct libra_output_framebuffer_gl_t {
/// A framebuffer GLuint to the output framebuffer.
uint32_t handle;
uint32_t fbo;
/// A texture GLuint to the logical buffer of the output framebuffer.
uint32_t texture;
/// The format of the output framebuffer.
Expand Down
6 changes: 3 additions & 3 deletions librashader-capi/src/runtime/gl/filter_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::ctypes::{
};
use crate::error::{assert_non_null, assert_some_ptr, LibrashaderError};
use crate::ffi::extern_fn;
use librashader::runtime::gl::{Framebuffer, GLImage};
use librashader::runtime::gl::{GLFramebuffer, GLImage};
use std::ffi::CStr;
use std::ffi::{c_char, c_void, CString};
use std::mem::MaybeUninit;
Expand Down Expand Up @@ -36,7 +36,7 @@ pub struct libra_source_image_gl_t {
#[repr(C)]
pub struct libra_output_framebuffer_gl_t {
/// A framebuffer GLuint to the output framebuffer.
pub handle: u32,
pub fbo: u32,
/// A texture GLuint to the logical buffer of the output framebuffer.
pub texture: u32,
/// The format of the output framebuffer.
Expand Down Expand Up @@ -189,7 +189,7 @@ extern_fn! {
};

let opt = opt.map(FromUninit::from_uninit);
let framebuffer = Framebuffer::new_from_raw(out.texture, out.handle, out.format, Size::new(viewport.width, viewport.height), 1);
let framebuffer = GLFramebuffer::new_from_raw(out.texture, out.fbo, out.format, Size::new(viewport.width, viewport.height), 1);
let viewport = Viewport {
x: viewport.x,
y: viewport.y,
Expand Down

0 comments on commit 115382d

Please sign in to comment.