Skip to content

Commit

Permalink
Rename WindowLoop to WindowEventLoop
Browse files Browse the repository at this point in the history
  • Loading branch information
knokko committed Aug 19, 2024
1 parent 4f6a5ff commit 8190b63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.github.knokko.boiler.sync.WaitSemaphore;
import com.github.knokko.boiler.window.SwapchainResourceManager;
import com.github.knokko.boiler.window.VkbWindow;
import com.github.knokko.boiler.window.WindowLoop;
import com.github.knokko.boiler.window.WindowEventLoop;
import com.github.knokko.boiler.window.WindowRenderLoop;
import org.lwjgl.vulkan.VkClearColorValue;
import org.lwjgl.vulkan.VkPushConstantRange;
Expand Down Expand Up @@ -48,7 +48,7 @@ public static void main(String[] args) throws InterruptedException {
var fillWindow = windows[0];
var spinWindow = windows[1];

var windowLoop = new WindowLoop();
var windowLoop = new WindowEventLoop();
windowLoop.addWindow(spinWindow);
windowLoop.addWindow(fillWindow);

Expand Down Expand Up @@ -220,7 +220,7 @@ public static void main(String[] args) throws InterruptedException {
boiler.destroyInitialObjects();
}

private static void startNewWindowThread(BoilerInstance boiler, WindowLoop windowLoop) {
private static void startNewWindowThread(BoilerInstance boiler, WindowEventLoop windowLoop) {
var rng = new Random();
float red = rng.nextFloat();
float green = rng.nextFloat();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.github.knokko.boiler.commands.CommandRecorder;
import com.github.knokko.boiler.sync.ResourceUsage;
import com.github.knokko.boiler.sync.WaitSemaphore;
import com.github.knokko.boiler.window.WindowLoop;
import com.github.knokko.boiler.window.WindowEventLoop;
import com.github.knokko.boiler.window.WindowRenderLoop;
import org.lwjgl.glfw.GLFW;
import org.lwjgl.vulkan.KHRSurface;
Expand All @@ -17,7 +17,6 @@
import static java.lang.Math.*;
import static java.lang.Thread.sleep;
import static org.lwjgl.glfw.GLFW.*;
import static org.lwjgl.system.MemoryStack.stackPush;
import static org.lwjgl.system.MemoryUtil.memUTF8;
import static org.lwjgl.vulkan.KHRSurface.*;
import static org.lwjgl.vulkan.VK10.*;
Expand Down Expand Up @@ -71,7 +70,7 @@ public static void main(String[] args) throws InterruptedException {
"VK_COMPOSITE_ALPHA", "BIT_KHR", "unknown")
);

var windowLoop = new WindowLoop();
var windowLoop = new WindowEventLoop();
windowLoop.addWindow(boiler.window());

var commandPool = boiler.commands.createPool(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class VkbWindow {

private boolean hasBeenDestroyed;

WindowLoop windowLoop;
WindowEventLoop windowLoop;

public VkbWindow(
boolean hasSwapchainMaintenance, long glfwWindow, long vkSurface, Collection<Integer> supportedPresentModes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import static org.lwjgl.glfw.GLFW.*;

public class WindowLoop {
public class WindowEventLoop {

private final BlockingQueue<Task> queue = new LinkedBlockingQueue<>();
private final ConcurrentHashMap<VkbWindow, State> stateMap = new ConcurrentHashMap<>();
Expand Down

0 comments on commit 8190b63

Please sign in to comment.