* @param box The box
* @param intersection The intersection point (optional)
* @return Whether an intersection is present. */
- boolean intersectRayBounds(Ray ray, BoundingBox box, Vector3 intersection)
+ public static boolean intersectRayBounds(Ray ray, BoundingBox box, Vector3 intersection)
{
Vector3.tmp.set(ray.origin);
Vector3.tmp2.set(ray.origin);
\r
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;\r
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;\r
-import com.badlogic.gdx.tests.AssetManagerTest;\r
-import com.badlogic.gdx.tests.GamepadTest;\r
-import com.badlogic.gdx.tests.InverseKinematicsTest;\r
-import com.badlogic.gdx.tests.YDownTest;\r
-import com.badlogic.gdx.tests.extensions.FreeTypeTest;\r
+import com.badlogic.gdx.tests.PixmapPackerTest;\r
import com.badlogic.gdx.tests.utils.GdxTest;\r
import com.badlogic.gdx.utils.SharedLibraryLoader;\r
\r
new SharedLibraryLoader("../../extensions/gdx-controllers/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar").load("gdx-controllers-desktop");\r
new SharedLibraryLoader("../../gdx/libs/gdx-natives.jar").load("gdx");\r
\r
- GdxTest test = new GamepadTest();\r
+ GdxTest test = new PixmapPackerTest();\r
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\r
config.useGL20 = test.needsGL20();\r
new LwjglApplication(test, config);\r
Pixmap pixmap2 = new Pixmap(Gdx.files.internal("data/wheel.png"));
Pixmap pixmap3 = new Pixmap(Gdx.files.internal("data/egg.png"));
- PixmapPacker packer = new PixmapPacker(1024, 1024, Format.RGBA8888, 2, true);
+ PixmapPacker packer = new PixmapPacker(256, 256, Format.RGBA8888, 2, true);
packer.pack("badlogic", pixmap1);
packer.pack("wheel", pixmap1);
packer.pack("egg", pixmap1);