-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Pollind <[email protected]>
- Loading branch information
Showing
17 changed files
with
315 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use jni::{JNIEnv, objects::JClass, sys::jlong}; | ||
|
||
use crate::{resource::chunk_mesh_resource::ChunkMeshResource, ui::JavaHandle}; | ||
|
||
|
||
|
||
#[no_mangle] | ||
pub extern "system" fn Java_org_terasology_engine_rust_resource_ChunkGeometry_00024JNI_drop<'local>(mut env: JNIEnv<'local>, _class: JClass, geom_ptr: jlong) { | ||
ChunkMeshResource::drop_handle(geom_ptr); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pub mod jni_engine_kernel; | |
pub mod jni_ui; | ||
pub mod jni_resource; | ||
pub mod jni_texture; | ||
pub mod jni_chunk_mesh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ mod ui; | |
mod resource; | ||
mod jni; | ||
mod math; | ||
mod scene; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use crate::resource::chunk_mesh_resource::ChunkMeshResource; | ||
use std::sync::Arc; | ||
|
||
pub struct Scene { | ||
opaque_chunks: Vec<Arc<ChunkMeshResource>> | ||
} | ||
|
||
impl Scene { | ||
|
||
pub fn cmd_prepare(&mut self) { | ||
|
||
} | ||
|
||
pub fn cmd_dispatch(&mut self) { | ||
|
||
} | ||
|
||
pub fn cmd_queue_opaque_chunk() { | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.