Skip to content

Commit c198e16

Browse files
committed
Fix naming.
1 parent c39fb34 commit c198e16

File tree

1 file changed

+4
-4
lines changed
  • libProcessing/renderer/src

1 file changed

+4
-4
lines changed

libProcessing/renderer/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ macro_rules! window_mut {
348348
};
349349
}
350350

351-
pub fn processing_begin_draw(_window_entity: Entity) -> Result<()> {
351+
pub fn begin_draw(_window_entity: Entity) -> Result<()> {
352352
app_mut(|_app| Ok(()))
353353
}
354354

355-
pub fn processing_flush(window_entity: Entity) -> Result<()> {
355+
pub fn flush(window_entity: Entity) -> Result<()> {
356356
app_mut(|app| {
357357
window_mut!(app, window_entity).insert(Flush);
358358
app.update();
@@ -364,7 +364,7 @@ pub fn processing_flush(window_entity: Entity) -> Result<()> {
364364
})
365365
}
366366

367-
pub fn processing_end_draw(window_entity: Entity) -> Result<()> {
367+
pub fn end_draw(window_entity: Entity) -> Result<()> {
368368
// since we are ending the draw, set the camera to write to the output render target
369369
app_mut(|app| {
370370
camera_mut!(app, window_entity).output_mode = CameraOutputMode::Write {
@@ -375,7 +375,7 @@ pub fn processing_end_draw(window_entity: Entity) -> Result<()> {
375375
})?;
376376
// flush any remaining draw commands, this ensures that the frame is presented even if there
377377
// is no remaining draw commands
378-
processing_flush(window_entity)?;
378+
flush(window_entity)?;
379379
// reset to skipping output for the next frame
380380
app_mut(|app| {
381381
camera_mut!(app, window_entity).output_mode = CameraOutputMode::Skip;

0 commit comments

Comments
 (0)