finished renaming types
This commit is contained in:
@@ -125,7 +125,7 @@ impl<T: GraphicsType> GraphicsWrap<T> {
|
|||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// pub struct OxrFrameStream(GraphicsWrap<XrFrameStream>);
|
/// pub struct OxrFrameStream(GraphicsWrap<OxrFrameStream>);
|
||||||
///
|
///
|
||||||
/// impl GraphicsType for OxrFrameStream {
|
/// impl GraphicsType for OxrFrameStream {
|
||||||
/// // Here is the inner type
|
/// // Here is the inner type
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ fn init_xr_session(
|
|||||||
|
|
||||||
/// This is used solely to transport resources from the main world to the render world.
|
/// This is used solely to transport resources from the main world to the render world.
|
||||||
#[derive(Resource)]
|
#[derive(Resource)]
|
||||||
struct XrRenderResources {
|
struct OxrRenderResources {
|
||||||
session: OxrSession,
|
session: OxrSession,
|
||||||
frame_stream: OxrFrameStream,
|
frame_stream: OxrFrameStream,
|
||||||
swapchain: OxrSwapchain,
|
swapchain: OxrSwapchain,
|
||||||
@@ -446,7 +446,7 @@ pub fn create_xr_session(
|
|||||||
commands.insert_resource(images.clone());
|
commands.insert_resource(images.clone());
|
||||||
commands.insert_resource(graphics_info.clone());
|
commands.insert_resource(graphics_info.clone());
|
||||||
commands.insert_resource(stage.clone());
|
commands.insert_resource(stage.clone());
|
||||||
commands.insert_resource(XrRenderResources {
|
commands.insert_resource(OxrRenderResources {
|
||||||
session,
|
session,
|
||||||
frame_stream,
|
frame_stream,
|
||||||
swapchain,
|
swapchain,
|
||||||
@@ -475,7 +475,7 @@ pub fn end_xr_session(session: Res<OxrSession>, session_started: Res<OxrSessionS
|
|||||||
|
|
||||||
/// This system transfers important render resources from the main world to the render world when a session is created.
|
/// This system transfers important render resources from the main world to the render world when a session is created.
|
||||||
pub fn transfer_xr_resources(mut commands: Commands, mut world: ResMut<MainWorld>) {
|
pub fn transfer_xr_resources(mut commands: Commands, mut world: ResMut<MainWorld>) {
|
||||||
let Some(XrRenderResources {
|
let Some(OxrRenderResources {
|
||||||
session,
|
session,
|
||||||
frame_stream,
|
frame_stream,
|
||||||
swapchain,
|
swapchain,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use bevy::{
|
|||||||
use bevy_xr::camera::XrCameraPlugin;
|
use bevy_xr::camera::XrCameraPlugin;
|
||||||
use bevy_xr::session::XrSessionPlugin;
|
use bevy_xr::session::XrSessionPlugin;
|
||||||
use init::OxrInitPlugin;
|
use init::OxrInitPlugin;
|
||||||
use render::XrRenderPlugin;
|
use render::OxrRenderPlugin;
|
||||||
|
|
||||||
pub mod error;
|
pub mod error;
|
||||||
mod exts;
|
mod exts;
|
||||||
@@ -34,7 +34,7 @@ pub fn add_xr_plugins<G: PluginGroup>(plugins: G) -> PluginGroupBuilder {
|
|||||||
resolutions: default(),
|
resolutions: default(),
|
||||||
synchronous_pipeline_compilation: default(),
|
synchronous_pipeline_compilation: default(),
|
||||||
})
|
})
|
||||||
.add(XrRenderPlugin)
|
.add(OxrRenderPlugin)
|
||||||
.add(XrCameraPlugin)
|
.add(XrCameraPlugin)
|
||||||
// .add(XrActionPlugin)
|
// .add(XrActionPlugin)
|
||||||
.set(WindowPlugin {
|
.set(WindowPlugin {
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ use crate::init::{session_started, OxrPreUpdateSet};
|
|||||||
use crate::layer_builder::*;
|
use crate::layer_builder::*;
|
||||||
use crate::resources::*;
|
use crate::resources::*;
|
||||||
|
|
||||||
pub struct XrRenderPlugin;
|
pub struct OxrRenderPlugin;
|
||||||
|
|
||||||
impl Plugin for XrRenderPlugin {
|
impl Plugin for OxrRenderPlugin {
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.add_plugins((ExtractResourcePlugin::<OxrViews>::default(),))
|
app.add_plugins((ExtractResourcePlugin::<OxrViews>::default(),))
|
||||||
.add_systems(
|
.add_systems(
|
||||||
|
|||||||
Reference in New Issue
Block a user