consistent window size for render tests
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
2e5ebb392b
commit
a35e63920f
@ -1,3 +1,3 @@
|
||||
#maven.buildNumber.plugin properties file
|
||||
#Tue Aug 20 15:00:55 EDT 2024
|
||||
buildNumber=281
|
||||
#Tue Aug 20 15:07:56 EDT 2024
|
||||
buildNumber=284
|
||||
|
||||
@ -615,6 +615,9 @@ Disable cloud ring
|
||||
Undo oit shader work to fix build pipeline
|
||||
Testing rearchitecting
|
||||
|
||||
(08/20/2024)
|
||||
Update image assert method
|
||||
|
||||
|
||||
# TODO
|
||||
|
||||
|
||||
@ -4,6 +4,7 @@ import java.io.File;
|
||||
|
||||
import annotations.IntegrationSetup;
|
||||
import annotations.IntegrationTeardown;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.engine.Main;
|
||||
import testutils.TestEngineUtils;
|
||||
import testutils.TestRenderingUtils;
|
||||
@ -12,6 +13,9 @@ import testutils.TestRenderingUtils;
|
||||
* A test class that involves testing renders
|
||||
*/
|
||||
public abstract class RenderingTestTemplate {
|
||||
|
||||
public static final int DEFAULT_WINDOW_WIDTH = 1920;
|
||||
public static final int DEFAULT_WINDOW_HEIGHT = 1080;
|
||||
|
||||
/**
|
||||
* Initializes the engine
|
||||
@ -19,6 +23,8 @@ public abstract class RenderingTestTemplate {
|
||||
@IntegrationSetup
|
||||
public void initEngine(){
|
||||
TestEngineUtils.initGraphicalEngine();
|
||||
Globals.WINDOW_WIDTH = DEFAULT_WINDOW_WIDTH;
|
||||
Globals.WINDOW_HEIGHT = DEFAULT_WINDOW_HEIGHT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue
Block a user