gl: rename capi Framebuffer handle to 'fbo' to make it more clear.
This commit is contained in:
parent
0cb6f6a346
commit
115382d8f0
|
@ -190,7 +190,7 @@ typedef struct libra_viewport_t {
|
||||||
/// OpenGL parameters for the output framebuffer.
|
/// OpenGL parameters for the output framebuffer.
|
||||||
typedef struct libra_output_framebuffer_gl_t {
|
typedef struct libra_output_framebuffer_gl_t {
|
||||||
/// A framebuffer GLuint to the output framebuffer.
|
/// A framebuffer GLuint to the output framebuffer.
|
||||||
uint32_t handle;
|
uint32_t fbo;
|
||||||
/// A texture GLuint to the logical buffer of the output framebuffer.
|
/// A texture GLuint to the logical buffer of the output framebuffer.
|
||||||
uint32_t texture;
|
uint32_t texture;
|
||||||
/// The format of the output framebuffer.
|
/// The format of the output framebuffer.
|
||||||
|
|
|
@ -3,7 +3,7 @@ use crate::ctypes::{
|
||||||
};
|
};
|
||||||
use crate::error::{assert_non_null, assert_some_ptr, LibrashaderError};
|
use crate::error::{assert_non_null, assert_some_ptr, LibrashaderError};
|
||||||
use crate::ffi::extern_fn;
|
use crate::ffi::extern_fn;
|
||||||
use librashader::runtime::gl::{Framebuffer, GLImage};
|
use librashader::runtime::gl::{GLFramebuffer, GLImage};
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::ffi::{c_char, c_void, CString};
|
use std::ffi::{c_char, c_void, CString};
|
||||||
use std::mem::MaybeUninit;
|
use std::mem::MaybeUninit;
|
||||||
|
@ -36,7 +36,7 @@ pub struct libra_source_image_gl_t {
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct libra_output_framebuffer_gl_t {
|
pub struct libra_output_framebuffer_gl_t {
|
||||||
/// A framebuffer GLuint to the output framebuffer.
|
/// A framebuffer GLuint to the output framebuffer.
|
||||||
pub handle: u32,
|
pub fbo: u32,
|
||||||
/// A texture GLuint to the logical buffer of the output framebuffer.
|
/// A texture GLuint to the logical buffer of the output framebuffer.
|
||||||
pub texture: u32,
|
pub texture: u32,
|
||||||
/// The format of the output framebuffer.
|
/// The format of the output framebuffer.
|
||||||
|
@ -189,7 +189,7 @@ extern_fn! {
|
||||||
};
|
};
|
||||||
|
|
||||||
let opt = opt.map(FromUninit::from_uninit);
|
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 {
|
let viewport = Viewport {
|
||||||
x: viewport.x,
|
x: viewport.x,
|
||||||
y: viewport.y,
|
y: viewport.y,
|
||||||
|
|
Loading…
Reference in a new issue