repo_name
stringclasses
5 values
pr_number
int64
1.52k
15.5k
pr_title
stringlengths
8
143
pr_description
stringlengths
0
10.2k
author
stringlengths
3
18
date_created
unknown
date_merged
unknown
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
11
10.2k
filepath
stringlengths
6
220
before_content
stringlengths
0
597M
after_content
stringlengths
0
597M
label
int64
-1
1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/uint_key_func.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; public class uint_key_func extends BulletBase { private long swigCPtr; protected uint_key_func (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new uint_key_func, normally you should not need this constructor it's intended for low-level usage. */ public uint_key_func (long cPtr, boolean cMemoryOwn) { this("uint_key_func", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (uint_key_func obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_uint_key_func(swigCPtr); } swigCPtr = 0; } super.delete(); } public uint_key_func () { this(CollisionJNI.new_uint_key_func(), true); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; public class uint_key_func extends BulletBase { private long swigCPtr; protected uint_key_func (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new uint_key_func, normally you should not need this constructor it's intended for low-level usage. */ public uint_key_func (long cPtr, boolean cMemoryOwn) { this("uint_key_func", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (uint_key_func obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_uint_key_func(swigCPtr); } swigCPtr = 0; } super.delete(); } public uint_key_func () { this(CollisionJNI.new_uint_key_func(), true); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/linearmath/com/badlogic/gdx/physics/bullet/linearmath/btHashPtr.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.linearmath; import com.badlogic.gdx.physics.bullet.BulletBase; public class btHashPtr extends BulletBase { private long swigCPtr; protected btHashPtr (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btHashPtr, normally you should not need this constructor it's intended for low-level usage. */ public btHashPtr (long cPtr, boolean cMemoryOwn) { this("btHashPtr", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btHashPtr obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; LinearMathJNI.delete_btHashPtr(swigCPtr); } swigCPtr = 0; } super.delete(); } public btHashPtr (long ptr) { this(LinearMathJNI.new_btHashPtr(ptr), true); } public long getPointer () { return LinearMathJNI.btHashPtr_getPointer(swigCPtr, this); } public boolean equals (btHashPtr other) { return LinearMathJNI.btHashPtr_equals(swigCPtr, this, btHashPtr.getCPtr(other), other); } public long getHash () { return LinearMathJNI.btHashPtr_getHash(swigCPtr, this); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.linearmath; import com.badlogic.gdx.physics.bullet.BulletBase; public class btHashPtr extends BulletBase { private long swigCPtr; protected btHashPtr (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btHashPtr, normally you should not need this constructor it's intended for low-level usage. */ public btHashPtr (long cPtr, boolean cMemoryOwn) { this("btHashPtr", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btHashPtr obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; LinearMathJNI.delete_btHashPtr(swigCPtr); } swigCPtr = 0; } super.delete(); } public btHashPtr (long ptr) { this(LinearMathJNI.new_btHashPtr(ptr), true); } public long getPointer () { return LinearMathJNI.btHashPtr_getPointer(swigCPtr, this); } public boolean equals (btHashPtr other) { return LinearMathJNI.btHashPtr_equals(swigCPtr, this, btHashPtr.getCPtr(other), other); } public long getHash () { return LinearMathJNI.btHashPtr_getHash(swigCPtr, this); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/graphics/GL32.java
/* * Copyright 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // copied from https://cs.android.com/android/platform/superproject/+/master:frameworks/base/opengl/java/android/opengl/GLES32.java package com.badlogic.gdx.graphics; public interface GL32 extends GL31 { public static final int GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002; public static final int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004; public static final int GL_GEOMETRY_SHADER_BIT = 0x00000004; public static final int GL_TESS_CONTROL_SHADER_BIT = 0x00000008; public static final int GL_TESS_EVALUATION_SHADER_BIT = 0x00000010; public static final int GL_QUADS = 0x0007; public static final int GL_LINES_ADJACENCY = 0x000A; public static final int GL_LINE_STRIP_ADJACENCY = 0x000B; public static final int GL_TRIANGLES_ADJACENCY = 0x000C; public static final int GL_TRIANGLE_STRIP_ADJACENCY = 0x000D; public static final int GL_PATCHES = 0x000E; public static final int GL_STACK_OVERFLOW = 0x0503; public static final int GL_STACK_UNDERFLOW = 0x0504; public static final int GL_CONTEXT_LOST = 0x0507; public static final int GL_TEXTURE_BORDER_COLOR = 0x1004; public static final int GL_VERTEX_ARRAY = 0x8074; public static final int GL_CLAMP_TO_BORDER = 0x812D; public static final int GL_CONTEXT_FLAGS = 0x821E; public static final int GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221; public static final int GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242; public static final int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243; public static final int GL_DEBUG_CALLBACK_FUNCTION = 0x8244; public static final int GL_DEBUG_CALLBACK_USER_PARAM = 0x8245; public static final int GL_DEBUG_SOURCE_API = 0x8246; public static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247; public static final int GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248; public static final int GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249; public static final int GL_DEBUG_SOURCE_APPLICATION = 0x824A; public static final int GL_DEBUG_SOURCE_OTHER = 0x824B; public static final int GL_DEBUG_TYPE_ERROR = 0x824C; public static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D; public static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E; public static final int GL_DEBUG_TYPE_PORTABILITY = 0x824F; public static final int GL_DEBUG_TYPE_PERFORMANCE = 0x8250; public static final int GL_DEBUG_TYPE_OTHER = 0x8251; public static final int GL_LOSE_CONTEXT_ON_RESET = 0x8252; public static final int GL_GUILTY_CONTEXT_RESET = 0x8253; public static final int GL_INNOCENT_CONTEXT_RESET = 0x8254; public static final int GL_UNKNOWN_CONTEXT_RESET = 0x8255; public static final int GL_RESET_NOTIFICATION_STRATEGY = 0x8256; public static final int GL_LAYER_PROVOKING_VERTEX = 0x825E; public static final int GL_UNDEFINED_VERTEX = 0x8260; public static final int GL_NO_RESET_NOTIFICATION = 0x8261; public static final int GL_DEBUG_TYPE_MARKER = 0x8268; public static final int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269; public static final int GL_DEBUG_TYPE_POP_GROUP = 0x826A; public static final int GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B; public static final int GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C; public static final int GL_DEBUG_GROUP_STACK_DEPTH = 0x826D; public static final int GL_BUFFER = 0x82E0; public static final int GL_SHADER = 0x82E1; public static final int GL_PROGRAM = 0x82E2; public static final int GL_QUERY = 0x82E3; public static final int GL_PROGRAM_PIPELINE = 0x82E4; public static final int GL_SAMPLER = 0x82E6; public static final int GL_MAX_LABEL_LENGTH = 0x82E8; public static final int GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C; public static final int GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D; public static final int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F; public static final int GL_GEOMETRY_VERTICES_OUT = 0x8916; public static final int GL_GEOMETRY_INPUT_TYPE = 0x8917; public static final int GL_GEOMETRY_OUTPUT_TYPE = 0x8918; public static final int GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C; public static final int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32; public static final int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29; public static final int GL_TEXTURE_BUFFER = 0x8C2A; public static final int GL_TEXTURE_BUFFER_BINDING = 0x8C2A; public static final int GL_MAX_TEXTURE_BUFFER_SIZE = 0x8C2B; public static final int GL_TEXTURE_BINDING_BUFFER = 0x8C2C; public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D; public static final int GL_SAMPLE_SHADING = 0x8C36; public static final int GL_MIN_SAMPLE_SHADING_VALUE = 0x8C37; public static final int GL_PRIMITIVES_GENERATED = 0x8C87; public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7; public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8; public static final int GL_SAMPLER_BUFFER = 0x8DC2; public static final int GL_INT_SAMPLER_BUFFER = 0x8DD0; public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8; public static final int GL_GEOMETRY_SHADER = 0x8DD9; public static final int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF; public static final int GL_MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0; public static final int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1; public static final int GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E; public static final int GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F; public static final int GL_FIRST_VERTEX_CONVENTION = 0x8E4D; public static final int GL_LAST_VERTEX_CONVENTION = 0x8E4E; public static final int GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A; public static final int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B; public static final int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C; public static final int GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D; public static final int GL_PATCH_VERTICES = 0x8E72; public static final int GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75; public static final int GL_TESS_GEN_MODE = 0x8E76; public static final int GL_TESS_GEN_SPACING = 0x8E77; public static final int GL_TESS_GEN_VERTEX_ORDER = 0x8E78; public static final int GL_TESS_GEN_POINT_MODE = 0x8E79; public static final int GL_ISOLINES = 0x8E7A; public static final int GL_FRACTIONAL_ODD = 0x8E7B; public static final int GL_FRACTIONAL_EVEN = 0x8E7C; public static final int GL_MAX_PATCH_VERTICES = 0x8E7D; public static final int GL_MAX_TESS_GEN_LEVEL = 0x8E7E; public static final int GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F; public static final int GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80; public static final int GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81; public static final int GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82; public static final int GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83; public static final int GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84; public static final int GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85; public static final int GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86; public static final int GL_TESS_EVALUATION_SHADER = 0x8E87; public static final int GL_TESS_CONTROL_SHADER = 0x8E88; public static final int GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89; public static final int GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A; public static final int GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009; public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A; public static final int GL_SAMPLER_CUBE_MAP_ARRAY = 0x900C; public static final int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D; public static final int GL_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E; public static final int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F; public static final int GL_IMAGE_BUFFER = 0x9051; public static final int GL_IMAGE_CUBE_MAP_ARRAY = 0x9054; public static final int GL_INT_IMAGE_BUFFER = 0x905C; public static final int GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F; public static final int GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067; public static final int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A; public static final int GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB; public static final int GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC; public static final int GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD; public static final int GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7; public static final int GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8; public static final int GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9; public static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105; public static final int GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B; public static final int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C; public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D; public static final int GL_MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123; public static final int GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124; public static final int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143; public static final int GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144; public static final int GL_DEBUG_LOGGED_MESSAGES = 0x9145; public static final int GL_DEBUG_SEVERITY_HIGH = 0x9146; public static final int GL_DEBUG_SEVERITY_MEDIUM = 0x9147; public static final int GL_DEBUG_SEVERITY_LOW = 0x9148; public static final int GL_TEXTURE_BUFFER_OFFSET = 0x919D; public static final int GL_TEXTURE_BUFFER_SIZE = 0x919E; public static final int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F; public static final int GL_MULTIPLY = 0x9294; public static final int GL_SCREEN = 0x9295; public static final int GL_OVERLAY = 0x9296; public static final int GL_DARKEN = 0x9297; public static final int GL_LIGHTEN = 0x9298; public static final int GL_COLORDODGE = 0x9299; public static final int GL_COLORBURN = 0x929A; public static final int GL_HARDLIGHT = 0x929B; public static final int GL_SOFTLIGHT = 0x929C; public static final int GL_DIFFERENCE = 0x929E; public static final int GL_EXCLUSION = 0x92A0; public static final int GL_HSL_HUE = 0x92AD; public static final int GL_HSL_SATURATION = 0x92AE; public static final int GL_HSL_COLOR = 0x92AF; public static final int GL_HSL_LUMINOSITY = 0x92B0; public static final int GL_PRIMITIVE_BOUNDING_BOX = 0x92BE; public static final int GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD; public static final int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE; public static final int GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF; public static final int GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3; public static final int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4; public static final int GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5; public static final int GL_DEBUG_OUTPUT = 0x92E0; public static final int GL_IS_PER_PATCH = 0x92E7; public static final int GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307; public static final int GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308; public static final int GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309; public static final int GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312; public static final int GL_MAX_FRAMEBUFFER_LAYERS = 0x9317; public static final int GL_MULTISAMPLE_LINE_WIDTH_RANGE = 0x9381; public static final int GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY = 0x9382; public static final int GL_COMPRESSED_RGBA_ASTC_4x4 = 0x93B0; public static final int GL_COMPRESSED_RGBA_ASTC_5x4 = 0x93B1; public static final int GL_COMPRESSED_RGBA_ASTC_5x5 = 0x93B2; public static final int GL_COMPRESSED_RGBA_ASTC_6x5 = 0x93B3; public static final int GL_COMPRESSED_RGBA_ASTC_6x6 = 0x93B4; public static final int GL_COMPRESSED_RGBA_ASTC_8x5 = 0x93B5; public static final int GL_COMPRESSED_RGBA_ASTC_8x6 = 0x93B6; public static final int GL_COMPRESSED_RGBA_ASTC_8x8 = 0x93B7; public static final int GL_COMPRESSED_RGBA_ASTC_10x5 = 0x93B8; public static final int GL_COMPRESSED_RGBA_ASTC_10x6 = 0x93B9; public static final int GL_COMPRESSED_RGBA_ASTC_10x8 = 0x93BA; public static final int GL_COMPRESSED_RGBA_ASTC_10x10 = 0x93BB; public static final int GL_COMPRESSED_RGBA_ASTC_12x10 = 0x93BC; public static final int GL_COMPRESSED_RGBA_ASTC_12x12 = 0x93BD; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4 = 0x93D0; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4 = 0x93D1; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5 = 0x93D2; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5 = 0x93D3; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6 = 0x93D4; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5 = 0x93D5; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6 = 0x93D6; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8 = 0x93D7; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5 = 0x93D8; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6 = 0x93D9; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8 = 0x93DA; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10 = 0x93DB; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10 = 0x93DC; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12 = 0x93DD; // C function void glBlendBarrier ( void ) void glBlendBarrier (); // C function void glCopyImageSubData ( GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, // GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, // GLsizei srcDepth ) void glCopyImageSubData (int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth); // C function void glDebugMessageControl ( GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, // GLboolean enabled ) // void glDebugMessageControl( // int source, // int type, // int severity, // int count, // int[] ids, // int offset, // boolean enabled // ); // C function void glDebugMessageControl ( GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, // GLboolean enabled ) void glDebugMessageControl (int source, int type, int severity, // int count, java.nio.IntBuffer ids, boolean enabled); // C function void glDebugMessageInsert ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar // *buf ) void glDebugMessageInsert (int source, int type, int id, int severity, // int length String buf); // C function void glDebugMessageCallback ( GLDEBUGPROC callback, const void *userParam ) public interface DebugProc { void onMessage (int source, int type, int id, int severity, String message); } void glDebugMessageCallback (DebugProc callback); // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum // *severities, GLsizei *lengths, GLchar *messageLog ) // int glGetDebugMessageLog( // int count, // int bufSize, // int[] sources, // int sourcesOffset, // int[] types, // int typesOffset, // int[] ids, // int idsOffset, // int[] severities, // int severitiesOffset, // int[] lengths, // int lengthsOffset, // byte[] messageLog, // int messageLogOffset); // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum // *severities, GLsizei *lengths, GLchar *messageLog ) int glGetDebugMessageLog (int count, java.nio.IntBuffer sources, java.nio.IntBuffer types, java.nio.IntBuffer ids, java.nio.IntBuffer severities, java.nio.IntBuffer lengths, java.nio.ByteBuffer messageLog); // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum // *severities, GLsizei *lengths, GLchar *messageLog ) // String[] glGetDebugMessageLog( // int count, // int[] sources, // int sourcesOffset, // int[] types, // int typesOffset, // int[] ids, // int idsOffset, // int[] severities, // int severitiesOffset); // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum // *severities, GLsizei *lengths, GLchar *messageLog ) // String[] glGetDebugMessageLog( // int count, // java.nio.IntBuffer sources, // java.nio.IntBuffer types, // java.nio.IntBuffer ids, // java.nio.IntBuffer severities); // C function void glPushDebugGroup ( GLenum source, GLuint id, GLsizei length, const GLchar *message ) void glPushDebugGroup (int source, int id, // int length, String message); // C function void glPopDebugGroup ( void ) void glPopDebugGroup (); // C function void glObjectLabel ( GLenum identifier, GLuint name, GLsizei length, const GLchar *label ) void glObjectLabel (int identifier, int name, // int length, String label); // C function void glGetObjectLabel ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label ) String glGetObjectLabel (int identifier, int name); // C function void glObjectPtrLabel ( const void *ptr, GLsizei length, const GLchar *label ) // void glObjectPtrLabel (long ptr, String label); // C function void glGetObjectPtrLabel ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label ) // String glGetObjectPtrLabel (long ptr); // C function void glGetPointerv ( GLenum pname, void **params ) long glGetPointerv (int pname); // C function void glEnablei ( GLenum target, GLuint index ) void glEnablei (int target, int index); // C function void glDisablei ( GLenum target, GLuint index ) void glDisablei (int target, int index); // C function void glBlendEquationi ( GLuint buf, GLenum mode ) void glBlendEquationi (int buf, int mode); // C function void glBlendEquationSeparatei ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) void glBlendEquationSeparatei (int buf, int modeRGB, int modeAlpha); // C function void glBlendFunci ( GLuint buf, GLenum src, GLenum dst ) void glBlendFunci (int buf, int src, int dst); // C function void glBlendFuncSeparatei ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha ) void glBlendFuncSeparatei (int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); // C function void glColorMaski ( GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a ) void glColorMaski (int index, boolean r, boolean g, boolean b, boolean a); // C function GLboolean glIsEnabledi ( GLenum target, GLuint index ) boolean glIsEnabledi (int target, int index); // C function void glDrawElementsBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex ) void glDrawElementsBaseVertex (int mode, int count, int type, java.nio.Buffer indices, int basevertex); // C function void glDrawRangeElementsBaseVertex ( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const // void *indices, GLint basevertex ) void glDrawRangeElementsBaseVertex (int mode, int start, int end, int count, int type, java.nio.Buffer indices, int basevertex); // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei // instanceCount, GLint basevertex ) void glDrawElementsInstancedBaseVertex (int mode, int count, int type, java.nio.Buffer indices, int instanceCount, int basevertex); // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei // instanceCount, GLint basevertex ) void glDrawElementsInstancedBaseVertex (int mode, int count, int type, int indicesOffset, int instanceCount, int basevertex); // C function void glFramebufferTexture ( GLenum target, GLenum attachment, GLuint texture, GLint level ) void glFramebufferTexture (int target, int attachment, int texture, int level); // C function void glPrimitiveBoundingBox ( GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, // GLfloat maxZ, GLfloat maxW ) // void glPrimitiveBoundingBox( // float minX, // float minY, // float minZ, // float minW, // float maxX, // float maxY, // float maxZ, // float maxW // ); // C function GLenum glGetGraphicsResetStatus ( void ) int glGetGraphicsResetStatus (); // C function void glReadnPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei // bufSize, void *data ) void glReadnPixels (int x, int y, int width, int height, int format, int type, int bufSize, java.nio.Buffer data); // C function void glGetnUniformfv ( GLuint program, GLint location, GLsizei bufSize, GLfloat *params ) // void glGetnUniformfv( // int program, // int location, // int bufSize, // float[] params, // int offset // ); // C function void glGetnUniformfv ( GLuint program, GLint location, GLsizei bufSize, GLfloat *params ) void glGetnUniformfv (int program, int location, // int bufSize, java.nio.FloatBuffer params); // C function void glGetnUniformiv ( GLuint program, GLint location, GLsizei bufSize, GLint *params ) // void glGetnUniformiv( // int program, // int location, // int bufSize, // int[] params, // int offset // ); // C function void glGetnUniformiv ( GLuint program, GLint location, GLsizei bufSize, GLint *params ) void glGetnUniformiv (int program, int location, // int bufSize, java.nio.IntBuffer params); // C function void glGetnUniformuiv ( GLuint program, GLint location, GLsizei bufSize, GLuint *params ) // void glGetnUniformuiv( // int program, // int location, // int bufSize, // int[] params, // int offset // ); // C function void glGetnUniformuiv ( GLuint program, GLint location, GLsizei bufSize, GLuint *params ) void glGetnUniformuiv (int program, int location, // int bufSize, java.nio.IntBuffer params); // C function void glMinSampleShading ( GLfloat value ) void glMinSampleShading (float value); // C function void glPatchParameteri ( GLenum pname, GLint value ) void glPatchParameteri (int pname, int value); // C function void glTexParameterIiv ( GLenum target, GLenum pname, const GLint *params ) // void glTexParameterIiv( // int target, // int pname, // int[] params, // int offset // ); // C function void glTexParameterIiv ( GLenum target, GLenum pname, const GLint *params ) void glTexParameterIiv (int target, int pname, java.nio.IntBuffer params); // C function void glTexParameterIuiv ( GLenum target, GLenum pname, const GLuint *params ) // void glTexParameterIuiv( // int target, // int pname, // int[] params, // int offset // ); // C function void glTexParameterIuiv ( GLenum target, GLenum pname, const GLuint *params ) void glTexParameterIuiv (int target, int pname, java.nio.IntBuffer params); // C function void glGetTexParameterIiv ( GLenum target, GLenum pname, GLint *params ) // void glGetTexParameterIiv( // int target, // int pname, // int[] params, // int offset // ); // C function void glGetTexParameterIiv ( GLenum target, GLenum pname, GLint *params ) void glGetTexParameterIiv (int target, int pname, java.nio.IntBuffer params); // C function void glGetTexParameterIuiv ( GLenum target, GLenum pname, GLuint *params ) // void glGetTexParameterIuiv( // int target, // int pname, // int[] params, // int offset // ); // C function void glGetTexParameterIuiv ( GLenum target, GLenum pname, GLuint *params ) void glGetTexParameterIuiv (int target, int pname, java.nio.IntBuffer params); // C function void glSamplerParameterIiv ( GLuint sampler, GLenum pname, const GLint *param ) // void glSamplerParameterIiv( // int sampler, // int pname, // int[] param, // int offset // ); // C function void glSamplerParameterIiv ( GLuint sampler, GLenum pname, const GLint *param ) void glSamplerParameterIiv (int sampler, int pname, java.nio.IntBuffer param); // C function void glSamplerParameterIuiv ( GLuint sampler, GLenum pname, const GLuint *param ) // void glSamplerParameterIuiv( // int sampler, // int pname, // int[] param, // int offset // ); // C function void glSamplerParameterIuiv ( GLuint sampler, GLenum pname, const GLuint *param ) void glSamplerParameterIuiv (int sampler, int pname, java.nio.IntBuffer param); // C function void glGetSamplerParameterIiv ( GLuint sampler, GLenum pname, GLint *params ) // void glGetSamplerParameterIiv( // int sampler, // int pname, // int[] params, // int offset // ); // C function void glGetSamplerParameterIiv ( GLuint sampler, GLenum pname, GLint *params ) void glGetSamplerParameterIiv (int sampler, int pname, java.nio.IntBuffer params); // C function void glGetSamplerParameterIuiv ( GLuint sampler, GLenum pname, GLuint *params ) // void glGetSamplerParameterIuiv( // int sampler, // int pname, // int[] params, // int offset // ); // C function void glGetSamplerParameterIuiv ( GLuint sampler, GLenum pname, GLuint *params ) void glGetSamplerParameterIuiv (int sampler, int pname, java.nio.IntBuffer params); // C function void glTexBuffer ( GLenum target, GLenum internalformat, GLuint buffer ) void glTexBuffer (int target, int internalformat, int buffer); // C function void glTexBufferRange ( GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size ) void glTexBufferRange (int target, int internalformat, int buffer, int offset, int size); // C function void glTexStorage3DMultisample ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei // height, GLsizei depth, GLboolean fixedsamplelocations ) void glTexStorage3DMultisample (int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations); }
/* * Copyright 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // copied from https://cs.android.com/android/platform/superproject/+/master:frameworks/base/opengl/java/android/opengl/GLES32.java package com.badlogic.gdx.graphics; public interface GL32 extends GL31 { public static final int GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002; public static final int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004; public static final int GL_GEOMETRY_SHADER_BIT = 0x00000004; public static final int GL_TESS_CONTROL_SHADER_BIT = 0x00000008; public static final int GL_TESS_EVALUATION_SHADER_BIT = 0x00000010; public static final int GL_QUADS = 0x0007; public static final int GL_LINES_ADJACENCY = 0x000A; public static final int GL_LINE_STRIP_ADJACENCY = 0x000B; public static final int GL_TRIANGLES_ADJACENCY = 0x000C; public static final int GL_TRIANGLE_STRIP_ADJACENCY = 0x000D; public static final int GL_PATCHES = 0x000E; public static final int GL_STACK_OVERFLOW = 0x0503; public static final int GL_STACK_UNDERFLOW = 0x0504; public static final int GL_CONTEXT_LOST = 0x0507; public static final int GL_TEXTURE_BORDER_COLOR = 0x1004; public static final int GL_VERTEX_ARRAY = 0x8074; public static final int GL_CLAMP_TO_BORDER = 0x812D; public static final int GL_CONTEXT_FLAGS = 0x821E; public static final int GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221; public static final int GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242; public static final int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243; public static final int GL_DEBUG_CALLBACK_FUNCTION = 0x8244; public static final int GL_DEBUG_CALLBACK_USER_PARAM = 0x8245; public static final int GL_DEBUG_SOURCE_API = 0x8246; public static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247; public static final int GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248; public static final int GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249; public static final int GL_DEBUG_SOURCE_APPLICATION = 0x824A; public static final int GL_DEBUG_SOURCE_OTHER = 0x824B; public static final int GL_DEBUG_TYPE_ERROR = 0x824C; public static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D; public static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E; public static final int GL_DEBUG_TYPE_PORTABILITY = 0x824F; public static final int GL_DEBUG_TYPE_PERFORMANCE = 0x8250; public static final int GL_DEBUG_TYPE_OTHER = 0x8251; public static final int GL_LOSE_CONTEXT_ON_RESET = 0x8252; public static final int GL_GUILTY_CONTEXT_RESET = 0x8253; public static final int GL_INNOCENT_CONTEXT_RESET = 0x8254; public static final int GL_UNKNOWN_CONTEXT_RESET = 0x8255; public static final int GL_RESET_NOTIFICATION_STRATEGY = 0x8256; public static final int GL_LAYER_PROVOKING_VERTEX = 0x825E; public static final int GL_UNDEFINED_VERTEX = 0x8260; public static final int GL_NO_RESET_NOTIFICATION = 0x8261; public static final int GL_DEBUG_TYPE_MARKER = 0x8268; public static final int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269; public static final int GL_DEBUG_TYPE_POP_GROUP = 0x826A; public static final int GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B; public static final int GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C; public static final int GL_DEBUG_GROUP_STACK_DEPTH = 0x826D; public static final int GL_BUFFER = 0x82E0; public static final int GL_SHADER = 0x82E1; public static final int GL_PROGRAM = 0x82E2; public static final int GL_QUERY = 0x82E3; public static final int GL_PROGRAM_PIPELINE = 0x82E4; public static final int GL_SAMPLER = 0x82E6; public static final int GL_MAX_LABEL_LENGTH = 0x82E8; public static final int GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C; public static final int GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D; public static final int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F; public static final int GL_GEOMETRY_VERTICES_OUT = 0x8916; public static final int GL_GEOMETRY_INPUT_TYPE = 0x8917; public static final int GL_GEOMETRY_OUTPUT_TYPE = 0x8918; public static final int GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C; public static final int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32; public static final int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29; public static final int GL_TEXTURE_BUFFER = 0x8C2A; public static final int GL_TEXTURE_BUFFER_BINDING = 0x8C2A; public static final int GL_MAX_TEXTURE_BUFFER_SIZE = 0x8C2B; public static final int GL_TEXTURE_BINDING_BUFFER = 0x8C2C; public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D; public static final int GL_SAMPLE_SHADING = 0x8C36; public static final int GL_MIN_SAMPLE_SHADING_VALUE = 0x8C37; public static final int GL_PRIMITIVES_GENERATED = 0x8C87; public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7; public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8; public static final int GL_SAMPLER_BUFFER = 0x8DC2; public static final int GL_INT_SAMPLER_BUFFER = 0x8DD0; public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8; public static final int GL_GEOMETRY_SHADER = 0x8DD9; public static final int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF; public static final int GL_MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0; public static final int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1; public static final int GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E; public static final int GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F; public static final int GL_FIRST_VERTEX_CONVENTION = 0x8E4D; public static final int GL_LAST_VERTEX_CONVENTION = 0x8E4E; public static final int GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A; public static final int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B; public static final int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C; public static final int GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D; public static final int GL_PATCH_VERTICES = 0x8E72; public static final int GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75; public static final int GL_TESS_GEN_MODE = 0x8E76; public static final int GL_TESS_GEN_SPACING = 0x8E77; public static final int GL_TESS_GEN_VERTEX_ORDER = 0x8E78; public static final int GL_TESS_GEN_POINT_MODE = 0x8E79; public static final int GL_ISOLINES = 0x8E7A; public static final int GL_FRACTIONAL_ODD = 0x8E7B; public static final int GL_FRACTIONAL_EVEN = 0x8E7C; public static final int GL_MAX_PATCH_VERTICES = 0x8E7D; public static final int GL_MAX_TESS_GEN_LEVEL = 0x8E7E; public static final int GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F; public static final int GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80; public static final int GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81; public static final int GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82; public static final int GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83; public static final int GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84; public static final int GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85; public static final int GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86; public static final int GL_TESS_EVALUATION_SHADER = 0x8E87; public static final int GL_TESS_CONTROL_SHADER = 0x8E88; public static final int GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89; public static final int GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A; public static final int GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009; public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A; public static final int GL_SAMPLER_CUBE_MAP_ARRAY = 0x900C; public static final int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D; public static final int GL_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E; public static final int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F; public static final int GL_IMAGE_BUFFER = 0x9051; public static final int GL_IMAGE_CUBE_MAP_ARRAY = 0x9054; public static final int GL_INT_IMAGE_BUFFER = 0x905C; public static final int GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F; public static final int GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067; public static final int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A; public static final int GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB; public static final int GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC; public static final int GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD; public static final int GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7; public static final int GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8; public static final int GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9; public static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105; public static final int GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B; public static final int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C; public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D; public static final int GL_MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123; public static final int GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124; public static final int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143; public static final int GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144; public static final int GL_DEBUG_LOGGED_MESSAGES = 0x9145; public static final int GL_DEBUG_SEVERITY_HIGH = 0x9146; public static final int GL_DEBUG_SEVERITY_MEDIUM = 0x9147; public static final int GL_DEBUG_SEVERITY_LOW = 0x9148; public static final int GL_TEXTURE_BUFFER_OFFSET = 0x919D; public static final int GL_TEXTURE_BUFFER_SIZE = 0x919E; public static final int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F; public static final int GL_MULTIPLY = 0x9294; public static final int GL_SCREEN = 0x9295; public static final int GL_OVERLAY = 0x9296; public static final int GL_DARKEN = 0x9297; public static final int GL_LIGHTEN = 0x9298; public static final int GL_COLORDODGE = 0x9299; public static final int GL_COLORBURN = 0x929A; public static final int GL_HARDLIGHT = 0x929B; public static final int GL_SOFTLIGHT = 0x929C; public static final int GL_DIFFERENCE = 0x929E; public static final int GL_EXCLUSION = 0x92A0; public static final int GL_HSL_HUE = 0x92AD; public static final int GL_HSL_SATURATION = 0x92AE; public static final int GL_HSL_COLOR = 0x92AF; public static final int GL_HSL_LUMINOSITY = 0x92B0; public static final int GL_PRIMITIVE_BOUNDING_BOX = 0x92BE; public static final int GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD; public static final int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE; public static final int GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF; public static final int GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3; public static final int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4; public static final int GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5; public static final int GL_DEBUG_OUTPUT = 0x92E0; public static final int GL_IS_PER_PATCH = 0x92E7; public static final int GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307; public static final int GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308; public static final int GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309; public static final int GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312; public static final int GL_MAX_FRAMEBUFFER_LAYERS = 0x9317; public static final int GL_MULTISAMPLE_LINE_WIDTH_RANGE = 0x9381; public static final int GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY = 0x9382; public static final int GL_COMPRESSED_RGBA_ASTC_4x4 = 0x93B0; public static final int GL_COMPRESSED_RGBA_ASTC_5x4 = 0x93B1; public static final int GL_COMPRESSED_RGBA_ASTC_5x5 = 0x93B2; public static final int GL_COMPRESSED_RGBA_ASTC_6x5 = 0x93B3; public static final int GL_COMPRESSED_RGBA_ASTC_6x6 = 0x93B4; public static final int GL_COMPRESSED_RGBA_ASTC_8x5 = 0x93B5; public static final int GL_COMPRESSED_RGBA_ASTC_8x6 = 0x93B6; public static final int GL_COMPRESSED_RGBA_ASTC_8x8 = 0x93B7; public static final int GL_COMPRESSED_RGBA_ASTC_10x5 = 0x93B8; public static final int GL_COMPRESSED_RGBA_ASTC_10x6 = 0x93B9; public static final int GL_COMPRESSED_RGBA_ASTC_10x8 = 0x93BA; public static final int GL_COMPRESSED_RGBA_ASTC_10x10 = 0x93BB; public static final int GL_COMPRESSED_RGBA_ASTC_12x10 = 0x93BC; public static final int GL_COMPRESSED_RGBA_ASTC_12x12 = 0x93BD; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4 = 0x93D0; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4 = 0x93D1; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5 = 0x93D2; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5 = 0x93D3; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6 = 0x93D4; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5 = 0x93D5; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6 = 0x93D6; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8 = 0x93D7; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5 = 0x93D8; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6 = 0x93D9; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8 = 0x93DA; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10 = 0x93DB; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10 = 0x93DC; public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12 = 0x93DD; // C function void glBlendBarrier ( void ) void glBlendBarrier (); // C function void glCopyImageSubData ( GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, // GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, // GLsizei srcDepth ) void glCopyImageSubData (int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth); // C function void glDebugMessageControl ( GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, // GLboolean enabled ) // void glDebugMessageControl( // int source, // int type, // int severity, // int count, // int[] ids, // int offset, // boolean enabled // ); // C function void glDebugMessageControl ( GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, // GLboolean enabled ) void glDebugMessageControl (int source, int type, int severity, // int count, java.nio.IntBuffer ids, boolean enabled); // C function void glDebugMessageInsert ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar // *buf ) void glDebugMessageInsert (int source, int type, int id, int severity, // int length String buf); // C function void glDebugMessageCallback ( GLDEBUGPROC callback, const void *userParam ) public interface DebugProc { void onMessage (int source, int type, int id, int severity, String message); } void glDebugMessageCallback (DebugProc callback); // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum // *severities, GLsizei *lengths, GLchar *messageLog ) // int glGetDebugMessageLog( // int count, // int bufSize, // int[] sources, // int sourcesOffset, // int[] types, // int typesOffset, // int[] ids, // int idsOffset, // int[] severities, // int severitiesOffset, // int[] lengths, // int lengthsOffset, // byte[] messageLog, // int messageLogOffset); // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum // *severities, GLsizei *lengths, GLchar *messageLog ) int glGetDebugMessageLog (int count, java.nio.IntBuffer sources, java.nio.IntBuffer types, java.nio.IntBuffer ids, java.nio.IntBuffer severities, java.nio.IntBuffer lengths, java.nio.ByteBuffer messageLog); // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum // *severities, GLsizei *lengths, GLchar *messageLog ) // String[] glGetDebugMessageLog( // int count, // int[] sources, // int sourcesOffset, // int[] types, // int typesOffset, // int[] ids, // int idsOffset, // int[] severities, // int severitiesOffset); // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum // *severities, GLsizei *lengths, GLchar *messageLog ) // String[] glGetDebugMessageLog( // int count, // java.nio.IntBuffer sources, // java.nio.IntBuffer types, // java.nio.IntBuffer ids, // java.nio.IntBuffer severities); // C function void glPushDebugGroup ( GLenum source, GLuint id, GLsizei length, const GLchar *message ) void glPushDebugGroup (int source, int id, // int length, String message); // C function void glPopDebugGroup ( void ) void glPopDebugGroup (); // C function void glObjectLabel ( GLenum identifier, GLuint name, GLsizei length, const GLchar *label ) void glObjectLabel (int identifier, int name, // int length, String label); // C function void glGetObjectLabel ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label ) String glGetObjectLabel (int identifier, int name); // C function void glObjectPtrLabel ( const void *ptr, GLsizei length, const GLchar *label ) // void glObjectPtrLabel (long ptr, String label); // C function void glGetObjectPtrLabel ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label ) // String glGetObjectPtrLabel (long ptr); // C function void glGetPointerv ( GLenum pname, void **params ) long glGetPointerv (int pname); // C function void glEnablei ( GLenum target, GLuint index ) void glEnablei (int target, int index); // C function void glDisablei ( GLenum target, GLuint index ) void glDisablei (int target, int index); // C function void glBlendEquationi ( GLuint buf, GLenum mode ) void glBlendEquationi (int buf, int mode); // C function void glBlendEquationSeparatei ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) void glBlendEquationSeparatei (int buf, int modeRGB, int modeAlpha); // C function void glBlendFunci ( GLuint buf, GLenum src, GLenum dst ) void glBlendFunci (int buf, int src, int dst); // C function void glBlendFuncSeparatei ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha ) void glBlendFuncSeparatei (int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); // C function void glColorMaski ( GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a ) void glColorMaski (int index, boolean r, boolean g, boolean b, boolean a); // C function GLboolean glIsEnabledi ( GLenum target, GLuint index ) boolean glIsEnabledi (int target, int index); // C function void glDrawElementsBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex ) void glDrawElementsBaseVertex (int mode, int count, int type, java.nio.Buffer indices, int basevertex); // C function void glDrawRangeElementsBaseVertex ( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const // void *indices, GLint basevertex ) void glDrawRangeElementsBaseVertex (int mode, int start, int end, int count, int type, java.nio.Buffer indices, int basevertex); // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei // instanceCount, GLint basevertex ) void glDrawElementsInstancedBaseVertex (int mode, int count, int type, java.nio.Buffer indices, int instanceCount, int basevertex); // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei // instanceCount, GLint basevertex ) void glDrawElementsInstancedBaseVertex (int mode, int count, int type, int indicesOffset, int instanceCount, int basevertex); // C function void glFramebufferTexture ( GLenum target, GLenum attachment, GLuint texture, GLint level ) void glFramebufferTexture (int target, int attachment, int texture, int level); // C function void glPrimitiveBoundingBox ( GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, // GLfloat maxZ, GLfloat maxW ) // void glPrimitiveBoundingBox( // float minX, // float minY, // float minZ, // float minW, // float maxX, // float maxY, // float maxZ, // float maxW // ); // C function GLenum glGetGraphicsResetStatus ( void ) int glGetGraphicsResetStatus (); // C function void glReadnPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei // bufSize, void *data ) void glReadnPixels (int x, int y, int width, int height, int format, int type, int bufSize, java.nio.Buffer data); // C function void glGetnUniformfv ( GLuint program, GLint location, GLsizei bufSize, GLfloat *params ) // void glGetnUniformfv( // int program, // int location, // int bufSize, // float[] params, // int offset // ); // C function void glGetnUniformfv ( GLuint program, GLint location, GLsizei bufSize, GLfloat *params ) void glGetnUniformfv (int program, int location, // int bufSize, java.nio.FloatBuffer params); // C function void glGetnUniformiv ( GLuint program, GLint location, GLsizei bufSize, GLint *params ) // void glGetnUniformiv( // int program, // int location, // int bufSize, // int[] params, // int offset // ); // C function void glGetnUniformiv ( GLuint program, GLint location, GLsizei bufSize, GLint *params ) void glGetnUniformiv (int program, int location, // int bufSize, java.nio.IntBuffer params); // C function void glGetnUniformuiv ( GLuint program, GLint location, GLsizei bufSize, GLuint *params ) // void glGetnUniformuiv( // int program, // int location, // int bufSize, // int[] params, // int offset // ); // C function void glGetnUniformuiv ( GLuint program, GLint location, GLsizei bufSize, GLuint *params ) void glGetnUniformuiv (int program, int location, // int bufSize, java.nio.IntBuffer params); // C function void glMinSampleShading ( GLfloat value ) void glMinSampleShading (float value); // C function void glPatchParameteri ( GLenum pname, GLint value ) void glPatchParameteri (int pname, int value); // C function void glTexParameterIiv ( GLenum target, GLenum pname, const GLint *params ) // void glTexParameterIiv( // int target, // int pname, // int[] params, // int offset // ); // C function void glTexParameterIiv ( GLenum target, GLenum pname, const GLint *params ) void glTexParameterIiv (int target, int pname, java.nio.IntBuffer params); // C function void glTexParameterIuiv ( GLenum target, GLenum pname, const GLuint *params ) // void glTexParameterIuiv( // int target, // int pname, // int[] params, // int offset // ); // C function void glTexParameterIuiv ( GLenum target, GLenum pname, const GLuint *params ) void glTexParameterIuiv (int target, int pname, java.nio.IntBuffer params); // C function void glGetTexParameterIiv ( GLenum target, GLenum pname, GLint *params ) // void glGetTexParameterIiv( // int target, // int pname, // int[] params, // int offset // ); // C function void glGetTexParameterIiv ( GLenum target, GLenum pname, GLint *params ) void glGetTexParameterIiv (int target, int pname, java.nio.IntBuffer params); // C function void glGetTexParameterIuiv ( GLenum target, GLenum pname, GLuint *params ) // void glGetTexParameterIuiv( // int target, // int pname, // int[] params, // int offset // ); // C function void glGetTexParameterIuiv ( GLenum target, GLenum pname, GLuint *params ) void glGetTexParameterIuiv (int target, int pname, java.nio.IntBuffer params); // C function void glSamplerParameterIiv ( GLuint sampler, GLenum pname, const GLint *param ) // void glSamplerParameterIiv( // int sampler, // int pname, // int[] param, // int offset // ); // C function void glSamplerParameterIiv ( GLuint sampler, GLenum pname, const GLint *param ) void glSamplerParameterIiv (int sampler, int pname, java.nio.IntBuffer param); // C function void glSamplerParameterIuiv ( GLuint sampler, GLenum pname, const GLuint *param ) // void glSamplerParameterIuiv( // int sampler, // int pname, // int[] param, // int offset // ); // C function void glSamplerParameterIuiv ( GLuint sampler, GLenum pname, const GLuint *param ) void glSamplerParameterIuiv (int sampler, int pname, java.nio.IntBuffer param); // C function void glGetSamplerParameterIiv ( GLuint sampler, GLenum pname, GLint *params ) // void glGetSamplerParameterIiv( // int sampler, // int pname, // int[] params, // int offset // ); // C function void glGetSamplerParameterIiv ( GLuint sampler, GLenum pname, GLint *params ) void glGetSamplerParameterIiv (int sampler, int pname, java.nio.IntBuffer params); // C function void glGetSamplerParameterIuiv ( GLuint sampler, GLenum pname, GLuint *params ) // void glGetSamplerParameterIuiv( // int sampler, // int pname, // int[] params, // int offset // ); // C function void glGetSamplerParameterIuiv ( GLuint sampler, GLenum pname, GLuint *params ) void glGetSamplerParameterIuiv (int sampler, int pname, java.nio.IntBuffer params); // C function void glTexBuffer ( GLenum target, GLenum internalformat, GLuint buffer ) void glTexBuffer (int target, int internalformat, int buffer); // C function void glTexBufferRange ( GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size ) void glTexBufferRange (int target, int internalformat, int buffer, int offset, int size); // C function void glTexStorage3DMultisample ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei // height, GLsizei depth, GLboolean fixedsamplelocations ) void glTexStorage3DMultisample (int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations); }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-setup/src/com/badlogic/gdx/setup/SettingsDialog.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.setup; import static java.awt.GridBagConstraints.BOTH; import static java.awt.GridBagConstraints.CENTER; import static java.awt.GridBagConstraints.HORIZONTAL; import static java.awt.GridBagConstraints.NONE; import static java.awt.GridBagConstraints.NORTH; import static java.awt.GridBagConstraints.SOUTH; import static java.awt.GridBagConstraints.SOUTHEAST; import static java.awt.GridBagConstraints.WEST; import java.awt.Color; import java.awt.Component; import java.awt.Cursor; import java.awt.Desktop; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; import javax.swing.BorderFactory; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JSeparator; import javax.swing.JTextField; import javax.swing.border.Border; import javax.swing.border.CompoundBorder; import javax.swing.border.EmptyBorder; import com.badlogic.gdx.setup.GdxSetupUI.SetupButton; import com.badlogic.gdx.setup.GdxSetupUI.SetupCheckBox; public class SettingsDialog extends JDialog { private JPanel contentPane; private SetupButton buttonOK; private SetupButton buttonCancel; private JLabel linkText; private JPanel content; private JPanel bottomPanel; private JPanel buttonPanel; private JTextField mavenTextField; SetupCheckBox offlineBox; SetupCheckBox kotlinBox; SetupCheckBox oldAssetsBox; private String mavenSnapshot; private boolean offlineSnapshot; private boolean kotlinSnapshot; private boolean oldAssetsSnapshot; public SettingsDialog (final SetupCheckBox gwtCheckBox) { contentPane = new JPanel(new GridBagLayout()); setContentPane(contentPane); setModal(true); getRootPane().setDefaultButton(buttonOK); uiLayout(gwtCheckBox); uiStyle(); buttonOK.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent e) { if (offlineBox.isSelected()) { int value = JOptionPane.showConfirmDialog(null, "You have selected offline mode. This requires you to have your dependencies already in your maven/gradle cache.\n\nThe setup will fail if you do not have the correct dependencies already.\n\nDo you want to continue?", "Warning!", JOptionPane.YES_NO_OPTION); if (value == 0) { onOK(); } } else { onOK(); } } }); buttonCancel.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { onCancel(); } }); linkText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); linkText.addMouseListener(new MouseAdapter() { public void mouseClicked (MouseEvent e) { if (e.getClickCount() > 0) { if (Desktop.isDesktopSupported()) { Desktop desktop = Desktop.getDesktop(); try { URI uri = new URI( "https://libgdx.com/wiki/articles/improving-workflow-with-gradle#how-to-remove-gradle-ide-integration-from-your-project"); desktop.browse(uri); } catch (IOException ex) { ex.printStackTrace(); } catch (URISyntaxException ex) { ex.printStackTrace(); } } } } }); setTitle("Advanced Settings"); setSize(600, 300); setLocationRelativeTo(null); } private void uiLayout (final SetupCheckBox gwtCheckBox) { content = new JPanel(new GridBagLayout()); content.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20)); bottomPanel = new JPanel(new GridBagLayout()); buttonPanel = new JPanel(new GridBagLayout()); buttonPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); buttonOK = new SetupButton("Save"); buttonCancel = new SetupButton("Cancel"); buttonPanel.add(buttonOK, new GridBagConstraints(0, 0, 1, 1, 0, 0, CENTER, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); buttonPanel.add(buttonCancel, new GridBagConstraints(1, 0, 1, 1, 0, 0, CENTER, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); contentPane.add(content, new GridBagConstraints(0, 0, 1, 1, 1, 1, NORTH, BOTH, new Insets(0, 0, 0, 0), 0, 0)); JLabel settings = new JLabel("Settings"); JLabel description = new JLabel("Description"); settings.setForeground(new Color(255, 255, 255)); description.setForeground(new Color(255, 255, 255)); settings.setHorizontalAlignment(JLabel.CENTER); description.setHorizontalAlignment(JLabel.CENTER); content.add(settings, new GridBagConstraints(0, 0, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(description, new GridBagConstraints(3, 0, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); JLabel mavenLabel = new JLabel("Maven Mirror URL"); JLabel mavenDesc = new JLabel("Replaces Maven Central with this repository"); mavenTextField = new JTextField(15); mavenTextField.setMinimumSize(mavenTextField.getPreferredSize()); mavenLabel.setForeground(new Color(170, 170, 170)); mavenDesc.setForeground(new Color(170, 170, 170)); JLabel offlineLabel = new JLabel("Offline Mode"); JLabel offlineDesc = new JLabel("Don't force download dependencies"); offlineBox = new SetupCheckBox(); offlineLabel.setForeground(new Color(170, 170, 170)); offlineDesc.setForeground(new Color(170, 170, 170)); offlineBox.setBackground(new Color(36, 36, 36)); JLabel kotlinLabel = new JLabel("Use Kotlin"); JLabel kotlinDesc = new JLabel("Use Kotlin as the main language"); kotlinBox = new SetupCheckBox(); kotlinBox.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { final String message = "Using Kotlin with the HTML backend is not supported. Do you want to disable the HTML backend?"; if (kotlinBox.isSelected() && gwtCheckBox.isSelected() && JOptionPane.showConfirmDialog(kotlinBox, message, "Warning!", JOptionPane.YES_NO_OPTION) == 0) { gwtCheckBox.setSelected(false); } else if (gwtCheckBox.isSelected()) { kotlinBox.setSelected(false); } } }); kotlinLabel.setForeground(new Color(170, 170, 170)); kotlinDesc.setForeground(new Color(170, 170, 170)); JLabel oldAssetsLabel = new JLabel("Legacy Assets Dir"); JLabel oldAssetsDesc = new JLabel("Store assets in the pre-1.11.0 location"); oldAssetsDesc.setToolTipText("(in android or core folder instead of project root)"); oldAssetsBox = new SetupCheckBox(); oldAssetsLabel.setForeground(new Color(170, 170, 170)); oldAssetsDesc.setForeground(new Color(170, 170, 170)); oldAssetsBox.setBackground(new Color(36, 36, 36)); JSeparator separator = new JSeparator(); separator.setForeground(new Color(85, 85, 85)); separator.setBackground(new Color(85, 85, 85)); content.add(separator, new GridBagConstraints(0, 1, 4, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(mavenLabel, new GridBagConstraints(0, 2, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(mavenTextField, new GridBagConstraints(1, 2, 2, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(mavenDesc, new GridBagConstraints(3, 2, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(offlineLabel, new GridBagConstraints(0, 3, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(offlineBox, new GridBagConstraints(1, 3, 2, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(offlineDesc, new GridBagConstraints(3, 3, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(kotlinLabel, new GridBagConstraints(0, 4, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(kotlinBox, new GridBagConstraints(1, 4, 2, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(kotlinDesc, new GridBagConstraints(3, 4, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(oldAssetsLabel, new GridBagConstraints(0, 5, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(oldAssetsBox, new GridBagConstraints(1, 5, 2, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(oldAssetsDesc, new GridBagConstraints(3, 5, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); String text = "<p style=\"font-size:10\">Click for more info on using Gradle without IDE integration</p>"; linkText = new JLabel("<html>" + text + "</html>"); bottomPanel.add(linkText, new GridBagConstraints(0, 0, 1, 1, 1, 1, WEST, NONE, new Insets(0, 10, 0, 0), 0, 0)); bottomPanel.add(buttonPanel, new GridBagConstraints(3, 0, 1, 1, 1, 1, SOUTHEAST, NONE, new Insets(0, 0, 0, 0), 0, 0)); contentPane.add(bottomPanel, new GridBagConstraints(0, 1, 4, 1, 1, 1, SOUTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); } private void uiStyle () { content.setBackground(new Color(36, 36, 36)); content.setForeground(new Color(255, 255, 255)); bottomPanel.setBackground(new Color(36, 36, 36)); bottomPanel.setForeground(new Color(255, 255, 255)); buttonPanel.setBackground(new Color(36, 36, 36)); buttonPanel.setForeground(new Color(255, 255, 255)); linkText.setForeground(new Color(20, 150, 20)); contentPane.setBackground(new Color(36, 36, 36)); Border line = BorderFactory.createLineBorder(new Color(80, 80, 80)); Border empty = new EmptyBorder(4, 4, 4, 4); CompoundBorder border = new CompoundBorder(line, empty); mavenTextField.setBorder(border); mavenTextField.setCaretColor(new Color(255, 255, 255)); mavenTextField.setBackground(new Color(46, 46, 46)); mavenTextField.setForeground(new Color(255, 255, 255)); } public void showDialog (Component parent, SetupCheckBox gwtCheckBox) { takeSnapshot(); setLocationRelativeTo(parent); setAlwaysOnTop(true); setVisible(true); if (gwtCheckBox.isSelected()) { kotlinBox.setSelected(false); kotlinSnapshot = false; } } public List<String> getGradleArgs () { List<String> list = new ArrayList<String>(); list.add("--no-daemon"); if (offlineBox.isSelected()) { list.add("--offline"); } return list; } void onOK () { if (mavenTextField.getText().isEmpty()) { DependencyBank.mavenCentral = "mavenCentral()"; } else { DependencyBank.mavenCentral = "maven { url \"" + mavenTextField.getText() + "\" }"; } setVisible(false); } void onCancel () { setVisible(false); restore(); } private void takeSnapshot () { mavenSnapshot = mavenTextField.getText(); offlineSnapshot = offlineBox.isSelected(); kotlinSnapshot = kotlinBox.isSelected(); oldAssetsSnapshot = oldAssetsBox.isSelected(); } private void restore () { mavenTextField.setText(mavenSnapshot); offlineBox.setSelected(offlineSnapshot); kotlinBox.setSelected(kotlinSnapshot); oldAssetsBox.setSelected(oldAssetsSnapshot); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.setup; import static java.awt.GridBagConstraints.BOTH; import static java.awt.GridBagConstraints.CENTER; import static java.awt.GridBagConstraints.HORIZONTAL; import static java.awt.GridBagConstraints.NONE; import static java.awt.GridBagConstraints.NORTH; import static java.awt.GridBagConstraints.SOUTH; import static java.awt.GridBagConstraints.SOUTHEAST; import static java.awt.GridBagConstraints.WEST; import java.awt.Color; import java.awt.Component; import java.awt.Cursor; import java.awt.Desktop; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; import javax.swing.BorderFactory; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JSeparator; import javax.swing.JTextField; import javax.swing.border.Border; import javax.swing.border.CompoundBorder; import javax.swing.border.EmptyBorder; import com.badlogic.gdx.setup.GdxSetupUI.SetupButton; import com.badlogic.gdx.setup.GdxSetupUI.SetupCheckBox; public class SettingsDialog extends JDialog { private JPanel contentPane; private SetupButton buttonOK; private SetupButton buttonCancel; private JLabel linkText; private JPanel content; private JPanel bottomPanel; private JPanel buttonPanel; private JTextField mavenTextField; SetupCheckBox offlineBox; SetupCheckBox kotlinBox; SetupCheckBox oldAssetsBox; private String mavenSnapshot; private boolean offlineSnapshot; private boolean kotlinSnapshot; private boolean oldAssetsSnapshot; public SettingsDialog (final SetupCheckBox gwtCheckBox) { contentPane = new JPanel(new GridBagLayout()); setContentPane(contentPane); setModal(true); getRootPane().setDefaultButton(buttonOK); uiLayout(gwtCheckBox); uiStyle(); buttonOK.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent e) { if (offlineBox.isSelected()) { int value = JOptionPane.showConfirmDialog(null, "You have selected offline mode. This requires you to have your dependencies already in your maven/gradle cache.\n\nThe setup will fail if you do not have the correct dependencies already.\n\nDo you want to continue?", "Warning!", JOptionPane.YES_NO_OPTION); if (value == 0) { onOK(); } } else { onOK(); } } }); buttonCancel.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { onCancel(); } }); linkText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); linkText.addMouseListener(new MouseAdapter() { public void mouseClicked (MouseEvent e) { if (e.getClickCount() > 0) { if (Desktop.isDesktopSupported()) { Desktop desktop = Desktop.getDesktop(); try { URI uri = new URI( "https://libgdx.com/wiki/articles/improving-workflow-with-gradle#how-to-remove-gradle-ide-integration-from-your-project"); desktop.browse(uri); } catch (IOException ex) { ex.printStackTrace(); } catch (URISyntaxException ex) { ex.printStackTrace(); } } } } }); setTitle("Advanced Settings"); setSize(600, 300); setLocationRelativeTo(null); } private void uiLayout (final SetupCheckBox gwtCheckBox) { content = new JPanel(new GridBagLayout()); content.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20)); bottomPanel = new JPanel(new GridBagLayout()); buttonPanel = new JPanel(new GridBagLayout()); buttonPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); buttonOK = new SetupButton("Save"); buttonCancel = new SetupButton("Cancel"); buttonPanel.add(buttonOK, new GridBagConstraints(0, 0, 1, 1, 0, 0, CENTER, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); buttonPanel.add(buttonCancel, new GridBagConstraints(1, 0, 1, 1, 0, 0, CENTER, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); contentPane.add(content, new GridBagConstraints(0, 0, 1, 1, 1, 1, NORTH, BOTH, new Insets(0, 0, 0, 0), 0, 0)); JLabel settings = new JLabel("Settings"); JLabel description = new JLabel("Description"); settings.setForeground(new Color(255, 255, 255)); description.setForeground(new Color(255, 255, 255)); settings.setHorizontalAlignment(JLabel.CENTER); description.setHorizontalAlignment(JLabel.CENTER); content.add(settings, new GridBagConstraints(0, 0, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(description, new GridBagConstraints(3, 0, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); JLabel mavenLabel = new JLabel("Maven Mirror URL"); JLabel mavenDesc = new JLabel("Replaces Maven Central with this repository"); mavenTextField = new JTextField(15); mavenTextField.setMinimumSize(mavenTextField.getPreferredSize()); mavenLabel.setForeground(new Color(170, 170, 170)); mavenDesc.setForeground(new Color(170, 170, 170)); JLabel offlineLabel = new JLabel("Offline Mode"); JLabel offlineDesc = new JLabel("Don't force download dependencies"); offlineBox = new SetupCheckBox(); offlineLabel.setForeground(new Color(170, 170, 170)); offlineDesc.setForeground(new Color(170, 170, 170)); offlineBox.setBackground(new Color(36, 36, 36)); JLabel kotlinLabel = new JLabel("Use Kotlin"); JLabel kotlinDesc = new JLabel("Use Kotlin as the main language"); kotlinBox = new SetupCheckBox(); kotlinBox.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { final String message = "Using Kotlin with the HTML backend is not supported. Do you want to disable the HTML backend?"; if (kotlinBox.isSelected() && gwtCheckBox.isSelected() && JOptionPane.showConfirmDialog(kotlinBox, message, "Warning!", JOptionPane.YES_NO_OPTION) == 0) { gwtCheckBox.setSelected(false); } else if (gwtCheckBox.isSelected()) { kotlinBox.setSelected(false); } } }); kotlinLabel.setForeground(new Color(170, 170, 170)); kotlinDesc.setForeground(new Color(170, 170, 170)); JLabel oldAssetsLabel = new JLabel("Legacy Assets Dir"); JLabel oldAssetsDesc = new JLabel("Store assets in the pre-1.11.0 location"); oldAssetsDesc.setToolTipText("(in android or core folder instead of project root)"); oldAssetsBox = new SetupCheckBox(); oldAssetsLabel.setForeground(new Color(170, 170, 170)); oldAssetsDesc.setForeground(new Color(170, 170, 170)); oldAssetsBox.setBackground(new Color(36, 36, 36)); JSeparator separator = new JSeparator(); separator.setForeground(new Color(85, 85, 85)); separator.setBackground(new Color(85, 85, 85)); content.add(separator, new GridBagConstraints(0, 1, 4, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(mavenLabel, new GridBagConstraints(0, 2, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(mavenTextField, new GridBagConstraints(1, 2, 2, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(mavenDesc, new GridBagConstraints(3, 2, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(offlineLabel, new GridBagConstraints(0, 3, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(offlineBox, new GridBagConstraints(1, 3, 2, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(offlineDesc, new GridBagConstraints(3, 3, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(kotlinLabel, new GridBagConstraints(0, 4, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(kotlinBox, new GridBagConstraints(1, 4, 2, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(kotlinDesc, new GridBagConstraints(3, 4, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(oldAssetsLabel, new GridBagConstraints(0, 5, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); content.add(oldAssetsBox, new GridBagConstraints(1, 5, 2, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); content.add(oldAssetsDesc, new GridBagConstraints(3, 5, 1, 1, 1, 1, NORTH, HORIZONTAL, new Insets(0, 15, 0, 0), 0, 0)); String text = "<p style=\"font-size:10\">Click for more info on using Gradle without IDE integration</p>"; linkText = new JLabel("<html>" + text + "</html>"); bottomPanel.add(linkText, new GridBagConstraints(0, 0, 1, 1, 1, 1, WEST, NONE, new Insets(0, 10, 0, 0), 0, 0)); bottomPanel.add(buttonPanel, new GridBagConstraints(3, 0, 1, 1, 1, 1, SOUTHEAST, NONE, new Insets(0, 0, 0, 0), 0, 0)); contentPane.add(bottomPanel, new GridBagConstraints(0, 1, 4, 1, 1, 1, SOUTH, HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); } private void uiStyle () { content.setBackground(new Color(36, 36, 36)); content.setForeground(new Color(255, 255, 255)); bottomPanel.setBackground(new Color(36, 36, 36)); bottomPanel.setForeground(new Color(255, 255, 255)); buttonPanel.setBackground(new Color(36, 36, 36)); buttonPanel.setForeground(new Color(255, 255, 255)); linkText.setForeground(new Color(20, 150, 20)); contentPane.setBackground(new Color(36, 36, 36)); Border line = BorderFactory.createLineBorder(new Color(80, 80, 80)); Border empty = new EmptyBorder(4, 4, 4, 4); CompoundBorder border = new CompoundBorder(line, empty); mavenTextField.setBorder(border); mavenTextField.setCaretColor(new Color(255, 255, 255)); mavenTextField.setBackground(new Color(46, 46, 46)); mavenTextField.setForeground(new Color(255, 255, 255)); } public void showDialog (Component parent, SetupCheckBox gwtCheckBox) { takeSnapshot(); setLocationRelativeTo(parent); setAlwaysOnTop(true); setVisible(true); if (gwtCheckBox.isSelected()) { kotlinBox.setSelected(false); kotlinSnapshot = false; } } public List<String> getGradleArgs () { List<String> list = new ArrayList<String>(); list.add("--no-daemon"); if (offlineBox.isSelected()) { list.add("--offline"); } return list; } void onOK () { if (mavenTextField.getText().isEmpty()) { DependencyBank.mavenCentral = "mavenCentral()"; } else { DependencyBank.mavenCentral = "maven { url \"" + mavenTextField.getText() + "\" }"; } setVisible(false); } void onCancel () { setVisible(false); restore(); } private void takeSnapshot () { mavenSnapshot = mavenTextField.getText(); offlineSnapshot = offlineBox.isSelected(); kotlinSnapshot = kotlinBox.isSelected(); oldAssetsSnapshot = oldAssetsBox.isSelected(); } private void restore () { mavenTextField.setText(mavenSnapshot); offlineBox.setSelected(offlineSnapshot); kotlinBox.setSelected(kotlinSnapshot); oldAssetsBox.setSelected(oldAssetsSnapshot); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/BaseShadowSystem.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.g3d.shadows.system; import java.util.EnumSet; import java.util.Set; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Camera; import com.badlogic.gdx.graphics.Cubemap; import com.badlogic.gdx.graphics.Cubemap.CubemapSide; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.graphics.g3d.RenderableProvider; import com.badlogic.gdx.graphics.g3d.environment.BaseLight; import com.badlogic.gdx.graphics.g3d.environment.DirectionalLight; import com.badlogic.gdx.graphics.g3d.environment.PointLight; import com.badlogic.gdx.graphics.g3d.environment.SpotLight; import com.badlogic.gdx.graphics.g3d.utils.ShaderProvider; import com.badlogic.gdx.graphics.glutils.FrameBuffer; import com.badlogic.gdx.tests.g3d.shadows.utils.AABBNearFarAnalyzer; import com.badlogic.gdx.tests.g3d.shadows.utils.BoundingSphereDirectionalAnalyzer; import com.badlogic.gdx.tests.g3d.shadows.utils.DirectionalAnalyzer; import com.badlogic.gdx.tests.g3d.shadows.utils.FixedShadowMapAllocator; import com.badlogic.gdx.tests.g3d.shadows.utils.FrustumLightFilter; import com.badlogic.gdx.tests.g3d.shadows.utils.LightFilter; import com.badlogic.gdx.tests.g3d.shadows.utils.NearFarAnalyzer; import com.badlogic.gdx.tests.g3d.shadows.utils.ShadowMapAllocator; import com.badlogic.gdx.tests.g3d.shadows.utils.ShadowMapAllocator.ShadowMapRegion; import com.badlogic.gdx.utils.Disposable; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ObjectMap; import com.badlogic.gdx.utils.ObjectMap.Entries; /** BaseShadowSystem allows to easily create custom shadow system. * @author realitix */ public abstract class BaseShadowSystem implements ShadowSystem, Disposable { /** This class handles camera and texture region. * @author realitix */ public static class LightProperties { public Camera camera; public TextureRegion region = new TextureRegion(); public LightProperties (Camera camera) { this.camera = camera; } } /** This class handles LightProperties for each side of PointLight. * @author realitix */ public static class PointLightProperties { public ObjectMap<CubemapSide, LightProperties> properties = new ObjectMap<CubemapSide, LightProperties>(6); } /** Main camera */ protected Camera camera; /** Renderable providers */ protected Iterable<RenderableProvider> renderableProviders; /** Cameras linked with spot lights */ protected ObjectMap<SpotLight, LightProperties> spotCameras = new ObjectMap<SpotLight, LightProperties>(); /** Cameras linked with directional lights */ protected ObjectMap<DirectionalLight, LightProperties> dirCameras = new ObjectMap<DirectionalLight, LightProperties>(); /** Cameras linked with point lights */ protected ObjectMap<PointLight, PointLightProperties> pointCameras = new ObjectMap<PointLight, PointLightProperties>(); /** Analyzer of near and far for spot and point lights */ protected NearFarAnalyzer nearFarAnalyzer; /** Allocator which choose where to render shadow map in texture */ protected ShadowMapAllocator allocator; /** Analyzer which compute how to create the camera for directional light */ protected DirectionalAnalyzer directionalAnalyzer; /** Filter that choose if light must be rendered */ protected LightFilter lightFilter; /** Framebuffer used to render all the depth maps */ protected FrameBuffer[] frameBuffers; /** Current pass in the depth process */ protected int currentPass = -1; /** Iterators for cameras */ protected Entries<SpotLight, LightProperties> spotCameraIterator; protected Entries<DirectionalLight, LightProperties> dirCameraIterator; protected Entries<PointLight, PointLightProperties> pointCameraIterator; /** Current side in the point light cubemap */ protected int currentPointSide; protected PointLightProperties currentPointProperties; /** Shader providers used by this system */ protected ShaderProvider[] passShaderProviders; protected ShaderProvider mainShaderProvider; /** Current light and properties during shadowmap generation */ protected LightProperties currentLightProperties; protected BaseLight currentLight; /** Construct the system with the needed params. * @param nearFarAnalyzer Analyzer of near and far * @param allocator Allocator of shadow maps * @param directionalAnalyzer Analyze directional light to create orthographic camera * @param lightFilter Filter light to render */ public BaseShadowSystem (NearFarAnalyzer nearFarAnalyzer, ShadowMapAllocator allocator, DirectionalAnalyzer directionalAnalyzer, LightFilter lightFilter) { this.nearFarAnalyzer = nearFarAnalyzer; this.allocator = allocator; this.directionalAnalyzer = directionalAnalyzer; this.lightFilter = lightFilter; } /** Construct the system with default values */ public BaseShadowSystem () { this(new AABBNearFarAnalyzer(), new FixedShadowMapAllocator(FixedShadowMapAllocator.QUALITY_MED, FixedShadowMapAllocator.QUANTITY_MAP_MED), new BoundingSphereDirectionalAnalyzer(), new FrustumLightFilter()); } /** Initialize framebuffers and shader providers. You should call super.init() in subclass. */ @Override public void init () { frameBuffers = new FrameBuffer[getPassQuantity()]; passShaderProviders = new ShaderProvider[getPassQuantity()]; for (int i = 0; i < getPassQuantity(); i++) { init(i); } }; /** Initialize pass n */ protected abstract void init (int n); /** getPassQuantity should return at leat one. */ @Override public abstract int getPassQuantity (); @Override public ShaderProvider getPassShaderProvider (int n) { return passShaderProviders[n]; } @Override public ShaderProvider getShaderProvider () { return mainShaderProvider; } @Override public void addLight (SpotLight spot) { PerspectiveCamera camera = new PerspectiveCamera(spot.cutoffAngle, 0, 0); camera.position.set(spot.position); camera.direction.set(spot.direction); camera.near = 1; camera.far = 100; camera.up.set(camera.direction.y, camera.direction.z, camera.direction.x); spotCameras.put(spot, new LightProperties(camera)); } @Override public void addLight (DirectionalLight dir) { OrthographicCamera camera = new OrthographicCamera(); camera.direction.set(dir.direction); camera.near = 1; camera.far = 100; dirCameras.put(dir, new LightProperties(camera)); } @Override public void addLight (PointLight point) { addLight(point, EnumSet.of(CubemapSide.PositiveX, CubemapSide.NegativeX, CubemapSide.PositiveY, CubemapSide.NegativeY, CubemapSide.PositiveZ, CubemapSide.NegativeZ)); } @Override public void addLight (PointLight point, Set<CubemapSide> sides) { PointLightProperties plProperty = new PointLightProperties(); for (int i = 0; i < 6; i++) { CubemapSide cubemapSide = Cubemap.CubemapSide.values()[i]; if (sides.contains(cubemapSide)) { PerspectiveCamera camera = new PerspectiveCamera(90, 0, 0); camera.position.set(point.position); camera.direction.set(cubemapSide.direction); camera.up.set(cubemapSide.up); camera.near = 1; camera.far = 100; LightProperties p = new LightProperties(camera); plProperty.properties.put(cubemapSide, p); } } pointCameras.put(point, plProperty); } @Override public void removeLight (SpotLight spot) { spotCameras.remove(spot); } @Override public void removeLight (DirectionalLight dir) { dirCameras.remove(dir); } @Override public void removeLight (PointLight point) { pointCameras.remove(point); } @Override public boolean hasLight (SpotLight spot) { if (spotCameras.containsKey(spot)) return true; return false; } @Override public boolean hasLight (DirectionalLight dir) { if (dirCameras.containsKey(dir)) return true; return false; } @Override public boolean hasLight (PointLight point) { if (pointCameras.containsKey(point)) return true; return false; } @Override public void update () { for (ObjectMap.Entry<SpotLight, LightProperties> e : spotCameras) { e.value.camera.position.set(e.key.position); e.value.camera.direction.set(e.key.direction); nearFarAnalyzer.analyze(e.key, e.value.camera, renderableProviders); } for (ObjectMap.Entry<DirectionalLight, LightProperties> e : dirCameras) { directionalAnalyzer.analyze(e.key, e.value.camera, camera).update(); } for (ObjectMap.Entry<PointLight, PointLightProperties> e : pointCameras) { for (ObjectMap.Entry<CubemapSide, LightProperties> c : e.value.properties) { c.value.camera.position.set(e.key.position); nearFarAnalyzer.analyze(e.key, c.value.camera, renderableProviders); } } } @Override public <T extends RenderableProvider> void begin (Camera camera, final Iterable<T> renderableProviders) { if (this.renderableProviders != null || this.camera != null) throw new GdxRuntimeException("Call end() first."); this.camera = camera; this.renderableProviders = (Iterable<RenderableProvider>)renderableProviders; } @Override public void begin (int n) { if (n >= passShaderProviders.length) throw new GdxRuntimeException("Pass " + n + " doesn't exist in " + getClass().getName()); currentPass = n; spotCameraIterator = spotCameras.iterator(); dirCameraIterator = dirCameras.iterator(); pointCameraIterator = pointCameras.iterator(); currentPointSide = 6; beginPass(n); } /** Begin pass n. * @param n Pass number */ protected void beginPass (int n) { frameBuffers[n].begin(); }; @Override public void end () { this.camera = null; this.renderableProviders = null; currentPass = -1; } @Override public void end (int n) { if (currentPass != n) throw new GdxRuntimeException("Begin " + n + " must be called before end " + n); endPass(n); } /** End pass n. * @param n Pass number */ protected void endPass (int n) { frameBuffers[n].end(); } @Override public Camera next () { LightProperties lp = nextDirectional(); if (lp != null) return interceptCamera(lp); lp = nextSpot(); if (lp != null) return interceptCamera(lp); lp = nextPoint(); if (lp != null) return interceptCamera(lp); return null; } /** Allows to return custom camera if needed. * @param lp Returned LightProperties * @return Camera */ protected Camera interceptCamera (LightProperties lp) { return lp.camera; } protected LightProperties nextDirectional () { if (!dirCameraIterator.hasNext()) return null; ObjectMap.Entry<DirectionalLight, LightProperties> e = dirCameraIterator.next(); currentLight = e.key; currentLightProperties = e.value; LightProperties lp = e.value; processViewport(lp, false); return lp; } protected LightProperties nextSpot () { if (!spotCameraIterator.hasNext()) return null; ObjectMap.Entry<SpotLight, LightProperties> e = spotCameraIterator.next(); currentLight = e.key; currentLightProperties = e.value; LightProperties lp = e.value; if (!lightFilter.filter(spotCameras.findKey(lp, true), lp.camera, this.camera)) { return nextSpot(); } processViewport(lp, true); return lp; } protected LightProperties nextPoint () { if (!pointCameraIterator.hasNext() && currentPointSide > 5) return null; if (currentPointSide > 5) currentPointSide = 0; if (currentPointSide == 0) { ObjectMap.Entry<PointLight, PointLightProperties> e = pointCameraIterator.next(); currentLight = e.key; currentPointProperties = e.value; } if (currentPointProperties.properties.containsKey(Cubemap.CubemapSide.values()[currentPointSide])) { LightProperties lp = currentPointProperties.properties.get(Cubemap.CubemapSide.values()[currentPointSide]); currentLightProperties = lp; currentPointSide += 1; if (!lightFilter.filter(pointCameras.findKey(currentPointProperties, true), lp.camera, this.camera)) { return nextPoint(); } processViewport(lp, true); return lp; } currentPointSide += 1; return nextPoint(); } /** Set viewport according to allocator. * @param lp LightProperties to process. * @param cameraViewport Set camera viewport if true. */ protected void processViewport (LightProperties lp, boolean cameraViewport) { Camera camera = lp.camera; ShadowMapRegion r = allocator.nextResult(currentLight); if (r == null) return; TextureRegion region = lp.region; region.setTexture(frameBuffers[currentPass].getColorBufferTexture()); // We don't use HdpiUtils // gl commands related to shadow map size and not to screen size Gdx.gl.glViewport(r.x, r.y, r.width, r.height); Gdx.gl.glScissor(r.x + 1, r.y + 1, r.width - 2, r.height - 2); region.setRegion(r.x, r.y, r.width, r.height); if (cameraViewport) { camera.viewportHeight = r.height; camera.viewportWidth = r.width; camera.update(); } } public ObjectMap<DirectionalLight, LightProperties> getDirectionalCameras () { return dirCameras; } public ObjectMap<SpotLight, LightProperties> getSpotCameras () { return spotCameras; } public ObjectMap<PointLight, PointLightProperties> getPointCameras () { return pointCameras; } public Texture getTexture (int n) { if (n >= getPassQuantity()) throw new GdxRuntimeException("Can't get texture " + n); return frameBuffers[n].getColorBufferTexture(); } public LightProperties getCurrentLightProperties () { return currentLightProperties; } public BaseLight getCurrentLight () { return currentLight; } public int getCurrentPass () { return currentPass; } @Override public void dispose () { for (int i = 0; i < getPassQuantity(); i++) { frameBuffers[i].dispose(); passShaderProviders[i].dispose(); } mainShaderProvider.dispose(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.g3d.shadows.system; import java.util.EnumSet; import java.util.Set; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Camera; import com.badlogic.gdx.graphics.Cubemap; import com.badlogic.gdx.graphics.Cubemap.CubemapSide; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.graphics.g3d.RenderableProvider; import com.badlogic.gdx.graphics.g3d.environment.BaseLight; import com.badlogic.gdx.graphics.g3d.environment.DirectionalLight; import com.badlogic.gdx.graphics.g3d.environment.PointLight; import com.badlogic.gdx.graphics.g3d.environment.SpotLight; import com.badlogic.gdx.graphics.g3d.utils.ShaderProvider; import com.badlogic.gdx.graphics.glutils.FrameBuffer; import com.badlogic.gdx.tests.g3d.shadows.utils.AABBNearFarAnalyzer; import com.badlogic.gdx.tests.g3d.shadows.utils.BoundingSphereDirectionalAnalyzer; import com.badlogic.gdx.tests.g3d.shadows.utils.DirectionalAnalyzer; import com.badlogic.gdx.tests.g3d.shadows.utils.FixedShadowMapAllocator; import com.badlogic.gdx.tests.g3d.shadows.utils.FrustumLightFilter; import com.badlogic.gdx.tests.g3d.shadows.utils.LightFilter; import com.badlogic.gdx.tests.g3d.shadows.utils.NearFarAnalyzer; import com.badlogic.gdx.tests.g3d.shadows.utils.ShadowMapAllocator; import com.badlogic.gdx.tests.g3d.shadows.utils.ShadowMapAllocator.ShadowMapRegion; import com.badlogic.gdx.utils.Disposable; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ObjectMap; import com.badlogic.gdx.utils.ObjectMap.Entries; /** BaseShadowSystem allows to easily create custom shadow system. * @author realitix */ public abstract class BaseShadowSystem implements ShadowSystem, Disposable { /** This class handles camera and texture region. * @author realitix */ public static class LightProperties { public Camera camera; public TextureRegion region = new TextureRegion(); public LightProperties (Camera camera) { this.camera = camera; } } /** This class handles LightProperties for each side of PointLight. * @author realitix */ public static class PointLightProperties { public ObjectMap<CubemapSide, LightProperties> properties = new ObjectMap<CubemapSide, LightProperties>(6); } /** Main camera */ protected Camera camera; /** Renderable providers */ protected Iterable<RenderableProvider> renderableProviders; /** Cameras linked with spot lights */ protected ObjectMap<SpotLight, LightProperties> spotCameras = new ObjectMap<SpotLight, LightProperties>(); /** Cameras linked with directional lights */ protected ObjectMap<DirectionalLight, LightProperties> dirCameras = new ObjectMap<DirectionalLight, LightProperties>(); /** Cameras linked with point lights */ protected ObjectMap<PointLight, PointLightProperties> pointCameras = new ObjectMap<PointLight, PointLightProperties>(); /** Analyzer of near and far for spot and point lights */ protected NearFarAnalyzer nearFarAnalyzer; /** Allocator which choose where to render shadow map in texture */ protected ShadowMapAllocator allocator; /** Analyzer which compute how to create the camera for directional light */ protected DirectionalAnalyzer directionalAnalyzer; /** Filter that choose if light must be rendered */ protected LightFilter lightFilter; /** Framebuffer used to render all the depth maps */ protected FrameBuffer[] frameBuffers; /** Current pass in the depth process */ protected int currentPass = -1; /** Iterators for cameras */ protected Entries<SpotLight, LightProperties> spotCameraIterator; protected Entries<DirectionalLight, LightProperties> dirCameraIterator; protected Entries<PointLight, PointLightProperties> pointCameraIterator; /** Current side in the point light cubemap */ protected int currentPointSide; protected PointLightProperties currentPointProperties; /** Shader providers used by this system */ protected ShaderProvider[] passShaderProviders; protected ShaderProvider mainShaderProvider; /** Current light and properties during shadowmap generation */ protected LightProperties currentLightProperties; protected BaseLight currentLight; /** Construct the system with the needed params. * @param nearFarAnalyzer Analyzer of near and far * @param allocator Allocator of shadow maps * @param directionalAnalyzer Analyze directional light to create orthographic camera * @param lightFilter Filter light to render */ public BaseShadowSystem (NearFarAnalyzer nearFarAnalyzer, ShadowMapAllocator allocator, DirectionalAnalyzer directionalAnalyzer, LightFilter lightFilter) { this.nearFarAnalyzer = nearFarAnalyzer; this.allocator = allocator; this.directionalAnalyzer = directionalAnalyzer; this.lightFilter = lightFilter; } /** Construct the system with default values */ public BaseShadowSystem () { this(new AABBNearFarAnalyzer(), new FixedShadowMapAllocator(FixedShadowMapAllocator.QUALITY_MED, FixedShadowMapAllocator.QUANTITY_MAP_MED), new BoundingSphereDirectionalAnalyzer(), new FrustumLightFilter()); } /** Initialize framebuffers and shader providers. You should call super.init() in subclass. */ @Override public void init () { frameBuffers = new FrameBuffer[getPassQuantity()]; passShaderProviders = new ShaderProvider[getPassQuantity()]; for (int i = 0; i < getPassQuantity(); i++) { init(i); } }; /** Initialize pass n */ protected abstract void init (int n); /** getPassQuantity should return at leat one. */ @Override public abstract int getPassQuantity (); @Override public ShaderProvider getPassShaderProvider (int n) { return passShaderProviders[n]; } @Override public ShaderProvider getShaderProvider () { return mainShaderProvider; } @Override public void addLight (SpotLight spot) { PerspectiveCamera camera = new PerspectiveCamera(spot.cutoffAngle, 0, 0); camera.position.set(spot.position); camera.direction.set(spot.direction); camera.near = 1; camera.far = 100; camera.up.set(camera.direction.y, camera.direction.z, camera.direction.x); spotCameras.put(spot, new LightProperties(camera)); } @Override public void addLight (DirectionalLight dir) { OrthographicCamera camera = new OrthographicCamera(); camera.direction.set(dir.direction); camera.near = 1; camera.far = 100; dirCameras.put(dir, new LightProperties(camera)); } @Override public void addLight (PointLight point) { addLight(point, EnumSet.of(CubemapSide.PositiveX, CubemapSide.NegativeX, CubemapSide.PositiveY, CubemapSide.NegativeY, CubemapSide.PositiveZ, CubemapSide.NegativeZ)); } @Override public void addLight (PointLight point, Set<CubemapSide> sides) { PointLightProperties plProperty = new PointLightProperties(); for (int i = 0; i < 6; i++) { CubemapSide cubemapSide = Cubemap.CubemapSide.values()[i]; if (sides.contains(cubemapSide)) { PerspectiveCamera camera = new PerspectiveCamera(90, 0, 0); camera.position.set(point.position); camera.direction.set(cubemapSide.direction); camera.up.set(cubemapSide.up); camera.near = 1; camera.far = 100; LightProperties p = new LightProperties(camera); plProperty.properties.put(cubemapSide, p); } } pointCameras.put(point, plProperty); } @Override public void removeLight (SpotLight spot) { spotCameras.remove(spot); } @Override public void removeLight (DirectionalLight dir) { dirCameras.remove(dir); } @Override public void removeLight (PointLight point) { pointCameras.remove(point); } @Override public boolean hasLight (SpotLight spot) { if (spotCameras.containsKey(spot)) return true; return false; } @Override public boolean hasLight (DirectionalLight dir) { if (dirCameras.containsKey(dir)) return true; return false; } @Override public boolean hasLight (PointLight point) { if (pointCameras.containsKey(point)) return true; return false; } @Override public void update () { for (ObjectMap.Entry<SpotLight, LightProperties> e : spotCameras) { e.value.camera.position.set(e.key.position); e.value.camera.direction.set(e.key.direction); nearFarAnalyzer.analyze(e.key, e.value.camera, renderableProviders); } for (ObjectMap.Entry<DirectionalLight, LightProperties> e : dirCameras) { directionalAnalyzer.analyze(e.key, e.value.camera, camera).update(); } for (ObjectMap.Entry<PointLight, PointLightProperties> e : pointCameras) { for (ObjectMap.Entry<CubemapSide, LightProperties> c : e.value.properties) { c.value.camera.position.set(e.key.position); nearFarAnalyzer.analyze(e.key, c.value.camera, renderableProviders); } } } @Override public <T extends RenderableProvider> void begin (Camera camera, final Iterable<T> renderableProviders) { if (this.renderableProviders != null || this.camera != null) throw new GdxRuntimeException("Call end() first."); this.camera = camera; this.renderableProviders = (Iterable<RenderableProvider>)renderableProviders; } @Override public void begin (int n) { if (n >= passShaderProviders.length) throw new GdxRuntimeException("Pass " + n + " doesn't exist in " + getClass().getName()); currentPass = n; spotCameraIterator = spotCameras.iterator(); dirCameraIterator = dirCameras.iterator(); pointCameraIterator = pointCameras.iterator(); currentPointSide = 6; beginPass(n); } /** Begin pass n. * @param n Pass number */ protected void beginPass (int n) { frameBuffers[n].begin(); }; @Override public void end () { this.camera = null; this.renderableProviders = null; currentPass = -1; } @Override public void end (int n) { if (currentPass != n) throw new GdxRuntimeException("Begin " + n + " must be called before end " + n); endPass(n); } /** End pass n. * @param n Pass number */ protected void endPass (int n) { frameBuffers[n].end(); } @Override public Camera next () { LightProperties lp = nextDirectional(); if (lp != null) return interceptCamera(lp); lp = nextSpot(); if (lp != null) return interceptCamera(lp); lp = nextPoint(); if (lp != null) return interceptCamera(lp); return null; } /** Allows to return custom camera if needed. * @param lp Returned LightProperties * @return Camera */ protected Camera interceptCamera (LightProperties lp) { return lp.camera; } protected LightProperties nextDirectional () { if (!dirCameraIterator.hasNext()) return null; ObjectMap.Entry<DirectionalLight, LightProperties> e = dirCameraIterator.next(); currentLight = e.key; currentLightProperties = e.value; LightProperties lp = e.value; processViewport(lp, false); return lp; } protected LightProperties nextSpot () { if (!spotCameraIterator.hasNext()) return null; ObjectMap.Entry<SpotLight, LightProperties> e = spotCameraIterator.next(); currentLight = e.key; currentLightProperties = e.value; LightProperties lp = e.value; if (!lightFilter.filter(spotCameras.findKey(lp, true), lp.camera, this.camera)) { return nextSpot(); } processViewport(lp, true); return lp; } protected LightProperties nextPoint () { if (!pointCameraIterator.hasNext() && currentPointSide > 5) return null; if (currentPointSide > 5) currentPointSide = 0; if (currentPointSide == 0) { ObjectMap.Entry<PointLight, PointLightProperties> e = pointCameraIterator.next(); currentLight = e.key; currentPointProperties = e.value; } if (currentPointProperties.properties.containsKey(Cubemap.CubemapSide.values()[currentPointSide])) { LightProperties lp = currentPointProperties.properties.get(Cubemap.CubemapSide.values()[currentPointSide]); currentLightProperties = lp; currentPointSide += 1; if (!lightFilter.filter(pointCameras.findKey(currentPointProperties, true), lp.camera, this.camera)) { return nextPoint(); } processViewport(lp, true); return lp; } currentPointSide += 1; return nextPoint(); } /** Set viewport according to allocator. * @param lp LightProperties to process. * @param cameraViewport Set camera viewport if true. */ protected void processViewport (LightProperties lp, boolean cameraViewport) { Camera camera = lp.camera; ShadowMapRegion r = allocator.nextResult(currentLight); if (r == null) return; TextureRegion region = lp.region; region.setTexture(frameBuffers[currentPass].getColorBufferTexture()); // We don't use HdpiUtils // gl commands related to shadow map size and not to screen size Gdx.gl.glViewport(r.x, r.y, r.width, r.height); Gdx.gl.glScissor(r.x + 1, r.y + 1, r.width - 2, r.height - 2); region.setRegion(r.x, r.y, r.width, r.height); if (cameraViewport) { camera.viewportHeight = r.height; camera.viewportWidth = r.width; camera.update(); } } public ObjectMap<DirectionalLight, LightProperties> getDirectionalCameras () { return dirCameras; } public ObjectMap<SpotLight, LightProperties> getSpotCameras () { return spotCameras; } public ObjectMap<PointLight, PointLightProperties> getPointCameras () { return pointCameras; } public Texture getTexture (int n) { if (n >= getPassQuantity()) throw new GdxRuntimeException("Can't get texture " + n); return frameBuffers[n].getColorBufferTexture(); } public LightProperties getCurrentLightProperties () { return currentLightProperties; } public BaseLight getCurrentLight () { return currentLight; } public int getCurrentPass () { return currentPass; } @Override public void dispose () { for (int i = 0; i < getPassQuantity(); i++) { frameBuffers[i].dispose(); passShaderProviders[i].dispose(); } mainShaderProvider.dispose(); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/ParticleControllerInfluencerSingleTest.java
package com.badlogic.gdx.tests.g3d; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g3d.Environment; import com.badlogic.gdx.graphics.g3d.ModelBatch; import com.badlogic.gdx.graphics.g3d.ModelInstance; import com.badlogic.gdx.graphics.g3d.particles.ParticleController; import com.badlogic.gdx.graphics.g3d.particles.batches.BillboardParticleBatch; import com.badlogic.gdx.graphics.g3d.particles.emitters.RegularEmitter; import com.badlogic.gdx.graphics.g3d.particles.influencers.DynamicsInfluencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.DynamicsModifier.TangentialAcceleration; import com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerFinalizerInfluencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerInfluencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.RegionInfluencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.SpawnInfluencer; import com.badlogic.gdx.graphics.g3d.particles.renderers.BillboardRenderer; import com.badlogic.gdx.graphics.g3d.particles.renderers.ParticleControllerControllerRenderer; import com.badlogic.gdx.graphics.g3d.particles.values.CylinderSpawnShapeValue; import com.badlogic.gdx.graphics.g3d.particles.values.PointSpawnShapeValue; import com.badlogic.gdx.math.Matrix4; import com.badlogic.gdx.math.Quaternion; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.utils.Array; /** @author ryanastout */ public class ParticleControllerInfluencerSingleTest extends BaseG3dTest { public static final String DEFAULT_PARTICLE = "data/pre_particle.png", DEFAULT_SKIN = "data/uiskin.json"; Quaternion tmpQuaternion = new Quaternion(); Matrix4 tmpMatrix = new Matrix4(), tmpMatrix4 = new Matrix4(); Vector3 tmpVector = new Vector3(); // Simulation Array<ParticleController> emitters; // Rendering Environment environment; BillboardParticleBatch billboardParticleBatch; // UI Stage ui; Label fpsLabel; StringBuilder builder; @Override public void create () { super.create(); emitters = new Array<ParticleController>(); assets.load(DEFAULT_PARTICLE, Texture.class); assets.load(DEFAULT_SKIN, Skin.class); loading = true; environment = new Environment(); billboardParticleBatch = new BillboardParticleBatch(); billboardParticleBatch.setCamera(cam); ui = new Stage(); builder = new StringBuilder(); } @Override public void resize (int width, int height) { super.resize(width, height); ui.getViewport().setWorldSize(width, height); ui.getViewport().update(width, height, true); } @Override protected void onLoaded () { Texture particleTexture = assets.get(DEFAULT_PARTICLE); billboardParticleBatch.setTexture(assets.get(DEFAULT_PARTICLE, Texture.class)); addEmitter(particleTexture); setupUI(); } private void addEmitter (Texture particleTexture) { ParticleController controller = createBillboardController(particleTexture); controller.init(); controller.start(); emitters.add(controller); controller.translate(new Vector3(5, 0, 5)); controller.rotate(Vector3.X, 90); } private void setupUI () { Skin skin = assets.get(DEFAULT_SKIN); Table table = new Table(); table.setFillParent(true); table.top().left().add(new Label("FPS ", skin)).left(); table.add(fpsLabel = new Label("", skin)).left().expandX().row(); ui.addActor(table); } private ParticleController createBillboardController (Texture particleTexture) { // Emission RegularEmitter emitter = new RegularEmitter(); emitter.getDuration().setLow(1000); emitter.getEmission().setHigh(300); emitter.getLife().setHigh(4000); emitter.setMaxParticleCount(20); // Spawn CylinderSpawnShapeValue cylinderSpawnShapeValue = new CylinderSpawnShapeValue(); cylinderSpawnShapeValue.spawnWidthValue.setHigh(5);// x cylinderSpawnShapeValue.spawnHeightValue.setHigh(10);// y cylinderSpawnShapeValue.spawnDepthValue.setHigh(5);// z cylinderSpawnShapeValue.setEdges(true); SpawnInfluencer spawnSource = new SpawnInfluencer(cylinderSpawnShapeValue); // Dynamics DynamicsInfluencer dynamicsInfluencer = new DynamicsInfluencer(); TangentialAcceleration tangentialAcceleration = new TangentialAcceleration(); tangentialAcceleration.thetaValue.setActive(true); tangentialAcceleration.thetaValue.setTimeline(new float[] {0}); tangentialAcceleration.thetaValue.setScaling(new float[] {1}); tangentialAcceleration.thetaValue.setHigh(90); tangentialAcceleration.phiValue.setActive(true); tangentialAcceleration.phiValue.setTimeline(new float[] {0}); tangentialAcceleration.phiValue.setScaling(new float[] {1}); tangentialAcceleration.phiValue.setHigh(0); tangentialAcceleration.strengthValue.setActive(true); tangentialAcceleration.strengthValue.setHigh(10); tangentialAcceleration.strengthValue.setTimeline(new float[] {0}); tangentialAcceleration.strengthValue.setScaling(new float[] {1}); tangentialAcceleration.isGlobal = false; dynamicsInfluencer.velocities.add(tangentialAcceleration); ParticleController ret = new ParticleController("Billboard Controller", emitter, new BillboardRenderer(billboardParticleBatch), new RegionInfluencer.Single(particleTexture), spawnSource, dynamicsInfluencer); ParticleControllerInfluencer pci = new ParticleControllerInfluencer.Single(ret); SpawnInfluencer si = new SpawnInfluencer(new PointSpawnShapeValue()); Influencer pcfi = new ParticleControllerFinalizerInfluencer(); RegularEmitter emitter2 = new RegularEmitter(); emitter2.getDuration().setLow(3000); emitter2.getEmission().setHigh(300); emitter2.getLife().setHigh(4000); emitter2.setMaxParticleCount(30); ParticleController ret2 = new ParticleController("Bigger", emitter2, new ParticleControllerControllerRenderer(), pci, si, pcfi); return ret2; } @Override protected void render (ModelBatch batch, Array<ModelInstance> instances) { if (emitters.size > 0) { // Update float delta = Gdx.graphics.getDeltaTime(); builder.delete(0, builder.length()); builder.append(Gdx.graphics.getFramesPerSecond()); fpsLabel.setText(builder); ui.act(delta); billboardParticleBatch.begin(); for (ParticleController controller : emitters) { controller.update(); controller.draw(); } billboardParticleBatch.end(); batch.render(billboardParticleBatch, environment); } batch.render(instances, environment); ui.draw(); } }
package com.badlogic.gdx.tests.g3d; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g3d.Environment; import com.badlogic.gdx.graphics.g3d.ModelBatch; import com.badlogic.gdx.graphics.g3d.ModelInstance; import com.badlogic.gdx.graphics.g3d.particles.ParticleController; import com.badlogic.gdx.graphics.g3d.particles.batches.BillboardParticleBatch; import com.badlogic.gdx.graphics.g3d.particles.emitters.RegularEmitter; import com.badlogic.gdx.graphics.g3d.particles.influencers.DynamicsInfluencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.DynamicsModifier.TangentialAcceleration; import com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerFinalizerInfluencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerInfluencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.RegionInfluencer; import com.badlogic.gdx.graphics.g3d.particles.influencers.SpawnInfluencer; import com.badlogic.gdx.graphics.g3d.particles.renderers.BillboardRenderer; import com.badlogic.gdx.graphics.g3d.particles.renderers.ParticleControllerControllerRenderer; import com.badlogic.gdx.graphics.g3d.particles.values.CylinderSpawnShapeValue; import com.badlogic.gdx.graphics.g3d.particles.values.PointSpawnShapeValue; import com.badlogic.gdx.math.Matrix4; import com.badlogic.gdx.math.Quaternion; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.utils.Array; /** @author ryanastout */ public class ParticleControllerInfluencerSingleTest extends BaseG3dTest { public static final String DEFAULT_PARTICLE = "data/pre_particle.png", DEFAULT_SKIN = "data/uiskin.json"; Quaternion tmpQuaternion = new Quaternion(); Matrix4 tmpMatrix = new Matrix4(), tmpMatrix4 = new Matrix4(); Vector3 tmpVector = new Vector3(); // Simulation Array<ParticleController> emitters; // Rendering Environment environment; BillboardParticleBatch billboardParticleBatch; // UI Stage ui; Label fpsLabel; StringBuilder builder; @Override public void create () { super.create(); emitters = new Array<ParticleController>(); assets.load(DEFAULT_PARTICLE, Texture.class); assets.load(DEFAULT_SKIN, Skin.class); loading = true; environment = new Environment(); billboardParticleBatch = new BillboardParticleBatch(); billboardParticleBatch.setCamera(cam); ui = new Stage(); builder = new StringBuilder(); } @Override public void resize (int width, int height) { super.resize(width, height); ui.getViewport().setWorldSize(width, height); ui.getViewport().update(width, height, true); } @Override protected void onLoaded () { Texture particleTexture = assets.get(DEFAULT_PARTICLE); billboardParticleBatch.setTexture(assets.get(DEFAULT_PARTICLE, Texture.class)); addEmitter(particleTexture); setupUI(); } private void addEmitter (Texture particleTexture) { ParticleController controller = createBillboardController(particleTexture); controller.init(); controller.start(); emitters.add(controller); controller.translate(new Vector3(5, 0, 5)); controller.rotate(Vector3.X, 90); } private void setupUI () { Skin skin = assets.get(DEFAULT_SKIN); Table table = new Table(); table.setFillParent(true); table.top().left().add(new Label("FPS ", skin)).left(); table.add(fpsLabel = new Label("", skin)).left().expandX().row(); ui.addActor(table); } private ParticleController createBillboardController (Texture particleTexture) { // Emission RegularEmitter emitter = new RegularEmitter(); emitter.getDuration().setLow(1000); emitter.getEmission().setHigh(300); emitter.getLife().setHigh(4000); emitter.setMaxParticleCount(20); // Spawn CylinderSpawnShapeValue cylinderSpawnShapeValue = new CylinderSpawnShapeValue(); cylinderSpawnShapeValue.spawnWidthValue.setHigh(5);// x cylinderSpawnShapeValue.spawnHeightValue.setHigh(10);// y cylinderSpawnShapeValue.spawnDepthValue.setHigh(5);// z cylinderSpawnShapeValue.setEdges(true); SpawnInfluencer spawnSource = new SpawnInfluencer(cylinderSpawnShapeValue); // Dynamics DynamicsInfluencer dynamicsInfluencer = new DynamicsInfluencer(); TangentialAcceleration tangentialAcceleration = new TangentialAcceleration(); tangentialAcceleration.thetaValue.setActive(true); tangentialAcceleration.thetaValue.setTimeline(new float[] {0}); tangentialAcceleration.thetaValue.setScaling(new float[] {1}); tangentialAcceleration.thetaValue.setHigh(90); tangentialAcceleration.phiValue.setActive(true); tangentialAcceleration.phiValue.setTimeline(new float[] {0}); tangentialAcceleration.phiValue.setScaling(new float[] {1}); tangentialAcceleration.phiValue.setHigh(0); tangentialAcceleration.strengthValue.setActive(true); tangentialAcceleration.strengthValue.setHigh(10); tangentialAcceleration.strengthValue.setTimeline(new float[] {0}); tangentialAcceleration.strengthValue.setScaling(new float[] {1}); tangentialAcceleration.isGlobal = false; dynamicsInfluencer.velocities.add(tangentialAcceleration); ParticleController ret = new ParticleController("Billboard Controller", emitter, new BillboardRenderer(billboardParticleBatch), new RegionInfluencer.Single(particleTexture), spawnSource, dynamicsInfluencer); ParticleControllerInfluencer pci = new ParticleControllerInfluencer.Single(ret); SpawnInfluencer si = new SpawnInfluencer(new PointSpawnShapeValue()); Influencer pcfi = new ParticleControllerFinalizerInfluencer(); RegularEmitter emitter2 = new RegularEmitter(); emitter2.getDuration().setLow(3000); emitter2.getEmission().setHigh(300); emitter2.getLife().setHigh(4000); emitter2.setMaxParticleCount(30); ParticleController ret2 = new ParticleController("Bigger", emitter2, new ParticleControllerControllerRenderer(), pci, si, pcfi); return ret2; } @Override protected void render (ModelBatch batch, Array<ModelInstance> instances) { if (emitters.size > 0) { // Update float delta = Gdx.graphics.getDeltaTime(); builder.delete(0, builder.length()); builder.append(Gdx.graphics.getFramesPerSecond()); fpsLabel.setText(builder); ui.act(delta); billboardParticleBatch.begin(); for (ParticleController controller : emitters) { controller.update(); controller.draw(); } billboardParticleBatch.end(); batch.render(billboardParticleBatch, environment); } batch.render(instances, environment); ui.draw(); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/math/Frustum.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.math; import com.badlogic.gdx.graphics.Camera; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.badlogic.gdx.math.Plane.PlaneSide; import com.badlogic.gdx.math.collision.BoundingBox; import com.badlogic.gdx.math.collision.OrientedBoundingBox; /** A truncated rectangular pyramid. Used to define the viewable region and its projection onto the screen. * @see Camera#frustum */ public class Frustum { protected static final Vector3[] clipSpacePlanePoints = {new Vector3(-1, -1, -1), new Vector3(1, -1, -1), new Vector3(1, 1, -1), new Vector3(-1, 1, -1), // near clip new Vector3(-1, -1, 1), new Vector3(1, -1, 1), new Vector3(1, 1, 1), new Vector3(-1, 1, 1)}; // far clip protected static final float[] clipSpacePlanePointsArray = new float[8 * 3]; static { int j = 0; for (Vector3 v : clipSpacePlanePoints) { clipSpacePlanePointsArray[j++] = v.x; clipSpacePlanePointsArray[j++] = v.y; clipSpacePlanePointsArray[j++] = v.z; } } private final static Vector3 tmpV = new Vector3(); /** the six clipping planes, near, far, left, right, top, bottom **/ public final Plane[] planes = new Plane[6]; /** eight points making up the near and far clipping "rectangles". order is counter clockwise, starting at bottom left **/ public final Vector3[] planePoints = {new Vector3(), new Vector3(), new Vector3(), new Vector3(), new Vector3(), new Vector3(), new Vector3(), new Vector3()}; protected final float[] planePointsArray = new float[8 * 3]; public Frustum () { for (int i = 0; i < 6; i++) { planes[i] = new Plane(new Vector3(), 0); } } /** Updates the clipping plane's based on the given inverse combined projection and view matrix, e.g. from an * {@link OrthographicCamera} or {@link PerspectiveCamera}. * @param inverseProjectionView the combined projection and view matrices. */ public void update (Matrix4 inverseProjectionView) { System.arraycopy(clipSpacePlanePointsArray, 0, planePointsArray, 0, clipSpacePlanePointsArray.length); Matrix4.prj(inverseProjectionView.val, planePointsArray, 0, 8, 3); for (int i = 0, j = 0; i < 8; i++) { Vector3 v = planePoints[i]; v.x = planePointsArray[j++]; v.y = planePointsArray[j++]; v.z = planePointsArray[j++]; } planes[0].set(planePoints[1], planePoints[0], planePoints[2]); planes[1].set(planePoints[4], planePoints[5], planePoints[7]); planes[2].set(planePoints[0], planePoints[4], planePoints[3]); planes[3].set(planePoints[5], planePoints[1], planePoints[6]); planes[4].set(planePoints[2], planePoints[3], planePoints[6]); planes[5].set(planePoints[4], planePoints[0], planePoints[1]); } /** Returns whether the point is in the frustum. * * @param point The point * @return Whether the point is in the frustum. */ public boolean pointInFrustum (Vector3 point) { for (int i = 0; i < planes.length; i++) { PlaneSide result = planes[i].testPoint(point); if (result == PlaneSide.Back) return false; } return true; } /** Returns whether the point is in the frustum. * * @param x The X coordinate of the point * @param y The Y coordinate of the point * @param z The Z coordinate of the point * @return Whether the point is in the frustum. */ public boolean pointInFrustum (float x, float y, float z) { for (int i = 0; i < planes.length; i++) { PlaneSide result = planes[i].testPoint(x, y, z); if (result == PlaneSide.Back) return false; } return true; } /** Returns whether the given sphere is in the frustum. * * @param center The center of the sphere * @param radius The radius of the sphere * @return Whether the sphere is in the frustum */ public boolean sphereInFrustum (Vector3 center, float radius) { for (int i = 0; i < 6; i++) if ((planes[i].normal.x * center.x + planes[i].normal.y * center.y + planes[i].normal.z * center.z) < (-radius - planes[i].d)) return false; return true; } /** Returns whether the given sphere is in the frustum. * * @param x The X coordinate of the center of the sphere * @param y The Y coordinate of the center of the sphere * @param z The Z coordinate of the center of the sphere * @param radius The radius of the sphere * @return Whether the sphere is in the frustum */ public boolean sphereInFrustum (float x, float y, float z, float radius) { for (int i = 0; i < 6; i++) if ((planes[i].normal.x * x + planes[i].normal.y * y + planes[i].normal.z * z) < (-radius - planes[i].d)) return false; return true; } /** Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane. * * @param center The center of the sphere * @param radius The radius of the sphere * @return Whether the sphere is in the frustum */ public boolean sphereInFrustumWithoutNearFar (Vector3 center, float radius) { for (int i = 2; i < 6; i++) if ((planes[i].normal.x * center.x + planes[i].normal.y * center.y + planes[i].normal.z * center.z) < (-radius - planes[i].d)) return false; return true; } /** Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane. * * @param x The X coordinate of the center of the sphere * @param y The Y coordinate of the center of the sphere * @param z The Z coordinate of the center of the sphere * @param radius The radius of the sphere * @return Whether the sphere is in the frustum */ public boolean sphereInFrustumWithoutNearFar (float x, float y, float z, float radius) { for (int i = 2; i < 6; i++) if ((planes[i].normal.x * x + planes[i].normal.y * y + planes[i].normal.z * z) < (-radius - planes[i].d)) return false; return true; } /** Returns whether the given {@link BoundingBox} is in the frustum. * * @param bounds The bounding box * @return Whether the bounding box is in the frustum */ public boolean boundsInFrustum (BoundingBox bounds) { for (int i = 0, len2 = planes.length; i < len2; i++) { if (planes[i].testPoint(bounds.getCorner000(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner001(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner010(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner011(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner100(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner101(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner110(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner111(tmpV)) != PlaneSide.Back) continue; return false; } return true; } /** Returns whether the given bounding box is in the frustum. * @return Whether the bounding box is in the frustum */ public boolean boundsInFrustum (Vector3 center, Vector3 dimensions) { return boundsInFrustum(center.x, center.y, center.z, dimensions.x / 2, dimensions.y / 2, dimensions.z / 2); } /** Returns whether the given bounding box is in the frustum. * @return Whether the bounding box is in the frustum */ public boolean boundsInFrustum (float x, float y, float z, float halfWidth, float halfHeight, float halfDepth) { for (int i = 0, len2 = planes.length; i < len2; i++) { if (planes[i].testPoint(x + halfWidth, y + halfHeight, z + halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x + halfWidth, y + halfHeight, z - halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x + halfWidth, y - halfHeight, z + halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x + halfWidth, y - halfHeight, z - halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x - halfWidth, y + halfHeight, z + halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x - halfWidth, y + halfHeight, z - halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x - halfWidth, y - halfHeight, z + halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x - halfWidth, y - halfHeight, z - halfDepth) != PlaneSide.Back) continue; return false; } return true; } /** Returns whether the given {@link OrientedBoundingBox} is in the frustum. * * @param obb The oriented bounding box * @return Whether the oriented bounding box is in the frustum */ public boolean boundsInFrustum (OrientedBoundingBox obb) { for (int i = 0, len2 = planes.length; i < len2; i++) { if (planes[i].testPoint(obb.getCorner000(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner001(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner010(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner011(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner100(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner101(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner110(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner111(tmpV)) != PlaneSide.Back) continue; return false; } return true; } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.math; import com.badlogic.gdx.graphics.Camera; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.badlogic.gdx.math.Plane.PlaneSide; import com.badlogic.gdx.math.collision.BoundingBox; import com.badlogic.gdx.math.collision.OrientedBoundingBox; /** A truncated rectangular pyramid. Used to define the viewable region and its projection onto the screen. * @see Camera#frustum */ public class Frustum { protected static final Vector3[] clipSpacePlanePoints = {new Vector3(-1, -1, -1), new Vector3(1, -1, -1), new Vector3(1, 1, -1), new Vector3(-1, 1, -1), // near clip new Vector3(-1, -1, 1), new Vector3(1, -1, 1), new Vector3(1, 1, 1), new Vector3(-1, 1, 1)}; // far clip protected static final float[] clipSpacePlanePointsArray = new float[8 * 3]; static { int j = 0; for (Vector3 v : clipSpacePlanePoints) { clipSpacePlanePointsArray[j++] = v.x; clipSpacePlanePointsArray[j++] = v.y; clipSpacePlanePointsArray[j++] = v.z; } } private final static Vector3 tmpV = new Vector3(); /** the six clipping planes, near, far, left, right, top, bottom **/ public final Plane[] planes = new Plane[6]; /** eight points making up the near and far clipping "rectangles". order is counter clockwise, starting at bottom left **/ public final Vector3[] planePoints = {new Vector3(), new Vector3(), new Vector3(), new Vector3(), new Vector3(), new Vector3(), new Vector3(), new Vector3()}; protected final float[] planePointsArray = new float[8 * 3]; public Frustum () { for (int i = 0; i < 6; i++) { planes[i] = new Plane(new Vector3(), 0); } } /** Updates the clipping plane's based on the given inverse combined projection and view matrix, e.g. from an * {@link OrthographicCamera} or {@link PerspectiveCamera}. * @param inverseProjectionView the combined projection and view matrices. */ public void update (Matrix4 inverseProjectionView) { System.arraycopy(clipSpacePlanePointsArray, 0, planePointsArray, 0, clipSpacePlanePointsArray.length); Matrix4.prj(inverseProjectionView.val, planePointsArray, 0, 8, 3); for (int i = 0, j = 0; i < 8; i++) { Vector3 v = planePoints[i]; v.x = planePointsArray[j++]; v.y = planePointsArray[j++]; v.z = planePointsArray[j++]; } planes[0].set(planePoints[1], planePoints[0], planePoints[2]); planes[1].set(planePoints[4], planePoints[5], planePoints[7]); planes[2].set(planePoints[0], planePoints[4], planePoints[3]); planes[3].set(planePoints[5], planePoints[1], planePoints[6]); planes[4].set(planePoints[2], planePoints[3], planePoints[6]); planes[5].set(planePoints[4], planePoints[0], planePoints[1]); } /** Returns whether the point is in the frustum. * * @param point The point * @return Whether the point is in the frustum. */ public boolean pointInFrustum (Vector3 point) { for (int i = 0; i < planes.length; i++) { PlaneSide result = planes[i].testPoint(point); if (result == PlaneSide.Back) return false; } return true; } /** Returns whether the point is in the frustum. * * @param x The X coordinate of the point * @param y The Y coordinate of the point * @param z The Z coordinate of the point * @return Whether the point is in the frustum. */ public boolean pointInFrustum (float x, float y, float z) { for (int i = 0; i < planes.length; i++) { PlaneSide result = planes[i].testPoint(x, y, z); if (result == PlaneSide.Back) return false; } return true; } /** Returns whether the given sphere is in the frustum. * * @param center The center of the sphere * @param radius The radius of the sphere * @return Whether the sphere is in the frustum */ public boolean sphereInFrustum (Vector3 center, float radius) { for (int i = 0; i < 6; i++) if ((planes[i].normal.x * center.x + planes[i].normal.y * center.y + planes[i].normal.z * center.z) < (-radius - planes[i].d)) return false; return true; } /** Returns whether the given sphere is in the frustum. * * @param x The X coordinate of the center of the sphere * @param y The Y coordinate of the center of the sphere * @param z The Z coordinate of the center of the sphere * @param radius The radius of the sphere * @return Whether the sphere is in the frustum */ public boolean sphereInFrustum (float x, float y, float z, float radius) { for (int i = 0; i < 6; i++) if ((planes[i].normal.x * x + planes[i].normal.y * y + planes[i].normal.z * z) < (-radius - planes[i].d)) return false; return true; } /** Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane. * * @param center The center of the sphere * @param radius The radius of the sphere * @return Whether the sphere is in the frustum */ public boolean sphereInFrustumWithoutNearFar (Vector3 center, float radius) { for (int i = 2; i < 6; i++) if ((planes[i].normal.x * center.x + planes[i].normal.y * center.y + planes[i].normal.z * center.z) < (-radius - planes[i].d)) return false; return true; } /** Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane. * * @param x The X coordinate of the center of the sphere * @param y The Y coordinate of the center of the sphere * @param z The Z coordinate of the center of the sphere * @param radius The radius of the sphere * @return Whether the sphere is in the frustum */ public boolean sphereInFrustumWithoutNearFar (float x, float y, float z, float radius) { for (int i = 2; i < 6; i++) if ((planes[i].normal.x * x + planes[i].normal.y * y + planes[i].normal.z * z) < (-radius - planes[i].d)) return false; return true; } /** Returns whether the given {@link BoundingBox} is in the frustum. * * @param bounds The bounding box * @return Whether the bounding box is in the frustum */ public boolean boundsInFrustum (BoundingBox bounds) { for (int i = 0, len2 = planes.length; i < len2; i++) { if (planes[i].testPoint(bounds.getCorner000(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner001(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner010(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner011(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner100(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner101(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner110(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(bounds.getCorner111(tmpV)) != PlaneSide.Back) continue; return false; } return true; } /** Returns whether the given bounding box is in the frustum. * @return Whether the bounding box is in the frustum */ public boolean boundsInFrustum (Vector3 center, Vector3 dimensions) { return boundsInFrustum(center.x, center.y, center.z, dimensions.x / 2, dimensions.y / 2, dimensions.z / 2); } /** Returns whether the given bounding box is in the frustum. * @return Whether the bounding box is in the frustum */ public boolean boundsInFrustum (float x, float y, float z, float halfWidth, float halfHeight, float halfDepth) { for (int i = 0, len2 = planes.length; i < len2; i++) { if (planes[i].testPoint(x + halfWidth, y + halfHeight, z + halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x + halfWidth, y + halfHeight, z - halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x + halfWidth, y - halfHeight, z + halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x + halfWidth, y - halfHeight, z - halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x - halfWidth, y + halfHeight, z + halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x - halfWidth, y + halfHeight, z - halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x - halfWidth, y - halfHeight, z + halfDepth) != PlaneSide.Back) continue; if (planes[i].testPoint(x - halfWidth, y - halfHeight, z - halfDepth) != PlaneSide.Back) continue; return false; } return true; } /** Returns whether the given {@link OrientedBoundingBox} is in the frustum. * * @param obb The oriented bounding box * @return Whether the oriented bounding box is in the frustum */ public boolean boundsInFrustum (OrientedBoundingBox obb) { for (int i = 0, len2 = planes.length; i < len2; i++) { if (planes[i].testPoint(obb.getCorner000(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner001(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner010(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner011(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner100(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner101(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner110(tmpV)) != PlaneSide.Back) continue; if (planes[i].testPoint(obb.getCorner111(tmpV)) != PlaneSide.Back) continue; return false; } return true; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/scenes/scene2d/Actor.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d; import static com.badlogic.gdx.utils.Align.*; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener; import com.badlogic.gdx.scenes.scene2d.utils.ClickListener; import com.badlogic.gdx.scenes.scene2d.utils.ScissorStack; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.DelayedRemovalArray; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.Pools; import com.badlogic.gdx.utils.reflect.ClassReflection; /** 2D scene graph node. An actor has a position, rectangular size, origin, scale, rotation, Z index, and color. The position * corresponds to the unrotated, unscaled bottom left corner of the actor. The position is relative to the actor's parent. The * origin is relative to the position and is used for scale and rotation. * <p> * An actor has a list of in progress {@link Action actions} that are applied to the actor (often over time). These are generally * used to change the presentation of the actor (moving it, resizing it, etc). See {@link #act(float)}, {@link Action}, and its * many subclasses. * <p> * An actor has two kinds of listeners associated with it: "capture" and regular. The listeners are notified of events the actor * or its children receive. The regular listeners are designed to allow an actor to respond to events that have been delivered. * The capture listeners are designed to allow a parent or container actor to handle events before child actors. See {@link #fire} * for more details. * <p> * An {@link InputListener} can receive all the basic input events. More complex listeners (like {@link ClickListener} and * {@link ActorGestureListener}) can listen for and combine primitive events and recognize complex interactions like multi-touch * or pinch. * @author mzechner * @author Nathan Sweet */ public class Actor { private @Null Stage stage; @Null Group parent; private final DelayedRemovalArray<EventListener> listeners = new DelayedRemovalArray(0); private final DelayedRemovalArray<EventListener> captureListeners = new DelayedRemovalArray(0); private final Array<Action> actions = new Array(0); private @Null String name; private Touchable touchable = Touchable.enabled; private boolean visible = true, debug; float x, y; float width, height; float originX, originY; float scaleX = 1, scaleY = 1; float rotation; final Color color = new Color(1, 1, 1, 1); private @Null Object userObject; /** Draws the actor. The batch is configured to draw in the parent's coordinate system. * {@link Batch#draw(com.badlogic.gdx.graphics.g2d.TextureRegion, float, float, float, float, float, float, float, float, float) * This draw method} is convenient to draw a rotated and scaled TextureRegion. {@link Batch#begin()} has already been called on * the batch. If {@link Batch#end()} is called to draw without the batch then {@link Batch#begin()} must be called before the * method returns. * <p> * The default implementation does nothing. * @param parentAlpha The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all * children. */ public void draw (Batch batch, float parentAlpha) { } /** Updates the actor based on time. Typically this is called each frame by {@link Stage#act(float)}. * <p> * The default implementation calls {@link Action#act(float)} on each action and removes actions that are complete. * @param delta Time in seconds since the last frame. */ public void act (float delta) { Array<Action> actions = this.actions; if (actions.size == 0) return; if (stage != null && stage.getActionsRequestRendering()) Gdx.graphics.requestRendering(); try { for (int i = 0; i < actions.size; i++) { Action action = actions.get(i); if (action.act(delta) && i < actions.size) { Action current = actions.get(i); int actionIndex = current == action ? i : actions.indexOf(action, true); if (actionIndex != -1) { actions.removeIndex(actionIndex); action.setActor(null); i--; } } } } catch (RuntimeException ex) { String context = toString(); throw new RuntimeException("Actor: " + context.substring(0, Math.min(context.length(), 128)), ex); } } /** Sets this actor as the event {@link Event#setTarget(Actor) target} and propagates the event to this actor and ascendants as * necessary. If this actor is not in the stage, the stage must be set before calling this method. * <p> * Events are fired in 2 phases: * <ol> * <li>The first phase (the "capture" phase) notifies listeners on each actor starting at the root and propagating down the * hierarchy to (and including) this actor.</li> * <li>The second phase notifies listeners on each actor starting at this actor and, if {@link Event#getBubbles()} is true, * propagating upward to the root.</li> * </ol> * If the event is {@link Event#stop() stopped} at any time, it will not propagate to the next actor. * @return true if the event was {@link Event#cancel() cancelled}. */ public boolean fire (Event event) { if (event.getStage() == null) event.setStage(getStage()); event.setTarget(this); // Collect ascendants so event propagation is unaffected by hierarchy changes. Array<Group> ascendants = Pools.obtain(Array.class); Group parent = this.parent; while (parent != null) { ascendants.add(parent); parent = parent.parent; } try { // Notify ascendants' capture listeners, starting at the root. Ascendants may stop an event before children receive it. Object[] ascendantsArray = ascendants.items; for (int i = ascendants.size - 1; i >= 0; i--) { Group currentTarget = (Group)ascendantsArray[i]; currentTarget.notify(event, true); if (event.isStopped()) return event.isCancelled(); } // Notify the target capture listeners. notify(event, true); if (event.isStopped()) return event.isCancelled(); // Notify the target listeners. notify(event, false); if (!event.getBubbles()) return event.isCancelled(); if (event.isStopped()) return event.isCancelled(); // Notify ascendants' actor listeners, starting at the target. Children may stop an event before ascendants receive it. for (int i = 0, n = ascendants.size; i < n; i++) { ((Group)ascendantsArray[i]).notify(event, false); if (event.isStopped()) return event.isCancelled(); } return event.isCancelled(); } finally { ascendants.clear(); Pools.free(ascendants); } } /** Notifies this actor's listeners of the event. The event is not propagated to any ascendants. The event * {@link Event#setTarget(Actor) target} must be set before calling this method. Before notifying the listeners, this actor is * set as the {@link Event#getListenerActor() listener actor}. If this actor is not in the stage, the stage must be set before * calling this method. * @param capture If true, the capture listeners will be notified instead of the regular listeners. * @return true if the event was {@link Event#cancel() cancelled}. */ public boolean notify (Event event, boolean capture) { if (event.getTarget() == null) throw new IllegalArgumentException("The event target cannot be null."); DelayedRemovalArray<EventListener> listeners = capture ? captureListeners : this.listeners; if (listeners.size == 0) return event.isCancelled(); event.setListenerActor(this); event.setCapture(capture); if (event.getStage() == null) event.setStage(stage); try { listeners.begin(); for (int i = 0, n = listeners.size; i < n; i++) if (listeners.get(i).handle(event)) event.handle(); listeners.end(); } catch (RuntimeException ex) { String context = toString(); throw new RuntimeException("Actor: " + context.substring(0, Math.min(context.length(), 128)), ex); } return event.isCancelled(); } /** Returns the deepest {@link #isVisible() visible} (and optionally, {@link #getTouchable() touchable}) actor that contains * the specified point, or null if no actor was hit. The point is specified in the actor's local coordinate system (0,0 is the * bottom left of the actor and width,height is the upper right). * <p> * This method is used to delegate touchDown, mouse, and enter/exit events. If this method returns null, those events will not * occur on this Actor. * <p> * The default implementation returns this actor if the point is within this actor's bounds and this actor is visible. * @param touchable If true, hit detection will respect the {@link #setTouchable(Touchable) touchability}. * @see Touchable */ public @Null Actor hit (float x, float y, boolean touchable) { if (touchable && this.touchable != Touchable.enabled) return null; if (!isVisible()) return null; return x >= 0 && x < width && y >= 0 && y < height ? this : null; } /** Removes this actor from its parent, if it has a parent. * @see Group#removeActor(Actor) */ public boolean remove () { if (parent != null) return parent.removeActor(this, true); return false; } /** Add a listener to receive events that {@link #hit(float, float, boolean) hit} this actor. See {@link #fire(Event)}. * @see InputListener * @see ClickListener */ public boolean addListener (EventListener listener) { if (listener == null) throw new IllegalArgumentException("listener cannot be null."); if (!listeners.contains(listener, true)) { listeners.add(listener); return true; } return false; } public boolean removeListener (EventListener listener) { if (listener == null) throw new IllegalArgumentException("listener cannot be null."); return listeners.removeValue(listener, true); } public DelayedRemovalArray<EventListener> getListeners () { return listeners; } /** Adds a listener that is only notified during the capture phase. * @see #fire(Event) */ public boolean addCaptureListener (EventListener listener) { if (listener == null) throw new IllegalArgumentException("listener cannot be null."); if (!captureListeners.contains(listener, true)) captureListeners.add(listener); return true; } public boolean removeCaptureListener (EventListener listener) { if (listener == null) throw new IllegalArgumentException("listener cannot be null."); return captureListeners.removeValue(listener, true); } public DelayedRemovalArray<EventListener> getCaptureListeners () { return captureListeners; } public void addAction (Action action) { action.setActor(this); actions.add(action); if (stage != null && stage.getActionsRequestRendering()) Gdx.graphics.requestRendering(); } /** @param action May be null, in which case nothing is done. */ public void removeAction (@Null Action action) { if (action != null && actions.removeValue(action, true)) action.setActor(null); } public Array<Action> getActions () { return actions; } /** Returns true if the actor has one or more actions. */ public boolean hasActions () { return actions.size > 0; } /** Removes all actions on this actor. */ public void clearActions () { for (int i = actions.size - 1; i >= 0; i--) actions.get(i).setActor(null); actions.clear(); } /** Removes all listeners on this actor. */ public void clearListeners () { listeners.clear(); captureListeners.clear(); } /** Removes all actions and listeners on this actor. */ public void clear () { clearActions(); clearListeners(); } /** Returns the stage that this actor is currently in, or null if not in a stage. */ public @Null Stage getStage () { return stage; } /** Called by the framework when this actor or any ascendant is added to a group that is in the stage. * @param stage May be null if the actor or any ascendant is no longer in a stage. */ protected void setStage (Stage stage) { this.stage = stage; } /** Returns true if this actor is the same as or is the descendant of the specified actor. */ public boolean isDescendantOf (Actor actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); Actor parent = this; do { if (parent == actor) return true; parent = parent.parent; } while (parent != null); return false; } /** Returns true if this actor is the same as or is the ascendant of the specified actor. */ public boolean isAscendantOf (Actor actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); do { if (actor == this) return true; actor = actor.parent; } while (actor != null); return false; } /** Returns this actor or the first ascendant of this actor that is assignable with the specified type, or null if none were * found. */ public @Null <T extends Actor> T firstAscendant (Class<T> type) { if (type == null) throw new IllegalArgumentException("actor cannot be null."); Actor actor = this; do { if (ClassReflection.isInstance(type, actor)) return (T)actor; actor = actor.parent; } while (actor != null); return null; } /** Returns true if the actor's parent is not null. */ public boolean hasParent () { return parent != null; } /** Returns the parent actor, or null if not in a group. */ public @Null Group getParent () { return parent; } /** Called by the framework when an actor is added to or removed from a group. * @param parent May be null if the actor has been removed from the parent. */ protected void setParent (@Null Group parent) { this.parent = parent; } /** Returns true if input events are processed by this actor. */ public boolean isTouchable () { return touchable == Touchable.enabled; } public Touchable getTouchable () { return touchable; } /** Determines how touch events are distributed to this actor. Default is {@link Touchable#enabled}. */ public void setTouchable (Touchable touchable) { this.touchable = touchable; } public boolean isVisible () { return visible; } /** If false, the actor will not be drawn and will not receive touch events. Default is true. */ public void setVisible (boolean visible) { this.visible = visible; } /** Returns true if this actor and all ascendants are visible. */ public boolean ascendantsVisible () { Actor actor = this; do { if (!actor.isVisible()) return false; actor = actor.parent; } while (actor != null); return true; } /** @deprecated Use {@link #ascendantsVisible()}. */ @Deprecated public boolean ancestorsVisible () { return ascendantsVisible(); } /** Returns true if this actor is the {@link Stage#getKeyboardFocus() keyboard focus} actor. */ public boolean hasKeyboardFocus () { Stage stage = getStage(); return stage != null && stage.getKeyboardFocus() == this; } /** Returns true if this actor is the {@link Stage#getScrollFocus() scroll focus} actor. */ public boolean hasScrollFocus () { Stage stage = getStage(); return stage != null && stage.getScrollFocus() == this; } /** Returns true if this actor is a target actor for touch focus. * @see Stage#addTouchFocus(EventListener, Actor, Actor, int, int) */ public boolean isTouchFocusTarget () { Stage stage = getStage(); if (stage == null) return false; for (int i = 0, n = stage.touchFocuses.size; i < n; i++) if (stage.touchFocuses.get(i).target == this) return true; return false; } /** Returns true if this actor is a listener actor for touch focus. * @see Stage#addTouchFocus(EventListener, Actor, Actor, int, int) */ public boolean isTouchFocusListener () { Stage stage = getStage(); if (stage == null) return false; for (int i = 0, n = stage.touchFocuses.size; i < n; i++) if (stage.touchFocuses.get(i).listenerActor == this) return true; return false; } /** Returns an application specific object for convenience, or null. */ public @Null Object getUserObject () { return userObject; } /** Sets an application specific object for convenience. */ public void setUserObject (@Null Object userObject) { this.userObject = userObject; } /** Returns the X position of the actor's left edge. */ public float getX () { return x; } /** Returns the X position of the specified {@link Align alignment}. */ public float getX (int alignment) { float x = this.x; if ((alignment & right) != 0) x += width; else if ((alignment & left) == 0) // x += width / 2; return x; } public void setX (float x) { if (this.x != x) { this.x = x; positionChanged(); } } /** Sets the x position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setX (float x, int alignment) { if ((alignment & right) != 0) x -= width; else if ((alignment & left) == 0) // x -= width / 2; if (this.x != x) { this.x = x; positionChanged(); } } /** Returns the Y position of the actor's bottom edge. */ public float getY () { return y; } public void setY (float y) { if (this.y != y) { this.y = y; positionChanged(); } } /** Sets the y position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setY (float y, int alignment) { if ((alignment & top) != 0) y -= height; else if ((alignment & bottom) == 0) // y -= height / 2; if (this.y != y) { this.y = y; positionChanged(); } } /** Returns the Y position of the specified {@link Align alignment}. */ public float getY (int alignment) { float y = this.y; if ((alignment & top) != 0) y += height; else if ((alignment & bottom) == 0) // y += height / 2; return y; } /** Sets the position of the actor's bottom left corner. */ public void setPosition (float x, float y) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } } /** Sets the position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setPosition (float x, float y, int alignment) { if ((alignment & right) != 0) x -= width; else if ((alignment & left) == 0) // x -= width / 2; if ((alignment & top) != 0) y -= height; else if ((alignment & bottom) == 0) // y -= height / 2; if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } } /** Add x and y to current position */ public void moveBy (float x, float y) { if (x != 0 || y != 0) { this.x += x; this.y += y; positionChanged(); } } public float getWidth () { return width; } public void setWidth (float width) { if (this.width != width) { this.width = width; sizeChanged(); } } public float getHeight () { return height; } public void setHeight (float height) { if (this.height != height) { this.height = height; sizeChanged(); } } /** Returns y plus height. */ public float getTop () { return y + height; } /** Returns x plus width. */ public float getRight () { return x + width; } /** Called when the actor's position has been changed. */ protected void positionChanged () { } /** Called when the actor's size has been changed. */ protected void sizeChanged () { } /** Called when the actor's scale has been changed. */ protected void scaleChanged () { } /** Called when the actor's rotation has been changed. */ protected void rotationChanged () { } /** Sets the width and height. */ public void setSize (float width, float height) { if (this.width != width || this.height != height) { this.width = width; this.height = height; sizeChanged(); } } /** Adds the specified size to the current size. */ public void sizeBy (float size) { if (size != 0) { width += size; height += size; sizeChanged(); } } /** Adds the specified size to the current size. */ public void sizeBy (float width, float height) { if (width != 0 || height != 0) { this.width += width; this.height += height; sizeChanged(); } } /** Set bounds the x, y, width, and height. */ public void setBounds (float x, float y, float width, float height) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } if (this.width != width || this.height != height) { this.width = width; this.height = height; sizeChanged(); } } public float getOriginX () { return originX; } public void setOriginX (float originX) { this.originX = originX; } public float getOriginY () { return originY; } public void setOriginY (float originY) { this.originY = originY; } /** Sets the origin position which is relative to the actor's bottom left corner. */ public void setOrigin (float originX, float originY) { this.originX = originX; this.originY = originY; } /** Sets the origin position to the specified {@link Align alignment}. */ public void setOrigin (int alignment) { if ((alignment & left) != 0) originX = 0; else if ((alignment & right) != 0) originX = width; else originX = width / 2; if ((alignment & bottom) != 0) originY = 0; else if ((alignment & top) != 0) originY = height; else originY = height / 2; } public float getScaleX () { return scaleX; } public void setScaleX (float scaleX) { if (this.scaleX != scaleX) { this.scaleX = scaleX; scaleChanged(); } } public float getScaleY () { return scaleY; } public void setScaleY (float scaleY) { if (this.scaleY != scaleY) { this.scaleY = scaleY; scaleChanged(); } } /** Sets the scale for both X and Y */ public void setScale (float scaleXY) { if (this.scaleX != scaleXY || this.scaleY != scaleXY) { this.scaleX = scaleXY; this.scaleY = scaleXY; scaleChanged(); } } /** Sets the scale X and scale Y. */ public void setScale (float scaleX, float scaleY) { if (this.scaleX != scaleX || this.scaleY != scaleY) { this.scaleX = scaleX; this.scaleY = scaleY; scaleChanged(); } } /** Adds the specified scale to the current scale. */ public void scaleBy (float scale) { if (scale != 0) { scaleX += scale; scaleY += scale; scaleChanged(); } } /** Adds the specified scale to the current scale. */ public void scaleBy (float scaleX, float scaleY) { if (scaleX != 0 || scaleY != 0) { this.scaleX += scaleX; this.scaleY += scaleY; scaleChanged(); } } public float getRotation () { return rotation; } public void setRotation (float degrees) { if (this.rotation != degrees) { this.rotation = degrees; rotationChanged(); } } /** Adds the specified rotation to the current rotation. */ public void rotateBy (float amountInDegrees) { if (amountInDegrees != 0) { rotation = (rotation + amountInDegrees) % 360; rotationChanged(); } } public void setColor (Color color) { this.color.set(color); } public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); } /** Returns the color the actor will be tinted when drawn. The returned instance can be modified to change the color. */ public Color getColor () { return color; } /** @see #setName(String) * @return May be null. */ public @Null String getName () { return name; } /** Set the actor's name, which is used for identification convenience and by {@link #toString()}. * @param name May be null. * @see Group#findActor(String) */ public void setName (@Null String name) { this.name = name; } /** Changes the z-order for this actor so it is in front of all siblings. */ public void toFront () { setZIndex(Integer.MAX_VALUE); } /** Changes the z-order for this actor so it is in back of all siblings. */ public void toBack () { setZIndex(0); } /** Sets the z-index of this actor. The z-index is the index into the parent's {@link Group#getChildren() children}, where a * lower index is below a higher index. Setting a z-index higher than the number of children will move the child to the front. * Setting a z-index less than zero is invalid. * @return true if the z-index changed. */ public boolean setZIndex (int index) { if (index < 0) throw new IllegalArgumentException("ZIndex cannot be < 0."); Group parent = this.parent; if (parent == null) return false; Array<Actor> children = parent.children; if (children.size <= 1) return false; index = Math.min(index, children.size - 1); if (children.get(index) == this) return false; if (!children.removeValue(this, true)) return false; children.insert(index, this); return true; } /** Returns the z-index of this actor, or -1 if the actor is not in a group. * @see #setZIndex(int) */ public int getZIndex () { Group parent = this.parent; if (parent == null) return -1; return parent.children.indexOf(this, true); } /** Calls {@link #clipBegin(float, float, float, float)} to clip this actor's bounds. */ public boolean clipBegin () { return clipBegin(x, y, width, height); } /** Clips the specified screen aligned rectangle, specified relative to the transform matrix of the stage's Batch. The * transform matrix and the stage's camera must not have rotational components. Calling this method must be followed by a call * to {@link #clipEnd()} if true is returned. * @return false if the clipping area is zero and no drawing should occur. * @see ScissorStack */ public boolean clipBegin (float x, float y, float width, float height) { if (width <= 0 || height <= 0) return false; Stage stage = this.stage; if (stage == null) return false; Rectangle tableBounds = Rectangle.tmp; tableBounds.x = x; tableBounds.y = y; tableBounds.width = width; tableBounds.height = height; Rectangle scissorBounds = Pools.obtain(Rectangle.class); stage.calculateScissors(tableBounds, scissorBounds); if (ScissorStack.pushScissors(scissorBounds)) return true; Pools.free(scissorBounds); return false; } /** Ends clipping begun by {@link #clipBegin(float, float, float, float)}. */ public void clipEnd () { Pools.free(ScissorStack.popScissors()); } /** Transforms the specified point in screen coordinates to the actor's local coordinate system. * @see Stage#screenToStageCoordinates(Vector2) */ public Vector2 screenToLocalCoordinates (Vector2 screenCoords) { Stage stage = this.stage; if (stage == null) return screenCoords; return stageToLocalCoordinates(stage.screenToStageCoordinates(screenCoords)); } /** Transforms the specified point in the stage's coordinates to the actor's local coordinate system. */ public Vector2 stageToLocalCoordinates (Vector2 stageCoords) { if (parent != null) parent.stageToLocalCoordinates(stageCoords); parentToLocalCoordinates(stageCoords); return stageCoords; } /** Converts the coordinates given in the parent's coordinate system to this actor's coordinate system. */ public Vector2 parentToLocalCoordinates (Vector2 parentCoords) { final float rotation = this.rotation; final float scaleX = this.scaleX; final float scaleY = this.scaleY; final float childX = x; final float childY = y; if (rotation == 0) { if (scaleX == 1 && scaleY == 1) { parentCoords.x -= childX; parentCoords.y -= childY; } else { final float originX = this.originX; final float originY = this.originY; parentCoords.x = (parentCoords.x - childX - originX) / scaleX + originX; parentCoords.y = (parentCoords.y - childY - originY) / scaleY + originY; } } else { final float cos = (float)Math.cos(rotation * MathUtils.degreesToRadians); final float sin = (float)Math.sin(rotation * MathUtils.degreesToRadians); final float originX = this.originX; final float originY = this.originY; final float tox = parentCoords.x - childX - originX; final float toy = parentCoords.y - childY - originY; parentCoords.x = (tox * cos + toy * sin) / scaleX + originX; parentCoords.y = (tox * -sin + toy * cos) / scaleY + originY; } return parentCoords; } /** Transforms the specified point in the actor's coordinates to be in screen coordinates. * @see Stage#stageToScreenCoordinates(Vector2) */ public Vector2 localToScreenCoordinates (Vector2 localCoords) { Stage stage = this.stage; if (stage == null) return localCoords; return stage.stageToScreenCoordinates(localToAscendantCoordinates(null, localCoords)); } /** Transforms the specified point in the actor's coordinates to be in the stage's coordinates. */ public Vector2 localToStageCoordinates (Vector2 localCoords) { return localToAscendantCoordinates(null, localCoords); } /** Transforms the specified point in the actor's coordinates to be in the parent's coordinates. */ public Vector2 localToParentCoordinates (Vector2 localCoords) { final float rotation = -this.rotation; final float scaleX = this.scaleX; final float scaleY = this.scaleY; final float x = this.x; final float y = this.y; if (rotation == 0) { if (scaleX == 1 && scaleY == 1) { localCoords.x += x; localCoords.y += y; } else { final float originX = this.originX; final float originY = this.originY; localCoords.x = (localCoords.x - originX) * scaleX + originX + x; localCoords.y = (localCoords.y - originY) * scaleY + originY + y; } } else { final float cos = (float)Math.cos(rotation * MathUtils.degreesToRadians); final float sin = (float)Math.sin(rotation * MathUtils.degreesToRadians); final float originX = this.originX; final float originY = this.originY; final float tox = (localCoords.x - originX) * scaleX; final float toy = (localCoords.y - originY) * scaleY; localCoords.x = (tox * cos + toy * sin) + originX + x; localCoords.y = (tox * -sin + toy * cos) + originY + y; } return localCoords; } /** Converts coordinates for this actor to those of an ascendant. The ascendant is not required to be the immediate parent. * @throws IllegalArgumentException if the specified actor is not an ascendant of this actor. */ public Vector2 localToAscendantCoordinates (@Null Actor ascendant, Vector2 localCoords) { Actor actor = this; do { actor.localToParentCoordinates(localCoords); actor = actor.parent; if (actor == ascendant) return localCoords; } while (actor != null); throw new IllegalArgumentException("Actor is not an ascendant: " + ascendant); } /** Converts coordinates for this actor to those of another actor, which can be anywhere in the stage. */ public Vector2 localToActorCoordinates (Actor actor, Vector2 localCoords) { localToStageCoordinates(localCoords); return actor.stageToLocalCoordinates(localCoords); } /** Draws this actor's debug lines if {@link #getDebug()} is true. */ public void drawDebug (ShapeRenderer shapes) { drawDebugBounds(shapes); } /** Draws a rectangle for the bounds of this actor if {@link #getDebug()} is true. */ protected void drawDebugBounds (ShapeRenderer shapes) { if (!debug) return; shapes.set(ShapeType.Line); if (stage != null) shapes.setColor(stage.getDebugColor()); shapes.rect(x, y, originX, originY, width, height, scaleX, scaleY, rotation); } /** If true, {@link #drawDebug(ShapeRenderer)} will be called for this actor. */ public void setDebug (boolean enabled) { debug = enabled; if (enabled) Stage.debug = true; } public boolean getDebug () { return debug; } /** Calls {@link #setDebug(boolean)} with {@code true}. */ public Actor debug () { setDebug(true); return this; } public String toString () { String name = this.name; if (name == null) { name = getClass().getName(); int dotIndex = name.lastIndexOf('.'); if (dotIndex != -1) name = name.substring(dotIndex + 1); } return name; } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d; import static com.badlogic.gdx.utils.Align.*; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener; import com.badlogic.gdx.scenes.scene2d.utils.ClickListener; import com.badlogic.gdx.scenes.scene2d.utils.ScissorStack; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.DelayedRemovalArray; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.Pools; import com.badlogic.gdx.utils.reflect.ClassReflection; /** 2D scene graph node. An actor has a position, rectangular size, origin, scale, rotation, Z index, and color. The position * corresponds to the unrotated, unscaled bottom left corner of the actor. The position is relative to the actor's parent. The * origin is relative to the position and is used for scale and rotation. * <p> * An actor has a list of in progress {@link Action actions} that are applied to the actor (often over time). These are generally * used to change the presentation of the actor (moving it, resizing it, etc). See {@link #act(float)}, {@link Action}, and its * many subclasses. * <p> * An actor has two kinds of listeners associated with it: "capture" and regular. The listeners are notified of events the actor * or its children receive. The regular listeners are designed to allow an actor to respond to events that have been delivered. * The capture listeners are designed to allow a parent or container actor to handle events before child actors. See {@link #fire} * for more details. * <p> * An {@link InputListener} can receive all the basic input events. More complex listeners (like {@link ClickListener} and * {@link ActorGestureListener}) can listen for and combine primitive events and recognize complex interactions like multi-touch * or pinch. * @author mzechner * @author Nathan Sweet */ public class Actor { private @Null Stage stage; @Null Group parent; private final DelayedRemovalArray<EventListener> listeners = new DelayedRemovalArray(0); private final DelayedRemovalArray<EventListener> captureListeners = new DelayedRemovalArray(0); private final Array<Action> actions = new Array(0); private @Null String name; private Touchable touchable = Touchable.enabled; private boolean visible = true, debug; float x, y; float width, height; float originX, originY; float scaleX = 1, scaleY = 1; float rotation; final Color color = new Color(1, 1, 1, 1); private @Null Object userObject; /** Draws the actor. The batch is configured to draw in the parent's coordinate system. * {@link Batch#draw(com.badlogic.gdx.graphics.g2d.TextureRegion, float, float, float, float, float, float, float, float, float) * This draw method} is convenient to draw a rotated and scaled TextureRegion. {@link Batch#begin()} has already been called on * the batch. If {@link Batch#end()} is called to draw without the batch then {@link Batch#begin()} must be called before the * method returns. * <p> * The default implementation does nothing. * @param parentAlpha The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all * children. */ public void draw (Batch batch, float parentAlpha) { } /** Updates the actor based on time. Typically this is called each frame by {@link Stage#act(float)}. * <p> * The default implementation calls {@link Action#act(float)} on each action and removes actions that are complete. * @param delta Time in seconds since the last frame. */ public void act (float delta) { Array<Action> actions = this.actions; if (actions.size == 0) return; if (stage != null && stage.getActionsRequestRendering()) Gdx.graphics.requestRendering(); try { for (int i = 0; i < actions.size; i++) { Action action = actions.get(i); if (action.act(delta) && i < actions.size) { Action current = actions.get(i); int actionIndex = current == action ? i : actions.indexOf(action, true); if (actionIndex != -1) { actions.removeIndex(actionIndex); action.setActor(null); i--; } } } } catch (RuntimeException ex) { String context = toString(); throw new RuntimeException("Actor: " + context.substring(0, Math.min(context.length(), 128)), ex); } } /** Sets this actor as the event {@link Event#setTarget(Actor) target} and propagates the event to this actor and ascendants as * necessary. If this actor is not in the stage, the stage must be set before calling this method. * <p> * Events are fired in 2 phases: * <ol> * <li>The first phase (the "capture" phase) notifies listeners on each actor starting at the root and propagating down the * hierarchy to (and including) this actor.</li> * <li>The second phase notifies listeners on each actor starting at this actor and, if {@link Event#getBubbles()} is true, * propagating upward to the root.</li> * </ol> * If the event is {@link Event#stop() stopped} at any time, it will not propagate to the next actor. * @return true if the event was {@link Event#cancel() cancelled}. */ public boolean fire (Event event) { if (event.getStage() == null) event.setStage(getStage()); event.setTarget(this); // Collect ascendants so event propagation is unaffected by hierarchy changes. Array<Group> ascendants = Pools.obtain(Array.class); Group parent = this.parent; while (parent != null) { ascendants.add(parent); parent = parent.parent; } try { // Notify ascendants' capture listeners, starting at the root. Ascendants may stop an event before children receive it. Object[] ascendantsArray = ascendants.items; for (int i = ascendants.size - 1; i >= 0; i--) { Group currentTarget = (Group)ascendantsArray[i]; currentTarget.notify(event, true); if (event.isStopped()) return event.isCancelled(); } // Notify the target capture listeners. notify(event, true); if (event.isStopped()) return event.isCancelled(); // Notify the target listeners. notify(event, false); if (!event.getBubbles()) return event.isCancelled(); if (event.isStopped()) return event.isCancelled(); // Notify ascendants' actor listeners, starting at the target. Children may stop an event before ascendants receive it. for (int i = 0, n = ascendants.size; i < n; i++) { ((Group)ascendantsArray[i]).notify(event, false); if (event.isStopped()) return event.isCancelled(); } return event.isCancelled(); } finally { ascendants.clear(); Pools.free(ascendants); } } /** Notifies this actor's listeners of the event. The event is not propagated to any ascendants. The event * {@link Event#setTarget(Actor) target} must be set before calling this method. Before notifying the listeners, this actor is * set as the {@link Event#getListenerActor() listener actor}. If this actor is not in the stage, the stage must be set before * calling this method. * @param capture If true, the capture listeners will be notified instead of the regular listeners. * @return true if the event was {@link Event#cancel() cancelled}. */ public boolean notify (Event event, boolean capture) { if (event.getTarget() == null) throw new IllegalArgumentException("The event target cannot be null."); DelayedRemovalArray<EventListener> listeners = capture ? captureListeners : this.listeners; if (listeners.size == 0) return event.isCancelled(); event.setListenerActor(this); event.setCapture(capture); if (event.getStage() == null) event.setStage(stage); try { listeners.begin(); for (int i = 0, n = listeners.size; i < n; i++) if (listeners.get(i).handle(event)) event.handle(); listeners.end(); } catch (RuntimeException ex) { String context = toString(); throw new RuntimeException("Actor: " + context.substring(0, Math.min(context.length(), 128)), ex); } return event.isCancelled(); } /** Returns the deepest {@link #isVisible() visible} (and optionally, {@link #getTouchable() touchable}) actor that contains * the specified point, or null if no actor was hit. The point is specified in the actor's local coordinate system (0,0 is the * bottom left of the actor and width,height is the upper right). * <p> * This method is used to delegate touchDown, mouse, and enter/exit events. If this method returns null, those events will not * occur on this Actor. * <p> * The default implementation returns this actor if the point is within this actor's bounds and this actor is visible. * @param touchable If true, hit detection will respect the {@link #setTouchable(Touchable) touchability}. * @see Touchable */ public @Null Actor hit (float x, float y, boolean touchable) { if (touchable && this.touchable != Touchable.enabled) return null; if (!isVisible()) return null; return x >= 0 && x < width && y >= 0 && y < height ? this : null; } /** Removes this actor from its parent, if it has a parent. * @see Group#removeActor(Actor) */ public boolean remove () { if (parent != null) return parent.removeActor(this, true); return false; } /** Add a listener to receive events that {@link #hit(float, float, boolean) hit} this actor. See {@link #fire(Event)}. * @see InputListener * @see ClickListener */ public boolean addListener (EventListener listener) { if (listener == null) throw new IllegalArgumentException("listener cannot be null."); if (!listeners.contains(listener, true)) { listeners.add(listener); return true; } return false; } public boolean removeListener (EventListener listener) { if (listener == null) throw new IllegalArgumentException("listener cannot be null."); return listeners.removeValue(listener, true); } public DelayedRemovalArray<EventListener> getListeners () { return listeners; } /** Adds a listener that is only notified during the capture phase. * @see #fire(Event) */ public boolean addCaptureListener (EventListener listener) { if (listener == null) throw new IllegalArgumentException("listener cannot be null."); if (!captureListeners.contains(listener, true)) captureListeners.add(listener); return true; } public boolean removeCaptureListener (EventListener listener) { if (listener == null) throw new IllegalArgumentException("listener cannot be null."); return captureListeners.removeValue(listener, true); } public DelayedRemovalArray<EventListener> getCaptureListeners () { return captureListeners; } public void addAction (Action action) { action.setActor(this); actions.add(action); if (stage != null && stage.getActionsRequestRendering()) Gdx.graphics.requestRendering(); } /** @param action May be null, in which case nothing is done. */ public void removeAction (@Null Action action) { if (action != null && actions.removeValue(action, true)) action.setActor(null); } public Array<Action> getActions () { return actions; } /** Returns true if the actor has one or more actions. */ public boolean hasActions () { return actions.size > 0; } /** Removes all actions on this actor. */ public void clearActions () { for (int i = actions.size - 1; i >= 0; i--) actions.get(i).setActor(null); actions.clear(); } /** Removes all listeners on this actor. */ public void clearListeners () { listeners.clear(); captureListeners.clear(); } /** Removes all actions and listeners on this actor. */ public void clear () { clearActions(); clearListeners(); } /** Returns the stage that this actor is currently in, or null if not in a stage. */ public @Null Stage getStage () { return stage; } /** Called by the framework when this actor or any ascendant is added to a group that is in the stage. * @param stage May be null if the actor or any ascendant is no longer in a stage. */ protected void setStage (Stage stage) { this.stage = stage; } /** Returns true if this actor is the same as or is the descendant of the specified actor. */ public boolean isDescendantOf (Actor actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); Actor parent = this; do { if (parent == actor) return true; parent = parent.parent; } while (parent != null); return false; } /** Returns true if this actor is the same as or is the ascendant of the specified actor. */ public boolean isAscendantOf (Actor actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); do { if (actor == this) return true; actor = actor.parent; } while (actor != null); return false; } /** Returns this actor or the first ascendant of this actor that is assignable with the specified type, or null if none were * found. */ public @Null <T extends Actor> T firstAscendant (Class<T> type) { if (type == null) throw new IllegalArgumentException("actor cannot be null."); Actor actor = this; do { if (ClassReflection.isInstance(type, actor)) return (T)actor; actor = actor.parent; } while (actor != null); return null; } /** Returns true if the actor's parent is not null. */ public boolean hasParent () { return parent != null; } /** Returns the parent actor, or null if not in a group. */ public @Null Group getParent () { return parent; } /** Called by the framework when an actor is added to or removed from a group. * @param parent May be null if the actor has been removed from the parent. */ protected void setParent (@Null Group parent) { this.parent = parent; } /** Returns true if input events are processed by this actor. */ public boolean isTouchable () { return touchable == Touchable.enabled; } public Touchable getTouchable () { return touchable; } /** Determines how touch events are distributed to this actor. Default is {@link Touchable#enabled}. */ public void setTouchable (Touchable touchable) { this.touchable = touchable; } public boolean isVisible () { return visible; } /** If false, the actor will not be drawn and will not receive touch events. Default is true. */ public void setVisible (boolean visible) { this.visible = visible; } /** Returns true if this actor and all ascendants are visible. */ public boolean ascendantsVisible () { Actor actor = this; do { if (!actor.isVisible()) return false; actor = actor.parent; } while (actor != null); return true; } /** @deprecated Use {@link #ascendantsVisible()}. */ @Deprecated public boolean ancestorsVisible () { return ascendantsVisible(); } /** Returns true if this actor is the {@link Stage#getKeyboardFocus() keyboard focus} actor. */ public boolean hasKeyboardFocus () { Stage stage = getStage(); return stage != null && stage.getKeyboardFocus() == this; } /** Returns true if this actor is the {@link Stage#getScrollFocus() scroll focus} actor. */ public boolean hasScrollFocus () { Stage stage = getStage(); return stage != null && stage.getScrollFocus() == this; } /** Returns true if this actor is a target actor for touch focus. * @see Stage#addTouchFocus(EventListener, Actor, Actor, int, int) */ public boolean isTouchFocusTarget () { Stage stage = getStage(); if (stage == null) return false; for (int i = 0, n = stage.touchFocuses.size; i < n; i++) if (stage.touchFocuses.get(i).target == this) return true; return false; } /** Returns true if this actor is a listener actor for touch focus. * @see Stage#addTouchFocus(EventListener, Actor, Actor, int, int) */ public boolean isTouchFocusListener () { Stage stage = getStage(); if (stage == null) return false; for (int i = 0, n = stage.touchFocuses.size; i < n; i++) if (stage.touchFocuses.get(i).listenerActor == this) return true; return false; } /** Returns an application specific object for convenience, or null. */ public @Null Object getUserObject () { return userObject; } /** Sets an application specific object for convenience. */ public void setUserObject (@Null Object userObject) { this.userObject = userObject; } /** Returns the X position of the actor's left edge. */ public float getX () { return x; } /** Returns the X position of the specified {@link Align alignment}. */ public float getX (int alignment) { float x = this.x; if ((alignment & right) != 0) x += width; else if ((alignment & left) == 0) // x += width / 2; return x; } public void setX (float x) { if (this.x != x) { this.x = x; positionChanged(); } } /** Sets the x position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setX (float x, int alignment) { if ((alignment & right) != 0) x -= width; else if ((alignment & left) == 0) // x -= width / 2; if (this.x != x) { this.x = x; positionChanged(); } } /** Returns the Y position of the actor's bottom edge. */ public float getY () { return y; } public void setY (float y) { if (this.y != y) { this.y = y; positionChanged(); } } /** Sets the y position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setY (float y, int alignment) { if ((alignment & top) != 0) y -= height; else if ((alignment & bottom) == 0) // y -= height / 2; if (this.y != y) { this.y = y; positionChanged(); } } /** Returns the Y position of the specified {@link Align alignment}. */ public float getY (int alignment) { float y = this.y; if ((alignment & top) != 0) y += height; else if ((alignment & bottom) == 0) // y += height / 2; return y; } /** Sets the position of the actor's bottom left corner. */ public void setPosition (float x, float y) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } } /** Sets the position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setPosition (float x, float y, int alignment) { if ((alignment & right) != 0) x -= width; else if ((alignment & left) == 0) // x -= width / 2; if ((alignment & top) != 0) y -= height; else if ((alignment & bottom) == 0) // y -= height / 2; if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } } /** Add x and y to current position */ public void moveBy (float x, float y) { if (x != 0 || y != 0) { this.x += x; this.y += y; positionChanged(); } } public float getWidth () { return width; } public void setWidth (float width) { if (this.width != width) { this.width = width; sizeChanged(); } } public float getHeight () { return height; } public void setHeight (float height) { if (this.height != height) { this.height = height; sizeChanged(); } } /** Returns y plus height. */ public float getTop () { return y + height; } /** Returns x plus width. */ public float getRight () { return x + width; } /** Called when the actor's position has been changed. */ protected void positionChanged () { } /** Called when the actor's size has been changed. */ protected void sizeChanged () { } /** Called when the actor's scale has been changed. */ protected void scaleChanged () { } /** Called when the actor's rotation has been changed. */ protected void rotationChanged () { } /** Sets the width and height. */ public void setSize (float width, float height) { if (this.width != width || this.height != height) { this.width = width; this.height = height; sizeChanged(); } } /** Adds the specified size to the current size. */ public void sizeBy (float size) { if (size != 0) { width += size; height += size; sizeChanged(); } } /** Adds the specified size to the current size. */ public void sizeBy (float width, float height) { if (width != 0 || height != 0) { this.width += width; this.height += height; sizeChanged(); } } /** Set bounds the x, y, width, and height. */ public void setBounds (float x, float y, float width, float height) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } if (this.width != width || this.height != height) { this.width = width; this.height = height; sizeChanged(); } } public float getOriginX () { return originX; } public void setOriginX (float originX) { this.originX = originX; } public float getOriginY () { return originY; } public void setOriginY (float originY) { this.originY = originY; } /** Sets the origin position which is relative to the actor's bottom left corner. */ public void setOrigin (float originX, float originY) { this.originX = originX; this.originY = originY; } /** Sets the origin position to the specified {@link Align alignment}. */ public void setOrigin (int alignment) { if ((alignment & left) != 0) originX = 0; else if ((alignment & right) != 0) originX = width; else originX = width / 2; if ((alignment & bottom) != 0) originY = 0; else if ((alignment & top) != 0) originY = height; else originY = height / 2; } public float getScaleX () { return scaleX; } public void setScaleX (float scaleX) { if (this.scaleX != scaleX) { this.scaleX = scaleX; scaleChanged(); } } public float getScaleY () { return scaleY; } public void setScaleY (float scaleY) { if (this.scaleY != scaleY) { this.scaleY = scaleY; scaleChanged(); } } /** Sets the scale for both X and Y */ public void setScale (float scaleXY) { if (this.scaleX != scaleXY || this.scaleY != scaleXY) { this.scaleX = scaleXY; this.scaleY = scaleXY; scaleChanged(); } } /** Sets the scale X and scale Y. */ public void setScale (float scaleX, float scaleY) { if (this.scaleX != scaleX || this.scaleY != scaleY) { this.scaleX = scaleX; this.scaleY = scaleY; scaleChanged(); } } /** Adds the specified scale to the current scale. */ public void scaleBy (float scale) { if (scale != 0) { scaleX += scale; scaleY += scale; scaleChanged(); } } /** Adds the specified scale to the current scale. */ public void scaleBy (float scaleX, float scaleY) { if (scaleX != 0 || scaleY != 0) { this.scaleX += scaleX; this.scaleY += scaleY; scaleChanged(); } } public float getRotation () { return rotation; } public void setRotation (float degrees) { if (this.rotation != degrees) { this.rotation = degrees; rotationChanged(); } } /** Adds the specified rotation to the current rotation. */ public void rotateBy (float amountInDegrees) { if (amountInDegrees != 0) { rotation = (rotation + amountInDegrees) % 360; rotationChanged(); } } public void setColor (Color color) { this.color.set(color); } public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); } /** Returns the color the actor will be tinted when drawn. The returned instance can be modified to change the color. */ public Color getColor () { return color; } /** @see #setName(String) * @return May be null. */ public @Null String getName () { return name; } /** Set the actor's name, which is used for identification convenience and by {@link #toString()}. * @param name May be null. * @see Group#findActor(String) */ public void setName (@Null String name) { this.name = name; } /** Changes the z-order for this actor so it is in front of all siblings. */ public void toFront () { setZIndex(Integer.MAX_VALUE); } /** Changes the z-order for this actor so it is in back of all siblings. */ public void toBack () { setZIndex(0); } /** Sets the z-index of this actor. The z-index is the index into the parent's {@link Group#getChildren() children}, where a * lower index is below a higher index. Setting a z-index higher than the number of children will move the child to the front. * Setting a z-index less than zero is invalid. * @return true if the z-index changed. */ public boolean setZIndex (int index) { if (index < 0) throw new IllegalArgumentException("ZIndex cannot be < 0."); Group parent = this.parent; if (parent == null) return false; Array<Actor> children = parent.children; if (children.size <= 1) return false; index = Math.min(index, children.size - 1); if (children.get(index) == this) return false; if (!children.removeValue(this, true)) return false; children.insert(index, this); return true; } /** Returns the z-index of this actor, or -1 if the actor is not in a group. * @see #setZIndex(int) */ public int getZIndex () { Group parent = this.parent; if (parent == null) return -1; return parent.children.indexOf(this, true); } /** Calls {@link #clipBegin(float, float, float, float)} to clip this actor's bounds. */ public boolean clipBegin () { return clipBegin(x, y, width, height); } /** Clips the specified screen aligned rectangle, specified relative to the transform matrix of the stage's Batch. The * transform matrix and the stage's camera must not have rotational components. Calling this method must be followed by a call * to {@link #clipEnd()} if true is returned. * @return false if the clipping area is zero and no drawing should occur. * @see ScissorStack */ public boolean clipBegin (float x, float y, float width, float height) { if (width <= 0 || height <= 0) return false; Stage stage = this.stage; if (stage == null) return false; Rectangle tableBounds = Rectangle.tmp; tableBounds.x = x; tableBounds.y = y; tableBounds.width = width; tableBounds.height = height; Rectangle scissorBounds = Pools.obtain(Rectangle.class); stage.calculateScissors(tableBounds, scissorBounds); if (ScissorStack.pushScissors(scissorBounds)) return true; Pools.free(scissorBounds); return false; } /** Ends clipping begun by {@link #clipBegin(float, float, float, float)}. */ public void clipEnd () { Pools.free(ScissorStack.popScissors()); } /** Transforms the specified point in screen coordinates to the actor's local coordinate system. * @see Stage#screenToStageCoordinates(Vector2) */ public Vector2 screenToLocalCoordinates (Vector2 screenCoords) { Stage stage = this.stage; if (stage == null) return screenCoords; return stageToLocalCoordinates(stage.screenToStageCoordinates(screenCoords)); } /** Transforms the specified point in the stage's coordinates to the actor's local coordinate system. */ public Vector2 stageToLocalCoordinates (Vector2 stageCoords) { if (parent != null) parent.stageToLocalCoordinates(stageCoords); parentToLocalCoordinates(stageCoords); return stageCoords; } /** Converts the coordinates given in the parent's coordinate system to this actor's coordinate system. */ public Vector2 parentToLocalCoordinates (Vector2 parentCoords) { final float rotation = this.rotation; final float scaleX = this.scaleX; final float scaleY = this.scaleY; final float childX = x; final float childY = y; if (rotation == 0) { if (scaleX == 1 && scaleY == 1) { parentCoords.x -= childX; parentCoords.y -= childY; } else { final float originX = this.originX; final float originY = this.originY; parentCoords.x = (parentCoords.x - childX - originX) / scaleX + originX; parentCoords.y = (parentCoords.y - childY - originY) / scaleY + originY; } } else { final float cos = (float)Math.cos(rotation * MathUtils.degreesToRadians); final float sin = (float)Math.sin(rotation * MathUtils.degreesToRadians); final float originX = this.originX; final float originY = this.originY; final float tox = parentCoords.x - childX - originX; final float toy = parentCoords.y - childY - originY; parentCoords.x = (tox * cos + toy * sin) / scaleX + originX; parentCoords.y = (tox * -sin + toy * cos) / scaleY + originY; } return parentCoords; } /** Transforms the specified point in the actor's coordinates to be in screen coordinates. * @see Stage#stageToScreenCoordinates(Vector2) */ public Vector2 localToScreenCoordinates (Vector2 localCoords) { Stage stage = this.stage; if (stage == null) return localCoords; return stage.stageToScreenCoordinates(localToAscendantCoordinates(null, localCoords)); } /** Transforms the specified point in the actor's coordinates to be in the stage's coordinates. */ public Vector2 localToStageCoordinates (Vector2 localCoords) { return localToAscendantCoordinates(null, localCoords); } /** Transforms the specified point in the actor's coordinates to be in the parent's coordinates. */ public Vector2 localToParentCoordinates (Vector2 localCoords) { final float rotation = -this.rotation; final float scaleX = this.scaleX; final float scaleY = this.scaleY; final float x = this.x; final float y = this.y; if (rotation == 0) { if (scaleX == 1 && scaleY == 1) { localCoords.x += x; localCoords.y += y; } else { final float originX = this.originX; final float originY = this.originY; localCoords.x = (localCoords.x - originX) * scaleX + originX + x; localCoords.y = (localCoords.y - originY) * scaleY + originY + y; } } else { final float cos = (float)Math.cos(rotation * MathUtils.degreesToRadians); final float sin = (float)Math.sin(rotation * MathUtils.degreesToRadians); final float originX = this.originX; final float originY = this.originY; final float tox = (localCoords.x - originX) * scaleX; final float toy = (localCoords.y - originY) * scaleY; localCoords.x = (tox * cos + toy * sin) + originX + x; localCoords.y = (tox * -sin + toy * cos) + originY + y; } return localCoords; } /** Converts coordinates for this actor to those of an ascendant. The ascendant is not required to be the immediate parent. * @throws IllegalArgumentException if the specified actor is not an ascendant of this actor. */ public Vector2 localToAscendantCoordinates (@Null Actor ascendant, Vector2 localCoords) { Actor actor = this; do { actor.localToParentCoordinates(localCoords); actor = actor.parent; if (actor == ascendant) return localCoords; } while (actor != null); throw new IllegalArgumentException("Actor is not an ascendant: " + ascendant); } /** Converts coordinates for this actor to those of another actor, which can be anywhere in the stage. */ public Vector2 localToActorCoordinates (Actor actor, Vector2 localCoords) { localToStageCoordinates(localCoords); return actor.stageToLocalCoordinates(localCoords); } /** Draws this actor's debug lines if {@link #getDebug()} is true. */ public void drawDebug (ShapeRenderer shapes) { drawDebugBounds(shapes); } /** Draws a rectangle for the bounds of this actor if {@link #getDebug()} is true. */ protected void drawDebugBounds (ShapeRenderer shapes) { if (!debug) return; shapes.set(ShapeType.Line); if (stage != null) shapes.setColor(stage.getDebugColor()); shapes.rect(x, y, originX, originY, width, height, scaleX, scaleY, rotation); } /** If true, {@link #drawDebug(ShapeRenderer)} will be called for this actor. */ public void setDebug (boolean enabled) { debug = enabled; if (enabled) Stage.debug = true; } public boolean getDebug () { return debug; } /** Calls {@link #setDebug(boolean)} with {@code true}. */ public Actor debug () { setDebug(true); return this; } public String toString () { String name = this.name; if (name == null) { name = getClass().getName(); int dotIndex = name.lastIndexOf('.'); if (dotIndex != -1) name = name.substring(dotIndex + 1); } return name; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/scenes/scene2d/actions/SizeByAction.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.actions; /** Moves an actor from its current size to a relative size. * @author Nathan Sweet */ public class SizeByAction extends RelativeTemporalAction { private float amountWidth, amountHeight; protected void updateRelative (float percentDelta) { target.sizeBy(amountWidth * percentDelta, amountHeight * percentDelta); } public void setAmount (float width, float height) { amountWidth = width; amountHeight = height; } public float getAmountWidth () { return amountWidth; } public void setAmountWidth (float width) { amountWidth = width; } public float getAmountHeight () { return amountHeight; } public void setAmountHeight (float height) { amountHeight = height; } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.actions; /** Moves an actor from its current size to a relative size. * @author Nathan Sweet */ public class SizeByAction extends RelativeTemporalAction { private float amountWidth, amountHeight; protected void updateRelative (float percentDelta) { target.sizeBy(amountWidth * percentDelta, amountHeight * percentDelta); } public void setAmount (float width, float height) { amountWidth = width; amountHeight = height; } public float getAmountWidth () { return amountWidth; } public void setAmountWidth (float width) { amountWidth = width; } public float getAmountHeight () { return amountHeight; } public void setAmountHeight (float height) { amountHeight = height; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btTriangleRaycastCallback.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.math.Vector3; public class btTriangleRaycastCallback extends btTriangleCallback { private long swigCPtr; protected btTriangleRaycastCallback (final String className, long cPtr, boolean cMemoryOwn) { super(className, CollisionJNI.btTriangleRaycastCallback_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btTriangleRaycastCallback, normally you should not need this constructor it's intended for low-level * usage. */ public btTriangleRaycastCallback (long cPtr, boolean cMemoryOwn) { this("btTriangleRaycastCallback", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(CollisionJNI.btTriangleRaycastCallback_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btTriangleRaycastCallback obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btTriangleRaycastCallback(swigCPtr); } swigCPtr = 0; } super.delete(); } protected void swigDirectorDisconnect () { swigCMemOwn = false; delete(); } public void swigReleaseOwnership () { swigCMemOwn = false; CollisionJNI.btTriangleRaycastCallback_change_ownership(this, swigCPtr, false); } public void swigTakeOwnership () { swigCMemOwn = true; CollisionJNI.btTriangleRaycastCallback_change_ownership(this, swigCPtr, true); } public void setFrom (btVector3 value) { CollisionJNI.btTriangleRaycastCallback_from_set(swigCPtr, this, btVector3.getCPtr(value), value); } public btVector3 getFrom () { long cPtr = CollisionJNI.btTriangleRaycastCallback_from_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3(cPtr, false); } public void setTo (btVector3 value) { CollisionJNI.btTriangleRaycastCallback_to_set(swigCPtr, this, btVector3.getCPtr(value), value); } public btVector3 getTo () { long cPtr = CollisionJNI.btTriangleRaycastCallback_to_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3(cPtr, false); } public void setFlags (long value) { CollisionJNI.btTriangleRaycastCallback_flags_set(swigCPtr, this, value); } public long getFlags () { return CollisionJNI.btTriangleRaycastCallback_flags_get(swigCPtr, this); } public void setHitFraction (float value) { CollisionJNI.btTriangleRaycastCallback_hitFraction_set(swigCPtr, this, value); } public float getHitFraction () { return CollisionJNI.btTriangleRaycastCallback_hitFraction_get(swigCPtr, this); } public btTriangleRaycastCallback (Vector3 from, Vector3 to, long flags) { this(CollisionJNI.new_btTriangleRaycastCallback__SWIG_0(from, to, flags), true); CollisionJNI.btTriangleRaycastCallback_director_connect(this, swigCPtr, swigCMemOwn, true); } public btTriangleRaycastCallback (Vector3 from, Vector3 to) { this(CollisionJNI.new_btTriangleRaycastCallback__SWIG_1(from, to), true); CollisionJNI.btTriangleRaycastCallback_director_connect(this, swigCPtr, swigCMemOwn, true); } public void processTriangle (btVector3 triangle, int partId, int triangleIndex) { if (getClass() == btTriangleRaycastCallback.class) CollisionJNI.btTriangleRaycastCallback_processTriangle(swigCPtr, this, btVector3.getCPtr(triangle), triangle, partId, triangleIndex); else CollisionJNI.btTriangleRaycastCallback_processTriangleSwigExplicitbtTriangleRaycastCallback(swigCPtr, this, btVector3.getCPtr(triangle), triangle, partId, triangleIndex); } public float reportHit (Vector3 hitNormalLocal, float hitFraction, int partId, int triangleIndex) { return CollisionJNI.btTriangleRaycastCallback_reportHit(swigCPtr, this, hitNormalLocal, hitFraction, partId, triangleIndex); } public final static class EFlags { public final static int kF_None = 0; public final static int kF_FilterBackfaces = 1 << 0; public final static int kF_KeepUnflippedNormal = 1 << 1; public final static int kF_UseSubSimplexConvexCastRaytest = 1 << 2; public final static int kF_UseGjkConvexCastRaytest = 1 << 3; public final static int kF_Terminator = 0xFFFFFFFF; } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.math.Vector3; public class btTriangleRaycastCallback extends btTriangleCallback { private long swigCPtr; protected btTriangleRaycastCallback (final String className, long cPtr, boolean cMemoryOwn) { super(className, CollisionJNI.btTriangleRaycastCallback_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btTriangleRaycastCallback, normally you should not need this constructor it's intended for low-level * usage. */ public btTriangleRaycastCallback (long cPtr, boolean cMemoryOwn) { this("btTriangleRaycastCallback", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(CollisionJNI.btTriangleRaycastCallback_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btTriangleRaycastCallback obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btTriangleRaycastCallback(swigCPtr); } swigCPtr = 0; } super.delete(); } protected void swigDirectorDisconnect () { swigCMemOwn = false; delete(); } public void swigReleaseOwnership () { swigCMemOwn = false; CollisionJNI.btTriangleRaycastCallback_change_ownership(this, swigCPtr, false); } public void swigTakeOwnership () { swigCMemOwn = true; CollisionJNI.btTriangleRaycastCallback_change_ownership(this, swigCPtr, true); } public void setFrom (btVector3 value) { CollisionJNI.btTriangleRaycastCallback_from_set(swigCPtr, this, btVector3.getCPtr(value), value); } public btVector3 getFrom () { long cPtr = CollisionJNI.btTriangleRaycastCallback_from_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3(cPtr, false); } public void setTo (btVector3 value) { CollisionJNI.btTriangleRaycastCallback_to_set(swigCPtr, this, btVector3.getCPtr(value), value); } public btVector3 getTo () { long cPtr = CollisionJNI.btTriangleRaycastCallback_to_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3(cPtr, false); } public void setFlags (long value) { CollisionJNI.btTriangleRaycastCallback_flags_set(swigCPtr, this, value); } public long getFlags () { return CollisionJNI.btTriangleRaycastCallback_flags_get(swigCPtr, this); } public void setHitFraction (float value) { CollisionJNI.btTriangleRaycastCallback_hitFraction_set(swigCPtr, this, value); } public float getHitFraction () { return CollisionJNI.btTriangleRaycastCallback_hitFraction_get(swigCPtr, this); } public btTriangleRaycastCallback (Vector3 from, Vector3 to, long flags) { this(CollisionJNI.new_btTriangleRaycastCallback__SWIG_0(from, to, flags), true); CollisionJNI.btTriangleRaycastCallback_director_connect(this, swigCPtr, swigCMemOwn, true); } public btTriangleRaycastCallback (Vector3 from, Vector3 to) { this(CollisionJNI.new_btTriangleRaycastCallback__SWIG_1(from, to), true); CollisionJNI.btTriangleRaycastCallback_director_connect(this, swigCPtr, swigCMemOwn, true); } public void processTriangle (btVector3 triangle, int partId, int triangleIndex) { if (getClass() == btTriangleRaycastCallback.class) CollisionJNI.btTriangleRaycastCallback_processTriangle(swigCPtr, this, btVector3.getCPtr(triangle), triangle, partId, triangleIndex); else CollisionJNI.btTriangleRaycastCallback_processTriangleSwigExplicitbtTriangleRaycastCallback(swigCPtr, this, btVector3.getCPtr(triangle), triangle, partId, triangleIndex); } public float reportHit (Vector3 hitNormalLocal, float hitFraction, int partId, int triangleIndex) { return CollisionJNI.btTriangleRaycastCallback_reportHit(swigCPtr, this, hitNormalLocal, hitFraction, partId, triangleIndex); } public final static class EFlags { public final static int kF_None = 0; public final static int kF_FilterBackfaces = 1 << 0; public final static int kF_KeepUnflippedNormal = 1 << 1; public final static int kF_UseSubSimplexConvexCastRaytest = 1 << 2; public final static int kF_UseGjkConvexCastRaytest = 1 << 3; public final static int kF_Terminator = 0xFFFFFFFF; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests/src/com/badlogic/gdx/tests/box2d/SphereStack.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ /* * Copyright 2010 Mario Zechner ([email protected]), Nathan Sweet ([email protected]) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package com.badlogic.gdx.tests.box2d; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.physics.box2d.Body; import com.badlogic.gdx.physics.box2d.BodyDef; import com.badlogic.gdx.physics.box2d.BodyDef.BodyType; import com.badlogic.gdx.physics.box2d.CircleShape; import com.badlogic.gdx.physics.box2d.EdgeShape; import com.badlogic.gdx.physics.box2d.World; public class SphereStack extends Box2DTest { int e_count = 10; @Override protected void createWorld (World world) { { BodyDef bd = new BodyDef(); Body ground = world.createBody(bd); EdgeShape shape = new EdgeShape(); shape.set(new Vector2(-40, 0), new Vector2(40, 0)); ground.createFixture(shape, 0); shape.dispose(); } { CircleShape shape = new CircleShape(); shape.setRadius(1.0f); for (int i = 0; i < e_count; i++) { BodyDef bd = new BodyDef(); bd.type = BodyType.DynamicBody; bd.position.set(0, 4.0f + 3.0f * i); Body body = world.createBody(bd); body.createFixture(shape, 1.0f); } shape.dispose(); } } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ /* * Copyright 2010 Mario Zechner ([email protected]), Nathan Sweet ([email protected]) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package com.badlogic.gdx.tests.box2d; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.physics.box2d.Body; import com.badlogic.gdx.physics.box2d.BodyDef; import com.badlogic.gdx.physics.box2d.BodyDef.BodyType; import com.badlogic.gdx.physics.box2d.CircleShape; import com.badlogic.gdx.physics.box2d.EdgeShape; import com.badlogic.gdx.physics.box2d.World; public class SphereStack extends Box2DTest { int e_count = 10; @Override protected void createWorld (World world) { { BodyDef bd = new BodyDef(); Body ground = world.createBody(bd); EdgeShape shape = new EdgeShape(); shape.set(new Vector2(-40, 0), new Vector2(40, 0)); ground.createFixture(shape, 0); shape.dispose(); } { CircleShape shape = new CircleShape(); shape.setRadius(1.0f); for (int i = 0; i < e_count; i++) { BodyDef bd = new BodyDef(); bd.type = BodyType.DynamicBody; bd.position.set(0, 4.0f + 3.0f * i); Body body = world.createBody(bd); body.createFixture(shape, 1.0f); } shape.dispose(); } } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/CountPanel.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tools.flame; import java.awt.GridBagConstraints; import java.awt.Insets; import javax.swing.JLabel; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import com.badlogic.gdx.graphics.g3d.particles.ParticleController; /** @author Inferno */ class CountPanel extends EditorPanel { Slider maxSlider, minSlider; public CountPanel (final FlameMain editor, String name, String description, int min, int max) { super(editor, name, description); initializeComponents(min, max); setValue(null); } private void initializeComponents (int min, int max) { // Min minSlider = new Slider(0, 0, 999999, 1); minSlider.setValue(min); minSlider.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { ParticleController controller = editor.getEmitter(); controller.emitter.minParticleCount = (int)minSlider.getValue(); editor.restart(); } }); // Max maxSlider = new Slider(0, 0, 999999, 1); maxSlider.setValue(max); maxSlider.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { ParticleController controller = editor.getEmitter(); controller.emitter.maxParticleCount = (int)maxSlider.getValue(); editor.restart(); } }); int i = 0; contentPanel.add(new JLabel("Min"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 0, 0, 0), 0, 0)); contentPanel.add(minSlider, new GridBagConstraints(1, i++, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 0, 0, 0), 0, 0)); contentPanel.add(new JLabel("Max"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 0, 0, 0), 0, 0)); contentPanel.add(maxSlider, new GridBagConstraints(1, i++, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 0, 0, 0), 0, 0)); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tools.flame; import java.awt.GridBagConstraints; import java.awt.Insets; import javax.swing.JLabel; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import com.badlogic.gdx.graphics.g3d.particles.ParticleController; /** @author Inferno */ class CountPanel extends EditorPanel { Slider maxSlider, minSlider; public CountPanel (final FlameMain editor, String name, String description, int min, int max) { super(editor, name, description); initializeComponents(min, max); setValue(null); } private void initializeComponents (int min, int max) { // Min minSlider = new Slider(0, 0, 999999, 1); minSlider.setValue(min); minSlider.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { ParticleController controller = editor.getEmitter(); controller.emitter.minParticleCount = (int)minSlider.getValue(); editor.restart(); } }); // Max maxSlider = new Slider(0, 0, 999999, 1); maxSlider.setValue(max); maxSlider.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { ParticleController controller = editor.getEmitter(); controller.emitter.maxParticleCount = (int)maxSlider.getValue(); editor.restart(); } }); int i = 0; contentPanel.add(new JLabel("Min"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 0, 0, 0), 0, 0)); contentPanel.add(minSlider, new GridBagConstraints(1, i++, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 0, 0, 0), 0, 0)); contentPanel.add(new JLabel("Max"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 0, 0, 0), 0, 0)); contentPanel.add(maxSlider, new GridBagConstraints(1, i++, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 0, 0, 0), 0, 0)); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/softbody/com/badlogic/gdx/physics/bullet/softbody/SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.softbody; public class SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t { private transient long swigCPtr; protected SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t (long cPtr, @SuppressWarnings("unused") boolean futureUse) { swigCPtr = cPtr; } protected SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t () { swigCPtr = 0; } protected static long getCPtr (SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.softbody; public class SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t { private transient long swigCPtr; protected SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t (long cPtr, @SuppressWarnings("unused") boolean futureUse) { swigCPtr = cPtr; } protected SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t () { swigCPtr = 0; } protected static long getCPtr (SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/broadphase/Pair.java
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ package org.jbox2d.collision.broadphase; // updated to rev 100 /** Java note: at the "creation" of each node, a random key is given to that node, and that's what we sort from. */ public class Pair implements Comparable<Pair> { public int proxyIdA; public int proxyIdB; public int compareTo (Pair pair2) { if (this.proxyIdA < pair2.proxyIdA) { return -1; } if (this.proxyIdA == pair2.proxyIdA) { return proxyIdB < pair2.proxyIdB ? -1 : proxyIdB == pair2.proxyIdB ? 0 : 1; } return 1; } }
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ package org.jbox2d.collision.broadphase; // updated to rev 100 /** Java note: at the "creation" of each node, a random key is given to that node, and that's what we sort from. */ public class Pair implements Comparable<Pair> { public int proxyIdA; public int proxyIdB; public int compareTo (Pair pair2) { if (this.proxyIdA < pair2.proxyIdA) { return -1; } if (this.proxyIdA == pair2.proxyIdA) { return proxyIdB < pair2.proxyIdB ? -1 : proxyIdB == pair2.proxyIdB ? 0 : 1; } return 1; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btTriangleMeshShape.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.math.Vector3; public class btTriangleMeshShape extends btConcaveShape { private long swigCPtr; protected btTriangleMeshShape (final String className, long cPtr, boolean cMemoryOwn) { super(className, CollisionJNI.btTriangleMeshShape_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btTriangleMeshShape, normally you should not need this constructor it's intended for low-level usage. */ public btTriangleMeshShape (long cPtr, boolean cMemoryOwn) { this("btTriangleMeshShape", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(CollisionJNI.btTriangleMeshShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btTriangleMeshShape obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btTriangleMeshShape(swigCPtr); } swigCPtr = 0; } super.delete(); } public long operatorNew (long sizeInBytes) { return CollisionJNI.btTriangleMeshShape_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDelete (long ptr) { CollisionJNI.btTriangleMeshShape_operatorDelete__SWIG_0(swigCPtr, this, ptr); } public long operatorNew (long arg0, long ptr) { return CollisionJNI.btTriangleMeshShape_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDelete (long arg0, long arg1) { CollisionJNI.btTriangleMeshShape_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1); } public long operatorNewArray (long sizeInBytes) { return CollisionJNI.btTriangleMeshShape_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDeleteArray (long ptr) { CollisionJNI.btTriangleMeshShape_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr); } public long operatorNewArray (long arg0, long ptr) { return CollisionJNI.btTriangleMeshShape_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDeleteArray (long arg0, long arg1) { CollisionJNI.btTriangleMeshShape_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1); } public Vector3 localGetSupportingVertex (Vector3 vec) { return CollisionJNI.btTriangleMeshShape_localGetSupportingVertex(swigCPtr, this, vec); } public Vector3 localGetSupportingVertexWithoutMargin (Vector3 vec) { return CollisionJNI.btTriangleMeshShape_localGetSupportingVertexWithoutMargin(swigCPtr, this, vec); } public void recalcLocalAabb () { CollisionJNI.btTriangleMeshShape_recalcLocalAabb(swigCPtr, this); } public btStridingMeshInterface getMeshInterface () { long cPtr = CollisionJNI.btTriangleMeshShape_getMeshInterface(swigCPtr, this); return (cPtr == 0) ? null : new btStridingMeshInterface(cPtr, false); } public btStridingMeshInterface getMeshInterfaceConst () { long cPtr = CollisionJNI.btTriangleMeshShape_getMeshInterfaceConst(swigCPtr, this); return (cPtr == 0) ? null : new btStridingMeshInterface(cPtr, false); } public Vector3 getLocalAabbMin () { return CollisionJNI.btTriangleMeshShape_getLocalAabbMin(swigCPtr, this); } public Vector3 getLocalAabbMax () { return CollisionJNI.btTriangleMeshShape_getLocalAabbMax(swigCPtr, this); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.math.Vector3; public class btTriangleMeshShape extends btConcaveShape { private long swigCPtr; protected btTriangleMeshShape (final String className, long cPtr, boolean cMemoryOwn) { super(className, CollisionJNI.btTriangleMeshShape_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btTriangleMeshShape, normally you should not need this constructor it's intended for low-level usage. */ public btTriangleMeshShape (long cPtr, boolean cMemoryOwn) { this("btTriangleMeshShape", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(CollisionJNI.btTriangleMeshShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btTriangleMeshShape obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btTriangleMeshShape(swigCPtr); } swigCPtr = 0; } super.delete(); } public long operatorNew (long sizeInBytes) { return CollisionJNI.btTriangleMeshShape_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDelete (long ptr) { CollisionJNI.btTriangleMeshShape_operatorDelete__SWIG_0(swigCPtr, this, ptr); } public long operatorNew (long arg0, long ptr) { return CollisionJNI.btTriangleMeshShape_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDelete (long arg0, long arg1) { CollisionJNI.btTriangleMeshShape_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1); } public long operatorNewArray (long sizeInBytes) { return CollisionJNI.btTriangleMeshShape_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDeleteArray (long ptr) { CollisionJNI.btTriangleMeshShape_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr); } public long operatorNewArray (long arg0, long ptr) { return CollisionJNI.btTriangleMeshShape_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDeleteArray (long arg0, long arg1) { CollisionJNI.btTriangleMeshShape_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1); } public Vector3 localGetSupportingVertex (Vector3 vec) { return CollisionJNI.btTriangleMeshShape_localGetSupportingVertex(swigCPtr, this, vec); } public Vector3 localGetSupportingVertexWithoutMargin (Vector3 vec) { return CollisionJNI.btTriangleMeshShape_localGetSupportingVertexWithoutMargin(swigCPtr, this, vec); } public void recalcLocalAabb () { CollisionJNI.btTriangleMeshShape_recalcLocalAabb(swigCPtr, this); } public btStridingMeshInterface getMeshInterface () { long cPtr = CollisionJNI.btTriangleMeshShape_getMeshInterface(swigCPtr, this); return (cPtr == 0) ? null : new btStridingMeshInterface(cPtr, false); } public btStridingMeshInterface getMeshInterfaceConst () { long cPtr = CollisionJNI.btTriangleMeshShape_getMeshInterfaceConst(swigCPtr, this); return (cPtr == 0) ? null : new btStridingMeshInterface(cPtr, false); } public Vector3 getLocalAabbMin () { return CollisionJNI.btTriangleMeshShape_getLocalAabbMin(swigCPtr, this); } public Vector3 getLocalAabbMax () { return CollisionJNI.btTriangleMeshShape_getLocalAabbMax(swigCPtr, this); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/google/gwt/corp/compatibility/Compatibility.java
/* Copyright (C) 1997-2001 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Modifications Copyright 2003-2004 Bytonic Software Copyright 2010 Google Inc. */ package com.google.gwt.corp.compatibility; import java.io.UnsupportedEncodingException; public class Compatibility { public interface Impl { int floatToIntBits (float f); float intBitsToFloat (int i); String createString (byte[] b, int ofs, int length); String getOriginatingServerAddress (); void printStackTrace (Throwable e); String createString (byte[] b, String encoding); void sleep (int i); } public static Impl impl; public static int floatToIntBits (float f) { return impl.floatToIntBits(f); } public static float intBitsToFloat (int i) { return impl.intBitsToFloat(i); } public static String newString (byte[] b) { return impl.createString(b, 0, b.length); } public static String newString (byte[] b, int s, int l) { return impl.createString(b, s, l); } public static String newString (byte[] b, String encoding) throws UnsupportedEncodingException { return impl.createString(b, encoding); } public static String getOriginatingServerAddress () { return impl.getOriginatingServerAddress(); } public static void printStackTrace (Throwable e) { impl.printStackTrace(e); } public static void sleep (int i) { impl.sleep(i); } public static String bytesToString (byte[] data, int len) { char[] chars = new char[len]; for (int i = 0; i < len; i++) { chars[i] = (char)data[i]; } return new String(chars); } public static int stringToBytes (String s, byte[] data) { int len = s.length(); for (int i = 0; i < len; i++) { data[i] = (byte)s.charAt(i); } return len; } public static String bytesToHex (byte[] data, int len) { char[] hex = new char[len * 2]; for (int i = 0; i < len; i++) { int di = data[i]; hex[i << 1] = Character.forDigit((di >> 4) & 15, 16); hex[(i << 1) + 1] = Character.forDigit(di & 15, 16); } return new String(hex); } public static int hexToBytes (String hex, byte[] data) { int len = hex.length(); for (int i = 0; i < len; i += 2) { data[i >> 1] = (byte)((Character.digit(hex.charAt(i), 16) << 4) | Character.digit(hex.charAt(i + 1), 16)); } return len / 2; } }
/* Copyright (C) 1997-2001 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Modifications Copyright 2003-2004 Bytonic Software Copyright 2010 Google Inc. */ package com.google.gwt.corp.compatibility; import java.io.UnsupportedEncodingException; public class Compatibility { public interface Impl { int floatToIntBits (float f); float intBitsToFloat (int i); String createString (byte[] b, int ofs, int length); String getOriginatingServerAddress (); void printStackTrace (Throwable e); String createString (byte[] b, String encoding); void sleep (int i); } public static Impl impl; public static int floatToIntBits (float f) { return impl.floatToIntBits(f); } public static float intBitsToFloat (int i) { return impl.intBitsToFloat(i); } public static String newString (byte[] b) { return impl.createString(b, 0, b.length); } public static String newString (byte[] b, int s, int l) { return impl.createString(b, s, l); } public static String newString (byte[] b, String encoding) throws UnsupportedEncodingException { return impl.createString(b, encoding); } public static String getOriginatingServerAddress () { return impl.getOriginatingServerAddress(); } public static void printStackTrace (Throwable e) { impl.printStackTrace(e); } public static void sleep (int i) { impl.sleep(i); } public static String bytesToString (byte[] data, int len) { char[] chars = new char[len]; for (int i = 0; i < len; i++) { chars[i] = (char)data[i]; } return new String(chars); } public static int stringToBytes (String s, byte[] data) { int len = s.length(); for (int i = 0; i < len; i++) { data[i] = (byte)s.charAt(i); } return len; } public static String bytesToHex (byte[] data, int len) { char[] hex = new char[len * 2]; for (int i = 0; i < len; i++) { int di = data[i]; hex[i << 1] = Character.forDigit((di >> 4) & 15, 16); hex[(i << 1) + 1] = Character.forDigit(di & 15, 16); } return new String(hex); } public static int hexToBytes (String hex, byte[] data) { int len = hex.length(); for (int i = 0; i < len; i += 2) { data[i >> 1] = (byte)((Character.digit(hex.charAt(i), 16) << 4) | Character.digit(hex.charAt(i + 1), 16)); } return len / 2; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/scenes/scene2d/ui/SplitPane.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.InputListener; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.scenes.scene2d.utils.ScissorStack; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.Null; /** A container that contains two widgets and is divided either horizontally or vertically. The user may resize the widgets. The * child widgets are always sized to fill their side of the SplitPane. * <p> * Minimum and maximum split amounts can be set to limit the motion of the resizing handle. The handle position is also prevented * from shrinking the children below their minimum sizes. If these limits over-constrain the handle, it will be locked and placed * at an averaged location, resulting in cropped children. The minimum child size can be ignored (allowing dynamic cropping) by * wrapping the child in a {@linkplain Container} with a minimum size of 0 and {@linkplain Container#fill() fill()} set, or by * overriding {@link #clampSplitAmount()}. * <p> * The preferred size of a SplitPane is that of the child widgets and the size of the {@link SplitPaneStyle#handle}. The widgets * are sized depending on the SplitPane size and the {@link #setSplitAmount(float) split position}. * @author mzechner * @author Nathan Sweet */ public class SplitPane extends WidgetGroup { SplitPaneStyle style; private @Null Actor firstWidget, secondWidget; boolean vertical; float splitAmount = 0.5f, minAmount, maxAmount = 1; private final Rectangle firstWidgetBounds = new Rectangle(); private final Rectangle secondWidgetBounds = new Rectangle(); final Rectangle handleBounds = new Rectangle(); boolean cursorOverHandle; private final Rectangle tempScissors = new Rectangle(); Vector2 lastPoint = new Vector2(); Vector2 handlePosition = new Vector2(); /** @param firstWidget May be null. * @param secondWidget May be null. */ public SplitPane (@Null Actor firstWidget, @Null Actor secondWidget, boolean vertical, Skin skin) { this(firstWidget, secondWidget, vertical, skin, "default-" + (vertical ? "vertical" : "horizontal")); } /** @param firstWidget May be null. * @param secondWidget May be null. */ public SplitPane (@Null Actor firstWidget, @Null Actor secondWidget, boolean vertical, Skin skin, String styleName) { this(firstWidget, secondWidget, vertical, skin.get(styleName, SplitPaneStyle.class)); } /** @param firstWidget May be null. * @param secondWidget May be null. */ public SplitPane (@Null Actor firstWidget, @Null Actor secondWidget, boolean vertical, SplitPaneStyle style) { this.vertical = vertical; setStyle(style); setFirstWidget(firstWidget); setSecondWidget(secondWidget); setSize(getPrefWidth(), getPrefHeight()); initialize(); } private void initialize () { addListener(new InputListener() { int draggingPointer = -1; public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (draggingPointer != -1) return false; if (pointer == 0 && button != 0) return false; if (handleBounds.contains(x, y)) { draggingPointer = pointer; lastPoint.set(x, y); handlePosition.set(handleBounds.x, handleBounds.y); return true; } return false; } public void touchUp (InputEvent event, float x, float y, int pointer, int button) { if (pointer == draggingPointer) draggingPointer = -1; } public void touchDragged (InputEvent event, float x, float y, int pointer) { if (pointer != draggingPointer) return; Drawable handle = style.handle; if (!vertical) { float delta = x - lastPoint.x; float availWidth = getWidth() - handle.getMinWidth(); float dragX = handlePosition.x + delta; handlePosition.x = dragX; dragX = Math.max(0, dragX); dragX = Math.min(availWidth, dragX); splitAmount = dragX / availWidth; lastPoint.set(x, y); } else { float delta = y - lastPoint.y; float availHeight = getHeight() - handle.getMinHeight(); float dragY = handlePosition.y + delta; handlePosition.y = dragY; dragY = Math.max(0, dragY); dragY = Math.min(availHeight, dragY); splitAmount = 1 - (dragY / availHeight); lastPoint.set(x, y); } invalidate(); } public boolean mouseMoved (InputEvent event, float x, float y) { cursorOverHandle = handleBounds.contains(x, y); return false; } }); } public void setStyle (SplitPaneStyle style) { this.style = style; invalidateHierarchy(); } /** Returns the split pane's style. Modifying the returned style may not have an effect until {@link #setStyle(SplitPaneStyle)} * is called. */ public SplitPaneStyle getStyle () { return style; } public void layout () { clampSplitAmount(); if (!vertical) calculateHorizBoundsAndPositions(); else calculateVertBoundsAndPositions(); Actor firstWidget = this.firstWidget; if (firstWidget != null) { Rectangle firstWidgetBounds = this.firstWidgetBounds; firstWidget.setBounds(firstWidgetBounds.x, firstWidgetBounds.y, firstWidgetBounds.width, firstWidgetBounds.height); if (firstWidget instanceof Layout) ((Layout)firstWidget).validate(); } Actor secondWidget = this.secondWidget; if (secondWidget != null) { Rectangle secondWidgetBounds = this.secondWidgetBounds; secondWidget.setBounds(secondWidgetBounds.x, secondWidgetBounds.y, secondWidgetBounds.width, secondWidgetBounds.height); if (secondWidget instanceof Layout) ((Layout)secondWidget).validate(); } } public float getPrefWidth () { float first = firstWidget == null ? 0 : (firstWidget instanceof Layout ? ((Layout)firstWidget).getPrefWidth() : firstWidget.getWidth()); float second = secondWidget == null ? 0 : (secondWidget instanceof Layout ? ((Layout)secondWidget).getPrefWidth() : secondWidget.getWidth()); if (vertical) return Math.max(first, second); return first + style.handle.getMinWidth() + second; } public float getPrefHeight () { float first = firstWidget == null ? 0 : (firstWidget instanceof Layout ? ((Layout)firstWidget).getPrefHeight() : firstWidget.getHeight()); float second = secondWidget == null ? 0 : (secondWidget instanceof Layout ? ((Layout)secondWidget).getPrefHeight() : secondWidget.getHeight()); if (!vertical) return Math.max(first, second); return first + style.handle.getMinHeight() + second; } public float getMinWidth () { float first = firstWidget instanceof Layout ? ((Layout)firstWidget).getMinWidth() : 0; float second = secondWidget instanceof Layout ? ((Layout)secondWidget).getMinWidth() : 0; if (vertical) return Math.max(first, second); return first + style.handle.getMinWidth() + second; } public float getMinHeight () { float first = firstWidget instanceof Layout ? ((Layout)firstWidget).getMinHeight() : 0; float second = secondWidget instanceof Layout ? ((Layout)secondWidget).getMinHeight() : 0; if (!vertical) return Math.max(first, second); return first + style.handle.getMinHeight() + second; } public void setVertical (boolean vertical) { if (this.vertical == vertical) return; this.vertical = vertical; invalidateHierarchy(); } public boolean isVertical () { return vertical; } private void calculateHorizBoundsAndPositions () { Drawable handle = style.handle; float height = getHeight(); float availWidth = getWidth() - handle.getMinWidth(); float leftAreaWidth = (int)(availWidth * splitAmount); float rightAreaWidth = availWidth - leftAreaWidth; float handleWidth = handle.getMinWidth(); firstWidgetBounds.set(0, 0, leftAreaWidth, height); secondWidgetBounds.set(leftAreaWidth + handleWidth, 0, rightAreaWidth, height); handleBounds.set(leftAreaWidth, 0, handleWidth, height); } private void calculateVertBoundsAndPositions () { Drawable handle = style.handle; float width = getWidth(); float height = getHeight(); float availHeight = height - handle.getMinHeight(); float topAreaHeight = (int)(availHeight * splitAmount); float bottomAreaHeight = availHeight - topAreaHeight; float handleHeight = handle.getMinHeight(); firstWidgetBounds.set(0, height - topAreaHeight, width, topAreaHeight); secondWidgetBounds.set(0, 0, width, bottomAreaHeight); handleBounds.set(0, bottomAreaHeight, width, handleHeight); } public void draw (Batch batch, float parentAlpha) { Stage stage = getStage(); if (stage == null) return; validate(); Color color = getColor(); float alpha = color.a * parentAlpha; applyTransform(batch, computeTransform()); if (firstWidget != null && firstWidget.isVisible()) { batch.flush(); stage.calculateScissors(firstWidgetBounds, tempScissors); if (ScissorStack.pushScissors(tempScissors)) { firstWidget.draw(batch, alpha); batch.flush(); ScissorStack.popScissors(); } } if (secondWidget != null && secondWidget.isVisible()) { batch.flush(); stage.calculateScissors(secondWidgetBounds, tempScissors); if (ScissorStack.pushScissors(tempScissors)) { secondWidget.draw(batch, alpha); batch.flush(); ScissorStack.popScissors(); } } batch.setColor(color.r, color.g, color.b, alpha); style.handle.draw(batch, handleBounds.x, handleBounds.y, handleBounds.width, handleBounds.height); resetTransform(batch); } /** @param splitAmount The split amount between the min and max amount. This parameter is clamped during layout. See * {@link #clampSplitAmount()}. */ public void setSplitAmount (float splitAmount) { this.splitAmount = splitAmount; // will be clamped during layout invalidate(); } public float getSplitAmount () { return splitAmount; } /** Called during layout to clamp the {@link #splitAmount} within the set limits. By default it imposes the limits of the * {@linkplain #getMinSplitAmount() min amount}, {@linkplain #getMaxSplitAmount() max amount}, and min sizes of the children. * This method is internally called in response to layout, so it should not call {@link #invalidate()}. */ protected void clampSplitAmount () { float effectiveMinAmount = minAmount, effectiveMaxAmount = maxAmount; if (vertical) { float availableHeight = getHeight() - style.handle.getMinHeight(); if (firstWidget instanceof Layout) effectiveMinAmount = Math.max(effectiveMinAmount, Math.min(((Layout)firstWidget).getMinHeight() / availableHeight, 1)); if (secondWidget instanceof Layout) effectiveMaxAmount = Math.min(effectiveMaxAmount, 1 - Math.min(((Layout)secondWidget).getMinHeight() / availableHeight, 1)); } else { float availableWidth = getWidth() - style.handle.getMinWidth(); if (firstWidget instanceof Layout) effectiveMinAmount = Math.max(effectiveMinAmount, Math.min(((Layout)firstWidget).getMinWidth() / availableWidth, 1)); if (secondWidget instanceof Layout) effectiveMaxAmount = Math.min(effectiveMaxAmount, 1 - Math.min(((Layout)secondWidget).getMinWidth() / availableWidth, 1)); } if (effectiveMinAmount > effectiveMaxAmount) // Locked handle. Average the position. splitAmount = 0.5f * (effectiveMinAmount + effectiveMaxAmount); else splitAmount = Math.max(Math.min(splitAmount, effectiveMaxAmount), effectiveMinAmount); } public float getMinSplitAmount () { return minAmount; } public void setMinSplitAmount (float minAmount) { if (minAmount < 0 || minAmount > 1) throw new GdxRuntimeException("minAmount has to be >= 0 and <= 1"); this.minAmount = minAmount; } public float getMaxSplitAmount () { return maxAmount; } public void setMaxSplitAmount (float maxAmount) { if (maxAmount < 0 || maxAmount > 1) throw new GdxRuntimeException("maxAmount has to be >= 0 and <= 1"); this.maxAmount = maxAmount; } /** @param widget May be null. */ public void setFirstWidget (@Null Actor widget) { if (firstWidget != null) super.removeActor(firstWidget); firstWidget = widget; if (widget != null) super.addActor(widget); invalidate(); } /** @param widget May be null. */ public void setSecondWidget (@Null Actor widget) { if (secondWidget != null) super.removeActor(secondWidget); secondWidget = widget; if (widget != null) super.addActor(widget); invalidate(); } public void addActor (Actor actor) { throw new UnsupportedOperationException("Use SplitPane#setWidget."); } public void addActorAt (int index, Actor actor) { throw new UnsupportedOperationException("Use SplitPane#setWidget."); } public void addActorBefore (Actor actorBefore, Actor actor) { throw new UnsupportedOperationException("Use SplitPane#setWidget."); } public boolean removeActor (Actor actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); if (actor == firstWidget) { setFirstWidget(null); return true; } if (actor == secondWidget) { setSecondWidget(null); return true; } return true; } public boolean removeActor (Actor actor, boolean unfocus) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); if (actor == firstWidget) { super.removeActor(actor, unfocus); firstWidget = null; invalidate(); return true; } if (actor == secondWidget) { super.removeActor(actor, unfocus); secondWidget = null; invalidate(); return true; } return false; } public Actor removeActorAt (int index, boolean unfocus) { Actor actor = super.removeActorAt(index, unfocus); if (actor == firstWidget) { super.removeActor(actor, unfocus); firstWidget = null; invalidate(); } else if (actor == secondWidget) { super.removeActor(actor, unfocus); secondWidget = null; invalidate(); } return actor; } public boolean isCursorOverHandle () { return cursorOverHandle; } /** The style for a splitpane, see {@link SplitPane}. * @author mzechner * @author Nathan Sweet */ static public class SplitPaneStyle { public Drawable handle; public SplitPaneStyle () { } public SplitPaneStyle (Drawable handle) { this.handle = handle; } public SplitPaneStyle (SplitPaneStyle style) { handle = style.handle; } } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.InputListener; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.scenes.scene2d.utils.ScissorStack; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.Null; /** A container that contains two widgets and is divided either horizontally or vertically. The user may resize the widgets. The * child widgets are always sized to fill their side of the SplitPane. * <p> * Minimum and maximum split amounts can be set to limit the motion of the resizing handle. The handle position is also prevented * from shrinking the children below their minimum sizes. If these limits over-constrain the handle, it will be locked and placed * at an averaged location, resulting in cropped children. The minimum child size can be ignored (allowing dynamic cropping) by * wrapping the child in a {@linkplain Container} with a minimum size of 0 and {@linkplain Container#fill() fill()} set, or by * overriding {@link #clampSplitAmount()}. * <p> * The preferred size of a SplitPane is that of the child widgets and the size of the {@link SplitPaneStyle#handle}. The widgets * are sized depending on the SplitPane size and the {@link #setSplitAmount(float) split position}. * @author mzechner * @author Nathan Sweet */ public class SplitPane extends WidgetGroup { SplitPaneStyle style; private @Null Actor firstWidget, secondWidget; boolean vertical; float splitAmount = 0.5f, minAmount, maxAmount = 1; private final Rectangle firstWidgetBounds = new Rectangle(); private final Rectangle secondWidgetBounds = new Rectangle(); final Rectangle handleBounds = new Rectangle(); boolean cursorOverHandle; private final Rectangle tempScissors = new Rectangle(); Vector2 lastPoint = new Vector2(); Vector2 handlePosition = new Vector2(); /** @param firstWidget May be null. * @param secondWidget May be null. */ public SplitPane (@Null Actor firstWidget, @Null Actor secondWidget, boolean vertical, Skin skin) { this(firstWidget, secondWidget, vertical, skin, "default-" + (vertical ? "vertical" : "horizontal")); } /** @param firstWidget May be null. * @param secondWidget May be null. */ public SplitPane (@Null Actor firstWidget, @Null Actor secondWidget, boolean vertical, Skin skin, String styleName) { this(firstWidget, secondWidget, vertical, skin.get(styleName, SplitPaneStyle.class)); } /** @param firstWidget May be null. * @param secondWidget May be null. */ public SplitPane (@Null Actor firstWidget, @Null Actor secondWidget, boolean vertical, SplitPaneStyle style) { this.vertical = vertical; setStyle(style); setFirstWidget(firstWidget); setSecondWidget(secondWidget); setSize(getPrefWidth(), getPrefHeight()); initialize(); } private void initialize () { addListener(new InputListener() { int draggingPointer = -1; public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (draggingPointer != -1) return false; if (pointer == 0 && button != 0) return false; if (handleBounds.contains(x, y)) { draggingPointer = pointer; lastPoint.set(x, y); handlePosition.set(handleBounds.x, handleBounds.y); return true; } return false; } public void touchUp (InputEvent event, float x, float y, int pointer, int button) { if (pointer == draggingPointer) draggingPointer = -1; } public void touchDragged (InputEvent event, float x, float y, int pointer) { if (pointer != draggingPointer) return; Drawable handle = style.handle; if (!vertical) { float delta = x - lastPoint.x; float availWidth = getWidth() - handle.getMinWidth(); float dragX = handlePosition.x + delta; handlePosition.x = dragX; dragX = Math.max(0, dragX); dragX = Math.min(availWidth, dragX); splitAmount = dragX / availWidth; lastPoint.set(x, y); } else { float delta = y - lastPoint.y; float availHeight = getHeight() - handle.getMinHeight(); float dragY = handlePosition.y + delta; handlePosition.y = dragY; dragY = Math.max(0, dragY); dragY = Math.min(availHeight, dragY); splitAmount = 1 - (dragY / availHeight); lastPoint.set(x, y); } invalidate(); } public boolean mouseMoved (InputEvent event, float x, float y) { cursorOverHandle = handleBounds.contains(x, y); return false; } }); } public void setStyle (SplitPaneStyle style) { this.style = style; invalidateHierarchy(); } /** Returns the split pane's style. Modifying the returned style may not have an effect until {@link #setStyle(SplitPaneStyle)} * is called. */ public SplitPaneStyle getStyle () { return style; } public void layout () { clampSplitAmount(); if (!vertical) calculateHorizBoundsAndPositions(); else calculateVertBoundsAndPositions(); Actor firstWidget = this.firstWidget; if (firstWidget != null) { Rectangle firstWidgetBounds = this.firstWidgetBounds; firstWidget.setBounds(firstWidgetBounds.x, firstWidgetBounds.y, firstWidgetBounds.width, firstWidgetBounds.height); if (firstWidget instanceof Layout) ((Layout)firstWidget).validate(); } Actor secondWidget = this.secondWidget; if (secondWidget != null) { Rectangle secondWidgetBounds = this.secondWidgetBounds; secondWidget.setBounds(secondWidgetBounds.x, secondWidgetBounds.y, secondWidgetBounds.width, secondWidgetBounds.height); if (secondWidget instanceof Layout) ((Layout)secondWidget).validate(); } } public float getPrefWidth () { float first = firstWidget == null ? 0 : (firstWidget instanceof Layout ? ((Layout)firstWidget).getPrefWidth() : firstWidget.getWidth()); float second = secondWidget == null ? 0 : (secondWidget instanceof Layout ? ((Layout)secondWidget).getPrefWidth() : secondWidget.getWidth()); if (vertical) return Math.max(first, second); return first + style.handle.getMinWidth() + second; } public float getPrefHeight () { float first = firstWidget == null ? 0 : (firstWidget instanceof Layout ? ((Layout)firstWidget).getPrefHeight() : firstWidget.getHeight()); float second = secondWidget == null ? 0 : (secondWidget instanceof Layout ? ((Layout)secondWidget).getPrefHeight() : secondWidget.getHeight()); if (!vertical) return Math.max(first, second); return first + style.handle.getMinHeight() + second; } public float getMinWidth () { float first = firstWidget instanceof Layout ? ((Layout)firstWidget).getMinWidth() : 0; float second = secondWidget instanceof Layout ? ((Layout)secondWidget).getMinWidth() : 0; if (vertical) return Math.max(first, second); return first + style.handle.getMinWidth() + second; } public float getMinHeight () { float first = firstWidget instanceof Layout ? ((Layout)firstWidget).getMinHeight() : 0; float second = secondWidget instanceof Layout ? ((Layout)secondWidget).getMinHeight() : 0; if (!vertical) return Math.max(first, second); return first + style.handle.getMinHeight() + second; } public void setVertical (boolean vertical) { if (this.vertical == vertical) return; this.vertical = vertical; invalidateHierarchy(); } public boolean isVertical () { return vertical; } private void calculateHorizBoundsAndPositions () { Drawable handle = style.handle; float height = getHeight(); float availWidth = getWidth() - handle.getMinWidth(); float leftAreaWidth = (int)(availWidth * splitAmount); float rightAreaWidth = availWidth - leftAreaWidth; float handleWidth = handle.getMinWidth(); firstWidgetBounds.set(0, 0, leftAreaWidth, height); secondWidgetBounds.set(leftAreaWidth + handleWidth, 0, rightAreaWidth, height); handleBounds.set(leftAreaWidth, 0, handleWidth, height); } private void calculateVertBoundsAndPositions () { Drawable handle = style.handle; float width = getWidth(); float height = getHeight(); float availHeight = height - handle.getMinHeight(); float topAreaHeight = (int)(availHeight * splitAmount); float bottomAreaHeight = availHeight - topAreaHeight; float handleHeight = handle.getMinHeight(); firstWidgetBounds.set(0, height - topAreaHeight, width, topAreaHeight); secondWidgetBounds.set(0, 0, width, bottomAreaHeight); handleBounds.set(0, bottomAreaHeight, width, handleHeight); } public void draw (Batch batch, float parentAlpha) { Stage stage = getStage(); if (stage == null) return; validate(); Color color = getColor(); float alpha = color.a * parentAlpha; applyTransform(batch, computeTransform()); if (firstWidget != null && firstWidget.isVisible()) { batch.flush(); stage.calculateScissors(firstWidgetBounds, tempScissors); if (ScissorStack.pushScissors(tempScissors)) { firstWidget.draw(batch, alpha); batch.flush(); ScissorStack.popScissors(); } } if (secondWidget != null && secondWidget.isVisible()) { batch.flush(); stage.calculateScissors(secondWidgetBounds, tempScissors); if (ScissorStack.pushScissors(tempScissors)) { secondWidget.draw(batch, alpha); batch.flush(); ScissorStack.popScissors(); } } batch.setColor(color.r, color.g, color.b, alpha); style.handle.draw(batch, handleBounds.x, handleBounds.y, handleBounds.width, handleBounds.height); resetTransform(batch); } /** @param splitAmount The split amount between the min and max amount. This parameter is clamped during layout. See * {@link #clampSplitAmount()}. */ public void setSplitAmount (float splitAmount) { this.splitAmount = splitAmount; // will be clamped during layout invalidate(); } public float getSplitAmount () { return splitAmount; } /** Called during layout to clamp the {@link #splitAmount} within the set limits. By default it imposes the limits of the * {@linkplain #getMinSplitAmount() min amount}, {@linkplain #getMaxSplitAmount() max amount}, and min sizes of the children. * This method is internally called in response to layout, so it should not call {@link #invalidate()}. */ protected void clampSplitAmount () { float effectiveMinAmount = minAmount, effectiveMaxAmount = maxAmount; if (vertical) { float availableHeight = getHeight() - style.handle.getMinHeight(); if (firstWidget instanceof Layout) effectiveMinAmount = Math.max(effectiveMinAmount, Math.min(((Layout)firstWidget).getMinHeight() / availableHeight, 1)); if (secondWidget instanceof Layout) effectiveMaxAmount = Math.min(effectiveMaxAmount, 1 - Math.min(((Layout)secondWidget).getMinHeight() / availableHeight, 1)); } else { float availableWidth = getWidth() - style.handle.getMinWidth(); if (firstWidget instanceof Layout) effectiveMinAmount = Math.max(effectiveMinAmount, Math.min(((Layout)firstWidget).getMinWidth() / availableWidth, 1)); if (secondWidget instanceof Layout) effectiveMaxAmount = Math.min(effectiveMaxAmount, 1 - Math.min(((Layout)secondWidget).getMinWidth() / availableWidth, 1)); } if (effectiveMinAmount > effectiveMaxAmount) // Locked handle. Average the position. splitAmount = 0.5f * (effectiveMinAmount + effectiveMaxAmount); else splitAmount = Math.max(Math.min(splitAmount, effectiveMaxAmount), effectiveMinAmount); } public float getMinSplitAmount () { return minAmount; } public void setMinSplitAmount (float minAmount) { if (minAmount < 0 || minAmount > 1) throw new GdxRuntimeException("minAmount has to be >= 0 and <= 1"); this.minAmount = minAmount; } public float getMaxSplitAmount () { return maxAmount; } public void setMaxSplitAmount (float maxAmount) { if (maxAmount < 0 || maxAmount > 1) throw new GdxRuntimeException("maxAmount has to be >= 0 and <= 1"); this.maxAmount = maxAmount; } /** @param widget May be null. */ public void setFirstWidget (@Null Actor widget) { if (firstWidget != null) super.removeActor(firstWidget); firstWidget = widget; if (widget != null) super.addActor(widget); invalidate(); } /** @param widget May be null. */ public void setSecondWidget (@Null Actor widget) { if (secondWidget != null) super.removeActor(secondWidget); secondWidget = widget; if (widget != null) super.addActor(widget); invalidate(); } public void addActor (Actor actor) { throw new UnsupportedOperationException("Use SplitPane#setWidget."); } public void addActorAt (int index, Actor actor) { throw new UnsupportedOperationException("Use SplitPane#setWidget."); } public void addActorBefore (Actor actorBefore, Actor actor) { throw new UnsupportedOperationException("Use SplitPane#setWidget."); } public boolean removeActor (Actor actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); if (actor == firstWidget) { setFirstWidget(null); return true; } if (actor == secondWidget) { setSecondWidget(null); return true; } return true; } public boolean removeActor (Actor actor, boolean unfocus) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); if (actor == firstWidget) { super.removeActor(actor, unfocus); firstWidget = null; invalidate(); return true; } if (actor == secondWidget) { super.removeActor(actor, unfocus); secondWidget = null; invalidate(); return true; } return false; } public Actor removeActorAt (int index, boolean unfocus) { Actor actor = super.removeActorAt(index, unfocus); if (actor == firstWidget) { super.removeActor(actor, unfocus); firstWidget = null; invalidate(); } else if (actor == secondWidget) { super.removeActor(actor, unfocus); secondWidget = null; invalidate(); } return actor; } public boolean isCursorOverHandle () { return cursorOverHandle; } /** The style for a splitpane, see {@link SplitPane}. * @author mzechner * @author Nathan Sweet */ static public class SplitPaneStyle { public Drawable handle; public SplitPaneStyle () { } public SplitPaneStyle (Drawable handle) { this.handle = handle; } public SplitPaneStyle (SplitPaneStyle style) { handle = style.handle; } } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/TemplatePickerPanel.java
package com.badlogic.gdx.tools.flame; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.Insets; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.ListSelectionModel; import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelListener; import javax.swing.table.DefaultTableModel; import com.badlogic.gdx.utils.Array; /** @author Inferno */ public class TemplatePickerPanel<T> extends EditorPanel<Array<T>> implements LoaderButton.Listener<T> { public interface Listener<T> { void onTemplateChecked (T template, boolean isChecked); } Array<T> loadedTemplates; Array<T> excludedTemplates; Class<T> type; JTable templatesTable; DefaultTableModel templatesTableModel; boolean isOneModelSelectedRequired = true, isMultipleSelectionAllowed = true; Listener listener; int lastSelected = -1; public TemplatePickerPanel (FlameMain editor, Array<T> value, Listener listener, Class<T> type) { this(editor, value, listener, type, null, true, true); } public TemplatePickerPanel (FlameMain editor, Array<T> value, Listener listener, Class<T> type, LoaderButton<T> loaderButton) { this(editor, value, listener, type, loaderButton, true, true); } public TemplatePickerPanel (FlameMain editor, Array<T> value, Listener listener, Class<T> type, LoaderButton<T> loaderButton, boolean isOneModelSelectedRequired, boolean isMultipleSelectionAllowed) { super(editor, "", ""); this.type = type; this.listener = listener; this.isOneModelSelectedRequired = isOneModelSelectedRequired; this.isMultipleSelectionAllowed = isMultipleSelectionAllowed; loadedTemplates = new Array<T>(); excludedTemplates = new Array<T>(); initializeComponents(type, loaderButton); setValue(value); } @Override public void setValue (Array<T> value) { super.setValue(value); if (value == null) return; if (!isMultipleSelectionAllowed && value.size > 1) throw new RuntimeException( "Multiple selection must be enabled to ensure consistency between picked and available models."); for (int i = 0; i < value.size; ++i) { T model = value.get(i); int index = loadedTemplates.indexOf(model, true); if (index > -1) { EditorPanel.setValue(templatesTableModel, true, index, 1); lastSelected = index; } } } public void setOneModelSelectionRequired (boolean isOneModelSelectionRequired) { this.isOneModelSelectedRequired = isOneModelSelectionRequired; } public void setMultipleSelectionAllowed (boolean isMultipleSelectionAllowed) { this.isMultipleSelectionAllowed = isMultipleSelectionAllowed; } public void setExcludedTemplates (Array<T> excludedTemplates) { this.excludedTemplates.clear(); this.excludedTemplates.addAll(excludedTemplates); } public void setLoadedTemplates (Array<T> templates) { loadedTemplates.clear(); loadedTemplates.addAll(templates); loadedTemplates.removeAll(excludedTemplates, true); templatesTableModel.getDataVector().removeAllElements(); int i = 0; for (T template : templates) { templatesTableModel.addRow(new Object[] {getTemplateName(template, i), false}); i++; } lastSelected = -1; setValue(value); } protected String getTemplateName (T template, int index) { String name = editor.assetManager.getAssetFileName(template); return name == null ? "template " + index : name; } public void reloadTemplates () { setLoadedTemplates(editor.assetManager.getAll(type, new Array<T>())); } protected void initializeComponents (Class<T> type, LoaderButton<T> loaderButton) { int i = 0; if (loaderButton != null) { loaderButton.setListener(this); contentPanel.add(loaderButton, new GridBagConstraints(0, i++, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 6), 0, 0)); } JScrollPane scroll = new JScrollPane(); contentPanel.add(scroll, new GridBagConstraints(0, i, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 6), 0, 0)); { templatesTable = new JTable() { public Class getColumnClass (int column) { return column == 1 ? Boolean.class : super.getColumnClass(column); } @Override public Dimension getPreferredScrollableViewportSize () { Dimension dim = super.getPreferredScrollableViewportSize(); dim.height = getPreferredSize().height; return dim; } }; templatesTable.getTableHeader().setReorderingAllowed(false); templatesTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); scroll.setViewportView(templatesTable); templatesTableModel = new DefaultTableModel(new String[0][0], new String[] {"Template", "Selected"}); templatesTable.setModel(templatesTableModel); reloadTemplates(); templatesTableModel.addTableModelListener(new TableModelListener() { public void tableChanged (TableModelEvent event) { if (event.getColumn() != 1) return; int row = event.getFirstRow(); boolean checked = (Boolean)templatesTable.getValueAt(row, 1); if (isOneModelSelectedRequired && (value.size == 1 && !checked)) { EditorPanel.setValue(templatesTableModel, true, row, 1); return; } templateChecked(row, checked); } }); } } protected void templateChecked (int index, Boolean isChecked) { T template = loadedTemplates.get(index); if (isChecked) { if (!isMultipleSelectionAllowed) { if (lastSelected > -1) { value.removeValue(loadedTemplates.get(lastSelected), true); EditorPanel.setValue(templatesTableModel, false, lastSelected, 1); } } value.add(template); lastSelected = index; } else { value.removeValue(template, true); } listener.onTemplateChecked(template, isChecked); } @Override public void onResourceLoaded (T model) { reloadTemplates(); if (lastSelected == -1 && isOneModelSelectedRequired) { templateChecked(loadedTemplates.size - 1, true); } else { setValue(value); } revalidate(); repaint(); } }
package com.badlogic.gdx.tools.flame; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.Insets; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.ListSelectionModel; import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelListener; import javax.swing.table.DefaultTableModel; import com.badlogic.gdx.utils.Array; /** @author Inferno */ public class TemplatePickerPanel<T> extends EditorPanel<Array<T>> implements LoaderButton.Listener<T> { public interface Listener<T> { void onTemplateChecked (T template, boolean isChecked); } Array<T> loadedTemplates; Array<T> excludedTemplates; Class<T> type; JTable templatesTable; DefaultTableModel templatesTableModel; boolean isOneModelSelectedRequired = true, isMultipleSelectionAllowed = true; Listener listener; int lastSelected = -1; public TemplatePickerPanel (FlameMain editor, Array<T> value, Listener listener, Class<T> type) { this(editor, value, listener, type, null, true, true); } public TemplatePickerPanel (FlameMain editor, Array<T> value, Listener listener, Class<T> type, LoaderButton<T> loaderButton) { this(editor, value, listener, type, loaderButton, true, true); } public TemplatePickerPanel (FlameMain editor, Array<T> value, Listener listener, Class<T> type, LoaderButton<T> loaderButton, boolean isOneModelSelectedRequired, boolean isMultipleSelectionAllowed) { super(editor, "", ""); this.type = type; this.listener = listener; this.isOneModelSelectedRequired = isOneModelSelectedRequired; this.isMultipleSelectionAllowed = isMultipleSelectionAllowed; loadedTemplates = new Array<T>(); excludedTemplates = new Array<T>(); initializeComponents(type, loaderButton); setValue(value); } @Override public void setValue (Array<T> value) { super.setValue(value); if (value == null) return; if (!isMultipleSelectionAllowed && value.size > 1) throw new RuntimeException( "Multiple selection must be enabled to ensure consistency between picked and available models."); for (int i = 0; i < value.size; ++i) { T model = value.get(i); int index = loadedTemplates.indexOf(model, true); if (index > -1) { EditorPanel.setValue(templatesTableModel, true, index, 1); lastSelected = index; } } } public void setOneModelSelectionRequired (boolean isOneModelSelectionRequired) { this.isOneModelSelectedRequired = isOneModelSelectionRequired; } public void setMultipleSelectionAllowed (boolean isMultipleSelectionAllowed) { this.isMultipleSelectionAllowed = isMultipleSelectionAllowed; } public void setExcludedTemplates (Array<T> excludedTemplates) { this.excludedTemplates.clear(); this.excludedTemplates.addAll(excludedTemplates); } public void setLoadedTemplates (Array<T> templates) { loadedTemplates.clear(); loadedTemplates.addAll(templates); loadedTemplates.removeAll(excludedTemplates, true); templatesTableModel.getDataVector().removeAllElements(); int i = 0; for (T template : templates) { templatesTableModel.addRow(new Object[] {getTemplateName(template, i), false}); i++; } lastSelected = -1; setValue(value); } protected String getTemplateName (T template, int index) { String name = editor.assetManager.getAssetFileName(template); return name == null ? "template " + index : name; } public void reloadTemplates () { setLoadedTemplates(editor.assetManager.getAll(type, new Array<T>())); } protected void initializeComponents (Class<T> type, LoaderButton<T> loaderButton) { int i = 0; if (loaderButton != null) { loaderButton.setListener(this); contentPanel.add(loaderButton, new GridBagConstraints(0, i++, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 6), 0, 0)); } JScrollPane scroll = new JScrollPane(); contentPanel.add(scroll, new GridBagConstraints(0, i, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 6), 0, 0)); { templatesTable = new JTable() { public Class getColumnClass (int column) { return column == 1 ? Boolean.class : super.getColumnClass(column); } @Override public Dimension getPreferredScrollableViewportSize () { Dimension dim = super.getPreferredScrollableViewportSize(); dim.height = getPreferredSize().height; return dim; } }; templatesTable.getTableHeader().setReorderingAllowed(false); templatesTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); scroll.setViewportView(templatesTable); templatesTableModel = new DefaultTableModel(new String[0][0], new String[] {"Template", "Selected"}); templatesTable.setModel(templatesTableModel); reloadTemplates(); templatesTableModel.addTableModelListener(new TableModelListener() { public void tableChanged (TableModelEvent event) { if (event.getColumn() != 1) return; int row = event.getFirstRow(); boolean checked = (Boolean)templatesTable.getValueAt(row, 1); if (isOneModelSelectedRequired && (value.size == 1 && !checked)) { EditorPanel.setValue(templatesTableModel, true, row, 1); return; } templateChecked(row, checked); } }); } } protected void templateChecked (int index, Boolean isChecked) { T template = loadedTemplates.get(index); if (isChecked) { if (!isMultipleSelectionAllowed) { if (lastSelected > -1) { value.removeValue(loadedTemplates.get(lastSelected), true); EditorPanel.setValue(templatesTableModel, false, lastSelected, 1); } } value.add(template); lastSelected = index; } else { value.removeValue(template, true); } listener.onTemplateChecked(template, isChecked); } @Override public void onResourceLoaded (T model) { reloadTemplates(); if (lastSelected == -1 && isOneModelSelectedRequired) { templateChecked(loadedTemplates.size - 1, true); } else { setValue(value); } revalidate(); repaint(); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/dynamics/com/badlogic/gdx/physics/bullet/dynamics/btMultiBodyPoint2Point.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.dynamics; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.physics.bullet.collision.*; import com.badlogic.gdx.math.Vector3; public class btMultiBodyPoint2Point extends btMultiBodyConstraint { private long swigCPtr; protected btMultiBodyPoint2Point (final String className, long cPtr, boolean cMemoryOwn) { super(className, DynamicsJNI.btMultiBodyPoint2Point_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btMultiBodyPoint2Point, normally you should not need this constructor it's intended for low-level usage. */ public btMultiBodyPoint2Point (long cPtr, boolean cMemoryOwn) { this("btMultiBodyPoint2Point", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(DynamicsJNI.btMultiBodyPoint2Point_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btMultiBodyPoint2Point obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; DynamicsJNI.delete_btMultiBodyPoint2Point(swigCPtr); } swigCPtr = 0; } super.delete(); } public long operatorNew (long sizeInBytes) { return DynamicsJNI.btMultiBodyPoint2Point_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDelete (long ptr) { DynamicsJNI.btMultiBodyPoint2Point_operatorDelete__SWIG_0(swigCPtr, this, ptr); } public long operatorNew (long arg0, long ptr) { return DynamicsJNI.btMultiBodyPoint2Point_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDelete (long arg0, long arg1) { DynamicsJNI.btMultiBodyPoint2Point_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1); } public long operatorNewArray (long sizeInBytes) { return DynamicsJNI.btMultiBodyPoint2Point_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDeleteArray (long ptr) { DynamicsJNI.btMultiBodyPoint2Point_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr); } public long operatorNewArray (long arg0, long ptr) { return DynamicsJNI.btMultiBodyPoint2Point_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDeleteArray (long arg0, long arg1) { DynamicsJNI.btMultiBodyPoint2Point_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1); } public btMultiBodyPoint2Point (btMultiBody body, int link, btRigidBody bodyB, Vector3 pivotInA, Vector3 pivotInB) { this(DynamicsJNI.new_btMultiBodyPoint2Point__SWIG_0(btMultiBody.getCPtr(body), body, link, btRigidBody.getCPtr(bodyB), bodyB, pivotInA, pivotInB), true); } public btMultiBodyPoint2Point (btMultiBody bodyA, int linkA, btMultiBody bodyB, int linkB, Vector3 pivotInA, Vector3 pivotInB) { this(DynamicsJNI.new_btMultiBodyPoint2Point__SWIG_1(btMultiBody.getCPtr(bodyA), bodyA, linkA, btMultiBody.getCPtr(bodyB), bodyB, linkB, pivotInA, pivotInB), true); } public Vector3 getPivotInB () { return DynamicsJNI.btMultiBodyPoint2Point_getPivotInB(swigCPtr, this); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.dynamics; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.physics.bullet.collision.*; import com.badlogic.gdx.math.Vector3; public class btMultiBodyPoint2Point extends btMultiBodyConstraint { private long swigCPtr; protected btMultiBodyPoint2Point (final String className, long cPtr, boolean cMemoryOwn) { super(className, DynamicsJNI.btMultiBodyPoint2Point_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btMultiBodyPoint2Point, normally you should not need this constructor it's intended for low-level usage. */ public btMultiBodyPoint2Point (long cPtr, boolean cMemoryOwn) { this("btMultiBodyPoint2Point", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(DynamicsJNI.btMultiBodyPoint2Point_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btMultiBodyPoint2Point obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; DynamicsJNI.delete_btMultiBodyPoint2Point(swigCPtr); } swigCPtr = 0; } super.delete(); } public long operatorNew (long sizeInBytes) { return DynamicsJNI.btMultiBodyPoint2Point_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDelete (long ptr) { DynamicsJNI.btMultiBodyPoint2Point_operatorDelete__SWIG_0(swigCPtr, this, ptr); } public long operatorNew (long arg0, long ptr) { return DynamicsJNI.btMultiBodyPoint2Point_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDelete (long arg0, long arg1) { DynamicsJNI.btMultiBodyPoint2Point_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1); } public long operatorNewArray (long sizeInBytes) { return DynamicsJNI.btMultiBodyPoint2Point_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDeleteArray (long ptr) { DynamicsJNI.btMultiBodyPoint2Point_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr); } public long operatorNewArray (long arg0, long ptr) { return DynamicsJNI.btMultiBodyPoint2Point_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDeleteArray (long arg0, long arg1) { DynamicsJNI.btMultiBodyPoint2Point_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1); } public btMultiBodyPoint2Point (btMultiBody body, int link, btRigidBody bodyB, Vector3 pivotInA, Vector3 pivotInB) { this(DynamicsJNI.new_btMultiBodyPoint2Point__SWIG_0(btMultiBody.getCPtr(body), body, link, btRigidBody.getCPtr(bodyB), bodyB, pivotInA, pivotInB), true); } public btMultiBodyPoint2Point (btMultiBody bodyA, int linkA, btMultiBody bodyB, int linkB, Vector3 pivotInA, Vector3 pivotInB) { this(DynamicsJNI.new_btMultiBodyPoint2Point__SWIG_1(btMultiBody.getCPtr(bodyA), bodyA, linkA, btMultiBody.getCPtr(bodyB), bodyB, linkB, pivotInA, pivotInB), true); } public Vector3 getPivotInB () { return DynamicsJNI.btMultiBodyPoint2Point_getPivotInB(swigCPtr, this); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/utils/async/AsyncTask.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.utils.async; /** Task to be submitted to an {@link AsyncExecutor}, returning a result of type T. * @author badlogic */ public interface AsyncTask<T> { public T call () throws Exception; }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.utils.async; /** Task to be submitted to an {@link AsyncExecutor}, returning a result of type T. * @author badlogic */ public interface AsyncTask<T> { public T call () throws Exception; }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/SWIGTYPE_p_gim_arrayT_GUINT_t.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; public class SWIGTYPE_p_gim_arrayT_GUINT_t { private transient long swigCPtr; protected SWIGTYPE_p_gim_arrayT_GUINT_t (long cPtr, @SuppressWarnings("unused") boolean futureUse) { swigCPtr = cPtr; } protected SWIGTYPE_p_gim_arrayT_GUINT_t () { swigCPtr = 0; } protected static long getCPtr (SWIGTYPE_p_gim_arrayT_GUINT_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; public class SWIGTYPE_p_gim_arrayT_GUINT_t { private transient long swigCPtr; protected SWIGTYPE_p_gim_arrayT_GUINT_t (long cPtr, @SuppressWarnings("unused") boolean futureUse) { swigCPtr = cPtr; } protected SWIGTYPE_p_gim_arrayT_GUINT_t () { swigCPtr = 0; } protected static long getCPtr (SWIGTYPE_p_gim_arrayT_GUINT_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/Transform.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.physics.box2d; import com.badlogic.gdx.math.Vector2; /** Encodes a Box2D transform. We are lazy so we only store a 4 float wide array. First two floats are the position of the * b2Transform struct. Next two floats are the cosine and sine of the rotation angle. * @author mzechner */ public class Transform { public static final int POS_X = 0; public static final int POS_Y = 1; public static final int COS = 2; public static final int SIN = 3; public float[] vals = new float[4]; private Vector2 position = new Vector2(); private Vector2 orientation = new Vector2(); public Transform () { } /** Constructs a new Transform instance with the given position and angle * @param position the position * @param angle the angle in radians */ public Transform (Vector2 position, float angle) { setPosition(position); setRotation(angle); } /** Constructs a new Transform instance with the given position and orientation * @param position the position * @param orientation where the transform is pointing */ public Transform (Vector2 position, Vector2 orientation) { setPosition(position); setOrientation(orientation); } /** Transforms the given vector by this transform * @param v the vector */ public Vector2 mul (Vector2 v) { float x = vals[POS_X] + vals[COS] * v.x + -vals[SIN] * v.y; float y = vals[POS_Y] + vals[SIN] * v.x + vals[COS] * v.y; v.x = x; v.y = y; return v; } /** @return the position, modification of the vector has no effect on the Transform */ public Vector2 getPosition () { return position.set(vals[0], vals[1]); } /** Sets the rotation of this transform * @param angle angle in radians */ public void setRotation (float angle) { float c = (float)Math.cos(angle), s = (float)Math.sin(angle); vals[COS] = c; vals[SIN] = s; } public float getRotation () { return (float)Math.atan2(vals[SIN], vals[COS]); } /** @return A vector 2 pointing to where the body is facing */ public Vector2 getOrientation () { return orientation.set(vals[COS], vals[SIN]); } /** Set where the body should "look at" */ public void setOrientation (Vector2 orientation) { this.vals[COS] = orientation.x; this.vals[SIN] = orientation.y; } /** Sets the position of this transform * @param pos the position */ public void setPosition (Vector2 pos) { this.vals[POS_X] = pos.x; this.vals[POS_Y] = pos.y; } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.physics.box2d; import com.badlogic.gdx.math.Vector2; /** Encodes a Box2D transform. We are lazy so we only store a 4 float wide array. First two floats are the position of the * b2Transform struct. Next two floats are the cosine and sine of the rotation angle. * @author mzechner */ public class Transform { public static final int POS_X = 0; public static final int POS_Y = 1; public static final int COS = 2; public static final int SIN = 3; public float[] vals = new float[4]; private Vector2 position = new Vector2(); private Vector2 orientation = new Vector2(); public Transform () { } /** Constructs a new Transform instance with the given position and angle * @param position the position * @param angle the angle in radians */ public Transform (Vector2 position, float angle) { setPosition(position); setRotation(angle); } /** Constructs a new Transform instance with the given position and orientation * @param position the position * @param orientation where the transform is pointing */ public Transform (Vector2 position, Vector2 orientation) { setPosition(position); setOrientation(orientation); } /** Transforms the given vector by this transform * @param v the vector */ public Vector2 mul (Vector2 v) { float x = vals[POS_X] + vals[COS] * v.x + -vals[SIN] * v.y; float y = vals[POS_Y] + vals[SIN] * v.x + vals[COS] * v.y; v.x = x; v.y = y; return v; } /** @return the position, modification of the vector has no effect on the Transform */ public Vector2 getPosition () { return position.set(vals[0], vals[1]); } /** Sets the rotation of this transform * @param angle angle in radians */ public void setRotation (float angle) { float c = (float)Math.cos(angle), s = (float)Math.sin(angle); vals[COS] = c; vals[SIN] = s; } public float getRotation () { return (float)Math.atan2(vals[SIN], vals[COS]); } /** @return A vector 2 pointing to where the body is facing */ public Vector2 getOrientation () { return orientation.set(vals[COS], vals[SIN]); } /** Set where the body should "look at" */ public void setOrientation (Vector2 orientation) { this.vals[COS] = orientation.x; this.vals[SIN] = orientation.y; } /** Sets the position of this transform * @param pos the position */ public void setPosition (Vector2 pos) { this.vals[POS_X] = pos.x; this.vals[POS_Y] = pos.y; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/JointDef.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.physics.box2d; public class JointDef { public enum JointType { Unknown(0), RevoluteJoint(1), PrismaticJoint(2), DistanceJoint(3), PulleyJoint(4), MouseJoint(5), GearJoint(6), WheelJoint( 7), WeldJoint(8), FrictionJoint(9), RopeJoint(10), MotorJoint(11); public static JointType[] valueTypes = new JointType[] {Unknown, RevoluteJoint, PrismaticJoint, DistanceJoint, PulleyJoint, MouseJoint, GearJoint, WheelJoint, WeldJoint, FrictionJoint, RopeJoint, MotorJoint}; private int value; JointType (int value) { this.value = value; } public int getValue () { return value; } } /** The joint type is set automatically for concrete joint types. **/ public JointType type = JointType.Unknown; /** The first attached body. **/ public Body bodyA = null; /** The second attached body **/ public Body bodyB = null; /** Set this flag to true if the attached bodies should collide. **/ public boolean collideConnected = false; }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.physics.box2d; public class JointDef { public enum JointType { Unknown(0), RevoluteJoint(1), PrismaticJoint(2), DistanceJoint(3), PulleyJoint(4), MouseJoint(5), GearJoint(6), WheelJoint( 7), WeldJoint(8), FrictionJoint(9), RopeJoint(10), MotorJoint(11); public static JointType[] valueTypes = new JointType[] {Unknown, RevoluteJoint, PrismaticJoint, DistanceJoint, PulleyJoint, MouseJoint, GearJoint, WheelJoint, WeldJoint, FrictionJoint, RopeJoint, MotorJoint}; private int value; JointType (int value) { this.value = value; } public int getValue () { return value; } } /** The joint type is set automatically for concrete joint types. **/ public JointType type = JointType.Unknown; /** The first attached body. **/ public Body bodyA = null; /** The second attached body **/ public Body bodyB = null; /** Set this flag to true if the attached bodies should collide. **/ public boolean collideConnected = false; }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/math/Bezier.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.math; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.GdxRuntimeException; /** Implementation of the Bezier curve. * @author Xoppa */ public class Bezier<T extends Vector<T>> implements Path<T> { // TODO implement Serializable /** Simple linear interpolation * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the line. * @param p0 The start point. * @param p1 The end point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T linear (final T out, final float t, final T p0, final T p1, final T tmp) { // B1(t) = p0 + (p1-p0)*t return out.set(p0).scl(1f - t).add(tmp.set(p1).scl(t)); // Could just use lerp... } /** Simple linear interpolation derivative * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the line. * @param p0 The start point. * @param p1 The end point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T linear_derivative (final T out, final float t, final T p0, final T p1, final T tmp) { // B1'(t) = p1-p0 return out.set(p1).sub(p0); } /** Quadratic Bezier curve * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the curve. * @param p0 The first bezier point. * @param p1 The second bezier point. * @param p2 The third bezier point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T quadratic (final T out, final float t, final T p0, final T p1, final T p2, final T tmp) { // B2(t) = (1 - t) * (1 - t) * p0 + 2 * (1-t) * t * p1 + t*t*p2 final float dt = 1f - t; return out.set(p0).scl(dt * dt).add(tmp.set(p1).scl(2 * dt * t)).add(tmp.set(p2).scl(t * t)); } /** Quadratic Bezier curve derivative * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the curve. * @param p0 The first bezier point. * @param p1 The second bezier point. * @param p2 The third bezier point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T quadratic_derivative (final T out, final float t, final T p0, final T p1, final T p2, final T tmp) { // B2'(t) = 2 * (1 - t) * (p1 - p0) + 2 * t * (p2 - p1) final float dt = 1f - t; return out.set(p1).sub(p0).scl(2).scl(1 - t).add(tmp.set(p2).sub(p1).scl(t).scl(2)); } /** Cubic Bezier curve * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the curve. * @param p0 The first bezier point. * @param p1 The second bezier point. * @param p2 The third bezier point. * @param p3 The fourth bezier point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T cubic (final T out, final float t, final T p0, final T p1, final T p2, final T p3, final T tmp) { // B3(t) = (1-t) * (1-t) * (1-t) * p0 + 3 * (1-t) * (1-t) * t * p1 + 3 * (1-t) * t * t * p2 + t * t * t * p3 final float dt = 1f - t; final float dt2 = dt * dt; final float t2 = t * t; return out.set(p0).scl(dt2 * dt).add(tmp.set(p1).scl(3 * dt2 * t)).add(tmp.set(p2).scl(3 * dt * t2)) .add(tmp.set(p3).scl(t2 * t)); } /** Cubic Bezier curve derivative * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the curve. * @param p0 The first bezier point. * @param p1 The second bezier point. * @param p2 The third bezier point. * @param p3 The fourth bezier point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T cubic_derivative (final T out, final float t, final T p0, final T p1, final T p2, final T p3, final T tmp) { // B3'(t) = 3 * (1-t) * (1-t) * (p1 - p0) + 6 * (1 - t) * t * (p2 - p1) + 3 * t * t * (p3 - p2) final float dt = 1f - t; final float dt2 = dt * dt; final float t2 = t * t; return out.set(p1).sub(p0).scl(dt2 * 3).add(tmp.set(p2).sub(p1).scl(dt * t * 6)).add(tmp.set(p3).sub(p2).scl(t2 * 3)); } public Array<T> points = new Array<T>(); private T tmp; private T tmp2; private T tmp3; public Bezier () { } public Bezier (final T... points) { set(points); } public Bezier (final T[] points, final int offset, final int length) { set(points, offset, length); } public Bezier (final Array<T> points, final int offset, final int length) { set(points, offset, length); } public Bezier set (final T... points) { return set(points, 0, points.length); } public Bezier set (final T[] points, final int offset, final int length) { if (length < 2 || length > 4) throw new GdxRuntimeException("Only first, second and third degree Bezier curves are supported."); if (tmp == null) tmp = points[0].cpy(); if (tmp2 == null) tmp2 = points[0].cpy(); if (tmp3 == null) tmp3 = points[0].cpy(); this.points.clear(); this.points.addAll(points, offset, length); return this; } public Bezier set (final Array<T> points, final int offset, final int length) { if (length < 2 || length > 4) throw new GdxRuntimeException("Only first, second and third degree Bezier curves are supported."); if (tmp == null) tmp = points.get(0).cpy(); if (tmp2 == null) tmp2 = points.get(0).cpy(); if (tmp3 == null) tmp3 = points.get(0).cpy(); this.points.clear(); this.points.addAll(points, offset, length); return this; } @Override public T valueAt (final T out, final float t) { final int n = points.size; if (n == 2) linear(out, t, points.get(0), points.get(1), tmp); else if (n == 3) quadratic(out, t, points.get(0), points.get(1), points.get(2), tmp); else if (n == 4) cubic(out, t, points.get(0), points.get(1), points.get(2), points.get(3), tmp); return out; } @Override public T derivativeAt (final T out, final float t) { final int n = points.size; if (n == 2) linear_derivative(out, t, points.get(0), points.get(1), tmp); else if (n == 3) quadratic_derivative(out, t, points.get(0), points.get(1), points.get(2), tmp); else if (n == 4) cubic_derivative(out, t, points.get(0), points.get(1), points.get(2), points.get(3), tmp); return out; } @Override public float approximate (final T v) { // TODO: make a real approximate method T p1 = points.get(0); T p2 = points.get(points.size - 1); T p3 = v; float l1Sqr = p1.dst2(p2); float l2Sqr = p3.dst2(p2); float l3Sqr = p3.dst2(p1); float l1 = (float)Math.sqrt(l1Sqr); float s = (l2Sqr + l1Sqr - l3Sqr) / (2 * l1); return MathUtils.clamp((l1 - s) / l1, 0f, 1f); } @Override public float locate (T v) { // TODO implement a precise method return approximate(v); } @Override public float approxLength (int samples) { float tempLength = 0; for (int i = 0; i < samples; ++i) { tmp2.set(tmp3); valueAt(tmp3, (i) / ((float)samples - 1)); if (i > 0) tempLength += tmp2.dst(tmp3); } return tempLength; } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.math; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.GdxRuntimeException; /** Implementation of the Bezier curve. * @author Xoppa */ public class Bezier<T extends Vector<T>> implements Path<T> { // TODO implement Serializable /** Simple linear interpolation * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the line. * @param p0 The start point. * @param p1 The end point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T linear (final T out, final float t, final T p0, final T p1, final T tmp) { // B1(t) = p0 + (p1-p0)*t return out.set(p0).scl(1f - t).add(tmp.set(p1).scl(t)); // Could just use lerp... } /** Simple linear interpolation derivative * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the line. * @param p0 The start point. * @param p1 The end point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T linear_derivative (final T out, final float t, final T p0, final T p1, final T tmp) { // B1'(t) = p1-p0 return out.set(p1).sub(p0); } /** Quadratic Bezier curve * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the curve. * @param p0 The first bezier point. * @param p1 The second bezier point. * @param p2 The third bezier point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T quadratic (final T out, final float t, final T p0, final T p1, final T p2, final T tmp) { // B2(t) = (1 - t) * (1 - t) * p0 + 2 * (1-t) * t * p1 + t*t*p2 final float dt = 1f - t; return out.set(p0).scl(dt * dt).add(tmp.set(p1).scl(2 * dt * t)).add(tmp.set(p2).scl(t * t)); } /** Quadratic Bezier curve derivative * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the curve. * @param p0 The first bezier point. * @param p1 The second bezier point. * @param p2 The third bezier point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T quadratic_derivative (final T out, final float t, final T p0, final T p1, final T p2, final T tmp) { // B2'(t) = 2 * (1 - t) * (p1 - p0) + 2 * t * (p2 - p1) final float dt = 1f - t; return out.set(p1).sub(p0).scl(2).scl(1 - t).add(tmp.set(p2).sub(p1).scl(t).scl(2)); } /** Cubic Bezier curve * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the curve. * @param p0 The first bezier point. * @param p1 The second bezier point. * @param p2 The third bezier point. * @param p3 The fourth bezier point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T cubic (final T out, final float t, final T p0, final T p1, final T p2, final T p3, final T tmp) { // B3(t) = (1-t) * (1-t) * (1-t) * p0 + 3 * (1-t) * (1-t) * t * p1 + 3 * (1-t) * t * t * p2 + t * t * t * p3 final float dt = 1f - t; final float dt2 = dt * dt; final float t2 = t * t; return out.set(p0).scl(dt2 * dt).add(tmp.set(p1).scl(3 * dt2 * t)).add(tmp.set(p2).scl(3 * dt * t2)) .add(tmp.set(p3).scl(t2 * t)); } /** Cubic Bezier curve derivative * @param out The {@link Vector} to set to the result. * @param t The location (ranging 0..1) on the curve. * @param p0 The first bezier point. * @param p1 The second bezier point. * @param p2 The third bezier point. * @param p3 The fourth bezier point. * @param tmp A temporary vector to be used by the calculation. * @return The value specified by out for chaining */ public static <T extends Vector<T>> T cubic_derivative (final T out, final float t, final T p0, final T p1, final T p2, final T p3, final T tmp) { // B3'(t) = 3 * (1-t) * (1-t) * (p1 - p0) + 6 * (1 - t) * t * (p2 - p1) + 3 * t * t * (p3 - p2) final float dt = 1f - t; final float dt2 = dt * dt; final float t2 = t * t; return out.set(p1).sub(p0).scl(dt2 * 3).add(tmp.set(p2).sub(p1).scl(dt * t * 6)).add(tmp.set(p3).sub(p2).scl(t2 * 3)); } public Array<T> points = new Array<T>(); private T tmp; private T tmp2; private T tmp3; public Bezier () { } public Bezier (final T... points) { set(points); } public Bezier (final T[] points, final int offset, final int length) { set(points, offset, length); } public Bezier (final Array<T> points, final int offset, final int length) { set(points, offset, length); } public Bezier set (final T... points) { return set(points, 0, points.length); } public Bezier set (final T[] points, final int offset, final int length) { if (length < 2 || length > 4) throw new GdxRuntimeException("Only first, second and third degree Bezier curves are supported."); if (tmp == null) tmp = points[0].cpy(); if (tmp2 == null) tmp2 = points[0].cpy(); if (tmp3 == null) tmp3 = points[0].cpy(); this.points.clear(); this.points.addAll(points, offset, length); return this; } public Bezier set (final Array<T> points, final int offset, final int length) { if (length < 2 || length > 4) throw new GdxRuntimeException("Only first, second and third degree Bezier curves are supported."); if (tmp == null) tmp = points.get(0).cpy(); if (tmp2 == null) tmp2 = points.get(0).cpy(); if (tmp3 == null) tmp3 = points.get(0).cpy(); this.points.clear(); this.points.addAll(points, offset, length); return this; } @Override public T valueAt (final T out, final float t) { final int n = points.size; if (n == 2) linear(out, t, points.get(0), points.get(1), tmp); else if (n == 3) quadratic(out, t, points.get(0), points.get(1), points.get(2), tmp); else if (n == 4) cubic(out, t, points.get(0), points.get(1), points.get(2), points.get(3), tmp); return out; } @Override public T derivativeAt (final T out, final float t) { final int n = points.size; if (n == 2) linear_derivative(out, t, points.get(0), points.get(1), tmp); else if (n == 3) quadratic_derivative(out, t, points.get(0), points.get(1), points.get(2), tmp); else if (n == 4) cubic_derivative(out, t, points.get(0), points.get(1), points.get(2), points.get(3), tmp); return out; } @Override public float approximate (final T v) { // TODO: make a real approximate method T p1 = points.get(0); T p2 = points.get(points.size - 1); T p3 = v; float l1Sqr = p1.dst2(p2); float l2Sqr = p3.dst2(p2); float l3Sqr = p3.dst2(p1); float l1 = (float)Math.sqrt(l1Sqr); float s = (l2Sqr + l1Sqr - l3Sqr) / (2 * l1); return MathUtils.clamp((l1 - s) / l1, 0f, 1f); } @Override public float locate (T v) { // TODO implement a precise method return approximate(v); } @Override public float approxLength (int samples) { float tempLength = 0; for (int i = 0; i < samples; ++i) { tmp2.set(tmp3); valueAt(tmp3, (i) / ((float)samples - 1)); if (i > 0) tempLength += tmp2.dst(tmp3); } return tempLength; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/dynamics/com/badlogic/gdx/physics/bullet/dynamics/btSliderConstraintData.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.dynamics; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.physics.bullet.collision.*; public class btSliderConstraintData extends BulletBase { private long swigCPtr; protected btSliderConstraintData (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btSliderConstraintData, normally you should not need this constructor it's intended for low-level usage. */ public btSliderConstraintData (long cPtr, boolean cMemoryOwn) { this("btSliderConstraintData", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btSliderConstraintData obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; DynamicsJNI.delete_btSliderConstraintData(swigCPtr); } swigCPtr = 0; } super.delete(); } public void setTypeConstraintData (btTypedConstraintData value) { DynamicsJNI.btSliderConstraintData_typeConstraintData_set(swigCPtr, this, btTypedConstraintData.getCPtr(value), value); } public btTypedConstraintData getTypeConstraintData () { long cPtr = DynamicsJNI.btSliderConstraintData_typeConstraintData_get(swigCPtr, this); return (cPtr == 0) ? null : new btTypedConstraintData(cPtr, false); } public void setRbAFrame (btTransformFloatData value) { DynamicsJNI.btSliderConstraintData_rbAFrame_set(swigCPtr, this, btTransformFloatData.getCPtr(value), value); } public btTransformFloatData getRbAFrame () { long cPtr = DynamicsJNI.btSliderConstraintData_rbAFrame_get(swigCPtr, this); return (cPtr == 0) ? null : new btTransformFloatData(cPtr, false); } public void setRbBFrame (btTransformFloatData value) { DynamicsJNI.btSliderConstraintData_rbBFrame_set(swigCPtr, this, btTransformFloatData.getCPtr(value), value); } public btTransformFloatData getRbBFrame () { long cPtr = DynamicsJNI.btSliderConstraintData_rbBFrame_get(swigCPtr, this); return (cPtr == 0) ? null : new btTransformFloatData(cPtr, false); } public void setLinearUpperLimit (float value) { DynamicsJNI.btSliderConstraintData_linearUpperLimit_set(swigCPtr, this, value); } public float getLinearUpperLimit () { return DynamicsJNI.btSliderConstraintData_linearUpperLimit_get(swigCPtr, this); } public void setLinearLowerLimit (float value) { DynamicsJNI.btSliderConstraintData_linearLowerLimit_set(swigCPtr, this, value); } public float getLinearLowerLimit () { return DynamicsJNI.btSliderConstraintData_linearLowerLimit_get(swigCPtr, this); } public void setAngularUpperLimit (float value) { DynamicsJNI.btSliderConstraintData_angularUpperLimit_set(swigCPtr, this, value); } public float getAngularUpperLimit () { return DynamicsJNI.btSliderConstraintData_angularUpperLimit_get(swigCPtr, this); } public void setAngularLowerLimit (float value) { DynamicsJNI.btSliderConstraintData_angularLowerLimit_set(swigCPtr, this, value); } public float getAngularLowerLimit () { return DynamicsJNI.btSliderConstraintData_angularLowerLimit_get(swigCPtr, this); } public void setUseLinearReferenceFrameA (int value) { DynamicsJNI.btSliderConstraintData_useLinearReferenceFrameA_set(swigCPtr, this, value); } public int getUseLinearReferenceFrameA () { return DynamicsJNI.btSliderConstraintData_useLinearReferenceFrameA_get(swigCPtr, this); } public void setUseOffsetForConstraintFrame (int value) { DynamicsJNI.btSliderConstraintData_useOffsetForConstraintFrame_set(swigCPtr, this, value); } public int getUseOffsetForConstraintFrame () { return DynamicsJNI.btSliderConstraintData_useOffsetForConstraintFrame_get(swigCPtr, this); } public btSliderConstraintData () { this(DynamicsJNI.new_btSliderConstraintData(), true); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.dynamics; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.physics.bullet.collision.*; public class btSliderConstraintData extends BulletBase { private long swigCPtr; protected btSliderConstraintData (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btSliderConstraintData, normally you should not need this constructor it's intended for low-level usage. */ public btSliderConstraintData (long cPtr, boolean cMemoryOwn) { this("btSliderConstraintData", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btSliderConstraintData obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; DynamicsJNI.delete_btSliderConstraintData(swigCPtr); } swigCPtr = 0; } super.delete(); } public void setTypeConstraintData (btTypedConstraintData value) { DynamicsJNI.btSliderConstraintData_typeConstraintData_set(swigCPtr, this, btTypedConstraintData.getCPtr(value), value); } public btTypedConstraintData getTypeConstraintData () { long cPtr = DynamicsJNI.btSliderConstraintData_typeConstraintData_get(swigCPtr, this); return (cPtr == 0) ? null : new btTypedConstraintData(cPtr, false); } public void setRbAFrame (btTransformFloatData value) { DynamicsJNI.btSliderConstraintData_rbAFrame_set(swigCPtr, this, btTransformFloatData.getCPtr(value), value); } public btTransformFloatData getRbAFrame () { long cPtr = DynamicsJNI.btSliderConstraintData_rbAFrame_get(swigCPtr, this); return (cPtr == 0) ? null : new btTransformFloatData(cPtr, false); } public void setRbBFrame (btTransformFloatData value) { DynamicsJNI.btSliderConstraintData_rbBFrame_set(swigCPtr, this, btTransformFloatData.getCPtr(value), value); } public btTransformFloatData getRbBFrame () { long cPtr = DynamicsJNI.btSliderConstraintData_rbBFrame_get(swigCPtr, this); return (cPtr == 0) ? null : new btTransformFloatData(cPtr, false); } public void setLinearUpperLimit (float value) { DynamicsJNI.btSliderConstraintData_linearUpperLimit_set(swigCPtr, this, value); } public float getLinearUpperLimit () { return DynamicsJNI.btSliderConstraintData_linearUpperLimit_get(swigCPtr, this); } public void setLinearLowerLimit (float value) { DynamicsJNI.btSliderConstraintData_linearLowerLimit_set(swigCPtr, this, value); } public float getLinearLowerLimit () { return DynamicsJNI.btSliderConstraintData_linearLowerLimit_get(swigCPtr, this); } public void setAngularUpperLimit (float value) { DynamicsJNI.btSliderConstraintData_angularUpperLimit_set(swigCPtr, this, value); } public float getAngularUpperLimit () { return DynamicsJNI.btSliderConstraintData_angularUpperLimit_get(swigCPtr, this); } public void setAngularLowerLimit (float value) { DynamicsJNI.btSliderConstraintData_angularLowerLimit_set(swigCPtr, this, value); } public float getAngularLowerLimit () { return DynamicsJNI.btSliderConstraintData_angularLowerLimit_get(swigCPtr, this); } public void setUseLinearReferenceFrameA (int value) { DynamicsJNI.btSliderConstraintData_useLinearReferenceFrameA_set(swigCPtr, this, value); } public int getUseLinearReferenceFrameA () { return DynamicsJNI.btSliderConstraintData_useLinearReferenceFrameA_get(swigCPtr, this); } public void setUseOffsetForConstraintFrame (int value) { DynamicsJNI.btSliderConstraintData_useOffsetForConstraintFrame_set(swigCPtr, this, value); } public int getUseOffsetForConstraintFrame () { return DynamicsJNI.btSliderConstraintData_useOffsetForConstraintFrame_get(swigCPtr, this); } public btSliderConstraintData () { this(DynamicsJNI.new_btSliderConstraintData(), true); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/graphics/g3d/environment/PointLight.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.graphics.g3d.environment; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.math.Vector3; public class PointLight extends BaseLight<PointLight> { public final Vector3 position = new Vector3(); public float intensity; public PointLight setPosition (float positionX, float positionY, float positionZ) { this.position.set(positionX, positionY, positionZ); return this; } public PointLight setPosition (Vector3 position) { this.position.set(position); return this; } public PointLight setIntensity (float intensity) { this.intensity = intensity; return this; } public PointLight set (final PointLight copyFrom) { return set(copyFrom.color, copyFrom.position, copyFrom.intensity); } public PointLight set (final Color color, final Vector3 position, final float intensity) { if (color != null) this.color.set(color); if (position != null) this.position.set(position); this.intensity = intensity; return this; } public PointLight set (final float r, final float g, final float b, final Vector3 position, final float intensity) { this.color.set(r, g, b, 1f); if (position != null) this.position.set(position); this.intensity = intensity; return this; } public PointLight set (final Color color, final float x, final float y, final float z, final float intensity) { if (color != null) this.color.set(color); this.position.set(x, y, z); this.intensity = intensity; return this; } public PointLight set (final float r, final float g, final float b, final float x, final float y, final float z, final float intensity) { this.color.set(r, g, b, 1f); this.position.set(x, y, z); this.intensity = intensity; return this; } @Override public boolean equals (Object obj) { return (obj instanceof PointLight) && equals((PointLight)obj); } public boolean equals (PointLight other) { return (other != null && (other == this || (color.equals(other.color) && position.equals(other.position) && intensity == other.intensity))); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.graphics.g3d.environment; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.math.Vector3; public class PointLight extends BaseLight<PointLight> { public final Vector3 position = new Vector3(); public float intensity; public PointLight setPosition (float positionX, float positionY, float positionZ) { this.position.set(positionX, positionY, positionZ); return this; } public PointLight setPosition (Vector3 position) { this.position.set(position); return this; } public PointLight setIntensity (float intensity) { this.intensity = intensity; return this; } public PointLight set (final PointLight copyFrom) { return set(copyFrom.color, copyFrom.position, copyFrom.intensity); } public PointLight set (final Color color, final Vector3 position, final float intensity) { if (color != null) this.color.set(color); if (position != null) this.position.set(position); this.intensity = intensity; return this; } public PointLight set (final float r, final float g, final float b, final Vector3 position, final float intensity) { this.color.set(r, g, b, 1f); if (position != null) this.position.set(position); this.intensity = intensity; return this; } public PointLight set (final Color color, final float x, final float y, final float z, final float intensity) { if (color != null) this.color.set(color); this.position.set(x, y, z); this.intensity = intensity; return this; } public PointLight set (final float r, final float g, final float b, final float x, final float y, final float z, final float intensity) { this.color.set(r, g, b, 1f); this.position.set(x, y, z); this.intensity = intensity; return this; } @Override public boolean equals (Object obj) { return (obj instanceof PointLight) && equals((PointLight)obj); } public boolean equals (PointLight other) { return (other != null && (other == this || (color.equals(other.color) && position.equals(other.position) && intensity == other.intensity))); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/utils/reflect/ArrayReflection.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.utils.reflect; /** Utilities for Array reflection. * @author nexsoftware */ public final class ArrayReflection { /** Creates a new array with the specified component type and length. */ static public Object newInstance (Class c, int size) { return java.lang.reflect.Array.newInstance(c, size); } /** Returns the length of the supplied array. */ static public int getLength (Object array) { return java.lang.reflect.Array.getLength(array); } /** Returns the value of the indexed component in the supplied array. */ static public Object get (Object array, int index) { return java.lang.reflect.Array.get(array, index); } /** Sets the value of the indexed component in the supplied array to the supplied value. */ static public void set (Object array, int index, Object value) { java.lang.reflect.Array.set(array, index, value); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.utils.reflect; /** Utilities for Array reflection. * @author nexsoftware */ public final class ArrayReflection { /** Creates a new array with the specified component type and length. */ static public Object newInstance (Class c, int size) { return java.lang.reflect.Array.newInstance(c, size); } /** Returns the length of the supplied array. */ static public int getLength (Object array) { return java.lang.reflect.Array.getLength(array); } /** Returns the value of the indexed component in the supplied array. */ static public Object get (Object array, int index) { return java.lang.reflect.Array.get(array, index); } /** Sets the value of the indexed component in the supplied array to the supplied value. */ static public void set (Object array, int index, Object value) { java.lang.reflect.Array.set(array, index, value); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests-iosrobovm/src/com/badlogic/gdx/tests/IosTestWrapper.java
package com.badlogic.gdx.tests; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.tests.utils.GdxTests; public class IosTestWrapper extends AbstractTestWrapper { @Override protected Instancer[] getTestList () { Instancer[] tests = new Instancer[GdxTests.tests.size()]; int i = 0; for (final Class<? extends GdxTest> aClass : GdxTests.tests) { tests[i] = new IosInstancer(aClass); i++; } return tests; } class IosInstancer implements Instancer { final Class<? extends GdxTest> clazz; IosInstancer (Class<? extends GdxTest> clazz) { this.clazz = clazz; } @Override public GdxTest instance () { try { return clazz.newInstance(); } catch (InstantiationException | IllegalAccessException e) { e.printStackTrace(); } return null; } @Override public String getSimpleName () { return clazz.getSimpleName(); } } }
package com.badlogic.gdx.tests; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.tests.utils.GdxTests; public class IosTestWrapper extends AbstractTestWrapper { @Override protected Instancer[] getTestList () { Instancer[] tests = new Instancer[GdxTests.tests.size()]; int i = 0; for (final Class<? extends GdxTest> aClass : GdxTests.tests) { tests[i] = new IosInstancer(aClass); i++; } return tests; } class IosInstancer implements Instancer { final Class<? extends GdxTest> clazz; IosInstancer (Class<? extends GdxTest> clazz) { this.clazz = clazz; } @Override public GdxTest instance () { try { return clazz.newInstance(); } catch (InstantiationException | IllegalAccessException e) { e.printStackTrace(); } return null; } @Override public String getSimpleName () { return clazz.getSimpleName(); } } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull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L &TKOC>,i%e-;.H2b$/џ7 X "1(-mn|y(,҂՛ݻ/۲|z?rm;:)$vwxPRGĦWU.[7fc}\("QI0Qsٸ 6 ge^;/e&}bpc$ Vس/lh8SZ.IaXt|sdJK} fopL)g~00ǣ!. ]En'z<v_?:>:?t0px㷯_on^پMy=wqe|@_T[ra h,2MCPo0&騞 d^\y6gܳ.& º%2 +nb x5F `+P, *xU5+gl-N<-E *"zW+$bP |( tGy8*G}ݿxpP [ڕ'γW_}C RO\ݞ|h@WTF@'LJDf*l}p 9qBj, jO"58Tv#~=mtAH0)Ir*Doj ĩ.+ 'nW *IG$j66QD(1Rr-AmN_\@ī"ֻK#.#v,ר~ezh+(iC2`u Jp`q0'UBGbgĉ*`)1p.` TyԞPc1VQP %b2x#$:_8tp>@$?K5\/  Ǥiy8D,Zl.^h70Yҋ+4Р[X ,"R&ƅX٤,K [KLʜEbii;` (?`$ΨЃKtpaIႇГqHGZ(ehRꠞ?rxAVۂB=x{t,p 3 <Le\S)`8‡"ܷP}O <NXR.b|Z>e #+.a/ '̈́uFa4xI)x9,e:m!5ѺMڑp-E 0.%:VxKKrks+/OΩgܩumn۶ e . &&&& dbbbbbV8o)]:33cygAp을&OcX~U$ʈ݂EF{jIk=Zni˞֓mgPZK7#m6ӏ=I2gD}8Q}OaDogHz?WG׳lhXw&_A~֯_s55Yè۞CgPm~m7ՏrJtn'2ɮ n~>4Omi IENDB`
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/Glyph.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tools.hiero.unicodefont; import java.awt.Font; import java.awt.Rectangle; import java.awt.Shape; import java.awt.font.GlyphMetrics; import java.awt.font.GlyphVector; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.tools.hiero.unicodefont.UnicodeFont.RenderType; /** Represents the glyph in a font for a unicode codepoint. * @author Nathan Sweet */ public class Glyph { private int codePoint; private short width, height; private short yOffset; private boolean isMissing; private Shape shape; float u, v, u2, v2; private int xOffset, xAdvance; Texture texture; Glyph (int codePoint, Rectangle bounds, GlyphVector vector, int index, UnicodeFont unicodeFont) { this.codePoint = codePoint; int padTop = unicodeFont.getPaddingTop(), padBottom = unicodeFont.getPaddingBottom(); int padLeft = unicodeFont.getPaddingLeft(), padRight = unicodeFont.getPaddingRight(); if (unicodeFont.renderType == RenderType.FreeType && unicodeFont.bitmapFont != null) { BitmapFont.Glyph g = unicodeFont.bitmapFont.getData().getGlyph((char)codePoint); if (g == null) isMissing = true; else { boolean empty = g.width == 0 || g.height == 0; width = empty ? 0 : (short)(g.width + padLeft + padRight); height = empty ? 0 : (short)(g.height + padTop + padBottom); yOffset = (short)(g.yoffset - padTop); xOffset = g.xoffset - unicodeFont.getPaddingLeft(); xAdvance = g.xadvance + unicodeFont.getPaddingAdvanceX() + unicodeFont.getPaddingLeft() + unicodeFont.getPaddingRight(); isMissing = codePoint == 0; } } else { GlyphMetrics metrics = vector.getGlyphMetrics(index); int lsb = (int)metrics.getLSB(); if (lsb > 0) lsb = 0; int rsb = (int)metrics.getRSB(); if (rsb > 0) rsb = 0; int glyphWidth = bounds.width - lsb - rsb; int glyphHeight = bounds.height; if (glyphWidth > 0 && glyphHeight > 0) { width = (short)(glyphWidth + padLeft + padRight); height = (short)(glyphHeight + padTop + padBottom); yOffset = (short)(unicodeFont.getAscent() + bounds.y - padTop); } // xOffset and xAdvance will be incorrect for unicode characters such as combining marks or non-spacing characters // (eg Pnujabi's "\u0A1C\u0A47") that require the context of surrounding glyphs to determine spacing, but this is the // best we can do with the BMFont format. char[] chars = Character.toChars(codePoint); GlyphVector charVector = unicodeFont.getFont().layoutGlyphVector(GlyphPage.renderContext, chars, 0, chars.length, Font.LAYOUT_LEFT_TO_RIGHT); GlyphMetrics charMetrics = charVector.getGlyphMetrics(0); xOffset = charVector.getGlyphPixelBounds(0, GlyphPage.renderContext, 0, 0).x - unicodeFont.getPaddingLeft(); xAdvance = (int)(metrics.getAdvanceX() + unicodeFont.getPaddingAdvanceX() + unicodeFont.getPaddingLeft() + unicodeFont.getPaddingRight()); shape = vector.getGlyphOutline(index, -bounds.x + unicodeFont.getPaddingLeft(), -bounds.y + unicodeFont.getPaddingTop()); isMissing = !unicodeFont.getFont().canDisplay((char)codePoint); } } /** The unicode codepoint the glyph represents. */ public int getCodePoint () { return codePoint; } /** Returns true if the font does not have a glyph for this codepoint. */ public boolean isMissing () { return isMissing; } /** The width of the glyph's image. */ public int getWidth () { return width; } /** The height of the glyph's image. */ public int getHeight () { return height; } /** The shape to use to draw this glyph. This is set to null after the glyph is stored in a GlyphPage. */ public Shape getShape () { return shape; } public void setShape (Shape shape) { this.shape = shape; } public void setTexture (Texture texture, float u, float v, float u2, float v2) { this.texture = texture; this.u = u; this.v = v; this.u2 = u2; this.v2 = v2; } public Texture getTexture () { return texture; } public float getU () { return u; } public float getV () { return v; } public float getU2 () { return u2; } public float getV2 () { return v2; } /** The distance from drawing y location to top of this glyph, causing the glyph to sit on the baseline. */ public int getYOffset () { return yOffset; } public int getXOffset () { return xOffset; } public int getXAdvance () { return xAdvance; } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tools.hiero.unicodefont; import java.awt.Font; import java.awt.Rectangle; import java.awt.Shape; import java.awt.font.GlyphMetrics; import java.awt.font.GlyphVector; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.tools.hiero.unicodefont.UnicodeFont.RenderType; /** Represents the glyph in a font for a unicode codepoint. * @author Nathan Sweet */ public class Glyph { private int codePoint; private short width, height; private short yOffset; private boolean isMissing; private Shape shape; float u, v, u2, v2; private int xOffset, xAdvance; Texture texture; Glyph (int codePoint, Rectangle bounds, GlyphVector vector, int index, UnicodeFont unicodeFont) { this.codePoint = codePoint; int padTop = unicodeFont.getPaddingTop(), padBottom = unicodeFont.getPaddingBottom(); int padLeft = unicodeFont.getPaddingLeft(), padRight = unicodeFont.getPaddingRight(); if (unicodeFont.renderType == RenderType.FreeType && unicodeFont.bitmapFont != null) { BitmapFont.Glyph g = unicodeFont.bitmapFont.getData().getGlyph((char)codePoint); if (g == null) isMissing = true; else { boolean empty = g.width == 0 || g.height == 0; width = empty ? 0 : (short)(g.width + padLeft + padRight); height = empty ? 0 : (short)(g.height + padTop + padBottom); yOffset = (short)(g.yoffset - padTop); xOffset = g.xoffset - unicodeFont.getPaddingLeft(); xAdvance = g.xadvance + unicodeFont.getPaddingAdvanceX() + unicodeFont.getPaddingLeft() + unicodeFont.getPaddingRight(); isMissing = codePoint == 0; } } else { GlyphMetrics metrics = vector.getGlyphMetrics(index); int lsb = (int)metrics.getLSB(); if (lsb > 0) lsb = 0; int rsb = (int)metrics.getRSB(); if (rsb > 0) rsb = 0; int glyphWidth = bounds.width - lsb - rsb; int glyphHeight = bounds.height; if (glyphWidth > 0 && glyphHeight > 0) { width = (short)(glyphWidth + padLeft + padRight); height = (short)(glyphHeight + padTop + padBottom); yOffset = (short)(unicodeFont.getAscent() + bounds.y - padTop); } // xOffset and xAdvance will be incorrect for unicode characters such as combining marks or non-spacing characters // (eg Pnujabi's "\u0A1C\u0A47") that require the context of surrounding glyphs to determine spacing, but this is the // best we can do with the BMFont format. char[] chars = Character.toChars(codePoint); GlyphVector charVector = unicodeFont.getFont().layoutGlyphVector(GlyphPage.renderContext, chars, 0, chars.length, Font.LAYOUT_LEFT_TO_RIGHT); GlyphMetrics charMetrics = charVector.getGlyphMetrics(0); xOffset = charVector.getGlyphPixelBounds(0, GlyphPage.renderContext, 0, 0).x - unicodeFont.getPaddingLeft(); xAdvance = (int)(metrics.getAdvanceX() + unicodeFont.getPaddingAdvanceX() + unicodeFont.getPaddingLeft() + unicodeFont.getPaddingRight()); shape = vector.getGlyphOutline(index, -bounds.x + unicodeFont.getPaddingLeft(), -bounds.y + unicodeFont.getPaddingTop()); isMissing = !unicodeFont.getFont().canDisplay((char)codePoint); } } /** The unicode codepoint the glyph represents. */ public int getCodePoint () { return codePoint; } /** Returns true if the font does not have a glyph for this codepoint. */ public boolean isMissing () { return isMissing; } /** The width of the glyph's image. */ public int getWidth () { return width; } /** The height of the glyph's image. */ public int getHeight () { return height; } /** The shape to use to draw this glyph. This is set to null after the glyph is stored in a GlyphPage. */ public Shape getShape () { return shape; } public void setShape (Shape shape) { this.shape = shape; } public void setTexture (Texture texture, float u, float v, float u2, float v2) { this.texture = texture; this.u = u; this.v = v; this.u2 = u2; this.v2 = v2; } public Texture getTexture () { return texture; } public float getU () { return u; } public float getV () { return v; } public float getU2 () { return u2; } public float getV2 () { return v2; } /** The distance from drawing y location to top of this glyph, causing the glyph to sit on the baseline. */ public int getYOffset () { return yOffset; } public int getXOffset () { return xOffset; } public int getXAdvance () { return xAdvance; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtPreferences.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.backends.gwt; import java.util.HashMap; import java.util.Map; import com.badlogic.gdx.Preferences; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ObjectMap; public class GwtPreferences implements Preferences { final String prefix; ObjectMap<String, Object> values = new ObjectMap<String, Object>(); GwtPreferences (String prefix) { this.prefix = prefix + ":"; int prefixLength = this.prefix.length(); if (GwtFiles.LocalStorage != null) { try { for (int i = 0; i < GwtFiles.LocalStorage.getLength(); i++) { String key = GwtFiles.LocalStorage.key(i); if (key.startsWith(prefix)) { String value = GwtFiles.LocalStorage.getItem(key); values.put(key.substring(prefixLength, key.length() - 1), toObject(key, value)); } } } catch (Exception e) { values.clear(); } } } private Object toObject (String key, String value) { if (key.endsWith("b")) return Boolean.parseBoolean(value); if (key.endsWith("i")) return Integer.parseInt(value); if (key.endsWith("l")) return Long.parseLong(value); if (key.endsWith("f")) return Float.parseFloat(value); return value; } private String toStorageKey (String key, Object value) { if (value instanceof Boolean) return prefix + key + "b"; if (value instanceof Integer) return prefix + key + "i"; if (value instanceof Long) return prefix + key + "l"; if (value instanceof Float) return prefix + key + "f"; return prefix + key + "s"; } @Override public void flush () { if (GwtFiles.LocalStorage != null) { try { // remove all old values for (int i = 0; i < GwtFiles.LocalStorage.getLength(); i++) { String key = GwtFiles.LocalStorage.key(i); if (key.startsWith(prefix)) GwtFiles.LocalStorage.removeItem(key); } // push new values to LocalStorage for (String key : values.keys()) { String storageKey = toStorageKey(key, values.get(key)); String storageValue = "" + values.get(key).toString(); GwtFiles.LocalStorage.setItem(storageKey, storageValue); } } catch (Exception e) { throw new GdxRuntimeException("Couldn't flush preferences", e); } } } @Override public Preferences putBoolean (String key, boolean val) { values.put(key, val); return this; } @Override public Preferences putInteger (String key, int val) { values.put(key, val); return this; } @Override public Preferences putLong (String key, long val) { values.put(key, val); return this; } @Override public Preferences putFloat (String key, float val) { values.put(key, val); return this; } @Override public Preferences putString (String key, String val) { values.put(key, val); return this; } @Override public Preferences put (Map<String, ?> vals) { for (String key : vals.keySet()) { values.put(key, vals.get(key)); } return this; } @Override public boolean getBoolean (String key) { Boolean v = (Boolean)values.get(key); return v == null ? false : v; } @Override public int getInteger (String key) { Integer v = (Integer)values.get(key); return v == null ? 0 : v; } @Override public long getLong (String key) { Long v = (Long)values.get(key); return v == null ? 0 : v; } @Override public float getFloat (String key) { Float v = (Float)values.get(key); return v == null ? 0 : v; } @Override public String getString (String key) { String v = (String)values.get(key); return v == null ? "" : v; } @Override public boolean getBoolean (String key, boolean defValue) { Boolean res = (Boolean)values.get(key); return res == null ? defValue : res; } @Override public int getInteger (String key, int defValue) { Integer res = (Integer)values.get(key); return res == null ? defValue : res; } @Override public long getLong (String key, long defValue) { Long res = (Long)values.get(key); return res == null ? defValue : res; } @Override public float getFloat (String key, float defValue) { Float res = (Float)values.get(key); return res == null ? defValue : res; } @Override public String getString (String key, String defValue) { String res = (String)values.get(key); return res == null ? defValue : res; } @Override public Map<String, ?> get () { HashMap<String, Object> map = new HashMap<String, Object>(); for (String key : values.keys()) { map.put(key, values.get(key)); } return map; } @Override public boolean contains (String key) { return values.containsKey(key); } @Override public void clear () { values.clear(); } @Override public void remove (String key) { values.remove(key); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.backends.gwt; import java.util.HashMap; import java.util.Map; import com.badlogic.gdx.Preferences; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ObjectMap; public class GwtPreferences implements Preferences { final String prefix; ObjectMap<String, Object> values = new ObjectMap<String, Object>(); GwtPreferences (String prefix) { this.prefix = prefix + ":"; int prefixLength = this.prefix.length(); if (GwtFiles.LocalStorage != null) { try { for (int i = 0; i < GwtFiles.LocalStorage.getLength(); i++) { String key = GwtFiles.LocalStorage.key(i); if (key.startsWith(prefix)) { String value = GwtFiles.LocalStorage.getItem(key); values.put(key.substring(prefixLength, key.length() - 1), toObject(key, value)); } } } catch (Exception e) { values.clear(); } } } private Object toObject (String key, String value) { if (key.endsWith("b")) return Boolean.parseBoolean(value); if (key.endsWith("i")) return Integer.parseInt(value); if (key.endsWith("l")) return Long.parseLong(value); if (key.endsWith("f")) return Float.parseFloat(value); return value; } private String toStorageKey (String key, Object value) { if (value instanceof Boolean) return prefix + key + "b"; if (value instanceof Integer) return prefix + key + "i"; if (value instanceof Long) return prefix + key + "l"; if (value instanceof Float) return prefix + key + "f"; return prefix + key + "s"; } @Override public void flush () { if (GwtFiles.LocalStorage != null) { try { // remove all old values for (int i = 0; i < GwtFiles.LocalStorage.getLength(); i++) { String key = GwtFiles.LocalStorage.key(i); if (key.startsWith(prefix)) GwtFiles.LocalStorage.removeItem(key); } // push new values to LocalStorage for (String key : values.keys()) { String storageKey = toStorageKey(key, values.get(key)); String storageValue = "" + values.get(key).toString(); GwtFiles.LocalStorage.setItem(storageKey, storageValue); } } catch (Exception e) { throw new GdxRuntimeException("Couldn't flush preferences", e); } } } @Override public Preferences putBoolean (String key, boolean val) { values.put(key, val); return this; } @Override public Preferences putInteger (String key, int val) { values.put(key, val); return this; } @Override public Preferences putLong (String key, long val) { values.put(key, val); return this; } @Override public Preferences putFloat (String key, float val) { values.put(key, val); return this; } @Override public Preferences putString (String key, String val) { values.put(key, val); return this; } @Override public Preferences put (Map<String, ?> vals) { for (String key : vals.keySet()) { values.put(key, vals.get(key)); } return this; } @Override public boolean getBoolean (String key) { Boolean v = (Boolean)values.get(key); return v == null ? false : v; } @Override public int getInteger (String key) { Integer v = (Integer)values.get(key); return v == null ? 0 : v; } @Override public long getLong (String key) { Long v = (Long)values.get(key); return v == null ? 0 : v; } @Override public float getFloat (String key) { Float v = (Float)values.get(key); return v == null ? 0 : v; } @Override public String getString (String key) { String v = (String)values.get(key); return v == null ? "" : v; } @Override public boolean getBoolean (String key, boolean defValue) { Boolean res = (Boolean)values.get(key); return res == null ? defValue : res; } @Override public int getInteger (String key, int defValue) { Integer res = (Integer)values.get(key); return res == null ? defValue : res; } @Override public long getLong (String key, long defValue) { Long res = (Long)values.get(key); return res == null ? defValue : res; } @Override public float getFloat (String key, float defValue) { Float res = (Float)values.get(key); return res == null ? defValue : res; } @Override public String getString (String key, String defValue) { String res = (String)values.get(key); return res == null ? defValue : res; } @Override public Map<String, ?> get () { HashMap<String, Object> map = new HashMap<String, Object>(); for (String key : values.keys()) { map.put(key, values.get(key)); } return map; } @Override public boolean contains (String key) { return values.containsKey(key); } @Override public void clear () { values.clear(); } @Override public void remove (String key) { values.remove(key); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests-android/res/values-v21/styles.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar.Fullscreen"> <item name="android:colorBackground">@color/background</item> </style> </resources>
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar.Fullscreen"> <item name="android:colorBackground">@color/background</item> </style> </resources>
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btMeshPartData.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; public class btMeshPartData extends BulletBase { private long swigCPtr; protected btMeshPartData (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btMeshPartData, normally you should not need this constructor it's intended for low-level usage. */ public btMeshPartData (long cPtr, boolean cMemoryOwn) { this("btMeshPartData", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btMeshPartData obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btMeshPartData(swigCPtr); } swigCPtr = 0; } super.delete(); } public void setVertices3f (btVector3FloatData value) { CollisionJNI.btMeshPartData_vertices3f_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value); } public btVector3FloatData getVertices3f () { long cPtr = CollisionJNI.btMeshPartData_vertices3f_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false); } public void setVertices3d (btVector3DoubleData value) { CollisionJNI.btMeshPartData_vertices3d_set(swigCPtr, this, btVector3DoubleData.getCPtr(value), value); } public btVector3DoubleData getVertices3d () { long cPtr = CollisionJNI.btMeshPartData_vertices3d_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3DoubleData(cPtr, false); } public void setIndices32 (btIntIndexData value) { CollisionJNI.btMeshPartData_indices32_set(swigCPtr, this, btIntIndexData.getCPtr(value), value); } public btIntIndexData getIndices32 () { long cPtr = CollisionJNI.btMeshPartData_indices32_get(swigCPtr, this); return (cPtr == 0) ? null : new btIntIndexData(cPtr, false); } public void set3indices16 (btShortIntIndexTripletData value) { CollisionJNI.btMeshPartData_3indices16_set(swigCPtr, this, btShortIntIndexTripletData.getCPtr(value), value); } public btShortIntIndexTripletData get3indices16 () { long cPtr = CollisionJNI.btMeshPartData_3indices16_get(swigCPtr, this); return (cPtr == 0) ? null : new btShortIntIndexTripletData(cPtr, false); } public void set3indices8 (btCharIndexTripletData value) { CollisionJNI.btMeshPartData_3indices8_set(swigCPtr, this, btCharIndexTripletData.getCPtr(value), value); } public btCharIndexTripletData get3indices8 () { long cPtr = CollisionJNI.btMeshPartData_3indices8_get(swigCPtr, this); return (cPtr == 0) ? null : new btCharIndexTripletData(cPtr, false); } public void setIndices16 (btShortIntIndexData value) { CollisionJNI.btMeshPartData_indices16_set(swigCPtr, this, btShortIntIndexData.getCPtr(value), value); } public btShortIntIndexData getIndices16 () { long cPtr = CollisionJNI.btMeshPartData_indices16_get(swigCPtr, this); return (cPtr == 0) ? null : new btShortIntIndexData(cPtr, false); } public void setNumTriangles (int value) { CollisionJNI.btMeshPartData_numTriangles_set(swigCPtr, this, value); } public int getNumTriangles () { return CollisionJNI.btMeshPartData_numTriangles_get(swigCPtr, this); } public void setNumVertices (int value) { CollisionJNI.btMeshPartData_numVertices_set(swigCPtr, this, value); } public int getNumVertices () { return CollisionJNI.btMeshPartData_numVertices_get(swigCPtr, this); } public btMeshPartData () { this(CollisionJNI.new_btMeshPartData(), true); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; public class btMeshPartData extends BulletBase { private long swigCPtr; protected btMeshPartData (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btMeshPartData, normally you should not need this constructor it's intended for low-level usage. */ public btMeshPartData (long cPtr, boolean cMemoryOwn) { this("btMeshPartData", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btMeshPartData obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btMeshPartData(swigCPtr); } swigCPtr = 0; } super.delete(); } public void setVertices3f (btVector3FloatData value) { CollisionJNI.btMeshPartData_vertices3f_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value); } public btVector3FloatData getVertices3f () { long cPtr = CollisionJNI.btMeshPartData_vertices3f_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false); } public void setVertices3d (btVector3DoubleData value) { CollisionJNI.btMeshPartData_vertices3d_set(swigCPtr, this, btVector3DoubleData.getCPtr(value), value); } public btVector3DoubleData getVertices3d () { long cPtr = CollisionJNI.btMeshPartData_vertices3d_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3DoubleData(cPtr, false); } public void setIndices32 (btIntIndexData value) { CollisionJNI.btMeshPartData_indices32_set(swigCPtr, this, btIntIndexData.getCPtr(value), value); } public btIntIndexData getIndices32 () { long cPtr = CollisionJNI.btMeshPartData_indices32_get(swigCPtr, this); return (cPtr == 0) ? null : new btIntIndexData(cPtr, false); } public void set3indices16 (btShortIntIndexTripletData value) { CollisionJNI.btMeshPartData_3indices16_set(swigCPtr, this, btShortIntIndexTripletData.getCPtr(value), value); } public btShortIntIndexTripletData get3indices16 () { long cPtr = CollisionJNI.btMeshPartData_3indices16_get(swigCPtr, this); return (cPtr == 0) ? null : new btShortIntIndexTripletData(cPtr, false); } public void set3indices8 (btCharIndexTripletData value) { CollisionJNI.btMeshPartData_3indices8_set(swigCPtr, this, btCharIndexTripletData.getCPtr(value), value); } public btCharIndexTripletData get3indices8 () { long cPtr = CollisionJNI.btMeshPartData_3indices8_get(swigCPtr, this); return (cPtr == 0) ? null : new btCharIndexTripletData(cPtr, false); } public void setIndices16 (btShortIntIndexData value) { CollisionJNI.btMeshPartData_indices16_set(swigCPtr, this, btShortIntIndexData.getCPtr(value), value); } public btShortIntIndexData getIndices16 () { long cPtr = CollisionJNI.btMeshPartData_indices16_get(swigCPtr, this); return (cPtr == 0) ? null : new btShortIntIndexData(cPtr, false); } public void setNumTriangles (int value) { CollisionJNI.btMeshPartData_numTriangles_set(swigCPtr, this, value); } public int getNumTriangles () { return CollisionJNI.btMeshPartData_numTriangles_get(swigCPtr, this); } public void setNumVertices (int value) { CollisionJNI.btMeshPartData_numVertices_set(swigCPtr, this, value); } public int getNumVertices () { return CollisionJNI.btMeshPartData_numVertices_get(swigCPtr, this); } public btMeshPartData () { this(CollisionJNI.new_btMeshPartData(), true); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/softbody/com/badlogic/gdx/physics/bullet/softbody/btTriIndex.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.softbody; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.physics.bullet.collision.*; import com.badlogic.gdx.physics.bullet.dynamics.*; public class btTriIndex extends BulletBase { private long swigCPtr; protected btTriIndex (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btTriIndex, normally you should not need this constructor it's intended for low-level usage. */ public btTriIndex (long cPtr, boolean cMemoryOwn) { this("btTriIndex", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btTriIndex obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; SoftbodyJNI.delete_btTriIndex(swigCPtr); } swigCPtr = 0; } super.delete(); } public void setPartIdTriangleIndex (int value) { SoftbodyJNI.btTriIndex_PartIdTriangleIndex_set(swigCPtr, this, value); } public int getPartIdTriangleIndex () { return SoftbodyJNI.btTriIndex_PartIdTriangleIndex_get(swigCPtr, this); } public void setChildShape (btCollisionShape value) { SoftbodyJNI.btTriIndex_childShape_set(swigCPtr, this, btCollisionShape.getCPtr(value), value); } public btCollisionShape getChildShape () { long cPtr = SoftbodyJNI.btTriIndex_childShape_get(swigCPtr, this); return (cPtr == 0) ? null : btCollisionShape.newDerivedObject(cPtr, false); } public btTriIndex (int partId, int triangleIndex, btCollisionShape shape) { this(SoftbodyJNI.new_btTriIndex(partId, triangleIndex, btCollisionShape.getCPtr(shape), shape), true); } public int getTriangleIndex () { return SoftbodyJNI.btTriIndex_getTriangleIndex(swigCPtr, this); } public int getPartId () { return SoftbodyJNI.btTriIndex_getPartId(swigCPtr, this); } public int getUid () { return SoftbodyJNI.btTriIndex_getUid(swigCPtr, this); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.softbody; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.physics.bullet.collision.*; import com.badlogic.gdx.physics.bullet.dynamics.*; public class btTriIndex extends BulletBase { private long swigCPtr; protected btTriIndex (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btTriIndex, normally you should not need this constructor it's intended for low-level usage. */ public btTriIndex (long cPtr, boolean cMemoryOwn) { this("btTriIndex", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btTriIndex obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; SoftbodyJNI.delete_btTriIndex(swigCPtr); } swigCPtr = 0; } super.delete(); } public void setPartIdTriangleIndex (int value) { SoftbodyJNI.btTriIndex_PartIdTriangleIndex_set(swigCPtr, this, value); } public int getPartIdTriangleIndex () { return SoftbodyJNI.btTriIndex_PartIdTriangleIndex_get(swigCPtr, this); } public void setChildShape (btCollisionShape value) { SoftbodyJNI.btTriIndex_childShape_set(swigCPtr, this, btCollisionShape.getCPtr(value), value); } public btCollisionShape getChildShape () { long cPtr = SoftbodyJNI.btTriIndex_childShape_get(swigCPtr, this); return (cPtr == 0) ? null : btCollisionShape.newDerivedObject(cPtr, false); } public btTriIndex (int partId, int triangleIndex, btCollisionShape shape) { this(SoftbodyJNI.new_btTriIndex(partId, triangleIndex, btCollisionShape.getCPtr(shape), shape), true); } public int getTriangleIndex () { return SoftbodyJNI.btTriIndex_getTriangleIndex(swigCPtr, this); } public int getPartId () { return SoftbodyJNI.btTriIndex_getPartId(swigCPtr, this); } public int getUid () { return SoftbodyJNI.btTriIndex_getUid(swigCPtr, this); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-setup/res/com/badlogic/gdx/setup/data/checkboxover.png
PNG  IHDR r|bKGD pHYsodtIME ;)-IDAT(c @"`a```8rh 7ll&X ]IENDB`
PNG  IHDR r|bKGD pHYsodtIME ;)-IDAT(c @"`a```8rh 7ll&X ]IENDB`
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btDispatcher.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; public class btDispatcher extends BulletBase { private long swigCPtr; protected btDispatcher (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btDispatcher, normally you should not need this constructor it's intended for low-level usage. */ public btDispatcher (long cPtr, boolean cMemoryOwn) { this("btDispatcher", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btDispatcher obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btDispatcher(swigCPtr); } swigCPtr = 0; } super.delete(); } public btCollisionAlgorithm findAlgorithm (btCollisionObjectWrapper body0Wrap, btCollisionObjectWrapper body1Wrap, btPersistentManifold sharedManifold, int queryType) { long cPtr = CollisionJNI.btDispatcher_findAlgorithm(swigCPtr, this, btCollisionObjectWrapper.getCPtr(body0Wrap), body0Wrap, btCollisionObjectWrapper.getCPtr(body1Wrap), body1Wrap, btPersistentManifold.getCPtr(sharedManifold), sharedManifold, queryType); return (cPtr == 0) ? null : new btCollisionAlgorithm(cPtr, false); } public btPersistentManifold getNewManifold (btCollisionObject b0, btCollisionObject b1) { long cPtr = CollisionJNI.btDispatcher_getNewManifold(swigCPtr, this, btCollisionObject.getCPtr(b0), b0, btCollisionObject.getCPtr(b1), b1); return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); } public void releaseManifold (btPersistentManifold manifold) { CollisionJNI.btDispatcher_releaseManifold(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold); } public void clearManifold (btPersistentManifold manifold) { CollisionJNI.btDispatcher_clearManifold(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold); } public boolean needsCollision (btCollisionObject body0, btCollisionObject body1) { return CollisionJNI.btDispatcher_needsCollision(swigCPtr, this, btCollisionObject.getCPtr(body0), body0, btCollisionObject.getCPtr(body1), body1); } public boolean needsResponse (btCollisionObject body0, btCollisionObject body1) { return CollisionJNI.btDispatcher_needsResponse(swigCPtr, this, btCollisionObject.getCPtr(body0), body0, btCollisionObject.getCPtr(body1), body1); } public void dispatchAllCollisionPairs (btOverlappingPairCache pairCache, btDispatcherInfo dispatchInfo, btDispatcher dispatcher) { CollisionJNI.btDispatcher_dispatchAllCollisionPairs(swigCPtr, this, btOverlappingPairCache.getCPtr(pairCache), pairCache, btDispatcherInfo.getCPtr(dispatchInfo), dispatchInfo, btDispatcher.getCPtr(dispatcher), dispatcher); } public int getNumManifolds () { return CollisionJNI.btDispatcher_getNumManifolds(swigCPtr, this); } public btPersistentManifold getManifoldByIndexInternal (int index) { long cPtr = CollisionJNI.btDispatcher_getManifoldByIndexInternal(swigCPtr, this, index); return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); } public SWIGTYPE_p_p_btPersistentManifold getInternalManifoldPointer () { long cPtr = CollisionJNI.btDispatcher_getInternalManifoldPointer(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_p_btPersistentManifold(cPtr, false); } public btPoolAllocator getInternalManifoldPool () { long cPtr = CollisionJNI.btDispatcher_getInternalManifoldPool(swigCPtr, this); return (cPtr == 0) ? null : new btPoolAllocator(cPtr, false); } public btPoolAllocator getInternalManifoldPoolConst () { long cPtr = CollisionJNI.btDispatcher_getInternalManifoldPoolConst(swigCPtr, this); return (cPtr == 0) ? null : new btPoolAllocator(cPtr, false); } public long allocateCollisionAlgorithm (int size) { return CollisionJNI.btDispatcher_allocateCollisionAlgorithm(swigCPtr, this, size); } public void freeCollisionAlgorithm (long ptr) { CollisionJNI.btDispatcher_freeCollisionAlgorithm(swigCPtr, this, ptr); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; public class btDispatcher extends BulletBase { private long swigCPtr; protected btDispatcher (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btDispatcher, normally you should not need this constructor it's intended for low-level usage. */ public btDispatcher (long cPtr, boolean cMemoryOwn) { this("btDispatcher", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btDispatcher obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btDispatcher(swigCPtr); } swigCPtr = 0; } super.delete(); } public btCollisionAlgorithm findAlgorithm (btCollisionObjectWrapper body0Wrap, btCollisionObjectWrapper body1Wrap, btPersistentManifold sharedManifold, int queryType) { long cPtr = CollisionJNI.btDispatcher_findAlgorithm(swigCPtr, this, btCollisionObjectWrapper.getCPtr(body0Wrap), body0Wrap, btCollisionObjectWrapper.getCPtr(body1Wrap), body1Wrap, btPersistentManifold.getCPtr(sharedManifold), sharedManifold, queryType); return (cPtr == 0) ? null : new btCollisionAlgorithm(cPtr, false); } public btPersistentManifold getNewManifold (btCollisionObject b0, btCollisionObject b1) { long cPtr = CollisionJNI.btDispatcher_getNewManifold(swigCPtr, this, btCollisionObject.getCPtr(b0), b0, btCollisionObject.getCPtr(b1), b1); return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); } public void releaseManifold (btPersistentManifold manifold) { CollisionJNI.btDispatcher_releaseManifold(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold); } public void clearManifold (btPersistentManifold manifold) { CollisionJNI.btDispatcher_clearManifold(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold); } public boolean needsCollision (btCollisionObject body0, btCollisionObject body1) { return CollisionJNI.btDispatcher_needsCollision(swigCPtr, this, btCollisionObject.getCPtr(body0), body0, btCollisionObject.getCPtr(body1), body1); } public boolean needsResponse (btCollisionObject body0, btCollisionObject body1) { return CollisionJNI.btDispatcher_needsResponse(swigCPtr, this, btCollisionObject.getCPtr(body0), body0, btCollisionObject.getCPtr(body1), body1); } public void dispatchAllCollisionPairs (btOverlappingPairCache pairCache, btDispatcherInfo dispatchInfo, btDispatcher dispatcher) { CollisionJNI.btDispatcher_dispatchAllCollisionPairs(swigCPtr, this, btOverlappingPairCache.getCPtr(pairCache), pairCache, btDispatcherInfo.getCPtr(dispatchInfo), dispatchInfo, btDispatcher.getCPtr(dispatcher), dispatcher); } public int getNumManifolds () { return CollisionJNI.btDispatcher_getNumManifolds(swigCPtr, this); } public btPersistentManifold getManifoldByIndexInternal (int index) { long cPtr = CollisionJNI.btDispatcher_getManifoldByIndexInternal(swigCPtr, this, index); return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); } public SWIGTYPE_p_p_btPersistentManifold getInternalManifoldPointer () { long cPtr = CollisionJNI.btDispatcher_getInternalManifoldPointer(swigCPtr, this); return (cPtr == 0) ? null : new SWIGTYPE_p_p_btPersistentManifold(cPtr, false); } public btPoolAllocator getInternalManifoldPool () { long cPtr = CollisionJNI.btDispatcher_getInternalManifoldPool(swigCPtr, this); return (cPtr == 0) ? null : new btPoolAllocator(cPtr, false); } public btPoolAllocator getInternalManifoldPoolConst () { long cPtr = CollisionJNI.btDispatcher_getInternalManifoldPoolConst(swigCPtr, this); return (cPtr == 0) ? null : new btPoolAllocator(cPtr, false); } public long allocateCollisionAlgorithm (int size) { return CollisionJNI.btDispatcher_allocateCollisionAlgorithm(swigCPtr, this, size); } public void freeCollisionAlgorithm (long ptr) { CollisionJNI.btDispatcher_freeCollisionAlgorithm(swigCPtr, this, ptr); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/scenes/scene2d/utils/FocusListener.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.utils; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Event; import com.badlogic.gdx.scenes.scene2d.EventListener; import com.badlogic.gdx.utils.Null; /** Listener for {@link FocusEvent}. * @author Nathan Sweet */ abstract public class FocusListener implements EventListener { public boolean handle (Event event) { if (!(event instanceof FocusEvent)) return false; FocusEvent focusEvent = (FocusEvent)event; switch (focusEvent.getType()) { case keyboard: keyboardFocusChanged(focusEvent, event.getTarget(), focusEvent.isFocused()); break; case scroll: scrollFocusChanged(focusEvent, event.getTarget(), focusEvent.isFocused()); break; } return false; } /** @param actor The event target, which is the actor that emitted the focus event. */ public void keyboardFocusChanged (FocusEvent event, Actor actor, boolean focused) { } /** @param actor The event target, which is the actor that emitted the focus event. */ public void scrollFocusChanged (FocusEvent event, Actor actor, boolean focused) { } /** Fired when an actor gains or loses keyboard or scroll focus. Can be cancelled to prevent losing or gaining focus. * @author Nathan Sweet */ static public class FocusEvent extends Event { private boolean focused; private Type type; private Actor relatedActor; public void reset () { super.reset(); relatedActor = null; } public boolean isFocused () { return focused; } public void setFocused (boolean focused) { this.focused = focused; } public Type getType () { return type; } public void setType (Type focusType) { this.type = focusType; } /** The actor related to the event. When focus is lost, this is the new actor being focused, or null. When focus is gained, * this is the previous actor that was focused, or null. */ public @Null Actor getRelatedActor () { return relatedActor; } /** @param relatedActor May be null. */ public void setRelatedActor (@Null Actor relatedActor) { this.relatedActor = relatedActor; } /** @author Nathan Sweet */ static public enum Type { keyboard, scroll } } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.utils; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Event; import com.badlogic.gdx.scenes.scene2d.EventListener; import com.badlogic.gdx.utils.Null; /** Listener for {@link FocusEvent}. * @author Nathan Sweet */ abstract public class FocusListener implements EventListener { public boolean handle (Event event) { if (!(event instanceof FocusEvent)) return false; FocusEvent focusEvent = (FocusEvent)event; switch (focusEvent.getType()) { case keyboard: keyboardFocusChanged(focusEvent, event.getTarget(), focusEvent.isFocused()); break; case scroll: scrollFocusChanged(focusEvent, event.getTarget(), focusEvent.isFocused()); break; } return false; } /** @param actor The event target, which is the actor that emitted the focus event. */ public void keyboardFocusChanged (FocusEvent event, Actor actor, boolean focused) { } /** @param actor The event target, which is the actor that emitted the focus event. */ public void scrollFocusChanged (FocusEvent event, Actor actor, boolean focused) { } /** Fired when an actor gains or loses keyboard or scroll focus. Can be cancelled to prevent losing or gaining focus. * @author Nathan Sweet */ static public class FocusEvent extends Event { private boolean focused; private Type type; private Actor relatedActor; public void reset () { super.reset(); relatedActor = null; } public boolean isFocused () { return focused; } public void setFocused (boolean focused) { this.focused = focused; } public Type getType () { return type; } public void setType (Type focusType) { this.type = focusType; } /** The actor related to the event. When focus is lost, this is the new actor being focused, or null. When focus is gained, * this is the previous actor that was focused, or null. */ public @Null Actor getRelatedActor () { return relatedActor; } /** @param relatedActor May be null. */ public void setRelatedActor (@Null Actor relatedActor) { this.relatedActor = relatedActor; } /** @author Nathan Sweet */ static public enum Type { keyboard, scroll } } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/BasicBulletTest.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.bullet; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.badlogic.gdx.graphics.VertexAttributes.Usage; import com.badlogic.gdx.graphics.g3d.Environment; import com.badlogic.gdx.graphics.g3d.Material; import com.badlogic.gdx.graphics.g3d.Model; import com.badlogic.gdx.graphics.g3d.ModelBatch; import com.badlogic.gdx.graphics.g3d.ModelInstance; import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; import com.badlogic.gdx.graphics.g3d.attributes.FloatAttribute; import com.badlogic.gdx.graphics.g3d.environment.DirectionalLight; import com.badlogic.gdx.graphics.g3d.utils.ModelBuilder; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.physics.bullet.collision.btBoxShape; import com.badlogic.gdx.physics.bullet.collision.btBroadphaseInterface; import com.badlogic.gdx.physics.bullet.collision.btCollisionConfiguration; import com.badlogic.gdx.physics.bullet.collision.btCollisionDispatcher; import com.badlogic.gdx.physics.bullet.collision.btCollisionShape; import com.badlogic.gdx.physics.bullet.collision.btDbvtBroadphase; import com.badlogic.gdx.physics.bullet.collision.btDefaultCollisionConfiguration; import com.badlogic.gdx.physics.bullet.collision.btSphereShape; import com.badlogic.gdx.physics.bullet.dynamics.btConstraintSolver; import com.badlogic.gdx.physics.bullet.dynamics.btDiscreteDynamicsWorld; import com.badlogic.gdx.physics.bullet.dynamics.btDynamicsWorld; import com.badlogic.gdx.physics.bullet.dynamics.btRigidBody; import com.badlogic.gdx.physics.bullet.dynamics.btRigidBody.btRigidBodyConstructionInfo; import com.badlogic.gdx.physics.bullet.dynamics.btSequentialImpulseConstraintSolver; import com.badlogic.gdx.physics.bullet.linearmath.btDefaultMotionState; import com.badlogic.gdx.utils.Array; /** @author xoppa */ public class BasicBulletTest extends BulletTest { ModelBatch modelBatch; Environment lights; ModelBuilder modelBuilder = new ModelBuilder(); btCollisionConfiguration collisionConfiguration; btCollisionDispatcher dispatcher; btBroadphaseInterface broadphase; btConstraintSolver solver; btDynamicsWorld collisionWorld; Vector3 gravity = new Vector3(0, -9.81f, 0); Vector3 tempVector = new Vector3(); Array<Model> models = new Array<Model>(); Array<ModelInstance> instances = new Array<ModelInstance>(); Array<btDefaultMotionState> motionStates = new Array<btDefaultMotionState>(); Array<btRigidBodyConstructionInfo> bodyInfos = new Array<btRigidBodyConstructionInfo>(); Array<btCollisionShape> shapes = new Array<btCollisionShape>(); Array<btRigidBody> bodies = new Array<btRigidBody>(); @Override public void create () { super.create(); instructions = "Swipe for next test"; lights = new Environment(); lights.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.2f, 0.2f, 0.2f, 1.f)); lights.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -0.5f, -1f, -0.7f)); // Set up the camera final float width = Gdx.graphics.getWidth(); final float height = Gdx.graphics.getHeight(); if (width > height) camera = new PerspectiveCamera(67f, 3f * width / height, 3f); else camera = new PerspectiveCamera(67f, 3f, 3f * height / width); camera.position.set(10f, 10f, 10f); camera.lookAt(0, 0, 0); camera.update(); // Create the model batch modelBatch = new ModelBatch(); // Create some basic models final Model groundModel = modelBuilder.createRect(20f, 0f, -20f, -20f, 0f, -20f, -20f, 0f, 20f, 20f, 0f, 20f, 0, 1, 0, new Material(ColorAttribute.createDiffuse(Color.BLUE), ColorAttribute.createSpecular(Color.WHITE), FloatAttribute.createShininess(16f)), Usage.Position | Usage.Normal); models.add(groundModel); final Model sphereModel = modelBuilder.createSphere(1f, 1f, 1f, 10, 10, new Material(ColorAttribute.createDiffuse(Color.RED), ColorAttribute.createSpecular(Color.WHITE), FloatAttribute.createShininess(64f)), Usage.Position | Usage.Normal); models.add(sphereModel); // Load the bullet library BaseBulletTest.init(); // Normally use: Bullet.init(); // Create the bullet world collisionConfiguration = new btDefaultCollisionConfiguration(); dispatcher = new btCollisionDispatcher(collisionConfiguration); broadphase = new btDbvtBroadphase(); solver = new btSequentialImpulseConstraintSolver(); collisionWorld = new btDiscreteDynamicsWorld(dispatcher, broadphase, solver, collisionConfiguration); collisionWorld.setGravity(gravity); // Create the shapes and body construction infos btCollisionShape groundShape = new btBoxShape(tempVector.set(20, 0, 20)); shapes.add(groundShape); btRigidBodyConstructionInfo groundInfo = new btRigidBodyConstructionInfo(0f, null, groundShape, Vector3.Zero); bodyInfos.add(groundInfo); btCollisionShape sphereShape = new btSphereShape(0.5f); shapes.add(sphereShape); sphereShape.calculateLocalInertia(1f, tempVector); btRigidBodyConstructionInfo sphereInfo = new btRigidBodyConstructionInfo(1f, null, sphereShape, tempVector); bodyInfos.add(sphereInfo); // Create the ground ModelInstance ground = new ModelInstance(groundModel); instances.add(ground); btDefaultMotionState groundMotionState = new btDefaultMotionState(); groundMotionState.setWorldTransform(ground.transform); motionStates.add(groundMotionState); btRigidBody groundBody = new btRigidBody(groundInfo); groundBody.setMotionState(groundMotionState); bodies.add(groundBody); collisionWorld.addRigidBody(groundBody); // Create the spheres for (float x = -10f; x <= 10f; x += 2f) { for (float y = 5f; y <= 15f; y += 2f) { for (float z = 0f; z <= 0f; z += 2f) { ModelInstance sphere = new ModelInstance(sphereModel); instances.add(sphere); sphere.transform.trn(x + 0.1f * MathUtils.random(), y + 0.1f * MathUtils.random(), z + 0.1f * MathUtils.random()); btDefaultMotionState sphereMotionState = new btDefaultMotionState(); sphereMotionState.setWorldTransform(sphere.transform); motionStates.add(sphereMotionState); btRigidBody sphereBody = new btRigidBody(sphereInfo); sphereBody.setMotionState(sphereMotionState); bodies.add(sphereBody); collisionWorld.addRigidBody(sphereBody); } } } } @Override public void render () { Gdx.gl.glViewport(0, 0, Gdx.graphics.getBackBufferWidth(), Gdx.graphics.getBackBufferHeight()); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT); fpsCounter.put(Gdx.graphics.getFramesPerSecond()); performanceCounter.tick(); performanceCounter.start(); ((btDynamicsWorld)collisionWorld).stepSimulation(Gdx.graphics.getDeltaTime(), 5); performanceCounter.stop(); int c = motionStates.size; for (int i = 0; i < c; i++) { motionStates.get(i).getWorldTransform(instances.get(i).transform); } modelBatch.begin(camera); modelBatch.render(instances, lights); modelBatch.end(); performance.setLength(0); performance.append("FPS: ").append(fpsCounter.value).append(", Bullet: ") .append((int)(performanceCounter.load.value * 100f)).append("%"); } @Override public void dispose () { collisionWorld.dispose(); solver.dispose(); broadphase.dispose(); dispatcher.dispose(); collisionConfiguration.dispose(); for (btRigidBody body : bodies) body.dispose(); bodies.clear(); for (btDefaultMotionState motionState : motionStates) motionState.dispose(); motionStates.clear(); for (btCollisionShape shape : shapes) shape.dispose(); shapes.clear(); for (btRigidBodyConstructionInfo info : bodyInfos) info.dispose(); bodyInfos.clear(); modelBatch.dispose(); instances.clear(); for (Model model : models) model.dispose(); models.clear(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.bullet; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.badlogic.gdx.graphics.VertexAttributes.Usage; import com.badlogic.gdx.graphics.g3d.Environment; import com.badlogic.gdx.graphics.g3d.Material; import com.badlogic.gdx.graphics.g3d.Model; import com.badlogic.gdx.graphics.g3d.ModelBatch; import com.badlogic.gdx.graphics.g3d.ModelInstance; import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; import com.badlogic.gdx.graphics.g3d.attributes.FloatAttribute; import com.badlogic.gdx.graphics.g3d.environment.DirectionalLight; import com.badlogic.gdx.graphics.g3d.utils.ModelBuilder; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.physics.bullet.collision.btBoxShape; import com.badlogic.gdx.physics.bullet.collision.btBroadphaseInterface; import com.badlogic.gdx.physics.bullet.collision.btCollisionConfiguration; import com.badlogic.gdx.physics.bullet.collision.btCollisionDispatcher; import com.badlogic.gdx.physics.bullet.collision.btCollisionShape; import com.badlogic.gdx.physics.bullet.collision.btDbvtBroadphase; import com.badlogic.gdx.physics.bullet.collision.btDefaultCollisionConfiguration; import com.badlogic.gdx.physics.bullet.collision.btSphereShape; import com.badlogic.gdx.physics.bullet.dynamics.btConstraintSolver; import com.badlogic.gdx.physics.bullet.dynamics.btDiscreteDynamicsWorld; import com.badlogic.gdx.physics.bullet.dynamics.btDynamicsWorld; import com.badlogic.gdx.physics.bullet.dynamics.btRigidBody; import com.badlogic.gdx.physics.bullet.dynamics.btRigidBody.btRigidBodyConstructionInfo; import com.badlogic.gdx.physics.bullet.dynamics.btSequentialImpulseConstraintSolver; import com.badlogic.gdx.physics.bullet.linearmath.btDefaultMotionState; import com.badlogic.gdx.utils.Array; /** @author xoppa */ public class BasicBulletTest extends BulletTest { ModelBatch modelBatch; Environment lights; ModelBuilder modelBuilder = new ModelBuilder(); btCollisionConfiguration collisionConfiguration; btCollisionDispatcher dispatcher; btBroadphaseInterface broadphase; btConstraintSolver solver; btDynamicsWorld collisionWorld; Vector3 gravity = new Vector3(0, -9.81f, 0); Vector3 tempVector = new Vector3(); Array<Model> models = new Array<Model>(); Array<ModelInstance> instances = new Array<ModelInstance>(); Array<btDefaultMotionState> motionStates = new Array<btDefaultMotionState>(); Array<btRigidBodyConstructionInfo> bodyInfos = new Array<btRigidBodyConstructionInfo>(); Array<btCollisionShape> shapes = new Array<btCollisionShape>(); Array<btRigidBody> bodies = new Array<btRigidBody>(); @Override public void create () { super.create(); instructions = "Swipe for next test"; lights = new Environment(); lights.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.2f, 0.2f, 0.2f, 1.f)); lights.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -0.5f, -1f, -0.7f)); // Set up the camera final float width = Gdx.graphics.getWidth(); final float height = Gdx.graphics.getHeight(); if (width > height) camera = new PerspectiveCamera(67f, 3f * width / height, 3f); else camera = new PerspectiveCamera(67f, 3f, 3f * height / width); camera.position.set(10f, 10f, 10f); camera.lookAt(0, 0, 0); camera.update(); // Create the model batch modelBatch = new ModelBatch(); // Create some basic models final Model groundModel = modelBuilder.createRect(20f, 0f, -20f, -20f, 0f, -20f, -20f, 0f, 20f, 20f, 0f, 20f, 0, 1, 0, new Material(ColorAttribute.createDiffuse(Color.BLUE), ColorAttribute.createSpecular(Color.WHITE), FloatAttribute.createShininess(16f)), Usage.Position | Usage.Normal); models.add(groundModel); final Model sphereModel = modelBuilder.createSphere(1f, 1f, 1f, 10, 10, new Material(ColorAttribute.createDiffuse(Color.RED), ColorAttribute.createSpecular(Color.WHITE), FloatAttribute.createShininess(64f)), Usage.Position | Usage.Normal); models.add(sphereModel); // Load the bullet library BaseBulletTest.init(); // Normally use: Bullet.init(); // Create the bullet world collisionConfiguration = new btDefaultCollisionConfiguration(); dispatcher = new btCollisionDispatcher(collisionConfiguration); broadphase = new btDbvtBroadphase(); solver = new btSequentialImpulseConstraintSolver(); collisionWorld = new btDiscreteDynamicsWorld(dispatcher, broadphase, solver, collisionConfiguration); collisionWorld.setGravity(gravity); // Create the shapes and body construction infos btCollisionShape groundShape = new btBoxShape(tempVector.set(20, 0, 20)); shapes.add(groundShape); btRigidBodyConstructionInfo groundInfo = new btRigidBodyConstructionInfo(0f, null, groundShape, Vector3.Zero); bodyInfos.add(groundInfo); btCollisionShape sphereShape = new btSphereShape(0.5f); shapes.add(sphereShape); sphereShape.calculateLocalInertia(1f, tempVector); btRigidBodyConstructionInfo sphereInfo = new btRigidBodyConstructionInfo(1f, null, sphereShape, tempVector); bodyInfos.add(sphereInfo); // Create the ground ModelInstance ground = new ModelInstance(groundModel); instances.add(ground); btDefaultMotionState groundMotionState = new btDefaultMotionState(); groundMotionState.setWorldTransform(ground.transform); motionStates.add(groundMotionState); btRigidBody groundBody = new btRigidBody(groundInfo); groundBody.setMotionState(groundMotionState); bodies.add(groundBody); collisionWorld.addRigidBody(groundBody); // Create the spheres for (float x = -10f; x <= 10f; x += 2f) { for (float y = 5f; y <= 15f; y += 2f) { for (float z = 0f; z <= 0f; z += 2f) { ModelInstance sphere = new ModelInstance(sphereModel); instances.add(sphere); sphere.transform.trn(x + 0.1f * MathUtils.random(), y + 0.1f * MathUtils.random(), z + 0.1f * MathUtils.random()); btDefaultMotionState sphereMotionState = new btDefaultMotionState(); sphereMotionState.setWorldTransform(sphere.transform); motionStates.add(sphereMotionState); btRigidBody sphereBody = new btRigidBody(sphereInfo); sphereBody.setMotionState(sphereMotionState); bodies.add(sphereBody); collisionWorld.addRigidBody(sphereBody); } } } } @Override public void render () { Gdx.gl.glViewport(0, 0, Gdx.graphics.getBackBufferWidth(), Gdx.graphics.getBackBufferHeight()); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT); fpsCounter.put(Gdx.graphics.getFramesPerSecond()); performanceCounter.tick(); performanceCounter.start(); ((btDynamicsWorld)collisionWorld).stepSimulation(Gdx.graphics.getDeltaTime(), 5); performanceCounter.stop(); int c = motionStates.size; for (int i = 0; i < c; i++) { motionStates.get(i).getWorldTransform(instances.get(i).transform); } modelBatch.begin(camera); modelBatch.render(instances, lights); modelBatch.end(); performance.setLength(0); performance.append("FPS: ").append(fpsCounter.value).append(", Bullet: ") .append((int)(performanceCounter.load.value * 100f)).append("%"); } @Override public void dispose () { collisionWorld.dispose(); solver.dispose(); broadphase.dispose(); dispatcher.dispose(); collisionConfiguration.dispose(); for (btRigidBody body : bodies) body.dispose(); bodies.clear(); for (btDefaultMotionState motionState : motionStates) motionState.dispose(); motionStates.clear(); for (btCollisionShape shape : shapes) shape.dispose(); shapes.clear(); for (btRigidBodyConstructionInfo info : bodyInfos) info.dispose(); bodyInfos.clear(); modelBatch.dispose(); instances.clear(); for (Model model : models) model.dispose(); models.clear(); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/src/custom/gdx/common/jniHelpers.h
#ifndef jniHelpers_H #define jniHelpers_H #include <jni.h> #ifndef GDXPOOL_POOLCLAZZ #define GDXPOOL_POOLCLAZZ "Lcom/badlogic/gdx/utils/Pool;" #endif #ifndef GDXPOOL_OBTAINFUNC #define GDXPOOL_OBTAINFUNC "obtain" #endif #ifndef GDXPOOL_OBTAINSIG #define GDXPOOL_OBTAINSIG "()Ljava/lang/Object;" #endif #ifndef GDXPOOL_FREEFUNC #define GDXPOOL_FREEFUNC "free" #endif #ifndef GDXPOOL_FREESIG #define GDXPOOL_FREESIG "(Ljava/lang/Object;)V" #endif struct GdxPool { const char * const &poolField; const char * const &typeName; const char * const &tempField; const char * const &poolClazz; const char * const &obtainName; const char * const &obtainSig; const char * const &freeName; const char * const &freeSig; JNIEnv *env; jclass cls; jobject pool; jmethodID obtainMethod; jmethodID freeMethod; jobject tmp; /** eg: if you have in java: * class CommonJNI { * public static com.xxx.a.Pool<com.xxx.b.Clazz> poolClazz; * public static com.xxx.b.Clazz tempClazz; * } * then construct using: * GdxPool(jenv, jclass("CommonJNI"), "poolClazz", "Lcom/xxx/b/Clazz;", "tempClazz"); */ GdxPool(const char * const &poolField, const char * const &typeName = 0, const char * const &tempField = 0, const char * const &poolClazz = GDXPOOL_POOLCLAZZ, const char * const &obtainName = GDXPOOL_OBTAINFUNC, const char * const &obtainSig = GDXPOOL_OBTAINSIG, const char * const &freeName = GDXPOOL_FREEFUNC, const char * const &freeSig = GDXPOOL_FREESIG); virtual ~GdxPool(); void setEnv(JNIEnv * const &env); /** Obtain a jobject from the pool */ jobject obtain(JNIEnv * const &env); /** Free a jobject back to the pool */ void free(jobject &obj); /** Get the temp instance (if available) */ jobject temp(JNIEnv * const &e); }; struct GdxPooledObject { GdxPool * const &pool; jobject obj; const bool autoFree; GdxPooledObject(JNIEnv * const &e, GdxPool * const &pool, const bool &autoFree); GdxPooledObject(JNIEnv * const &e, GdxPool * &pool, const bool &autoFree); virtual ~GdxPooledObject(); void free(); }; #endif //jniHelpers_H
#ifndef jniHelpers_H #define jniHelpers_H #include <jni.h> #ifndef GDXPOOL_POOLCLAZZ #define GDXPOOL_POOLCLAZZ "Lcom/badlogic/gdx/utils/Pool;" #endif #ifndef GDXPOOL_OBTAINFUNC #define GDXPOOL_OBTAINFUNC "obtain" #endif #ifndef GDXPOOL_OBTAINSIG #define GDXPOOL_OBTAINSIG "()Ljava/lang/Object;" #endif #ifndef GDXPOOL_FREEFUNC #define GDXPOOL_FREEFUNC "free" #endif #ifndef GDXPOOL_FREESIG #define GDXPOOL_FREESIG "(Ljava/lang/Object;)V" #endif struct GdxPool { const char * const &poolField; const char * const &typeName; const char * const &tempField; const char * const &poolClazz; const char * const &obtainName; const char * const &obtainSig; const char * const &freeName; const char * const &freeSig; JNIEnv *env; jclass cls; jobject pool; jmethodID obtainMethod; jmethodID freeMethod; jobject tmp; /** eg: if you have in java: * class CommonJNI { * public static com.xxx.a.Pool<com.xxx.b.Clazz> poolClazz; * public static com.xxx.b.Clazz tempClazz; * } * then construct using: * GdxPool(jenv, jclass("CommonJNI"), "poolClazz", "Lcom/xxx/b/Clazz;", "tempClazz"); */ GdxPool(const char * const &poolField, const char * const &typeName = 0, const char * const &tempField = 0, const char * const &poolClazz = GDXPOOL_POOLCLAZZ, const char * const &obtainName = GDXPOOL_OBTAINFUNC, const char * const &obtainSig = GDXPOOL_OBTAINSIG, const char * const &freeName = GDXPOOL_FREEFUNC, const char * const &freeSig = GDXPOOL_FREESIG); virtual ~GdxPool(); void setEnv(JNIEnv * const &env); /** Obtain a jobject from the pool */ jobject obtain(JNIEnv * const &env); /** Free a jobject back to the pool */ void free(jobject &obj); /** Get the temp instance (if available) */ jobject temp(JNIEnv * const &e); }; struct GdxPooledObject { GdxPool * const &pool; jobject obj; const bool autoFree; GdxPooledObject(JNIEnv * const &e, GdxPool * const &pool, const bool &autoFree); GdxPooledObject(JNIEnv * const &e, GdxPool * &pool, const bool &autoFree); virtual ~GdxPooledObject(); void free(); }; #endif //jniHelpers_H
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/maps/MapObjects.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.maps; import java.util.Iterator; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.reflect.ClassReflection; /** @brief Collection of MapObject instances */ public class MapObjects implements Iterable<MapObject> { private Array<MapObject> objects; /** Creates an empty set of MapObject instances */ public MapObjects () { objects = new Array<MapObject>(); } /** @param index * @return the MapObject at the specified index */ public MapObject get (int index) { return objects.get(index); } /** @param name * @return the first object having the specified name, if one exists, otherwise null */ public MapObject get (String name) { for (int i = 0, n = objects.size; i < n; i++) { MapObject object = objects.get(i); if (name.equals(object.getName())) { return object; } } return null; } /** Get the index of the object having the specified name, or -1 if no such object exists. */ public int getIndex (String name) { return getIndex(get(name)); } /** Get the index of the object in the collection, or -1 if no such object exists. */ public int getIndex (MapObject object) { return objects.indexOf(object, true); } /** @return number of objects in the collection */ public int getCount () { return objects.size; } /** @param object instance to be added to the collection */ public void add (MapObject object) { this.objects.add(object); } /** @param index removes MapObject instance at index */ public void remove (int index) { objects.removeIndex(index); } /** @param object instance to be removed */ public void remove (MapObject object) { objects.removeValue(object, true); } /** @param type class of the objects we want to retrieve * @return array filled with all the objects in the collection matching type */ public <T extends MapObject> Array<T> getByType (Class<T> type) { return getByType(type, new Array<T>()); } /** @param type class of the objects we want to retrieve * @param fill collection to put the returned objects in * @return array filled with all the objects in the collection matching type */ public <T extends MapObject> Array<T> getByType (Class<T> type, Array<T> fill) { fill.clear(); for (int i = 0, n = objects.size; i < n; i++) { MapObject object = objects.get(i); if (ClassReflection.isInstance(type, object)) { fill.add((T)object); } } return fill; } /** @return iterator for the objects within the collection */ @Override public Iterator<MapObject> iterator () { return objects.iterator(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.maps; import java.util.Iterator; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.reflect.ClassReflection; /** @brief Collection of MapObject instances */ public class MapObjects implements Iterable<MapObject> { private Array<MapObject> objects; /** Creates an empty set of MapObject instances */ public MapObjects () { objects = new Array<MapObject>(); } /** @param index * @return the MapObject at the specified index */ public MapObject get (int index) { return objects.get(index); } /** @param name * @return the first object having the specified name, if one exists, otherwise null */ public MapObject get (String name) { for (int i = 0, n = objects.size; i < n; i++) { MapObject object = objects.get(i); if (name.equals(object.getName())) { return object; } } return null; } /** Get the index of the object having the specified name, or -1 if no such object exists. */ public int getIndex (String name) { return getIndex(get(name)); } /** Get the index of the object in the collection, or -1 if no such object exists. */ public int getIndex (MapObject object) { return objects.indexOf(object, true); } /** @return number of objects in the collection */ public int getCount () { return objects.size; } /** @param object instance to be added to the collection */ public void add (MapObject object) { this.objects.add(object); } /** @param index removes MapObject instance at index */ public void remove (int index) { objects.removeIndex(index); } /** @param object instance to be removed */ public void remove (MapObject object) { objects.removeValue(object, true); } /** @param type class of the objects we want to retrieve * @return array filled with all the objects in the collection matching type */ public <T extends MapObject> Array<T> getByType (Class<T> type) { return getByType(type, new Array<T>()); } /** @param type class of the objects we want to retrieve * @param fill collection to put the returned objects in * @return array filled with all the objects in the collection matching type */ public <T extends MapObject> Array<T> getByType (Class<T> type, Array<T> fill) { fill.clear(); for (int i = 0, n = objects.size; i < n; i++) { MapObject object = objects.get(i); if (ClassReflection.isInstance(type, object)) { fill.add((T)object); } } return fill; } /** @return iterator for the objects within the collection */ @Override public Iterator<MapObject> iterator () { return objects.iterator(); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/btClipPolygon.h
#ifndef BT_CLIP_POLYGON_H_INCLUDED #define BT_CLIP_POLYGON_H_INCLUDED /*! \file btClipPolygon.h \author Francisco Leon Najera */ /* This source file is part of GIMPACT Library. For the latest info, see http://gimpact.sourceforge.net/ Copyright (c) 2007 Francisco Leon Najera. C.C. 80087371. email: [email protected] This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include "LinearMath/btTransform.h" #include "LinearMath/btGeometryUtil.h" SIMD_FORCE_INLINE btScalar bt_distance_point_plane(const btVector4 & plane,const btVector3 &point) { return point.dot(plane) - plane[3]; } /*! Vector blending Takes two vectors a, b, blends them together*/ SIMD_FORCE_INLINE void bt_vec_blend(btVector3 &vr, const btVector3 &va,const btVector3 &vb, btScalar blend_factor) { vr = (1-blend_factor)*va + blend_factor*vb; } //! This function calcs the distance from a 3D plane SIMD_FORCE_INLINE void bt_plane_clip_polygon_collect( const btVector3 & point0, const btVector3 & point1, btScalar dist0, btScalar dist1, btVector3 * clipped, int & clipped_count) { bool _prevclassif = (dist0>SIMD_EPSILON); bool _classif = (dist1>SIMD_EPSILON); if(_classif!=_prevclassif) { btScalar blendfactor = -dist0/(dist1-dist0); bt_vec_blend(clipped[clipped_count],point0,point1,blendfactor); clipped_count++; } if(!_classif) { clipped[clipped_count] = point1; clipped_count++; } } //! Clips a polygon by a plane /*! *\return The count of the clipped counts */ SIMD_FORCE_INLINE int bt_plane_clip_polygon( const btVector4 & plane, const btVector3 * polygon_points, int polygon_point_count, btVector3 * clipped) { int clipped_count = 0; //clip first point btScalar firstdist = bt_distance_point_plane(plane,polygon_points[0]);; if(!(firstdist>SIMD_EPSILON)) { clipped[clipped_count] = polygon_points[0]; clipped_count++; } btScalar olddist = firstdist; for(int i=1;i<polygon_point_count;i++) { btScalar dist = bt_distance_point_plane(plane,polygon_points[i]); bt_plane_clip_polygon_collect( polygon_points[i-1],polygon_points[i], olddist, dist, clipped, clipped_count); olddist = dist; } //RETURN TO FIRST point bt_plane_clip_polygon_collect( polygon_points[polygon_point_count-1],polygon_points[0], olddist, firstdist, clipped, clipped_count); return clipped_count; } //! Clips a polygon by a plane /*! *\param clipped must be an array of 16 points. *\return The count of the clipped counts */ SIMD_FORCE_INLINE int bt_plane_clip_triangle( const btVector4 & plane, const btVector3 & point0, const btVector3 & point1, const btVector3& point2, btVector3 * clipped // an allocated array of 16 points at least ) { int clipped_count = 0; //clip first point0 btScalar firstdist = bt_distance_point_plane(plane,point0);; if(!(firstdist>SIMD_EPSILON)) { clipped[clipped_count] = point0; clipped_count++; } // point 1 btScalar olddist = firstdist; btScalar dist = bt_distance_point_plane(plane,point1); bt_plane_clip_polygon_collect( point0,point1, olddist, dist, clipped, clipped_count); olddist = dist; // point 2 dist = bt_distance_point_plane(plane,point2); bt_plane_clip_polygon_collect( point1,point2, olddist, dist, clipped, clipped_count); olddist = dist; //RETURN TO FIRST point0 bt_plane_clip_polygon_collect( point2,point0, olddist, firstdist, clipped, clipped_count); return clipped_count; } #endif // GIM_TRI_COLLISION_H_INCLUDED
#ifndef BT_CLIP_POLYGON_H_INCLUDED #define BT_CLIP_POLYGON_H_INCLUDED /*! \file btClipPolygon.h \author Francisco Leon Najera */ /* This source file is part of GIMPACT Library. For the latest info, see http://gimpact.sourceforge.net/ Copyright (c) 2007 Francisco Leon Najera. C.C. 80087371. email: [email protected] This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include "LinearMath/btTransform.h" #include "LinearMath/btGeometryUtil.h" SIMD_FORCE_INLINE btScalar bt_distance_point_plane(const btVector4 & plane,const btVector3 &point) { return point.dot(plane) - plane[3]; } /*! Vector blending Takes two vectors a, b, blends them together*/ SIMD_FORCE_INLINE void bt_vec_blend(btVector3 &vr, const btVector3 &va,const btVector3 &vb, btScalar blend_factor) { vr = (1-blend_factor)*va + blend_factor*vb; } //! This function calcs the distance from a 3D plane SIMD_FORCE_INLINE void bt_plane_clip_polygon_collect( const btVector3 & point0, const btVector3 & point1, btScalar dist0, btScalar dist1, btVector3 * clipped, int & clipped_count) { bool _prevclassif = (dist0>SIMD_EPSILON); bool _classif = (dist1>SIMD_EPSILON); if(_classif!=_prevclassif) { btScalar blendfactor = -dist0/(dist1-dist0); bt_vec_blend(clipped[clipped_count],point0,point1,blendfactor); clipped_count++; } if(!_classif) { clipped[clipped_count] = point1; clipped_count++; } } //! Clips a polygon by a plane /*! *\return The count of the clipped counts */ SIMD_FORCE_INLINE int bt_plane_clip_polygon( const btVector4 & plane, const btVector3 * polygon_points, int polygon_point_count, btVector3 * clipped) { int clipped_count = 0; //clip first point btScalar firstdist = bt_distance_point_plane(plane,polygon_points[0]);; if(!(firstdist>SIMD_EPSILON)) { clipped[clipped_count] = polygon_points[0]; clipped_count++; } btScalar olddist = firstdist; for(int i=1;i<polygon_point_count;i++) { btScalar dist = bt_distance_point_plane(plane,polygon_points[i]); bt_plane_clip_polygon_collect( polygon_points[i-1],polygon_points[i], olddist, dist, clipped, clipped_count); olddist = dist; } //RETURN TO FIRST point bt_plane_clip_polygon_collect( polygon_points[polygon_point_count-1],polygon_points[0], olddist, firstdist, clipped, clipped_count); return clipped_count; } //! Clips a polygon by a plane /*! *\param clipped must be an array of 16 points. *\return The count of the clipped counts */ SIMD_FORCE_INLINE int bt_plane_clip_triangle( const btVector4 & plane, const btVector3 & point0, const btVector3 & point1, const btVector3& point2, btVector3 * clipped // an allocated array of 16 points at least ) { int clipped_count = 0; //clip first point0 btScalar firstdist = bt_distance_point_plane(plane,point0);; if(!(firstdist>SIMD_EPSILON)) { clipped[clipped_count] = point0; clipped_count++; } // point 1 btScalar olddist = firstdist; btScalar dist = bt_distance_point_plane(plane,point1); bt_plane_clip_polygon_collect( point0,point1, olddist, dist, clipped, clipped_count); olddist = dist; // point 2 dist = bt_distance_point_plane(plane,point2); bt_plane_clip_polygon_collect( point1,point2, olddist, dist, clipped, clipped_count); olddist = dist; //RETURN TO FIRST point0 bt_plane_clip_polygon_collect( point2,point0, olddist, firstdist, clipped, clipped_count); return clipped_count; } #endif // GIM_TRI_COLLISION_H_INCLUDED
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/scenes/scene2d/actions/RemoveActorAction.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.actions; import com.badlogic.gdx.scenes.scene2d.Action; /** Removes an actor from the stage. * @author Nathan Sweet */ public class RemoveActorAction extends Action { private boolean removed; public boolean act (float delta) { if (!removed) { removed = true; target.remove(); } return true; } public void restart () { removed = false; } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.actions; import com.badlogic.gdx.scenes.scene2d.Action; /** Removes an actor from the stage. * @author Nathan Sweet */ public class RemoveActorAction extends Action { private boolean removed; public boolean act (float delta) { if (!removed) { removed = true; target.remove(); } return true; } public void restart () { removed = false; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/ChainShape.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.physics.box2d; import com.badlogic.gdx.math.Vector2; public class ChainShape extends Shape { // @off /*JNI #include <Box2D/Box2D.h> */ boolean isLooped = false; public ChainShape () { addr = newChainShape(); } private native long newChainShape (); /* return (jlong)(new b2ChainShape()); */ ChainShape (long addr) { this.addr = addr; } @Override public Type getType () { return Type.Chain; } /** Create a loop. This automatically adjusts connectivity. * @param vertices an array of floats of alternating x, y coordinates. */ public void createLoop (float[] vertices) { jniCreateLoop(addr, vertices, 0, vertices.length / 2); isLooped = true; } /** Create a loop. This automatically adjusts connectivity. * @param vertices an array of floats of alternating x, y coordinates. * @param offset into the vertices array * @param length after offset (in floats, not float-pairs, so even number) */ public void createLoop (float[] vertices, int offset, int length) { jniCreateLoop(addr, vertices, offset, length / 2); isLooped = true; } /** Create a loop. This automatically adjusts connectivity. * @param vertices an array of vertices, these are copied */ public void createLoop (Vector2[] vertices) { float[] verts = new float[vertices.length * 2]; for (int i = 0, j = 0; i < vertices.length * 2; i += 2, j++) { verts[i] = vertices[j].x; verts[i + 1] = vertices[j].y; } jniCreateLoop(addr, verts, 0, verts.length / 2); isLooped = true; } private native void jniCreateLoop (long addr, float[] verts, int offset, int numVertices); /* b2ChainShape* chain = (b2ChainShape*)addr; b2Vec2* verticesOut = new b2Vec2[numVertices]; for( int i = 0; i < numVertices; i++ ) verticesOut[i] = b2Vec2(verts[offset+(i<<1)], verts[offset+(i<<1)+1]); chain->CreateLoop( verticesOut, numVertices ); delete[] verticesOut; */ /** Create a chain with isolated end vertices. * @param vertices an array of floats of alternating x, y coordinates. */ public void createChain (float[] vertices) { jniCreateChain(addr, vertices, 0, vertices.length / 2); isLooped = false; } /** Create a chain with isolated end vertices. * @param vertices an array of floats of alternating x, y coordinates. * @param offset into the vertices array * @param length after offset (in floats, not float-pairs, so even number) */ public void createChain (float[] vertices, int offset, int length) { jniCreateChain(addr, vertices, offset, length / 2); isLooped = false; } /** Create a chain with isolated end vertices. * @param vertices an array of vertices, these are copied */ public void createChain (Vector2[] vertices) { float[] verts = new float[vertices.length * 2]; for (int i = 0, j = 0; i < vertices.length * 2; i += 2, j++) { verts[i] = vertices[j].x; verts[i + 1] = vertices[j].y; } jniCreateChain(addr, verts, 0, vertices.length); isLooped = false; } private native void jniCreateChain (long addr, float[] verts, int offset, int numVertices); /* b2ChainShape* chain = (b2ChainShape*)addr; b2Vec2* verticesOut = new b2Vec2[numVertices]; for( int i = 0; i < numVertices; i++ ) verticesOut[i] = b2Vec2(verts[offset+(i<<1)], verts[offset+(i<<1)+1]); chain->CreateChain( verticesOut, numVertices ); delete[] verticesOut; */ /** Establish connectivity to a vertex that precedes the first vertex. Don't call this for loops. */ public void setPrevVertex (Vector2 prevVertex) { setPrevVertex(prevVertex.x, prevVertex.y); } /** Establish connectivity to a vertex that precedes the first vertex. Don't call this for loops. */ public void setPrevVertex (float prevVertexX, float prevVertexY) { jniSetPrevVertex(addr, prevVertexX, prevVertexY); } private native void jniSetPrevVertex (long addr, float x, float y); /* b2ChainShape* chain = (b2ChainShape*)addr; chain->SetPrevVertex(b2Vec2(x, y)); */ /** Establish connectivity to a vertex that follows the last vertex. Don't call this for loops. */ public void setNextVertex (Vector2 nextVertex) { setNextVertex(nextVertex.x, nextVertex.y); } /** Establish connectivity to a vertex that follows the last vertex. Don't call this for loops. */ public void setNextVertex (float nextVertexX, float nextVertexY) { jniSetNextVertex(addr, nextVertexX, nextVertexY); } private native void jniSetNextVertex (long addr, float x, float y); /* b2ChainShape* chain = (b2ChainShape*)addr; chain->SetNextVertex(b2Vec2(x, y)); */ /** @return the number of vertices */ public int getVertexCount () { return jniGetVertexCount(addr); } private native int jniGetVertexCount (long addr); /* b2ChainShape* chain = (b2ChainShape*)addr; return chain->GetVertexCount(); */ private static float[] verts = new float[2]; /** Returns the vertex at the given position. * @param index the index of the vertex 0 <= index < getVertexCount( ) * @param vertex vertex */ public void getVertex (int index, Vector2 vertex) { jniGetVertex(addr, index, verts); vertex.x = verts[0]; vertex.y = verts[1]; } private native void jniGetVertex (long addr, int index, float[] verts); /* b2ChainShape* chain = (b2ChainShape*)addr; const b2Vec2 v = chain->GetVertex( index ); verts[0] = v.x; verts[1] = v.y; */ public boolean isLooped() { return isLooped; } /** Clear all vertices in the chain and free the memory. */ public void clear() { jniClear(addr); } private native void jniClear(long addr); /* b2ChainShape* chain = (b2ChainShape*)addr; chain->Clear(); */ // /// Implement b2Shape. Vertices are cloned using b2Alloc. // b2Shape* Clone(b2BlockAllocator* allocator) const; // // /// @see b2Shape::GetChildCount // int32 GetChildCount() const; // // /// Get a child edge. // void GetChildEdge(b2EdgeShape* edge, int32 index) const; // // /// This always return false. // /// @see b2Shape::TestPoint // bool TestPoint(const b2Transform& transform, const b2Vec2& p) const; // // /// Implement b2Shape. // bool RayCast(b2RayCastOutput* output, const b2RayCastInput& input, // const b2Transform& transform, int32 childIndex) const; // // /// @see b2Shape::ComputeAABB // void ComputeAABB(b2AABB* aabb, const b2Transform& transform, int32 childIndex) const; // // /// Chains have zero mass. // /// @see b2Shape::ComputeMass // void ComputeMass(b2MassData* massData, float32 density) const; // }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.physics.box2d; import com.badlogic.gdx.math.Vector2; public class ChainShape extends Shape { // @off /*JNI #include <Box2D/Box2D.h> */ boolean isLooped = false; public ChainShape () { addr = newChainShape(); } private native long newChainShape (); /* return (jlong)(new b2ChainShape()); */ ChainShape (long addr) { this.addr = addr; } @Override public Type getType () { return Type.Chain; } /** Create a loop. This automatically adjusts connectivity. * @param vertices an array of floats of alternating x, y coordinates. */ public void createLoop (float[] vertices) { jniCreateLoop(addr, vertices, 0, vertices.length / 2); isLooped = true; } /** Create a loop. This automatically adjusts connectivity. * @param vertices an array of floats of alternating x, y coordinates. * @param offset into the vertices array * @param length after offset (in floats, not float-pairs, so even number) */ public void createLoop (float[] vertices, int offset, int length) { jniCreateLoop(addr, vertices, offset, length / 2); isLooped = true; } /** Create a loop. This automatically adjusts connectivity. * @param vertices an array of vertices, these are copied */ public void createLoop (Vector2[] vertices) { float[] verts = new float[vertices.length * 2]; for (int i = 0, j = 0; i < vertices.length * 2; i += 2, j++) { verts[i] = vertices[j].x; verts[i + 1] = vertices[j].y; } jniCreateLoop(addr, verts, 0, verts.length / 2); isLooped = true; } private native void jniCreateLoop (long addr, float[] verts, int offset, int numVertices); /* b2ChainShape* chain = (b2ChainShape*)addr; b2Vec2* verticesOut = new b2Vec2[numVertices]; for( int i = 0; i < numVertices; i++ ) verticesOut[i] = b2Vec2(verts[offset+(i<<1)], verts[offset+(i<<1)+1]); chain->CreateLoop( verticesOut, numVertices ); delete[] verticesOut; */ /** Create a chain with isolated end vertices. * @param vertices an array of floats of alternating x, y coordinates. */ public void createChain (float[] vertices) { jniCreateChain(addr, vertices, 0, vertices.length / 2); isLooped = false; } /** Create a chain with isolated end vertices. * @param vertices an array of floats of alternating x, y coordinates. * @param offset into the vertices array * @param length after offset (in floats, not float-pairs, so even number) */ public void createChain (float[] vertices, int offset, int length) { jniCreateChain(addr, vertices, offset, length / 2); isLooped = false; } /** Create a chain with isolated end vertices. * @param vertices an array of vertices, these are copied */ public void createChain (Vector2[] vertices) { float[] verts = new float[vertices.length * 2]; for (int i = 0, j = 0; i < vertices.length * 2; i += 2, j++) { verts[i] = vertices[j].x; verts[i + 1] = vertices[j].y; } jniCreateChain(addr, verts, 0, vertices.length); isLooped = false; } private native void jniCreateChain (long addr, float[] verts, int offset, int numVertices); /* b2ChainShape* chain = (b2ChainShape*)addr; b2Vec2* verticesOut = new b2Vec2[numVertices]; for( int i = 0; i < numVertices; i++ ) verticesOut[i] = b2Vec2(verts[offset+(i<<1)], verts[offset+(i<<1)+1]); chain->CreateChain( verticesOut, numVertices ); delete[] verticesOut; */ /** Establish connectivity to a vertex that precedes the first vertex. Don't call this for loops. */ public void setPrevVertex (Vector2 prevVertex) { setPrevVertex(prevVertex.x, prevVertex.y); } /** Establish connectivity to a vertex that precedes the first vertex. Don't call this for loops. */ public void setPrevVertex (float prevVertexX, float prevVertexY) { jniSetPrevVertex(addr, prevVertexX, prevVertexY); } private native void jniSetPrevVertex (long addr, float x, float y); /* b2ChainShape* chain = (b2ChainShape*)addr; chain->SetPrevVertex(b2Vec2(x, y)); */ /** Establish connectivity to a vertex that follows the last vertex. Don't call this for loops. */ public void setNextVertex (Vector2 nextVertex) { setNextVertex(nextVertex.x, nextVertex.y); } /** Establish connectivity to a vertex that follows the last vertex. Don't call this for loops. */ public void setNextVertex (float nextVertexX, float nextVertexY) { jniSetNextVertex(addr, nextVertexX, nextVertexY); } private native void jniSetNextVertex (long addr, float x, float y); /* b2ChainShape* chain = (b2ChainShape*)addr; chain->SetNextVertex(b2Vec2(x, y)); */ /** @return the number of vertices */ public int getVertexCount () { return jniGetVertexCount(addr); } private native int jniGetVertexCount (long addr); /* b2ChainShape* chain = (b2ChainShape*)addr; return chain->GetVertexCount(); */ private static float[] verts = new float[2]; /** Returns the vertex at the given position. * @param index the index of the vertex 0 <= index < getVertexCount( ) * @param vertex vertex */ public void getVertex (int index, Vector2 vertex) { jniGetVertex(addr, index, verts); vertex.x = verts[0]; vertex.y = verts[1]; } private native void jniGetVertex (long addr, int index, float[] verts); /* b2ChainShape* chain = (b2ChainShape*)addr; const b2Vec2 v = chain->GetVertex( index ); verts[0] = v.x; verts[1] = v.y; */ public boolean isLooped() { return isLooped; } /** Clear all vertices in the chain and free the memory. */ public void clear() { jniClear(addr); } private native void jniClear(long addr); /* b2ChainShape* chain = (b2ChainShape*)addr; chain->Clear(); */ // /// Implement b2Shape. Vertices are cloned using b2Alloc. // b2Shape* Clone(b2BlockAllocator* allocator) const; // // /// @see b2Shape::GetChildCount // int32 GetChildCount() const; // // /// Get a child edge. // void GetChildEdge(b2EdgeShape* edge, int32 index) const; // // /// This always return false. // /// @see b2Shape::TestPoint // bool TestPoint(const b2Transform& transform, const b2Vec2& p) const; // // /// Implement b2Shape. // bool RayCast(b2RayCastOutput* output, const b2RayCastInput& input, // const b2Transform& transform, int32 childIndex) const; // // /// @see b2Shape::ComputeAABB // void ComputeAABB(b2AABB* aabb, const b2Transform& transform, int32 childIndex) const; // // /// Chains have zero mass. // /// @see b2Shape::ComputeMass // void ComputeMass(b2MassData* massData, float32 density) const; // }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/scenes/scene2d/utils/Cullable.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.utils; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.utils.Null; /** Allows a parent to set the area that is visible on a child actor to allow the child to cull when drawing itself. This must * only be used for actors that are not rotated or scaled. * @author Nathan Sweet */ public interface Cullable { /** @param cullingArea The culling area in the child actor's coordinates. */ public void setCullingArea (@Null Rectangle cullingArea); }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.utils; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.utils.Null; /** Allows a parent to set the area that is visible on a child actor to allow the child to cull when drawing itself. This must * only be used for actors that are not rotated or scaled. * @author Nathan Sweet */ public interface Cullable { /** @param cullingArea The culling area in the child actor's coordinates. */ public void setCullingArea (@Null Rectangle cullingArea); }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests/src/com/badlogic/gdx/tests/TableLayoutTest.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.InputListener; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2d.ui.TextButton; import com.badlogic.gdx.scenes.scene2d.ui.TextField; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; import com.badlogic.gdx.tests.utils.GdxTest; public class TableLayoutTest extends GdxTest { Stage stage; public void create () { stage = new Stage(); Gdx.input.setInputProcessor(stage); Skin skin = new Skin(Gdx.files.internal("data/uiskin.json")); Label nameLabel = new Label("Name:", skin); TextField nameText = new TextField("", skin); Label addressLabel = new Label("Address:", skin); TextField addressText = new TextField("", skin); Table table = new Table(); stage.addActor(table); table.setSize(260, 195); table.setPosition(190, 142); // table.align(Align.right | Align.bottom); table.debug(); TextureRegion upRegion = skin.getRegion("default-slider-knob"); TextureRegion downRegion = skin.getRegion("default-slider-knob"); BitmapFont buttonFont = skin.getFont("default-font"); TextButton button = new TextButton("Button 1", skin); button.addListener(new InputListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { System.out.println("touchDown 1"); return false; } }); table.add(button); // table.setTouchable(Touchable.disabled); Table table2 = new Table(); stage.addActor(table2); table2.setFillParent(true); table2.bottom(); TextButton button2 = new TextButton("Button 2", skin); button2.addListener(new ChangeListener() { public void changed (ChangeEvent event, Actor actor) { System.out.println("2!"); } }); button2.addListener(new InputListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { System.out.println("touchDown 2"); return false; } }); table2.add(button2); } public void render () { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); } public void resize (int width, int height) { stage.getViewport().update(width, height, true); } public void dispose () { stage.dispose(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.InputListener; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2d.ui.TextButton; import com.badlogic.gdx.scenes.scene2d.ui.TextField; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; import com.badlogic.gdx.tests.utils.GdxTest; public class TableLayoutTest extends GdxTest { Stage stage; public void create () { stage = new Stage(); Gdx.input.setInputProcessor(stage); Skin skin = new Skin(Gdx.files.internal("data/uiskin.json")); Label nameLabel = new Label("Name:", skin); TextField nameText = new TextField("", skin); Label addressLabel = new Label("Address:", skin); TextField addressText = new TextField("", skin); Table table = new Table(); stage.addActor(table); table.setSize(260, 195); table.setPosition(190, 142); // table.align(Align.right | Align.bottom); table.debug(); TextureRegion upRegion = skin.getRegion("default-slider-knob"); TextureRegion downRegion = skin.getRegion("default-slider-knob"); BitmapFont buttonFont = skin.getFont("default-font"); TextButton button = new TextButton("Button 1", skin); button.addListener(new InputListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { System.out.println("touchDown 1"); return false; } }); table.add(button); // table.setTouchable(Touchable.disabled); Table table2 = new Table(); stage.addActor(table2); table2.setFillParent(true); table2.bottom(); TextButton button2 = new TextButton("Button 2", skin); button2.addListener(new ChangeListener() { public void changed (ChangeEvent event, Actor actor) { System.out.println("2!"); } }); button2.addListener(new InputListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { System.out.println("touchDown 2"); return false; } }); table2.add(button2); } public void render () { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); } public void resize (int width, int height) { stage.getViewport().update(width, height, true); } public void dispose () { stage.dispose(); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests/src/com/badlogic/gdx/tests/GLES30Test.java
package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShaderProgram; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.utils.ScreenUtils; public class GLES30Test extends GdxTest { SpriteBatch batch; Texture texture; ShaderProgram shaderProgram; @Override public void create () { Gdx.app.log("GLES30Test", "GL_VERSION = " + Gdx.gl.glGetString(GL20.GL_VERSION)); batch = new SpriteBatch(); texture = new Texture(Gdx.files.internal("data/badlogic.jpg")); shaderProgram = new ShaderProgram(Gdx.files.internal("data/shaders/gles30sprite.vert"), Gdx.files.internal("data/shaders/gles30sprite.frag")); Gdx.app.log("GLES30Test", shaderProgram.getLog()); if (shaderProgram.isCompiled()) { Gdx.app.log("GLES30Test", "Shader compiled"); batch.setShader(shaderProgram); } } @Override public void render () { ScreenUtils.clear(0, 0, 0, 1); batch.begin(); batch.draw(texture, 0, 0, Gdx.graphics.getWidth() / 2f, Gdx.graphics.getHeight() / 2f); batch.end(); } @Override public void dispose () { texture.dispose(); batch.dispose(); shaderProgram.dispose(); } }
package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShaderProgram; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.utils.ScreenUtils; public class GLES30Test extends GdxTest { SpriteBatch batch; Texture texture; ShaderProgram shaderProgram; @Override public void create () { Gdx.app.log("GLES30Test", "GL_VERSION = " + Gdx.gl.glGetString(GL20.GL_VERSION)); batch = new SpriteBatch(); texture = new Texture(Gdx.files.internal("data/badlogic.jpg")); shaderProgram = new ShaderProgram(Gdx.files.internal("data/shaders/gles30sprite.vert"), Gdx.files.internal("data/shaders/gles30sprite.frag")); Gdx.app.log("GLES30Test", shaderProgram.getLog()); if (shaderProgram.isCompiled()) { Gdx.app.log("GLES30Test", "Shader compiled"); batch.setShader(shaderProgram); } } @Override public void render () { ScreenUtils.clear(0, 0, 0, 1); batch.begin(); batch.draw(texture, 0, 0, Gdx.graphics.getWidth() / 2f, Gdx.graphics.getHeight() / 2f); batch.end(); } @Override public void dispose () { texture.dispose(); batch.dispose(); shaderProgram.dispose(); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests-android/assets/data/test4.png
PNG  IHDR&LRŒsRGBgAMA a pHYsodtEXtSoftwarePaint.NET v3.5.5I IDAThCyEyZ*xG@T-DH$x !Fﷲ[SBĒ;;ݿ~7/Ɲ{]W׼>{#'o1oW?y7ͭgy߸b3~7}9Sw{7+➹0w>;Dw@mG& + u( !8@ cz{AcXs\ ; ]`3qk#j!i8$Hklv}뤃qHۇ@$b!X*Qs`OU:zsܐ!A a&L) ɳ-uA DO5^^ 9`x8|zj3$38a{ *[I`BS9Ao<2V#@ynB\Ss$YIZI^~6s}I[ "{\^vb"/V; I@=NjO\%a+FH&`\Lt )g1XCh [sLX/}fKs6‰mHB I`rVI` _qp3#p;De8.,F.PhqU'$$ !IE͈/ES3SͲ ~C0{p_wE 5gjR@ /"0hX! r6g{Άrg#*cXUbOsoH0{FTIyR(M 13^KKIyyTЂ{e̸BlP[F0S=qD=eWN:d2bko&\7eT~ma{n?Kƕ7eU` xF}8YRջ* -q[&zĭfI"rYpET޸Vo!sb+3ڈ\NJeW=@lNU ۸)Q:$ѦjA T\L*Ճ[RFJij^f53UzUwn8)*Ԣr$</g[Cxg}&(?_h*KlT7EVj\M ڕU36ck$7F(NQVOPA6tzu"n}c:AKzAtʵuJBU`Y5?i2 Cy^& S}l+<I^4 pWL6ق3x <3\I2 jsB)6VJ 0 gDsJY& ^AU|-V%8v"W}++}V4zWIo4*ST7JD^/zHf}Z4 jr4"ކn5eFlm-ܛW8_% v#|45Rg>/E :i#f0`O=fz1 ΂5ᱧ=\g_6҆hs7 O?/]bXE~kgmc4Y97qӟW תǸM?&җ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ơe3j0%Ͻz B\A'45~#ik,nAؑSj=i| i̸2U}+nfa$ 5ӎDqqo| nfINLEF5%5yR pH3!fGH&ZUcQ21n%{*n\C[^zP9FBbA]3 ve-+nͨJ+<^rS3D!\H'6^UB8eO-ZeK@,Zݖlp =;!*pPY}e^Y|)I g"9ԑ!L|3‰`p\_hVKClzzv,j Tkio8onIENDB`
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./settings.gradle
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ include ":gdx" include ":backends" include ":backends:gdx-backend-android" include ":backends:gdx-backend-headless" include ":backends:gdx-backend-lwjgl" include ":backends:gdx-backend-lwjgl3" include ":backends:gdx-backend-robovm" include ":backends:gdx-backend-robovm-metalangle" include ":backends:gdx-backends-gwt" project(":backends:gdx-backends-gwt").name = "gdx-backend-gwt" include(":extensions:gdx-box2d") project(":extensions:gdx-box2d").name = "gdx-box2d-parent" include ":extensions:gdx-box2d-parent:gdx-box2d" include ":extensions:gdx-box2d-parent:gdx-box2d-gwt" include ":extensions:gdx-bullet" include ":extensions:gdx-freetype" include ":extensions:gdx-setup" include ":extensions:gdx-tools" include ":extensions:gdx-lwjgl3-angle" include ":extensions:gdx-lwjgl3-glfw-awt-macos" include ":tests" include ":tests:gdx-tests" include ":tests:gdx-tests-android" include ":tests:gdx-tests-gwt" include ":tests:gdx-tests-iosrobovm" include ":tests:gdx-tests-lwjgl" include ":tests:gdx-tests-lwjgl3" rootProject.name = "libgdx"
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ include ":gdx" include ":backends" include ":backends:gdx-backend-android" include ":backends:gdx-backend-headless" include ":backends:gdx-backend-lwjgl" include ":backends:gdx-backend-lwjgl3" include ":backends:gdx-backend-robovm" include ":backends:gdx-backend-robovm-metalangle" include ":backends:gdx-backends-gwt" project(":backends:gdx-backends-gwt").name = "gdx-backend-gwt" include(":extensions:gdx-box2d") project(":extensions:gdx-box2d").name = "gdx-box2d-parent" include ":extensions:gdx-box2d-parent:gdx-box2d" include ":extensions:gdx-box2d-parent:gdx-box2d-gwt" include ":extensions:gdx-bullet" include ":extensions:gdx-freetype" include ":extensions:gdx-setup" include ":extensions:gdx-tools" include ":extensions:gdx-lwjgl3-angle" include ":extensions:gdx-lwjgl3-glfw-awt-macos" include ":tests" include ":tests:gdx-tests" include ":tests:gdx-tests-android" include ":tests:gdx-tests-gwt" include ":tests:gdx-tests-iosrobovm" include ":tests:gdx-tests-lwjgl" include ":tests:gdx-tests-lwjgl3" rootProject.name = "libgdx"
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests/src/com/badlogic/gdx/tests/LabelTest.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Texture.TextureFilter; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.viewport.ScreenViewport; public class LabelTest extends GdxTest { Skin skin; Stage stage; SpriteBatch batch; Actor root; ShapeRenderer renderer; float scale = 1; @Override public void create () { batch = new SpriteBatch(); renderer = new ShapeRenderer(); skin = new Skin(Gdx.files.internal("data/uiskin.json")); skin.getAtlas().getTextures().iterator().next().setFilter(TextureFilter.Nearest, TextureFilter.Nearest); skin.getFont("default-font").getData().markupEnabled = true; skin.getFont("default-font").getData().setScale(scale); stage = new Stage(new ScreenViewport()); Gdx.input.setInputProcessor(stage); // skin.getFont("default-font").getData().getGlyph('T').xoffset = -20; skin.getFont("default-font").getData().getGlyph('B').setKerning('B', -5); Label label; Table table = new Table().debug(); table.add(new Label("This is regular text.", skin)).row(); table.add(new Label("This is regular text\nwith a newline.", skin)).row(); label = new Label("This is [RED]regular text\n\nwith newlines,\naligned bottom, right.", skin); label.setColor(Color.GREEN); label.setAlignment(Align.bottom | Align.right); table.add(label).minWidth(200 * scale).minHeight(110 * scale).fill().row(); label = new Label("This is regular text with NO newlines, wrap enabled and aligned bottom, right.", skin); label.setWrap(true); label.setAlignment(Align.bottom | Align.right); table.add(label).minWidth(200 * scale).minHeight(110 * scale).fill().row(); label = new Label("This is regular text with\n\nnewlines, wrap\nenabled and aligned bottom, right.", skin); label.setWrap(true); label.setAlignment(Align.bottom | Align.right); table.add(label).minWidth(200 * scale).minHeight(110 * scale).fill().row(); table.setPosition(50, 40 + 25 * scale); table.pack(); stage.addActor(table); // table = new Table().debug(); stage.addActor(table); table.add(new Label("This is regular text.", skin)).minWidth(200 * scale).row(); // The color markup text should match the uncolored text exactly. label = new Label("AAA BBB CCC DDD EEE", skin); table.add(label).align(Align.left).row(); label = new Label("AAA B[RED]B[]B CCC DDD EEE", skin); table.add(label).align(Align.left).row(); label = new Label("[RED]AAA [BLUE]BBB [RED]CCC [BLUE]DDD [RED]EEE", skin); table.add(label).align(Align.left).row(); label = new Label("AAA BBB CCC DDD EEE", skin); label.setWrap(true); table.add(label).align(Align.left).width(150 * scale).row(); label = new Label("[RED]AAA [BLUE]BBB [RED]CCC [BLUE]DDD [RED]EEE", skin); label.setWrap(true); table.add(label).align(Align.left).width(150 * scale).row(); table.setPosition(50 + 250 * scale, 40 + 25 * scale); table.pack(); stage.addActor(table); } @Override public void dispose () { stage.dispose(); skin.dispose(); } @Override public void render () { ScreenUtils.clear(0.2f, 0.2f, 0.2f, 1); stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f)); stage.draw(); float x = 40, y = 15 + 20 * scale; BitmapFont font = skin.getFont("default-font"); batch.begin(); font.draw(batch, "The quick brown fox jumped over the lazy cow.", x, y); batch.end(); drawLine(x, y - font.getDescent(), x + 1000, y - font.getDescent()); drawLine(x, y - font.getCapHeight() + font.getDescent(), x + 1000, y - font.getCapHeight() + font.getDescent()); } public void drawLine (float x1, float y1, float x2, float y2) { renderer.setProjectionMatrix(batch.getProjectionMatrix()); renderer.begin(ShapeType.Line); renderer.line(x1, y1, x2, y2); renderer.end(); } @Override public void resize (int width, int height) { stage.getViewport().update(width, height, true); batch.getProjectionMatrix().setToOrtho2D(0, 0, width, height); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Texture.TextureFilter; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.viewport.ScreenViewport; public class LabelTest extends GdxTest { Skin skin; Stage stage; SpriteBatch batch; Actor root; ShapeRenderer renderer; float scale = 1; @Override public void create () { batch = new SpriteBatch(); renderer = new ShapeRenderer(); skin = new Skin(Gdx.files.internal("data/uiskin.json")); skin.getAtlas().getTextures().iterator().next().setFilter(TextureFilter.Nearest, TextureFilter.Nearest); skin.getFont("default-font").getData().markupEnabled = true; skin.getFont("default-font").getData().setScale(scale); stage = new Stage(new ScreenViewport()); Gdx.input.setInputProcessor(stage); // skin.getFont("default-font").getData().getGlyph('T').xoffset = -20; skin.getFont("default-font").getData().getGlyph('B').setKerning('B', -5); Label label; Table table = new Table().debug(); table.add(new Label("This is regular text.", skin)).row(); table.add(new Label("This is regular text\nwith a newline.", skin)).row(); label = new Label("This is [RED]regular text\n\nwith newlines,\naligned bottom, right.", skin); label.setColor(Color.GREEN); label.setAlignment(Align.bottom | Align.right); table.add(label).minWidth(200 * scale).minHeight(110 * scale).fill().row(); label = new Label("This is regular text with NO newlines, wrap enabled and aligned bottom, right.", skin); label.setWrap(true); label.setAlignment(Align.bottom | Align.right); table.add(label).minWidth(200 * scale).minHeight(110 * scale).fill().row(); label = new Label("This is regular text with\n\nnewlines, wrap\nenabled and aligned bottom, right.", skin); label.setWrap(true); label.setAlignment(Align.bottom | Align.right); table.add(label).minWidth(200 * scale).minHeight(110 * scale).fill().row(); table.setPosition(50, 40 + 25 * scale); table.pack(); stage.addActor(table); // table = new Table().debug(); stage.addActor(table); table.add(new Label("This is regular text.", skin)).minWidth(200 * scale).row(); // The color markup text should match the uncolored text exactly. label = new Label("AAA BBB CCC DDD EEE", skin); table.add(label).align(Align.left).row(); label = new Label("AAA B[RED]B[]B CCC DDD EEE", skin); table.add(label).align(Align.left).row(); label = new Label("[RED]AAA [BLUE]BBB [RED]CCC [BLUE]DDD [RED]EEE", skin); table.add(label).align(Align.left).row(); label = new Label("AAA BBB CCC DDD EEE", skin); label.setWrap(true); table.add(label).align(Align.left).width(150 * scale).row(); label = new Label("[RED]AAA [BLUE]BBB [RED]CCC [BLUE]DDD [RED]EEE", skin); label.setWrap(true); table.add(label).align(Align.left).width(150 * scale).row(); table.setPosition(50 + 250 * scale, 40 + 25 * scale); table.pack(); stage.addActor(table); } @Override public void dispose () { stage.dispose(); skin.dispose(); } @Override public void render () { ScreenUtils.clear(0.2f, 0.2f, 0.2f, 1); stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f)); stage.draw(); float x = 40, y = 15 + 20 * scale; BitmapFont font = skin.getFont("default-font"); batch.begin(); font.draw(batch, "The quick brown fox jumped over the lazy cow.", x, y); batch.end(); drawLine(x, y - font.getDescent(), x + 1000, y - font.getDescent()); drawLine(x, y - font.getCapHeight() + font.getDescent(), x + 1000, y - font.getCapHeight() + font.getDescent()); } public void drawLine (float x1, float y1, float x2, float y2) { renderer.setProjectionMatrix(batch.getProjectionMatrix()); renderer.begin(ShapeType.Line); renderer.line(x1, y1, x2, y2); renderer.end(); } @Override public void resize (int width, int height) { stage.getViewport().update(width, height, true); batch.getProjectionMatrix().setToOrtho2D(0, 0, width, height); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/src/bullet/BulletSoftBody/premake4.lua
project "BulletSoftBody" kind "StaticLib" includedirs { "..", } files { "**.cpp", "**.h" }
project "BulletSoftBody" kind "StaticLib" includedirs { "..", } files { "**.cpp", "**.h" }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./gdx/src/com/badlogic/gdx/maps/tiled/renderers/HexagonalTiledMapRenderer.java
/******************************************************************************* * Copyright 2013 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.maps.tiled.renderers; import static com.badlogic.gdx.graphics.g2d.Batch.*; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.maps.tiled.TiledMapTile; import com.badlogic.gdx.maps.tiled.TiledMapTileLayer; import com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile; public class HexagonalTiledMapRenderer extends BatchTiledMapRenderer { /** true for X-Axis, false for Y-Axis */ private boolean staggerAxisX = true; /** true for even StaggerIndex, false for odd */ private boolean staggerIndexEven = false; /** the parameter defining the shape of the hexagon from tiled. more specifically it represents the length of the sides that * are parallel to the stagger axis. e.g. with respect to the stagger axis a value of 0 results in a rhombus shape, while a * value equal to the tile length/height represents a square shape and a value of 0.5 represents a regular hexagon if tile * length equals tile height */ private float hexSideLength = 0f; public HexagonalTiledMapRenderer (TiledMap map) { super(map); init(map); } public HexagonalTiledMapRenderer (TiledMap map, float unitScale) { super(map, unitScale); init(map); } public HexagonalTiledMapRenderer (TiledMap map, Batch batch) { super(map, batch); init(map); } public HexagonalTiledMapRenderer (TiledMap map, float unitScale, Batch batch) { super(map, unitScale, batch); init(map); } private void init (TiledMap map) { String axis = map.getProperties().get("staggeraxis", String.class); if (axis != null) { if (axis.equals("x")) { staggerAxisX = true; } else { staggerAxisX = false; } } String index = map.getProperties().get("staggerindex", String.class); if (index != null) { if (index.equals("even")) { staggerIndexEven = true; } else { staggerIndexEven = false; } } // due to y-axis being different we need to change stagger index in even map height situations as else it would render // differently. if (!staggerAxisX && map.getProperties().get("height", Integer.class) % 2 == 0) staggerIndexEven = !staggerIndexEven; Integer length = map.getProperties().get("hexsidelength", Integer.class); if (length != null) { hexSideLength = length.intValue(); } else { if (staggerAxisX) { length = map.getProperties().get("tilewidth", Integer.class); if (length != null) { hexSideLength = 0.5f * length.intValue(); } else { TiledMapTileLayer tmtl = (TiledMapTileLayer)map.getLayers().get(0); hexSideLength = 0.5f * tmtl.getTileWidth(); } } else { length = map.getProperties().get("tileheight", Integer.class); if (length != null) { hexSideLength = 0.5f * length.intValue(); } else { TiledMapTileLayer tmtl = (TiledMapTileLayer)map.getLayers().get(0); hexSideLength = 0.5f * tmtl.getTileHeight(); } } } } @Override public void renderTileLayer (TiledMapTileLayer layer) { final Color batchColor = batch.getColor(); final float color = Color.toFloatBits(batchColor.r, batchColor.g, batchColor.b, batchColor.a * layer.getOpacity()); final int layerWidth = layer.getWidth(); final int layerHeight = layer.getHeight(); final float layerTileWidth = layer.getTileWidth() * unitScale; final float layerTileHeight = layer.getTileHeight() * unitScale; final float layerOffsetX = layer.getRenderOffsetX() * unitScale - viewBounds.x * (layer.getParallaxX() - 1); // offset in tiled is y down, so we flip it final float layerOffsetY = -layer.getRenderOffsetY() * unitScale - viewBounds.y * (layer.getParallaxY() - 1); final float layerHexLength = hexSideLength * unitScale; if (staggerAxisX) { final float tileWidthLowerCorner = (layerTileWidth - layerHexLength) / 2; final float tileWidthUpperCorner = (layerTileWidth + layerHexLength) / 2; final float layerTileHeight50 = layerTileHeight * 0.50f; final int row1 = Math.max(0, (int)((viewBounds.y - layerTileHeight50 - layerOffsetX) / layerTileHeight)); final int row2 = Math.min(layerHeight, (int)((viewBounds.y + viewBounds.height + layerTileHeight - layerOffsetX) / layerTileHeight)); final int col1 = Math.max(0, (int)(((viewBounds.x - tileWidthLowerCorner - layerOffsetY) / tileWidthUpperCorner))); final int col2 = Math.min(layerWidth, (int)((viewBounds.x + viewBounds.width + tileWidthUpperCorner - layerOffsetY) / tileWidthUpperCorner)); // depending on the stagger index either draw all even before the odd or vice versa final int colA = (staggerIndexEven == (col1 % 2 == 0)) ? col1 + 1 : col1; final int colB = (staggerIndexEven == (col1 % 2 == 0)) ? col1 : col1 + 1; for (int row = row2 - 1; row >= row1; row--) { for (int col = colA; col < col2; col += 2) { renderCell(layer.getCell(col, row), tileWidthUpperCorner * col + layerOffsetX, layerTileHeight50 + (layerTileHeight * row) + layerOffsetY, color); } for (int col = colB; col < col2; col += 2) { renderCell(layer.getCell(col, row), tileWidthUpperCorner * col + layerOffsetX, layerTileHeight * row + layerOffsetY, color); } } } else { final float tileHeightLowerCorner = (layerTileHeight - layerHexLength) / 2; final float tileHeightUpperCorner = (layerTileHeight + layerHexLength) / 2; final float layerTileWidth50 = layerTileWidth * 0.50f; final int row1 = Math.max(0, (int)(((viewBounds.y - tileHeightLowerCorner - layerOffsetX) / tileHeightUpperCorner))); final int row2 = Math.min(layerHeight, (int)((viewBounds.y + viewBounds.height + tileHeightUpperCorner - layerOffsetX) / tileHeightUpperCorner)); final int col1 = Math.max(0, (int)(((viewBounds.x - layerTileWidth50 - layerOffsetY) / layerTileWidth))); final int col2 = Math.min(layerWidth, (int)((viewBounds.x + viewBounds.width + layerTileWidth - layerOffsetY) / layerTileWidth)); float shiftX = 0; for (int row = row2 - 1; row >= row1; row--) { // depending on the stagger index either shift for even or uneven indexes if ((row % 2 == 0) == staggerIndexEven) shiftX = layerTileWidth50; else shiftX = 0; for (int col = col1; col < col2; col++) { renderCell(layer.getCell(col, row), layerTileWidth * col + shiftX + layerOffsetX, tileHeightUpperCorner * row + layerOffsetY, color); } } } } /** render a single cell */ private void renderCell (final TiledMapTileLayer.Cell cell, final float x, final float y, final float color) { if (cell != null) { final TiledMapTile tile = cell.getTile(); if (tile != null) { if (tile instanceof AnimatedTiledMapTile) return; final boolean flipX = cell.getFlipHorizontally(); final boolean flipY = cell.getFlipVertically(); final int rotations = cell.getRotation(); TextureRegion region = tile.getTextureRegion(); float x1 = x + tile.getOffsetX() * unitScale; float y1 = y + tile.getOffsetY() * unitScale; float x2 = x1 + region.getRegionWidth() * unitScale; float y2 = y1 + region.getRegionHeight() * unitScale; float u1 = region.getU(); float v1 = region.getV2(); float u2 = region.getU2(); float v2 = region.getV(); vertices[X1] = x1; vertices[Y1] = y1; vertices[C1] = color; vertices[U1] = u1; vertices[V1] = v1; vertices[X2] = x1; vertices[Y2] = y2; vertices[C2] = color; vertices[U2] = u1; vertices[V2] = v2; vertices[X3] = x2; vertices[Y3] = y2; vertices[C3] = color; vertices[U3] = u2; vertices[V3] = v2; vertices[X4] = x2; vertices[Y4] = y1; vertices[C4] = color; vertices[U4] = u2; vertices[V4] = v1; if (flipX) { float temp = vertices[U1]; vertices[U1] = vertices[U3]; vertices[U3] = temp; temp = vertices[U2]; vertices[U2] = vertices[U4]; vertices[U4] = temp; } if (flipY) { float temp = vertices[V1]; vertices[V1] = vertices[V3]; vertices[V3] = temp; temp = vertices[V2]; vertices[V2] = vertices[V4]; vertices[V4] = temp; } if (rotations == 2) { float tempU = vertices[U1]; vertices[U1] = vertices[U3]; vertices[U3] = tempU; tempU = vertices[U2]; vertices[U2] = vertices[U4]; vertices[U4] = tempU; float tempV = vertices[V1]; vertices[V1] = vertices[V3]; vertices[V3] = tempV; tempV = vertices[V2]; vertices[V2] = vertices[V4]; vertices[V4] = tempV; } batch.draw(region.getTexture(), vertices, 0, NUM_VERTICES); } } } }
/******************************************************************************* * Copyright 2013 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.maps.tiled.renderers; import static com.badlogic.gdx.graphics.g2d.Batch.*; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.maps.tiled.TiledMapTile; import com.badlogic.gdx.maps.tiled.TiledMapTileLayer; import com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile; public class HexagonalTiledMapRenderer extends BatchTiledMapRenderer { /** true for X-Axis, false for Y-Axis */ private boolean staggerAxisX = true; /** true for even StaggerIndex, false for odd */ private boolean staggerIndexEven = false; /** the parameter defining the shape of the hexagon from tiled. more specifically it represents the length of the sides that * are parallel to the stagger axis. e.g. with respect to the stagger axis a value of 0 results in a rhombus shape, while a * value equal to the tile length/height represents a square shape and a value of 0.5 represents a regular hexagon if tile * length equals tile height */ private float hexSideLength = 0f; public HexagonalTiledMapRenderer (TiledMap map) { super(map); init(map); } public HexagonalTiledMapRenderer (TiledMap map, float unitScale) { super(map, unitScale); init(map); } public HexagonalTiledMapRenderer (TiledMap map, Batch batch) { super(map, batch); init(map); } public HexagonalTiledMapRenderer (TiledMap map, float unitScale, Batch batch) { super(map, unitScale, batch); init(map); } private void init (TiledMap map) { String axis = map.getProperties().get("staggeraxis", String.class); if (axis != null) { if (axis.equals("x")) { staggerAxisX = true; } else { staggerAxisX = false; } } String index = map.getProperties().get("staggerindex", String.class); if (index != null) { if (index.equals("even")) { staggerIndexEven = true; } else { staggerIndexEven = false; } } // due to y-axis being different we need to change stagger index in even map height situations as else it would render // differently. if (!staggerAxisX && map.getProperties().get("height", Integer.class) % 2 == 0) staggerIndexEven = !staggerIndexEven; Integer length = map.getProperties().get("hexsidelength", Integer.class); if (length != null) { hexSideLength = length.intValue(); } else { if (staggerAxisX) { length = map.getProperties().get("tilewidth", Integer.class); if (length != null) { hexSideLength = 0.5f * length.intValue(); } else { TiledMapTileLayer tmtl = (TiledMapTileLayer)map.getLayers().get(0); hexSideLength = 0.5f * tmtl.getTileWidth(); } } else { length = map.getProperties().get("tileheight", Integer.class); if (length != null) { hexSideLength = 0.5f * length.intValue(); } else { TiledMapTileLayer tmtl = (TiledMapTileLayer)map.getLayers().get(0); hexSideLength = 0.5f * tmtl.getTileHeight(); } } } } @Override public void renderTileLayer (TiledMapTileLayer layer) { final Color batchColor = batch.getColor(); final float color = Color.toFloatBits(batchColor.r, batchColor.g, batchColor.b, batchColor.a * layer.getOpacity()); final int layerWidth = layer.getWidth(); final int layerHeight = layer.getHeight(); final float layerTileWidth = layer.getTileWidth() * unitScale; final float layerTileHeight = layer.getTileHeight() * unitScale; final float layerOffsetX = layer.getRenderOffsetX() * unitScale - viewBounds.x * (layer.getParallaxX() - 1); // offset in tiled is y down, so we flip it final float layerOffsetY = -layer.getRenderOffsetY() * unitScale - viewBounds.y * (layer.getParallaxY() - 1); final float layerHexLength = hexSideLength * unitScale; if (staggerAxisX) { final float tileWidthLowerCorner = (layerTileWidth - layerHexLength) / 2; final float tileWidthUpperCorner = (layerTileWidth + layerHexLength) / 2; final float layerTileHeight50 = layerTileHeight * 0.50f; final int row1 = Math.max(0, (int)((viewBounds.y - layerTileHeight50 - layerOffsetX) / layerTileHeight)); final int row2 = Math.min(layerHeight, (int)((viewBounds.y + viewBounds.height + layerTileHeight - layerOffsetX) / layerTileHeight)); final int col1 = Math.max(0, (int)(((viewBounds.x - tileWidthLowerCorner - layerOffsetY) / tileWidthUpperCorner))); final int col2 = Math.min(layerWidth, (int)((viewBounds.x + viewBounds.width + tileWidthUpperCorner - layerOffsetY) / tileWidthUpperCorner)); // depending on the stagger index either draw all even before the odd or vice versa final int colA = (staggerIndexEven == (col1 % 2 == 0)) ? col1 + 1 : col1; final int colB = (staggerIndexEven == (col1 % 2 == 0)) ? col1 : col1 + 1; for (int row = row2 - 1; row >= row1; row--) { for (int col = colA; col < col2; col += 2) { renderCell(layer.getCell(col, row), tileWidthUpperCorner * col + layerOffsetX, layerTileHeight50 + (layerTileHeight * row) + layerOffsetY, color); } for (int col = colB; col < col2; col += 2) { renderCell(layer.getCell(col, row), tileWidthUpperCorner * col + layerOffsetX, layerTileHeight * row + layerOffsetY, color); } } } else { final float tileHeightLowerCorner = (layerTileHeight - layerHexLength) / 2; final float tileHeightUpperCorner = (layerTileHeight + layerHexLength) / 2; final float layerTileWidth50 = layerTileWidth * 0.50f; final int row1 = Math.max(0, (int)(((viewBounds.y - tileHeightLowerCorner - layerOffsetX) / tileHeightUpperCorner))); final int row2 = Math.min(layerHeight, (int)((viewBounds.y + viewBounds.height + tileHeightUpperCorner - layerOffsetX) / tileHeightUpperCorner)); final int col1 = Math.max(0, (int)(((viewBounds.x - layerTileWidth50 - layerOffsetY) / layerTileWidth))); final int col2 = Math.min(layerWidth, (int)((viewBounds.x + viewBounds.width + layerTileWidth - layerOffsetY) / layerTileWidth)); float shiftX = 0; for (int row = row2 - 1; row >= row1; row--) { // depending on the stagger index either shift for even or uneven indexes if ((row % 2 == 0) == staggerIndexEven) shiftX = layerTileWidth50; else shiftX = 0; for (int col = col1; col < col2; col++) { renderCell(layer.getCell(col, row), layerTileWidth * col + shiftX + layerOffsetX, tileHeightUpperCorner * row + layerOffsetY, color); } } } } /** render a single cell */ private void renderCell (final TiledMapTileLayer.Cell cell, final float x, final float y, final float color) { if (cell != null) { final TiledMapTile tile = cell.getTile(); if (tile != null) { if (tile instanceof AnimatedTiledMapTile) return; final boolean flipX = cell.getFlipHorizontally(); final boolean flipY = cell.getFlipVertically(); final int rotations = cell.getRotation(); TextureRegion region = tile.getTextureRegion(); float x1 = x + tile.getOffsetX() * unitScale; float y1 = y + tile.getOffsetY() * unitScale; float x2 = x1 + region.getRegionWidth() * unitScale; float y2 = y1 + region.getRegionHeight() * unitScale; float u1 = region.getU(); float v1 = region.getV2(); float u2 = region.getU2(); float v2 = region.getV(); vertices[X1] = x1; vertices[Y1] = y1; vertices[C1] = color; vertices[U1] = u1; vertices[V1] = v1; vertices[X2] = x1; vertices[Y2] = y2; vertices[C2] = color; vertices[U2] = u1; vertices[V2] = v2; vertices[X3] = x2; vertices[Y3] = y2; vertices[C3] = color; vertices[U3] = u2; vertices[V3] = v2; vertices[X4] = x2; vertices[Y4] = y1; vertices[C4] = color; vertices[U4] = u2; vertices[V4] = v1; if (flipX) { float temp = vertices[U1]; vertices[U1] = vertices[U3]; vertices[U3] = temp; temp = vertices[U2]; vertices[U2] = vertices[U4]; vertices[U4] = temp; } if (flipY) { float temp = vertices[V1]; vertices[V1] = vertices[V3]; vertices[V3] = temp; temp = vertices[V2]; vertices[V2] = vertices[V4]; vertices[V4] = temp; } if (rotations == 2) { float tempU = vertices[U1]; vertices[U1] = vertices[U3]; vertices[U3] = tempU; tempU = vertices[U2]; vertices[U2] = vertices[U4]; vertices[U4] = tempU; float tempV = vertices[V1]; vertices[V1] = vertices[V3]; vertices[V3] = tempV; tempV = vertices[V2]; vertices[V2] = vertices[V4]; vertices[V4] = tempV; } batch.draw(region.getTexture(), vertices, 0, NUM_VERTICES); } } } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/IOSApplicationLogger.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.backends.iosrobovm; import com.badlogic.gdx.ApplicationLogger; import org.robovm.apple.foundation.Foundation; import org.robovm.apple.foundation.NSString; /** Default implementation of {@link ApplicationLogger} for ios */ public class IOSApplicationLogger implements ApplicationLogger { @Override public void log (String tag, String message) { Foundation.log("%@", new NSString("[info] " + tag + ": " + message)); } @Override public void log (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[info] " + tag + ": " + message)); exception.printStackTrace(); } @Override public void error (String tag, String message) { Foundation.log("%@", new NSString("[error] " + tag + ": " + message)); } @Override public void error (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[error] " + tag + ": " + message)); exception.printStackTrace(); } @Override public void debug (String tag, String message) { Foundation.log("%@", new NSString("[debug] " + tag + ": " + message)); } @Override public void debug (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[debug] " + tag + ": " + message)); exception.printStackTrace(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.backends.iosrobovm; import com.badlogic.gdx.ApplicationLogger; import org.robovm.apple.foundation.Foundation; import org.robovm.apple.foundation.NSString; /** Default implementation of {@link ApplicationLogger} for ios */ public class IOSApplicationLogger implements ApplicationLogger { @Override public void log (String tag, String message) { Foundation.log("%@", new NSString("[info] " + tag + ": " + message)); } @Override public void log (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[info] " + tag + ": " + message)); exception.printStackTrace(); } @Override public void error (String tag, String message) { Foundation.log("%@", new NSString("[error] " + tag + ": " + message)); } @Override public void error (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[error] " + tag + ": " + message)); exception.printStackTrace(); } @Override public void debug (String tag, String message) { Foundation.log("%@", new NSString("[debug] " + tag + ": " + message)); } @Override public void debug (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[debug] " + tag + ": " + message)); exception.printStackTrace(); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-box2d/gdx-box2d/jni/Box2D/Common/b2Math.h
/* * Copyright (c) 2006-2009 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ #ifndef B2_MATH_H #define B2_MATH_H #include <Box2D/Common/b2Settings.h> #include <cmath> #include <cfloat> #include <cstddef> #include <float.h> /// This function is used to ensure that a floating point number is inline bool b2IsValid(float32 x) { int32 ix = *reinterpret_cast<int32*>(&x); return (ix & 0x7f800000) != 0x7f800000; } /// This is a approximate yet fast inverse square-root. inline float32 b2InvSqrt(float32 x) { union { float32 x; int32 i; } convert; convert.x = x; float32 xhalf = 0.5f * x; convert.i = 0x5f3759df - (convert.i >> 1); x = convert.x; x = x * (1.5f - xhalf * x * x); return x; } #define b2Sqrt(x) std::sqrt(x) #define b2Atan2(y, x) std::atan2(y, x) /// A 2D column vector. struct b2Vec2 { /// Default constructor does nothing (for performance). b2Vec2() {} /// Construct using coordinates. b2Vec2(float32 x, float32 y) : x(x), y(y) {} /// Set this vector to all zeros. void SetZero() { x = 0.0f; y = 0.0f; } /// Set this vector to some specified coordinates. void Set(float32 x_, float32 y_) { x = x_; y = y_; } /// Negate this vector. b2Vec2 operator -() const { b2Vec2 v; v.Set(-x, -y); return v; } /// Read from and indexed element. float32 operator () (int32 i) const { return (&x)[i]; } /// Write to an indexed element. float32& operator () (int32 i) { return (&x)[i]; } /// Add a vector to this vector. void operator += (const b2Vec2& v) { x += v.x; y += v.y; } /// Subtract a vector from this vector. void operator -= (const b2Vec2& v) { x -= v.x; y -= v.y; } /// Multiply this vector by a scalar. void operator *= (float32 a) { x *= a; y *= a; } /// Get the length of this vector (the norm). float32 Length() const { return b2Sqrt(x * x + y * y); } /// Get the length squared. For performance, use this instead of /// b2Vec2::Length (if possible). float32 LengthSquared() const { return x * x + y * y; } /// Convert this vector into a unit vector. Returns the length. float32 Normalize() { float32 length = Length(); if (length < b2_epsilon) { return 0.0f; } float32 invLength = 1.0f / length; x *= invLength; y *= invLength; return length; } /// Does this vector contain finite coordinates? bool IsValid() const { return b2IsValid(x) && b2IsValid(y); } /// Get the skew vector such that dot(skew_vec, other) == cross(vec, other) b2Vec2 Skew() const { return b2Vec2(-y, x); } float32 x, y; }; /// A 2D column vector with 3 elements. struct b2Vec3 { /// Default constructor does nothing (for performance). b2Vec3() {} /// Construct using coordinates. b2Vec3(float32 x, float32 y, float32 z) : x(x), y(y), z(z) {} /// Set this vector to all zeros. void SetZero() { x = 0.0f; y = 0.0f; z = 0.0f; } /// Set this vector to some specified coordinates. void Set(float32 x_, float32 y_, float32 z_) { x = x_; y = y_; z = z_; } /// Negate this vector. b2Vec3 operator -() const { b2Vec3 v; v.Set(-x, -y, -z); return v; } /// Add a vector to this vector. void operator += (const b2Vec3& v) { x += v.x; y += v.y; z += v.z; } /// Subtract a vector from this vector. void operator -= (const b2Vec3& v) { x -= v.x; y -= v.y; z -= v.z; } /// Multiply this vector by a scalar. void operator *= (float32 s) { x *= s; y *= s; z *= s; } float32 x, y, z; }; /// A 2-by-2 matrix. Stored in column-major order. struct b2Mat22 { /// The default constructor does nothing (for performance). b2Mat22() {} /// Construct this matrix using columns. b2Mat22(const b2Vec2& c1, const b2Vec2& c2) { ex = c1; ey = c2; } /// Construct this matrix using scalars. b2Mat22(float32 a11, float32 a12, float32 a21, float32 a22) { ex.x = a11; ex.y = a21; ey.x = a12; ey.y = a22; } /// Initialize this matrix using columns. void Set(const b2Vec2& c1, const b2Vec2& c2) { ex = c1; ey = c2; } /// Set this to the identity matrix. void SetIdentity() { ex.x = 1.0f; ey.x = 0.0f; ex.y = 0.0f; ey.y = 1.0f; } /// Set this matrix to all zeros. void SetZero() { ex.x = 0.0f; ey.x = 0.0f; ex.y = 0.0f; ey.y = 0.0f; } b2Mat22 GetInverse() const { float32 a = ex.x, b = ey.x, c = ex.y, d = ey.y; b2Mat22 B; float32 det = a * d - b * c; if (det != 0.0f) { det = 1.0f / det; } B.ex.x = det * d; B.ey.x = -det * b; B.ex.y = -det * c; B.ey.y = det * a; return B; } /// Solve A * x = b, where b is a column vector. This is more efficient /// than computing the inverse in one-shot cases. b2Vec2 Solve(const b2Vec2& b) const { float32 a11 = ex.x, a12 = ey.x, a21 = ex.y, a22 = ey.y; float32 det = a11 * a22 - a12 * a21; if (det != 0.0f) { det = 1.0f / det; } b2Vec2 x; x.x = det * (a22 * b.x - a12 * b.y); x.y = det * (a11 * b.y - a21 * b.x); return x; } b2Vec2 ex, ey; }; /// A 3-by-3 matrix. Stored in column-major order. struct b2Mat33 { /// The default constructor does nothing (for performance). b2Mat33() {} /// Construct this matrix using columns. b2Mat33(const b2Vec3& c1, const b2Vec3& c2, const b2Vec3& c3) { ex = c1; ey = c2; ez = c3; } /// Set this matrix to all zeros. void SetZero() { ex.SetZero(); ey.SetZero(); ez.SetZero(); } /// Solve A * x = b, where b is a column vector. This is more efficient /// than computing the inverse in one-shot cases. b2Vec3 Solve33(const b2Vec3& b) const; /// Solve A * x = b, where b is a column vector. This is more efficient /// than computing the inverse in one-shot cases. Solve only the upper /// 2-by-2 matrix equation. b2Vec2 Solve22(const b2Vec2& b) const; /// Get the inverse of this matrix as a 2-by-2. /// Returns the zero matrix if singular. void GetInverse22(b2Mat33* M) const; /// Get the symmetric inverse of this matrix as a 3-by-3. /// Returns the zero matrix if singular. void GetSymInverse33(b2Mat33* M) const; b2Vec3 ex, ey, ez; }; /// Rotation struct b2Rot { b2Rot() {} /// Initialize from an angle in radians explicit b2Rot(float32 angle) { /// TODO_ERIN optimize s = sinf(angle); c = cosf(angle); } /// Set using an angle in radians. void Set(float32 angle) { /// TODO_ERIN optimize s = sinf(angle); c = cosf(angle); } /// Set to the identity rotation void SetIdentity() { s = 0.0f; c = 1.0f; } /// Get the angle in radians float32 GetAngle() const { return b2Atan2(s, c); } /// Get the x-axis b2Vec2 GetXAxis() const { return b2Vec2(c, s); } /// Get the u-axis b2Vec2 GetYAxis() const { return b2Vec2(-s, c); } /// Sine and cosine float32 s, c; }; /// A transform contains translation and rotation. It is used to represent /// the position and orientation of rigid frames. struct b2Transform { /// The default constructor does nothing. b2Transform() {} /// Initialize using a position vector and a rotation. b2Transform(const b2Vec2& position, const b2Rot& rotation) : p(position), q(rotation) {} /// Set this to the identity transform. void SetIdentity() { p.SetZero(); q.SetIdentity(); } /// Set this based on the position and angle. void Set(const b2Vec2& position, float32 angle) { p = position; q.Set(angle); } b2Vec2 p; b2Rot q; }; /// This describes the motion of a body/shape for TOI computation. /// Shapes are defined with respect to the body origin, which may /// no coincide with the center of mass. However, to support dynamics /// we must interpolate the center of mass position. struct b2Sweep { /// Get the interpolated transform at a specific time. /// @param beta is a factor in [0,1], where 0 indicates alpha0. void GetTransform(b2Transform* xfb, float32 beta) const; /// Advance the sweep forward, yielding a new initial state. /// @param alpha the new initial time. void Advance(float32 alpha); /// Normalize the angles. void Normalize(); b2Vec2 localCenter; ///< local center of mass position b2Vec2 c0, c; ///< center world positions float32 a0, a; ///< world angles /// Fraction of the current time step in the range [0,1] /// c0 and a0 are the positions at alpha0. float32 alpha0; }; /// Useful constant extern const b2Vec2 b2Vec2_zero; /// Perform the dot product on two vectors. inline float32 b2Dot(const b2Vec2& a, const b2Vec2& b) { return a.x * b.x + a.y * b.y; } /// Perform the cross product on two vectors. In 2D this produces a scalar. inline float32 b2Cross(const b2Vec2& a, const b2Vec2& b) { return a.x * b.y - a.y * b.x; } /// Perform the cross product on a vector and a scalar. In 2D this produces /// a vector. inline b2Vec2 b2Cross(const b2Vec2& a, float32 s) { return b2Vec2(s * a.y, -s * a.x); } /// Perform the cross product on a scalar and a vector. In 2D this produces /// a vector. inline b2Vec2 b2Cross(float32 s, const b2Vec2& a) { return b2Vec2(-s * a.y, s * a.x); } /// Multiply a matrix times a vector. If a rotation matrix is provided, /// then this transforms the vector from one frame to another. inline b2Vec2 b2Mul(const b2Mat22& A, const b2Vec2& v) { return b2Vec2(A.ex.x * v.x + A.ey.x * v.y, A.ex.y * v.x + A.ey.y * v.y); } /// Multiply a matrix transpose times a vector. If a rotation matrix is provided, /// then this transforms the vector from one frame to another (inverse transform). inline b2Vec2 b2MulT(const b2Mat22& A, const b2Vec2& v) { return b2Vec2(b2Dot(v, A.ex), b2Dot(v, A.ey)); } /// Add two vectors component-wise. inline b2Vec2 operator + (const b2Vec2& a, const b2Vec2& b) { return b2Vec2(a.x + b.x, a.y + b.y); } /// Subtract two vectors component-wise. inline b2Vec2 operator - (const b2Vec2& a, const b2Vec2& b) { return b2Vec2(a.x - b.x, a.y - b.y); } inline b2Vec2 operator * (float32 s, const b2Vec2& a) { return b2Vec2(s * a.x, s * a.y); } inline bool operator == (const b2Vec2& a, const b2Vec2& b) { return a.x == b.x && a.y == b.y; } inline float32 b2Distance(const b2Vec2& a, const b2Vec2& b) { b2Vec2 c = a - b; return c.Length(); } inline float32 b2DistanceSquared(const b2Vec2& a, const b2Vec2& b) { b2Vec2 c = a - b; return b2Dot(c, c); } inline b2Vec3 operator * (float32 s, const b2Vec3& a) { return b2Vec3(s * a.x, s * a.y, s * a.z); } /// Add two vectors component-wise. inline b2Vec3 operator + (const b2Vec3& a, const b2Vec3& b) { return b2Vec3(a.x + b.x, a.y + b.y, a.z + b.z); } /// Subtract two vectors component-wise. inline b2Vec3 operator - (const b2Vec3& a, const b2Vec3& b) { return b2Vec3(a.x - b.x, a.y - b.y, a.z - b.z); } /// Perform the dot product on two vectors. inline float32 b2Dot(const b2Vec3& a, const b2Vec3& b) { return a.x * b.x + a.y * b.y + a.z * b.z; } /// Perform the cross product on two vectors. inline b2Vec3 b2Cross(const b2Vec3& a, const b2Vec3& b) { return b2Vec3(a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x); } inline b2Mat22 operator + (const b2Mat22& A, const b2Mat22& B) { return b2Mat22(A.ex + B.ex, A.ey + B.ey); } // A * B inline b2Mat22 b2Mul(const b2Mat22& A, const b2Mat22& B) { return b2Mat22(b2Mul(A, B.ex), b2Mul(A, B.ey)); } // A^T * B inline b2Mat22 b2MulT(const b2Mat22& A, const b2Mat22& B) { b2Vec2 c1(b2Dot(A.ex, B.ex), b2Dot(A.ey, B.ex)); b2Vec2 c2(b2Dot(A.ex, B.ey), b2Dot(A.ey, B.ey)); return b2Mat22(c1, c2); } /// Multiply a matrix times a vector. inline b2Vec3 b2Mul(const b2Mat33& A, const b2Vec3& v) { return v.x * A.ex + v.y * A.ey + v.z * A.ez; } /// Multiply a matrix times a vector. inline b2Vec2 b2Mul22(const b2Mat33& A, const b2Vec2& v) { return b2Vec2(A.ex.x * v.x + A.ey.x * v.y, A.ex.y * v.x + A.ey.y * v.y); } /// Multiply two rotations: q * r inline b2Rot b2Mul(const b2Rot& q, const b2Rot& r) { // [qc -qs] * [rc -rs] = [qc*rc-qs*rs -qc*rs-qs*rc] // [qs qc] [rs rc] [qs*rc+qc*rs -qs*rs+qc*rc] // s = qs * rc + qc * rs // c = qc * rc - qs * rs b2Rot qr; qr.s = q.s * r.c + q.c * r.s; qr.c = q.c * r.c - q.s * r.s; return qr; } /// Transpose multiply two rotations: qT * r inline b2Rot b2MulT(const b2Rot& q, const b2Rot& r) { // [ qc qs] * [rc -rs] = [qc*rc+qs*rs -qc*rs+qs*rc] // [-qs qc] [rs rc] [-qs*rc+qc*rs qs*rs+qc*rc] // s = qc * rs - qs * rc // c = qc * rc + qs * rs b2Rot qr; qr.s = q.c * r.s - q.s * r.c; qr.c = q.c * r.c + q.s * r.s; return qr; } /// Rotate a vector inline b2Vec2 b2Mul(const b2Rot& q, const b2Vec2& v) { return b2Vec2(q.c * v.x - q.s * v.y, q.s * v.x + q.c * v.y); } /// Inverse rotate a vector inline b2Vec2 b2MulT(const b2Rot& q, const b2Vec2& v) { return b2Vec2(q.c * v.x + q.s * v.y, -q.s * v.x + q.c * v.y); } inline b2Vec2 b2Mul(const b2Transform& T, const b2Vec2& v) { float32 x = (T.q.c * v.x - T.q.s * v.y) + T.p.x; float32 y = (T.q.s * v.x + T.q.c * v.y) + T.p.y; return b2Vec2(x, y); } inline b2Vec2 b2MulT(const b2Transform& T, const b2Vec2& v) { float32 px = v.x - T.p.x; float32 py = v.y - T.p.y; float32 x = (T.q.c * px + T.q.s * py); float32 y = (-T.q.s * px + T.q.c * py); return b2Vec2(x, y); } // v2 = A.q.Rot(B.q.Rot(v1) + B.p) + A.p // = (A.q * B.q).Rot(v1) + A.q.Rot(B.p) + A.p inline b2Transform b2Mul(const b2Transform& A, const b2Transform& B) { b2Transform C; C.q = b2Mul(A.q, B.q); C.p = b2Mul(A.q, B.p) + A.p; return C; } // v2 = A.q' * (B.q * v1 + B.p - A.p) // = A.q' * B.q * v1 + A.q' * (B.p - A.p) inline b2Transform b2MulT(const b2Transform& A, const b2Transform& B) { b2Transform C; C.q = b2MulT(A.q, B.q); C.p = b2MulT(A.q, B.p - A.p); return C; } template <typename T> inline T b2Abs(T a) { return a > T(0) ? a : -a; } inline b2Vec2 b2Abs(const b2Vec2& a) { return b2Vec2(b2Abs(a.x), b2Abs(a.y)); } inline b2Mat22 b2Abs(const b2Mat22& A) { return b2Mat22(b2Abs(A.ex), b2Abs(A.ey)); } template <typename T> inline T b2Min(T a, T b) { return a < b ? a : b; } inline b2Vec2 b2Min(const b2Vec2& a, const b2Vec2& b) { return b2Vec2(b2Min(a.x, b.x), b2Min(a.y, b.y)); } template <typename T> inline T b2Max(T a, T b) { return a > b ? a : b; } inline b2Vec2 b2Max(const b2Vec2& a, const b2Vec2& b) { return b2Vec2(b2Max(a.x, b.x), b2Max(a.y, b.y)); } template <typename T> inline T b2Clamp(T a, T low, T high) { return b2Max(low, b2Min(a, high)); } inline b2Vec2 b2Clamp(const b2Vec2& a, const b2Vec2& low, const b2Vec2& high) { return b2Max(low, b2Min(a, high)); } template<typename T> inline void b2Swap(T& a, T& b) { T tmp = a; a = b; b = tmp; } /// "Next Largest Power of 2 /// Given a binary integer value x, the next largest power of 2 can be computed by a SWAR algorithm /// that recursively "folds" the upper bits into the lower bits. This process yields a bit vector with /// the same most significant 1 as x, but all 1's below it. Adding 1 to that value yields the next /// largest power of 2. For a 32-bit value:" inline uint32 b2NextPowerOfTwo(uint32 x) { x |= (x >> 1); x |= (x >> 2); x |= (x >> 4); x |= (x >> 8); x |= (x >> 16); return x + 1; } inline bool b2IsPowerOfTwo(uint32 x) { bool result = x > 0 && (x & (x - 1)) == 0; return result; } inline void b2Sweep::GetTransform(b2Transform* xf, float32 beta) const { xf->p = (1.0f - beta) * c0 + beta * c; float32 angle = (1.0f - beta) * a0 + beta * a; xf->q.Set(angle); // Shift to origin xf->p -= b2Mul(xf->q, localCenter); } inline void b2Sweep::Advance(float32 alpha) { b2Assert(alpha0 < 1.0f); float32 beta = (alpha - alpha0) / (1.0f - alpha0); c0 += beta * (c - c0); a0 += beta * (a - a0); alpha0 = alpha; } /// Normalize an angle in radians to be between -pi and pi inline void b2Sweep::Normalize() { float32 twoPi = 2.0f * b2_pi; float32 d = twoPi * floorf(a0 / twoPi); a0 -= d; a -= d; } #endif
/* * Copyright (c) 2006-2009 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ #ifndef B2_MATH_H #define B2_MATH_H #include <Box2D/Common/b2Settings.h> #include <cmath> #include <cfloat> #include <cstddef> #include <float.h> /// This function is used to ensure that a floating point number is inline bool b2IsValid(float32 x) { int32 ix = *reinterpret_cast<int32*>(&x); return (ix & 0x7f800000) != 0x7f800000; } /// This is a approximate yet fast inverse square-root. inline float32 b2InvSqrt(float32 x) { union { float32 x; int32 i; } convert; convert.x = x; float32 xhalf = 0.5f * x; convert.i = 0x5f3759df - (convert.i >> 1); x = convert.x; x = x * (1.5f - xhalf * x * x); return x; } #define b2Sqrt(x) std::sqrt(x) #define b2Atan2(y, x) std::atan2(y, x) /// A 2D column vector. struct b2Vec2 { /// Default constructor does nothing (for performance). b2Vec2() {} /// Construct using coordinates. b2Vec2(float32 x, float32 y) : x(x), y(y) {} /// Set this vector to all zeros. void SetZero() { x = 0.0f; y = 0.0f; } /// Set this vector to some specified coordinates. void Set(float32 x_, float32 y_) { x = x_; y = y_; } /// Negate this vector. b2Vec2 operator -() const { b2Vec2 v; v.Set(-x, -y); return v; } /// Read from and indexed element. float32 operator () (int32 i) const { return (&x)[i]; } /// Write to an indexed element. float32& operator () (int32 i) { return (&x)[i]; } /// Add a vector to this vector. void operator += (const b2Vec2& v) { x += v.x; y += v.y; } /// Subtract a vector from this vector. void operator -= (const b2Vec2& v) { x -= v.x; y -= v.y; } /// Multiply this vector by a scalar. void operator *= (float32 a) { x *= a; y *= a; } /// Get the length of this vector (the norm). float32 Length() const { return b2Sqrt(x * x + y * y); } /// Get the length squared. For performance, use this instead of /// b2Vec2::Length (if possible). float32 LengthSquared() const { return x * x + y * y; } /// Convert this vector into a unit vector. Returns the length. float32 Normalize() { float32 length = Length(); if (length < b2_epsilon) { return 0.0f; } float32 invLength = 1.0f / length; x *= invLength; y *= invLength; return length; } /// Does this vector contain finite coordinates? bool IsValid() const { return b2IsValid(x) && b2IsValid(y); } /// Get the skew vector such that dot(skew_vec, other) == cross(vec, other) b2Vec2 Skew() const { return b2Vec2(-y, x); } float32 x, y; }; /// A 2D column vector with 3 elements. struct b2Vec3 { /// Default constructor does nothing (for performance). b2Vec3() {} /// Construct using coordinates. b2Vec3(float32 x, float32 y, float32 z) : x(x), y(y), z(z) {} /// Set this vector to all zeros. void SetZero() { x = 0.0f; y = 0.0f; z = 0.0f; } /// Set this vector to some specified coordinates. void Set(float32 x_, float32 y_, float32 z_) { x = x_; y = y_; z = z_; } /// Negate this vector. b2Vec3 operator -() const { b2Vec3 v; v.Set(-x, -y, -z); return v; } /// Add a vector to this vector. void operator += (const b2Vec3& v) { x += v.x; y += v.y; z += v.z; } /// Subtract a vector from this vector. void operator -= (const b2Vec3& v) { x -= v.x; y -= v.y; z -= v.z; } /// Multiply this vector by a scalar. void operator *= (float32 s) { x *= s; y *= s; z *= s; } float32 x, y, z; }; /// A 2-by-2 matrix. Stored in column-major order. struct b2Mat22 { /// The default constructor does nothing (for performance). b2Mat22() {} /// Construct this matrix using columns. b2Mat22(const b2Vec2& c1, const b2Vec2& c2) { ex = c1; ey = c2; } /// Construct this matrix using scalars. b2Mat22(float32 a11, float32 a12, float32 a21, float32 a22) { ex.x = a11; ex.y = a21; ey.x = a12; ey.y = a22; } /// Initialize this matrix using columns. void Set(const b2Vec2& c1, const b2Vec2& c2) { ex = c1; ey = c2; } /// Set this to the identity matrix. void SetIdentity() { ex.x = 1.0f; ey.x = 0.0f; ex.y = 0.0f; ey.y = 1.0f; } /// Set this matrix to all zeros. void SetZero() { ex.x = 0.0f; ey.x = 0.0f; ex.y = 0.0f; ey.y = 0.0f; } b2Mat22 GetInverse() const { float32 a = ex.x, b = ey.x, c = ex.y, d = ey.y; b2Mat22 B; float32 det = a * d - b * c; if (det != 0.0f) { det = 1.0f / det; } B.ex.x = det * d; B.ey.x = -det * b; B.ex.y = -det * c; B.ey.y = det * a; return B; } /// Solve A * x = b, where b is a column vector. This is more efficient /// than computing the inverse in one-shot cases. b2Vec2 Solve(const b2Vec2& b) const { float32 a11 = ex.x, a12 = ey.x, a21 = ex.y, a22 = ey.y; float32 det = a11 * a22 - a12 * a21; if (det != 0.0f) { det = 1.0f / det; } b2Vec2 x; x.x = det * (a22 * b.x - a12 * b.y); x.y = det * (a11 * b.y - a21 * b.x); return x; } b2Vec2 ex, ey; }; /// A 3-by-3 matrix. Stored in column-major order. struct b2Mat33 { /// The default constructor does nothing (for performance). b2Mat33() {} /// Construct this matrix using columns. b2Mat33(const b2Vec3& c1, const b2Vec3& c2, const b2Vec3& c3) { ex = c1; ey = c2; ez = c3; } /// Set this matrix to all zeros. void SetZero() { ex.SetZero(); ey.SetZero(); ez.SetZero(); } /// Solve A * x = b, where b is a column vector. This is more efficient /// than computing the inverse in one-shot cases. b2Vec3 Solve33(const b2Vec3& b) const; /// Solve A * x = b, where b is a column vector. This is more efficient /// than computing the inverse in one-shot cases. Solve only the upper /// 2-by-2 matrix equation. b2Vec2 Solve22(const b2Vec2& b) const; /// Get the inverse of this matrix as a 2-by-2. /// Returns the zero matrix if singular. void GetInverse22(b2Mat33* M) const; /// Get the symmetric inverse of this matrix as a 3-by-3. /// Returns the zero matrix if singular. void GetSymInverse33(b2Mat33* M) const; b2Vec3 ex, ey, ez; }; /// Rotation struct b2Rot { b2Rot() {} /// Initialize from an angle in radians explicit b2Rot(float32 angle) { /// TODO_ERIN optimize s = sinf(angle); c = cosf(angle); } /// Set using an angle in radians. void Set(float32 angle) { /// TODO_ERIN optimize s = sinf(angle); c = cosf(angle); } /// Set to the identity rotation void SetIdentity() { s = 0.0f; c = 1.0f; } /// Get the angle in radians float32 GetAngle() const { return b2Atan2(s, c); } /// Get the x-axis b2Vec2 GetXAxis() const { return b2Vec2(c, s); } /// Get the u-axis b2Vec2 GetYAxis() const { return b2Vec2(-s, c); } /// Sine and cosine float32 s, c; }; /// A transform contains translation and rotation. It is used to represent /// the position and orientation of rigid frames. struct b2Transform { /// The default constructor does nothing. b2Transform() {} /// Initialize using a position vector and a rotation. b2Transform(const b2Vec2& position, const b2Rot& rotation) : p(position), q(rotation) {} /// Set this to the identity transform. void SetIdentity() { p.SetZero(); q.SetIdentity(); } /// Set this based on the position and angle. void Set(const b2Vec2& position, float32 angle) { p = position; q.Set(angle); } b2Vec2 p; b2Rot q; }; /// This describes the motion of a body/shape for TOI computation. /// Shapes are defined with respect to the body origin, which may /// no coincide with the center of mass. However, to support dynamics /// we must interpolate the center of mass position. struct b2Sweep { /// Get the interpolated transform at a specific time. /// @param beta is a factor in [0,1], where 0 indicates alpha0. void GetTransform(b2Transform* xfb, float32 beta) const; /// Advance the sweep forward, yielding a new initial state. /// @param alpha the new initial time. void Advance(float32 alpha); /// Normalize the angles. void Normalize(); b2Vec2 localCenter; ///< local center of mass position b2Vec2 c0, c; ///< center world positions float32 a0, a; ///< world angles /// Fraction of the current time step in the range [0,1] /// c0 and a0 are the positions at alpha0. float32 alpha0; }; /// Useful constant extern const b2Vec2 b2Vec2_zero; /// Perform the dot product on two vectors. inline float32 b2Dot(const b2Vec2& a, const b2Vec2& b) { return a.x * b.x + a.y * b.y; } /// Perform the cross product on two vectors. In 2D this produces a scalar. inline float32 b2Cross(const b2Vec2& a, const b2Vec2& b) { return a.x * b.y - a.y * b.x; } /// Perform the cross product on a vector and a scalar. In 2D this produces /// a vector. inline b2Vec2 b2Cross(const b2Vec2& a, float32 s) { return b2Vec2(s * a.y, -s * a.x); } /// Perform the cross product on a scalar and a vector. In 2D this produces /// a vector. inline b2Vec2 b2Cross(float32 s, const b2Vec2& a) { return b2Vec2(-s * a.y, s * a.x); } /// Multiply a matrix times a vector. If a rotation matrix is provided, /// then this transforms the vector from one frame to another. inline b2Vec2 b2Mul(const b2Mat22& A, const b2Vec2& v) { return b2Vec2(A.ex.x * v.x + A.ey.x * v.y, A.ex.y * v.x + A.ey.y * v.y); } /// Multiply a matrix transpose times a vector. If a rotation matrix is provided, /// then this transforms the vector from one frame to another (inverse transform). inline b2Vec2 b2MulT(const b2Mat22& A, const b2Vec2& v) { return b2Vec2(b2Dot(v, A.ex), b2Dot(v, A.ey)); } /// Add two vectors component-wise. inline b2Vec2 operator + (const b2Vec2& a, const b2Vec2& b) { return b2Vec2(a.x + b.x, a.y + b.y); } /// Subtract two vectors component-wise. inline b2Vec2 operator - (const b2Vec2& a, const b2Vec2& b) { return b2Vec2(a.x - b.x, a.y - b.y); } inline b2Vec2 operator * (float32 s, const b2Vec2& a) { return b2Vec2(s * a.x, s * a.y); } inline bool operator == (const b2Vec2& a, const b2Vec2& b) { return a.x == b.x && a.y == b.y; } inline float32 b2Distance(const b2Vec2& a, const b2Vec2& b) { b2Vec2 c = a - b; return c.Length(); } inline float32 b2DistanceSquared(const b2Vec2& a, const b2Vec2& b) { b2Vec2 c = a - b; return b2Dot(c, c); } inline b2Vec3 operator * (float32 s, const b2Vec3& a) { return b2Vec3(s * a.x, s * a.y, s * a.z); } /// Add two vectors component-wise. inline b2Vec3 operator + (const b2Vec3& a, const b2Vec3& b) { return b2Vec3(a.x + b.x, a.y + b.y, a.z + b.z); } /// Subtract two vectors component-wise. inline b2Vec3 operator - (const b2Vec3& a, const b2Vec3& b) { return b2Vec3(a.x - b.x, a.y - b.y, a.z - b.z); } /// Perform the dot product on two vectors. inline float32 b2Dot(const b2Vec3& a, const b2Vec3& b) { return a.x * b.x + a.y * b.y + a.z * b.z; } /// Perform the cross product on two vectors. inline b2Vec3 b2Cross(const b2Vec3& a, const b2Vec3& b) { return b2Vec3(a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x); } inline b2Mat22 operator + (const b2Mat22& A, const b2Mat22& B) { return b2Mat22(A.ex + B.ex, A.ey + B.ey); } // A * B inline b2Mat22 b2Mul(const b2Mat22& A, const b2Mat22& B) { return b2Mat22(b2Mul(A, B.ex), b2Mul(A, B.ey)); } // A^T * B inline b2Mat22 b2MulT(const b2Mat22& A, const b2Mat22& B) { b2Vec2 c1(b2Dot(A.ex, B.ex), b2Dot(A.ey, B.ex)); b2Vec2 c2(b2Dot(A.ex, B.ey), b2Dot(A.ey, B.ey)); return b2Mat22(c1, c2); } /// Multiply a matrix times a vector. inline b2Vec3 b2Mul(const b2Mat33& A, const b2Vec3& v) { return v.x * A.ex + v.y * A.ey + v.z * A.ez; } /// Multiply a matrix times a vector. inline b2Vec2 b2Mul22(const b2Mat33& A, const b2Vec2& v) { return b2Vec2(A.ex.x * v.x + A.ey.x * v.y, A.ex.y * v.x + A.ey.y * v.y); } /// Multiply two rotations: q * r inline b2Rot b2Mul(const b2Rot& q, const b2Rot& r) { // [qc -qs] * [rc -rs] = [qc*rc-qs*rs -qc*rs-qs*rc] // [qs qc] [rs rc] [qs*rc+qc*rs -qs*rs+qc*rc] // s = qs * rc + qc * rs // c = qc * rc - qs * rs b2Rot qr; qr.s = q.s * r.c + q.c * r.s; qr.c = q.c * r.c - q.s * r.s; return qr; } /// Transpose multiply two rotations: qT * r inline b2Rot b2MulT(const b2Rot& q, const b2Rot& r) { // [ qc qs] * [rc -rs] = [qc*rc+qs*rs -qc*rs+qs*rc] // [-qs qc] [rs rc] [-qs*rc+qc*rs qs*rs+qc*rc] // s = qc * rs - qs * rc // c = qc * rc + qs * rs b2Rot qr; qr.s = q.c * r.s - q.s * r.c; qr.c = q.c * r.c + q.s * r.s; return qr; } /// Rotate a vector inline b2Vec2 b2Mul(const b2Rot& q, const b2Vec2& v) { return b2Vec2(q.c * v.x - q.s * v.y, q.s * v.x + q.c * v.y); } /// Inverse rotate a vector inline b2Vec2 b2MulT(const b2Rot& q, const b2Vec2& v) { return b2Vec2(q.c * v.x + q.s * v.y, -q.s * v.x + q.c * v.y); } inline b2Vec2 b2Mul(const b2Transform& T, const b2Vec2& v) { float32 x = (T.q.c * v.x - T.q.s * v.y) + T.p.x; float32 y = (T.q.s * v.x + T.q.c * v.y) + T.p.y; return b2Vec2(x, y); } inline b2Vec2 b2MulT(const b2Transform& T, const b2Vec2& v) { float32 px = v.x - T.p.x; float32 py = v.y - T.p.y; float32 x = (T.q.c * px + T.q.s * py); float32 y = (-T.q.s * px + T.q.c * py); return b2Vec2(x, y); } // v2 = A.q.Rot(B.q.Rot(v1) + B.p) + A.p // = (A.q * B.q).Rot(v1) + A.q.Rot(B.p) + A.p inline b2Transform b2Mul(const b2Transform& A, const b2Transform& B) { b2Transform C; C.q = b2Mul(A.q, B.q); C.p = b2Mul(A.q, B.p) + A.p; return C; } // v2 = A.q' * (B.q * v1 + B.p - A.p) // = A.q' * B.q * v1 + A.q' * (B.p - A.p) inline b2Transform b2MulT(const b2Transform& A, const b2Transform& B) { b2Transform C; C.q = b2MulT(A.q, B.q); C.p = b2MulT(A.q, B.p - A.p); return C; } template <typename T> inline T b2Abs(T a) { return a > T(0) ? a : -a; } inline b2Vec2 b2Abs(const b2Vec2& a) { return b2Vec2(b2Abs(a.x), b2Abs(a.y)); } inline b2Mat22 b2Abs(const b2Mat22& A) { return b2Mat22(b2Abs(A.ex), b2Abs(A.ey)); } template <typename T> inline T b2Min(T a, T b) { return a < b ? a : b; } inline b2Vec2 b2Min(const b2Vec2& a, const b2Vec2& b) { return b2Vec2(b2Min(a.x, b.x), b2Min(a.y, b.y)); } template <typename T> inline T b2Max(T a, T b) { return a > b ? a : b; } inline b2Vec2 b2Max(const b2Vec2& a, const b2Vec2& b) { return b2Vec2(b2Max(a.x, b.x), b2Max(a.y, b.y)); } template <typename T> inline T b2Clamp(T a, T low, T high) { return b2Max(low, b2Min(a, high)); } inline b2Vec2 b2Clamp(const b2Vec2& a, const b2Vec2& low, const b2Vec2& high) { return b2Max(low, b2Min(a, high)); } template<typename T> inline void b2Swap(T& a, T& b) { T tmp = a; a = b; b = tmp; } /// "Next Largest Power of 2 /// Given a binary integer value x, the next largest power of 2 can be computed by a SWAR algorithm /// that recursively "folds" the upper bits into the lower bits. This process yields a bit vector with /// the same most significant 1 as x, but all 1's below it. Adding 1 to that value yields the next /// largest power of 2. For a 32-bit value:" inline uint32 b2NextPowerOfTwo(uint32 x) { x |= (x >> 1); x |= (x >> 2); x |= (x >> 4); x |= (x >> 8); x |= (x >> 16); return x + 1; } inline bool b2IsPowerOfTwo(uint32 x) { bool result = x > 0 && (x & (x - 1)) == 0; return result; } inline void b2Sweep::GetTransform(b2Transform* xf, float32 beta) const { xf->p = (1.0f - beta) * c0 + beta * c; float32 angle = (1.0f - beta) * a0 + beta * a; xf->q.Set(angle); // Shift to origin xf->p -= b2Mul(xf->q, localCenter); } inline void b2Sweep::Advance(float32 alpha) { b2Assert(alpha0 < 1.0f); float32 beta = (alpha - alpha0) / (1.0f - alpha0); c0 += beta * (c - c0); a0 += beta * (a - a0); alpha0 = alpha; } /// Normalize an angle in radians to be between -pi and pi inline void b2Sweep::Normalize() { float32 twoPi = 2.0f * b2_pi; float32 d = twoPi * floorf(a0 / twoPi); a0 -= d; a -= d; } #endif
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/src/extras/InverseDynamics/DillCreator.cpp
#include "DillCreator.hpp" #include <cmath> namespace btInverseDynamics { DillCreator::DillCreator(int level) : m_level(level), m_num_bodies(BT_ID_POW(2, level)) { m_parent.resize(m_num_bodies); m_parent_r_parent_body_ref.resize(m_num_bodies); m_body_T_parent_ref.resize(m_num_bodies); m_body_axis_of_motion.resize(m_num_bodies); m_mass.resize(m_num_bodies); m_body_r_body_com.resize(m_num_bodies); m_body_I_body.resize(m_num_bodies); // generate names (for debugging) for (int i = 0; i < m_num_bodies; i++) { m_parent[i] = i - 1; // all z-axis (DH convention) m_body_axis_of_motion[i](0) = 0.0; m_body_axis_of_motion[i](1) = 0.0; m_body_axis_of_motion[i](2) = 1.0; } // recursively build data structures m_current_body = 0; const int parent = -1; const idScalar d_DH = 0.0; const idScalar a_DH = 0.0; const idScalar alpha_DH = 0.0; if (-1 == recurseDill(m_level, parent, d_DH, a_DH, alpha_DH)) { error_message("recurseDill failed\n"); abort(); } } DillCreator::~DillCreator() {} int DillCreator::getNumBodies(int* num_bodies) const { *num_bodies = m_num_bodies; return 0; } int DillCreator::getBody(const int body_index, int* parent_index, JointType* joint_type, vec3* parent_r_parent_body_ref, mat33* body_T_parent_ref, vec3* body_axis_of_motion, idScalar* mass, vec3* body_r_body_com, mat33* body_I_body, int* user_int, void** user_ptr) const { if (body_index < 0 || body_index >= m_num_bodies) { error_message("invalid body index %d\n", body_index); return -1; } *parent_index = m_parent[body_index]; *joint_type = REVOLUTE; *parent_r_parent_body_ref = m_parent_r_parent_body_ref[body_index]; *body_T_parent_ref = m_body_T_parent_ref[body_index]; *body_axis_of_motion = m_body_axis_of_motion[body_index]; *mass = m_mass[body_index]; *body_r_body_com = m_body_r_body_com[body_index]; *body_I_body = m_body_I_body[body_index]; *user_int = 0; *user_ptr = 0; return 0; } int DillCreator::recurseDill(const int level, const int parent, const idScalar d_DH_in, const idScalar a_DH_in, const idScalar alpha_DH_in) { if (level < 0) { error_message("invalid level parameter (%d)\n", level); return -1; } if (m_current_body >= m_num_bodies || m_current_body < 0) { error_message("invalid body parameter (%d, num_bodies: %d)\n", m_current_body, m_num_bodies); return -1; } idScalar size = BT_ID_MAX(level, 1); const int body = m_current_body; // length = 0.1 * size; // with = 2 * 0.01 * size; /// these parameters are from the paper ... /// TODO: add proper citation m_parent[body] = parent; m_mass[body] = 0.1 * BT_ID_POW(size, 3); m_body_r_body_com[body](0) = 0.05 * size; m_body_r_body_com[body](1) = 0; m_body_r_body_com[body](2) = 0; // initialization for (int i = 0; i < 3; i++) { m_parent_r_parent_body_ref[body](i) = 0; for (int j = 0; j < 3; j++) { m_body_I_body[body](i, j) = 0.0; m_body_T_parent_ref[body](i, j) = 0.0; } } const idScalar size_5 = pow(size, 5); m_body_I_body[body](0, 0) = size_5 / 0.2e6; m_body_I_body[body](1, 1) = size_5 * 403 / 1.2e6; m_body_I_body[body](2, 2) = m_body_I_body[body](1, 1); getVecMatFromDH(0, 0, a_DH_in, alpha_DH_in, &m_parent_r_parent_body_ref[body], &m_body_T_parent_ref[body]); // attach "level" Dill systems of levels 1...level for (int i = 1; i <= level; i++) { idScalar d_DH = 0.01 * size; if (i == level) { d_DH = 0.0; } const idScalar a_DH = i * 0.1; const idScalar alpha_DH = i * BT_ID_PI / 3.0; m_current_body++; recurseDill(i - 1, body, d_DH, a_DH, alpha_DH); } return 0; // ok! } }
#include "DillCreator.hpp" #include <cmath> namespace btInverseDynamics { DillCreator::DillCreator(int level) : m_level(level), m_num_bodies(BT_ID_POW(2, level)) { m_parent.resize(m_num_bodies); m_parent_r_parent_body_ref.resize(m_num_bodies); m_body_T_parent_ref.resize(m_num_bodies); m_body_axis_of_motion.resize(m_num_bodies); m_mass.resize(m_num_bodies); m_body_r_body_com.resize(m_num_bodies); m_body_I_body.resize(m_num_bodies); // generate names (for debugging) for (int i = 0; i < m_num_bodies; i++) { m_parent[i] = i - 1; // all z-axis (DH convention) m_body_axis_of_motion[i](0) = 0.0; m_body_axis_of_motion[i](1) = 0.0; m_body_axis_of_motion[i](2) = 1.0; } // recursively build data structures m_current_body = 0; const int parent = -1; const idScalar d_DH = 0.0; const idScalar a_DH = 0.0; const idScalar alpha_DH = 0.0; if (-1 == recurseDill(m_level, parent, d_DH, a_DH, alpha_DH)) { error_message("recurseDill failed\n"); abort(); } } DillCreator::~DillCreator() {} int DillCreator::getNumBodies(int* num_bodies) const { *num_bodies = m_num_bodies; return 0; } int DillCreator::getBody(const int body_index, int* parent_index, JointType* joint_type, vec3* parent_r_parent_body_ref, mat33* body_T_parent_ref, vec3* body_axis_of_motion, idScalar* mass, vec3* body_r_body_com, mat33* body_I_body, int* user_int, void** user_ptr) const { if (body_index < 0 || body_index >= m_num_bodies) { error_message("invalid body index %d\n", body_index); return -1; } *parent_index = m_parent[body_index]; *joint_type = REVOLUTE; *parent_r_parent_body_ref = m_parent_r_parent_body_ref[body_index]; *body_T_parent_ref = m_body_T_parent_ref[body_index]; *body_axis_of_motion = m_body_axis_of_motion[body_index]; *mass = m_mass[body_index]; *body_r_body_com = m_body_r_body_com[body_index]; *body_I_body = m_body_I_body[body_index]; *user_int = 0; *user_ptr = 0; return 0; } int DillCreator::recurseDill(const int level, const int parent, const idScalar d_DH_in, const idScalar a_DH_in, const idScalar alpha_DH_in) { if (level < 0) { error_message("invalid level parameter (%d)\n", level); return -1; } if (m_current_body >= m_num_bodies || m_current_body < 0) { error_message("invalid body parameter (%d, num_bodies: %d)\n", m_current_body, m_num_bodies); return -1; } idScalar size = BT_ID_MAX(level, 1); const int body = m_current_body; // length = 0.1 * size; // with = 2 * 0.01 * size; /// these parameters are from the paper ... /// TODO: add proper citation m_parent[body] = parent; m_mass[body] = 0.1 * BT_ID_POW(size, 3); m_body_r_body_com[body](0) = 0.05 * size; m_body_r_body_com[body](1) = 0; m_body_r_body_com[body](2) = 0; // initialization for (int i = 0; i < 3; i++) { m_parent_r_parent_body_ref[body](i) = 0; for (int j = 0; j < 3; j++) { m_body_I_body[body](i, j) = 0.0; m_body_T_parent_ref[body](i, j) = 0.0; } } const idScalar size_5 = pow(size, 5); m_body_I_body[body](0, 0) = size_5 / 0.2e6; m_body_I_body[body](1, 1) = size_5 * 403 / 1.2e6; m_body_I_body[body](2, 2) = m_body_I_body[body](1, 1); getVecMatFromDH(0, 0, a_DH_in, alpha_DH_in, &m_parent_r_parent_body_ref[body], &m_body_T_parent_ref[body]); // attach "level" Dill systems of levels 1...level for (int i = 1; i <= level; i++) { idScalar d_DH = 0.01 * size; if (i == level) { d_DH = 0.0; } const idScalar a_DH = i * 0.1; const idScalar alpha_DH = i * BT_ID_PI / 3.0; m_current_body++; recurseDill(i - 1, body, d_DH, a_DH, alpha_DH); } return 0; // ok! } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/src/bullet/LinearMath/btGrahamScan2dConvexHull.h
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2011 Advanced Micro Devices, Inc. http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #ifndef GRAHAM_SCAN_2D_CONVEX_HULL_H #define GRAHAM_SCAN_2D_CONVEX_HULL_H #include "btVector3.h" #include "btAlignedObjectArray.h" struct GrahamVector3 : public btVector3 { GrahamVector3(const btVector3& org, int orgIndex) :btVector3(org), m_orgIndex(orgIndex) { } btScalar m_angle; int m_orgIndex; }; struct btAngleCompareFunc { btVector3 m_anchor; btAngleCompareFunc(const btVector3& anchor) : m_anchor(anchor) { } bool operator()(const GrahamVector3& a, const GrahamVector3& b) const { if (a.m_angle != b.m_angle) return a.m_angle < b.m_angle; else { btScalar al = (a-m_anchor).length2(); btScalar bl = (b-m_anchor).length2(); if (al != bl) return al < bl; else { return a.m_orgIndex < b.m_orgIndex; } } } }; inline void GrahamScanConvexHull2D(btAlignedObjectArray<GrahamVector3>& originalPoints, btAlignedObjectArray<GrahamVector3>& hull, const btVector3& normalAxis) { btVector3 axis0,axis1; btPlaneSpace1(normalAxis,axis0,axis1); if (originalPoints.size()<=1) { for (int i=0;i<originalPoints.size();i++) hull.push_back(originalPoints[0]); return; } //step1 : find anchor point with smallest projection on axis0 and move it to first location for (int i=0;i<originalPoints.size();i++) { // const btVector3& left = originalPoints[i]; // const btVector3& right = originalPoints[0]; btScalar projL = originalPoints[i].dot(axis0); btScalar projR = originalPoints[0].dot(axis0); if (projL < projR) { originalPoints.swap(0,i); } } //also precompute angles originalPoints[0].m_angle = -1e30f; for (int i=1;i<originalPoints.size();i++) { btVector3 ar = originalPoints[i]-originalPoints[0]; btScalar ar1 = axis1.dot(ar); btScalar ar0 = axis0.dot(ar); if( ar1*ar1+ar0*ar0 < FLT_EPSILON ) { originalPoints[i].m_angle = 0.0f; } else { originalPoints[i].m_angle = btAtan2Fast(ar1, ar0); } } //step 2: sort all points, based on 'angle' with this anchor btAngleCompareFunc comp(originalPoints[0]); originalPoints.quickSortInternal(comp,1,originalPoints.size()-1); int i; for (i = 0; i<2; i++) hull.push_back(originalPoints[i]); //step 3: keep all 'convex' points and discard concave points (using back tracking) for (; i != originalPoints.size(); i++) { bool isConvex = false; while (!isConvex&& hull.size()>1) { btVector3& a = hull[hull.size()-2]; btVector3& b = hull[hull.size()-1]; isConvex = btCross(a-b,a-originalPoints[i]).dot(normalAxis)> 0; if (!isConvex) hull.pop_back(); else hull.push_back(originalPoints[i]); } if( hull.size() == 1 ) { hull.push_back( originalPoints[i] ); } } } #endif //GRAHAM_SCAN_2D_CONVEX_HULL_H
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2011 Advanced Micro Devices, Inc. http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #ifndef GRAHAM_SCAN_2D_CONVEX_HULL_H #define GRAHAM_SCAN_2D_CONVEX_HULL_H #include "btVector3.h" #include "btAlignedObjectArray.h" struct GrahamVector3 : public btVector3 { GrahamVector3(const btVector3& org, int orgIndex) :btVector3(org), m_orgIndex(orgIndex) { } btScalar m_angle; int m_orgIndex; }; struct btAngleCompareFunc { btVector3 m_anchor; btAngleCompareFunc(const btVector3& anchor) : m_anchor(anchor) { } bool operator()(const GrahamVector3& a, const GrahamVector3& b) const { if (a.m_angle != b.m_angle) return a.m_angle < b.m_angle; else { btScalar al = (a-m_anchor).length2(); btScalar bl = (b-m_anchor).length2(); if (al != bl) return al < bl; else { return a.m_orgIndex < b.m_orgIndex; } } } }; inline void GrahamScanConvexHull2D(btAlignedObjectArray<GrahamVector3>& originalPoints, btAlignedObjectArray<GrahamVector3>& hull, const btVector3& normalAxis) { btVector3 axis0,axis1; btPlaneSpace1(normalAxis,axis0,axis1); if (originalPoints.size()<=1) { for (int i=0;i<originalPoints.size();i++) hull.push_back(originalPoints[0]); return; } //step1 : find anchor point with smallest projection on axis0 and move it to first location for (int i=0;i<originalPoints.size();i++) { // const btVector3& left = originalPoints[i]; // const btVector3& right = originalPoints[0]; btScalar projL = originalPoints[i].dot(axis0); btScalar projR = originalPoints[0].dot(axis0); if (projL < projR) { originalPoints.swap(0,i); } } //also precompute angles originalPoints[0].m_angle = -1e30f; for (int i=1;i<originalPoints.size();i++) { btVector3 ar = originalPoints[i]-originalPoints[0]; btScalar ar1 = axis1.dot(ar); btScalar ar0 = axis0.dot(ar); if( ar1*ar1+ar0*ar0 < FLT_EPSILON ) { originalPoints[i].m_angle = 0.0f; } else { originalPoints[i].m_angle = btAtan2Fast(ar1, ar0); } } //step 2: sort all points, based on 'angle' with this anchor btAngleCompareFunc comp(originalPoints[0]); originalPoints.quickSortInternal(comp,1,originalPoints.size()-1); int i; for (i = 0; i<2; i++) hull.push_back(originalPoints[i]); //step 3: keep all 'convex' points and discard concave points (using back tracking) for (; i != originalPoints.size(); i++) { bool isConvex = false; while (!isConvex&& hull.size()>1) { btVector3& a = hull[hull.size()-2]; btVector3& b = hull[hull.size()-1]; isConvex = btCross(a-b,a-originalPoints[i]).dot(normalAxis)> 0; if (!isConvex) hull.pop_back(); else hull.push_back(originalPoints[i]); } if( hull.size() == 1 ) { hull.push_back( originalPoints[i] ); } } } #endif //GRAHAM_SCAN_2D_CONVEX_HULL_H
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/contacts/ContactEdge.java
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ package org.jbox2d.dynamics.contacts; import org.jbox2d.dynamics.Body; /** A contact edge is used to connect bodies and contacts together in a contact graph where each body is a node and each contact * is an edge. A contact edge belongs to a doubly linked list maintained in each attached body. Each contact has two contact * nodes, one for each attached body. * * @author daniel */ public class ContactEdge { /** provides quick access to the other body attached. */ public Body other = null; /** the contact */ public Contact contact = null; /** the previous contact edge in the body's contact list */ public ContactEdge prev = null; /** the next contact edge in the body's contact list */ public ContactEdge next = null; }
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ package org.jbox2d.dynamics.contacts; import org.jbox2d.dynamics.Body; /** A contact edge is used to connect bodies and contacts together in a contact graph where each body is a node and each contact * is an edge. A contact edge belongs to a doubly linked list maintained in each attached body. Each contact has two contact * nodes, one for each attached body. * * @author daniel */ public class ContactEdge { /** provides quick access to the other body attached. */ public Body other = null; /** the contact */ public Contact contact = null; /** the previous contact edge in the body's contact list */ public ContactEdge prev = null; /** the next contact edge in the body's contact list */ public ContactEdge next = null; }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests/src/com/badlogic/gdx/tests/TiledMapObjectPropertyTest.java
package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.maps.MapObject; import com.badlogic.gdx.maps.MapObjects; import com.badlogic.gdx.maps.MapProperties; import com.badlogic.gdx.maps.objects.RectangleMapObject; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.maps.tiled.TiledMapRenderer; import com.badlogic.gdx.maps.tiled.TmxMapLoader; import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.tests.utils.OrthoCamController; import com.badlogic.gdx.utils.StringBuilder; import com.badlogic.gdx.utils.*; import java.util.Iterator; public class TiledMapObjectPropertyTest extends GdxTest { private TiledMap map; private SpriteBatch batch; private ShapeRenderer shapeRenderer; private OrthographicCamera camera; private TiledMapRenderer mapRenderer; private Array<MapObject> objects; private boolean error; @Override public void create () { try { TmxMapLoader loader = new TmxMapLoader(); // run multiple times to ensure reloading map works correctly for (int i = 0; i < 3; i++) { Gdx.app.log("-------------------------------------", "Running test " + (i + 1) + "/3\n"); StringBuilder builder = new StringBuilder(); builder.append("Expected results:\n").append("- Object with id 1 should have \"object\" props:\n") .append("\t- Points_To_ID_1 = id: 1\n").append("\t- Points_To_ID_2 = id: 2\n") .append("\t- Points_To_ID_5 = id: 5\n").append("- Object with id 2 should have \"object\" props:\n") .append("\t- Points_To_ID_3 = id: 3\n").append("\t- Points_To_ID_4 = id: 4\n") .append("- Object with id 3 should have \"object\" props:\n").append("\t- Points_To_ID_2 = id: 2\n") .append("- Object with id 4 should have \"object\" props:\n").append("\t- Points_To_ID_1 = id: 1\n") .append("- Objects with id's 5 and 6 should have \"object\" props:\n").append("\t- Placeholder = 0\n"); Gdx.app.log("TiledMapObjectPropertyTest", builder.toString()); float w = Gdx.graphics.getWidth(); float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(); camera.setToOrtho(false, (w / h) * 512, 512); camera.zoom = .5f; camera.update(); OrthoCamController cameraController = new OrthoCamController(camera); Gdx.input.setInputProcessor(cameraController); map = loader.load("data/maps/tiled-objects/test-object-properties.tmx"); batch = new SpriteBatch(); shapeRenderer = new ShapeRenderer(); mapRenderer = new OrthogonalTiledMapRenderer(map); MapObjects objects1 = map.getLayers().get("Objects 1").getObjects(); MapObjects objects2 = map.getLayers().get("Objects 2").getObjects(); objects = new Array<>(); for (MapObject object : objects1) { objects.add(object); } for (MapObject object : objects2) { objects.add(object); } IntMap<MapObject> idToObject = loader.getIdToObject(); builder.clear(); builder.append("\nidToObject: {"); for (IntMap.Entry<MapObject> entry : idToObject) { builder.append("\n\t").append(entry.key).append(" -> ").append(entry.value); } builder.append("\n}\n"); Gdx.app.log("TiledMapObjectPropertyTest", builder.toString()); for (MapObject object1 : objects) { int id = object1.getProperties().get("id", Integer.class); MapObject object2 = idToObject.get(id); if (object1 != object2) { throw new RuntimeException( "Error! Object with id " + id + " " + "is not the same object as the one in the idToObject map!"); } MapProperties props = object1.getProperties(); switch (id) { case 1: test(props, 2, idToObject); test(props, 5, idToObject); test(props, 1, idToObject); break; case 2: test(props, 3, idToObject); test(props, 4, idToObject); break; case 3: test(props, 2, idToObject); break; case 4: test(props, 1, idToObject); break; case 5: case 6: Iterator<String> propKeysIterator = props.getKeys(); ObjectSet<String> propKeys = new ObjectSet<>(); while (propKeysIterator.hasNext()) { propKeys.add(propKeysIterator.next()); } if (propKeys.size != 6) { throw new RuntimeException("Object with id " + id + " should " + "have six keys " + "but has " + propKeys); } } } builder.clear(); builder.append("Actual results:\n"); for (IntMap.Entry<MapObject> entry : idToObject.entries()) { int id = entry.key; MapProperties props = entry.value.getProperties(); builder.append("- Object with id ").append(id).append(" has \"object\" props:\n"); Iterator<String> propKeysIterator = props.getKeys(); Iterator<Object> propValuesIterator = props.getValues(); while (propKeysIterator.hasNext() && propValuesIterator.hasNext()) { Object value = propValuesIterator.next(); String key = propKeysIterator.next(); if (!key.contains("Points_To_ID_") && !key.contains("Placeholder")) { continue; } if (value instanceof MapObject) { MapObject object = (MapObject)value; int objectId = object.getProperties().get("id", Integer.class); value = "id: " + objectId + ", object: " + object; } builder.append("\t\t").append(key).append(" -> ").append(value).append("\n"); } } Gdx.app.log("TiledMapObjectPropertyTest", builder.toString()); } } catch (Exception e) { Gdx.app.error("TiledMapObjectPropertyTest", "Failed to run test!", e); e.printStackTrace(); error = true; } } @Override public void render () { if (error) { Gdx.app.error("TiledMapObjectPropertyTest", "Failed to run test!"); Gdx.app.exit(); } ScreenUtils.clear(0.55f, 0.55f, 0.55f, 1f); camera.update(); mapRenderer.setView(camera); mapRenderer.render(); shapeRenderer.setProjectionMatrix(camera.combined); batch.setProjectionMatrix(camera.combined); shapeRenderer.setColor(Color.BLUE); Gdx.gl20.glLineWidth(2); for (MapObject object : objects) { if (!object.isVisible()) continue; if (object instanceof RectangleMapObject) { shapeRenderer.begin(ShapeRenderer.ShapeType.Filled); Rectangle rectangle = ((RectangleMapObject)object).getRectangle(); shapeRenderer.rect(rectangle.x, rectangle.y, rectangle.width, rectangle.height); shapeRenderer.end(); } } } @Override public void dispose () { map.dispose(); shapeRenderer.dispose(); } private void test (MapProperties props, int idToObjProp1, IntMap<MapObject> idToObjectMap) { String key = "Points_To_ID_" + idToObjProp1; if (!props.containsKey(key)) { throw new GdxRuntimeException("Missing property: " + key); } MapObject other1 = idToObjectMap.get(idToObjProp1); MapObject other2 = props.get(key, MapObject.class); if (other1 != other2) { throw new GdxRuntimeException("Property " + key + " does not point to the correct object"); } } }
package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.maps.MapObject; import com.badlogic.gdx.maps.MapObjects; import com.badlogic.gdx.maps.MapProperties; import com.badlogic.gdx.maps.objects.RectangleMapObject; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.maps.tiled.TiledMapRenderer; import com.badlogic.gdx.maps.tiled.TmxMapLoader; import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.tests.utils.OrthoCamController; import com.badlogic.gdx.utils.StringBuilder; import com.badlogic.gdx.utils.*; import java.util.Iterator; public class TiledMapObjectPropertyTest extends GdxTest { private TiledMap map; private SpriteBatch batch; private ShapeRenderer shapeRenderer; private OrthographicCamera camera; private TiledMapRenderer mapRenderer; private Array<MapObject> objects; private boolean error; @Override public void create () { try { TmxMapLoader loader = new TmxMapLoader(); // run multiple times to ensure reloading map works correctly for (int i = 0; i < 3; i++) { Gdx.app.log("-------------------------------------", "Running test " + (i + 1) + "/3\n"); StringBuilder builder = new StringBuilder(); builder.append("Expected results:\n").append("- Object with id 1 should have \"object\" props:\n") .append("\t- Points_To_ID_1 = id: 1\n").append("\t- Points_To_ID_2 = id: 2\n") .append("\t- Points_To_ID_5 = id: 5\n").append("- Object with id 2 should have \"object\" props:\n") .append("\t- Points_To_ID_3 = id: 3\n").append("\t- Points_To_ID_4 = id: 4\n") .append("- Object with id 3 should have \"object\" props:\n").append("\t- Points_To_ID_2 = id: 2\n") .append("- Object with id 4 should have \"object\" props:\n").append("\t- Points_To_ID_1 = id: 1\n") .append("- Objects with id's 5 and 6 should have \"object\" props:\n").append("\t- Placeholder = 0\n"); Gdx.app.log("TiledMapObjectPropertyTest", builder.toString()); float w = Gdx.graphics.getWidth(); float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(); camera.setToOrtho(false, (w / h) * 512, 512); camera.zoom = .5f; camera.update(); OrthoCamController cameraController = new OrthoCamController(camera); Gdx.input.setInputProcessor(cameraController); map = loader.load("data/maps/tiled-objects/test-object-properties.tmx"); batch = new SpriteBatch(); shapeRenderer = new ShapeRenderer(); mapRenderer = new OrthogonalTiledMapRenderer(map); MapObjects objects1 = map.getLayers().get("Objects 1").getObjects(); MapObjects objects2 = map.getLayers().get("Objects 2").getObjects(); objects = new Array<>(); for (MapObject object : objects1) { objects.add(object); } for (MapObject object : objects2) { objects.add(object); } IntMap<MapObject> idToObject = loader.getIdToObject(); builder.clear(); builder.append("\nidToObject: {"); for (IntMap.Entry<MapObject> entry : idToObject) { builder.append("\n\t").append(entry.key).append(" -> ").append(entry.value); } builder.append("\n}\n"); Gdx.app.log("TiledMapObjectPropertyTest", builder.toString()); for (MapObject object1 : objects) { int id = object1.getProperties().get("id", Integer.class); MapObject object2 = idToObject.get(id); if (object1 != object2) { throw new RuntimeException( "Error! Object with id " + id + " " + "is not the same object as the one in the idToObject map!"); } MapProperties props = object1.getProperties(); switch (id) { case 1: test(props, 2, idToObject); test(props, 5, idToObject); test(props, 1, idToObject); break; case 2: test(props, 3, idToObject); test(props, 4, idToObject); break; case 3: test(props, 2, idToObject); break; case 4: test(props, 1, idToObject); break; case 5: case 6: Iterator<String> propKeysIterator = props.getKeys(); ObjectSet<String> propKeys = new ObjectSet<>(); while (propKeysIterator.hasNext()) { propKeys.add(propKeysIterator.next()); } if (propKeys.size != 6) { throw new RuntimeException("Object with id " + id + " should " + "have six keys " + "but has " + propKeys); } } } builder.clear(); builder.append("Actual results:\n"); for (IntMap.Entry<MapObject> entry : idToObject.entries()) { int id = entry.key; MapProperties props = entry.value.getProperties(); builder.append("- Object with id ").append(id).append(" has \"object\" props:\n"); Iterator<String> propKeysIterator = props.getKeys(); Iterator<Object> propValuesIterator = props.getValues(); while (propKeysIterator.hasNext() && propValuesIterator.hasNext()) { Object value = propValuesIterator.next(); String key = propKeysIterator.next(); if (!key.contains("Points_To_ID_") && !key.contains("Placeholder")) { continue; } if (value instanceof MapObject) { MapObject object = (MapObject)value; int objectId = object.getProperties().get("id", Integer.class); value = "id: " + objectId + ", object: " + object; } builder.append("\t\t").append(key).append(" -> ").append(value).append("\n"); } } Gdx.app.log("TiledMapObjectPropertyTest", builder.toString()); } } catch (Exception e) { Gdx.app.error("TiledMapObjectPropertyTest", "Failed to run test!", e); e.printStackTrace(); error = true; } } @Override public void render () { if (error) { Gdx.app.error("TiledMapObjectPropertyTest", "Failed to run test!"); Gdx.app.exit(); } ScreenUtils.clear(0.55f, 0.55f, 0.55f, 1f); camera.update(); mapRenderer.setView(camera); mapRenderer.render(); shapeRenderer.setProjectionMatrix(camera.combined); batch.setProjectionMatrix(camera.combined); shapeRenderer.setColor(Color.BLUE); Gdx.gl20.glLineWidth(2); for (MapObject object : objects) { if (!object.isVisible()) continue; if (object instanceof RectangleMapObject) { shapeRenderer.begin(ShapeRenderer.ShapeType.Filled); Rectangle rectangle = ((RectangleMapObject)object).getRectangle(); shapeRenderer.rect(rectangle.x, rectangle.y, rectangle.width, rectangle.height); shapeRenderer.end(); } } } @Override public void dispose () { map.dispose(); shapeRenderer.dispose(); } private void test (MapProperties props, int idToObjProp1, IntMap<MapObject> idToObjectMap) { String key = "Points_To_ID_" + idToObjProp1; if (!props.containsKey(key)) { throw new GdxRuntimeException("Missing property: " + key); } MapObject other1 = idToObjectMap.get(idToObjProp1); MapObject other2 = props.get(key, MapObject.class); if (other1 != other2) { throw new GdxRuntimeException("Property " + key + " does not point to the correct object"); } } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./.github/workflows/build-pullrequest.yml
name: Build pull request on: pull_request: branches: [ master ] permissions: contents: read jobs: build-java: if: "!contains(github.event.head_commit.message, 'ci skip')" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: fetch-depth: 0 submodules: 'recursive' - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: 'zulu' java-version: '17' - name: Setup Gradle uses: gradle/gradle-build-action@v2 - name: Build & test Java code run: | ./gradlew fetchNatives ./gradlew build
name: Build pull request on: pull_request: branches: [ master ] permissions: contents: read jobs: build-java: if: "!contains(github.event.head_commit.message, 'ci skip')" runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: fetch-depth: 0 submodules: 'recursive' - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: 'zulu' java-version: '17' - name: Setup Gradle uses: gradle/gradle-build-action@v2 - name: Build & test Java code run: | ./gradlew fetchNatives ./gradlew build
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests-android/assets/data/stone2.png
PNG  IHDRL\ IDATx<דXv BkõБZgVuWt9;Җ\y?mqw6咬UYYU)"#"CxZ}Y^.}]-KrA]zuAG<˜S`YT,,"^Ue,09@föRSh{k7?)r1zO7wpnWY^4z`n'~`0X׏=$,GTU]VWU Ee,8?a I)cYaF_s>}͛ttY0X(aUUUU]Q9$A0MR*yEQ?Kfj5$g>+(l}ttJ(/^dYj[Ag_}!b(@ɲh( E!pR0u"9,B4}tԨUy" RN 47M IH.K:N0[gˤ\u4y8Id2m6[6DbQv777G(F?LiʲZA! `Zڦ v틋8G bɲ(0$I(뺞繮k[rplX94 JE])dޑ,].%ٞƢ#u^VˍvZ <bt6%I<})yڬH Ij]-Wwmv"[t:N+-תVj 8>tMF,F8"ih:ej̋ ' l:j60H⨤v!A<8N$nT,xgY,M&I,~?2I={2L",04q@ٙ$IhV*l&DqYFA{^Qqbl:UDi1AP*$wӳO\^]Y+ugsͫ7,_.șGl:9==}Ǐ~ΰԂ,ϔ rз<͐,X>OI?}%8߿n(Yzr|R)UWUnF.W`8Dqz<lZF$]I2#$Nfe޿P d:qժ!Hi6͍mu'I~0I<hs`ƽ{4MKtooꊦiq(F "H$YY1CS0M-Ӱt]%e+$ hf=ҌDr8@p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ts,Z<jk+2T Β4}<cqqEzfs>3)+Ȳ$E,$i^I縢i،X$ ]Ӵ)p #Ɋ~fws`XjNVzYS \ix>cnNfwĞe-x%٨|o{{0ͭmQtD8rY cnr7yFaT(85ݨ*ZӪ=x@k4wr9χiYܹy,Ees,&JnFQ4pYVZp^yAʲ,K+K\E0 ),I%E12QX$Qq0HQuIVY x(] dUXUUAf4l.hz:͗ iiY5 ,j4$9s{wuxjٺ̳45a*ƲLM'IEg`# CQ=4BSUD(|7ȳ< u߿;o~8a2ݳ,bE9/ӳd~QfMM7FgnoBe1 n$Éy/a!!@XUU'eYٖeRJc7LYVV'"rȋReöiq^ppp8+aEQzc>e) afj4[!,Ӭ7eE8K.XUU^P X3YQ|)UV#HdXFVRUs<oX&b<ڭ5qi6$q S\^_,N^o0 $S A|7ٌdg{' C\`c4 Z-BYz֟i;hZqIf3۲k5[Ӵ!eY*$UTVҔp8(̒8ӪIQ^fcÏ>_Ӵ$NK<C7V[Q+fXtUuV8 ]ut<6, ! dXDu]7%Y)1j$ͣu\ }R28QEy<ONN:|1sGtnufӅ NV4Aǧj_^^ XDWղ(pF PTE(˲86MJ5ΠBziZe@gY4E),Rؖ=G^r5E,`iQbX$ꢤȊ &$+r Ӏ?\%XY \hnwxY qaBO]Qww!"˼ 2 a"/HUq$ˎ=:>8 Y+Pd. O&Eӳ}Y.//߿iMK<[y(V+ѩeے$\|ۮQwowk0 ,Z4M}+UU[z$ǵZ-˲8[EUiZ9qr`]w677ߟ:qiDqqU,ϊiRҐ_|bZFFeb'֦i% ^oN(R^`vvKj:{gox0 t:͎:˥(r~nY^Y2MRaknkM0 EQY^gQIf,~;[,?:9:z䉩E]EAZ:YUbs(!,EQeY^qAU@Ӛi*b'YB(=|i3s\WR zEQq  )M21o7UIENDB`
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/linearmath/com/badlogic/gdx/physics/bullet/linearmath/SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.linearmath; public class SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t { private transient long swigCPtr; protected SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t (long cPtr, @SuppressWarnings("unused") boolean futureUse) { swigCPtr = cPtr; } protected SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t () { swigCPtr = 0; } protected static long getCPtr (SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.linearmath; public class SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t { private transient long swigCPtr; protected SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t (long cPtr, @SuppressWarnings("unused") boolean futureUse) { swigCPtr = cPtr; } protected SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t () { swigCPtr = 0; } protected static long getCPtr (SWIGTYPE_p_btAlignedObjectArrayT_btCollisionObjectDoubleData_p_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglGL30.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.backends.lwjgl; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.DoubleBuffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.nio.LongBuffer; import java.nio.ShortBuffer; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; import org.lwjgl.opengl.GL15; import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL21; import org.lwjgl.opengl.GL30; import org.lwjgl.opengl.GL31; import org.lwjgl.opengl.GL32; import org.lwjgl.opengl.GL33; import org.lwjgl.opengl.GL40; import org.lwjgl.opengl.GL41; import org.lwjgl.opengl.GL43; import com.badlogic.gdx.utils.GdxRuntimeException; class LwjglGL30 extends LwjglGL20 implements com.badlogic.gdx.graphics.GL30 { @Override public void glReadBuffer (int mode) { GL11.glReadBuffer(mode); } @Override public void glDrawRangeElements (int mode, int start, int end, int count, int type, Buffer indices) { if (indices instanceof ByteBuffer) GL12.glDrawRangeElements(mode, start, end, (ByteBuffer)indices); else if (indices instanceof ShortBuffer) GL12.glDrawRangeElements(mode, start, end, (ShortBuffer)indices); else if (indices instanceof IntBuffer) GL12.glDrawRangeElements(mode, start, end, (IntBuffer)indices); else throw new GdxRuntimeException("indices must be byte, short or int buffer"); } @Override public void glDrawRangeElements (int mode, int start, int end, int count, int type, int offset) { GL12.glDrawRangeElements(mode, start, end, count, type, offset); } @Override public void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, int offset) { GL11.glTexImage2D(target, level, internalformat, width, height, border, format, type, offset); } @Override public void glTexImage3D (int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, Buffer pixels) { if (pixels == null) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (ByteBuffer)null); else if (pixels instanceof ByteBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (ByteBuffer)pixels); else if (pixels instanceof ShortBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (ShortBuffer)pixels); else if (pixels instanceof IntBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (IntBuffer)pixels); else if (pixels instanceof FloatBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (FloatBuffer)pixels); else if (pixels instanceof DoubleBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (DoubleBuffer)pixels); else throw new GdxRuntimeException("Can't use " + pixels.getClass().getName() + " with this method. Use ByteBuffer, ShortBuffer, IntBuffer, FloatBuffer or DoubleBuffer instead. Blame LWJGL"); } @Override public void glTexImage3D (int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, int offset) { GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, offset); } @Override public void glTexSubImage2D (int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int offset) { GL11.glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, offset); } @Override public void glTexSubImage3D (int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels) { if (pixels instanceof ByteBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (ByteBuffer)pixels); else if (pixels instanceof ShortBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (ShortBuffer)pixels); else if (pixels instanceof IntBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (IntBuffer)pixels); else if (pixels instanceof FloatBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (FloatBuffer)pixels); else if (pixels instanceof DoubleBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (DoubleBuffer)pixels); else throw new GdxRuntimeException("Can't use " + pixels.getClass().getName() + " with this method. Use ByteBuffer, ShortBuffer, IntBuffer, FloatBuffer or DoubleBuffer instead. Blame LWJGL"); } @Override public void glTexSubImage3D (int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int offset) { GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, offset); } @Override public void glCopyTexSubImage3D (int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { GL12.glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); } @Override public void glGenQueries (int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { ids[i] = GL15.glGenQueries(); } } @Override public void glGenQueries (int n, IntBuffer ids) { for (int i = 0; i < n; i++) { ids.put(GL15.glGenQueries()); } } @Override public void glDeleteQueries (int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { GL15.glDeleteQueries(ids[i]); } } @Override public void glDeleteQueries (int n, IntBuffer ids) { for (int i = 0; i < n; i++) { GL15.glDeleteQueries(ids.get()); } } @Override public boolean glIsQuery (int id) { return GL15.glIsQuery(id); } @Override public void glBeginQuery (int target, int id) { GL15.glBeginQuery(target, id); } @Override public void glEndQuery (int target) { GL15.glEndQuery(target); } @Override public void glGetQueryiv (int target, int pname, IntBuffer params) { GL15.glGetQuery(target, pname, params); } @Override public void glGetQueryObjectuiv (int id, int pname, IntBuffer params) { GL15.glGetQueryObjectu(id, pname, params); } @Override public boolean glUnmapBuffer (int target) { return GL15.glUnmapBuffer(target); } @Override public Buffer glGetBufferPointerv (int target, int pname) { return GL15.glGetBufferPointer(target, pname); } @Override public void glDrawBuffers (int n, IntBuffer bufs) { int limit = bufs.limit(); ((Buffer)bufs).limit(n); GL20.glDrawBuffers(bufs); ((Buffer)bufs).limit(limit); } @Override public void glUniformMatrix2x3fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix2x3(location, transpose, value); } @Override public void glUniformMatrix3x2fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix3x2(location, transpose, value); } @Override public void glUniformMatrix2x4fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix2x4(location, transpose, value); } @Override public void glUniformMatrix4x2fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix4x2(location, transpose, value); } @Override public void glUniformMatrix3x4fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix3x4(location, transpose, value); } @Override public void glUniformMatrix4x3fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix4x3(location, transpose, value); } @Override public void glBlitFramebuffer (int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { GL30.glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); } @Override public void glBindFramebuffer (int target, int framebuffer) { GL30.glBindFramebuffer(target, framebuffer); } @Override public void glBindRenderbuffer (int target, int renderbuffer) { GL30.glBindRenderbuffer(target, renderbuffer); } @Override public int glCheckFramebufferStatus (int target) { return GL30.glCheckFramebufferStatus(target); } @Override public void glDeleteFramebuffers (int n, IntBuffer framebuffers) { GL30.glDeleteFramebuffers(framebuffers); } @Override public void glDeleteFramebuffer (int framebuffer) { GL30.glDeleteFramebuffers(framebuffer); } @Override public void glDeleteRenderbuffers (int n, IntBuffer renderbuffers) { GL30.glDeleteRenderbuffers(renderbuffers); } @Override public void glDeleteRenderbuffer (int renderbuffer) { GL30.glDeleteRenderbuffers(renderbuffer); } @Override public void glGenerateMipmap (int target) { GL30.glGenerateMipmap(target); } @Override public void glGenFramebuffers (int n, IntBuffer framebuffers) { GL30.glGenFramebuffers(framebuffers); } @Override public int glGenFramebuffer () { return GL30.glGenFramebuffers(); } @Override public void glGenRenderbuffers (int n, IntBuffer renderbuffers) { GL30.glGenRenderbuffers(renderbuffers); } @Override public int glGenRenderbuffer () { return GL30.glGenRenderbuffers(); } @Override public void glGetRenderbufferParameteriv (int target, int pname, IntBuffer params) { GL30.glGetRenderbufferParameter(target, pname, params); } @Override public boolean glIsFramebuffer (int framebuffer) { return GL30.glIsFramebuffer(framebuffer); } @Override public boolean glIsRenderbuffer (int renderbuffer) { return GL30.glIsRenderbuffer(renderbuffer); } @Override public void glRenderbufferStorage (int target, int internalformat, int width, int height) { GL30.glRenderbufferStorage(target, internalformat, width, height); } @Override public void glRenderbufferStorageMultisample (int target, int samples, int internalformat, int width, int height) { GL30.glRenderbufferStorageMultisample(target, samples, internalformat, width, height); } @Override public void glFramebufferTexture2D (int target, int attachment, int textarget, int texture, int level) { GL30.glFramebufferTexture2D(target, attachment, textarget, texture, level); } @Override public void glFramebufferRenderbuffer (int target, int attachment, int renderbuffertarget, int renderbuffer) { GL30.glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer); } @Override public void glFramebufferTextureLayer (int target, int attachment, int texture, int level, int layer) { GL30.glFramebufferTextureLayer(target, attachment, texture, level, layer); } @Override public java.nio.Buffer glMapBufferRange (int target, int offset, int length, int access) { return GL30.glMapBufferRange(target, offset, length, access, null); } @Override public void glFlushMappedBufferRange (int target, int offset, int length) { GL30.glFlushMappedBufferRange(target, offset, length); } @Override public void glBindVertexArray (int array) { GL30.glBindVertexArray(array); } @Override public void glDeleteVertexArrays (int n, int[] arrays, int offset) { for (int i = offset; i < offset + n; i++) { GL30.glDeleteVertexArrays(arrays[i]); } } @Override public void glDeleteVertexArrays (int n, IntBuffer arrays) { GL30.glDeleteVertexArrays(arrays); } @Override public void glGenVertexArrays (int n, int[] arrays, int offset) { for (int i = offset; i < offset + n; i++) { arrays[i] = GL30.glGenVertexArrays(); } } @Override public void glGenVertexArrays (int n, IntBuffer arrays) { GL30.glGenVertexArrays(arrays); } @Override public boolean glIsVertexArray (int array) { return GL30.glIsVertexArray(array); } @Override public void glBeginTransformFeedback (int primitiveMode) { GL30.glBeginTransformFeedback(primitiveMode); } @Override public void glEndTransformFeedback () { GL30.glEndTransformFeedback(); } @Override public void glBindBufferRange (int target, int index, int buffer, int offset, int size) { GL30.glBindBufferRange(target, index, buffer, offset, size); } @Override public void glBindBufferBase (int target, int index, int buffer) { GL30.glBindBufferBase(target, index, buffer); } @Override public void glTransformFeedbackVaryings (int program, String[] varyings, int bufferMode) { GL30.glTransformFeedbackVaryings(program, varyings, bufferMode); } @Override public void glVertexAttribIPointer (int index, int size, int type, int stride, int offset) { GL30.glVertexAttribIPointer(index, size, type, stride, offset); } @Override public void glGetVertexAttribIiv (int index, int pname, IntBuffer params) { GL30.glGetVertexAttribI(index, pname, params); } @Override public void glGetVertexAttribIuiv (int index, int pname, IntBuffer params) { GL30.glGetVertexAttribIu(index, pname, params); } @Override public void glVertexAttribI4i (int index, int x, int y, int z, int w) { GL30.glVertexAttribI4i(index, x, y, z, w); } @Override public void glVertexAttribI4ui (int index, int x, int y, int z, int w) { GL30.glVertexAttribI4ui(index, x, y, z, w); } @Override public void glGetUniformuiv (int program, int location, IntBuffer params) { GL30.glGetUniformu(program, location, params); } @Override public int glGetFragDataLocation (int program, String name) { return GL30.glGetFragDataLocation(program, name); } @Override public void glUniform1uiv (int location, int count, IntBuffer value) { GL30.glUniform1u(location, value); } @Override public void glUniform3uiv (int location, int count, IntBuffer value) { GL30.glUniform3u(location, value); } @Override public void glUniform4uiv (int location, int count, IntBuffer value) { GL30.glUniform4u(location, value); } @Override public void glClearBufferiv (int buffer, int drawbuffer, IntBuffer value) { GL30.glClearBuffer(buffer, drawbuffer, value); } @Override public void glClearBufferuiv (int buffer, int drawbuffer, IntBuffer value) { GL30.glClearBufferu(buffer, drawbuffer, value); } @Override public void glClearBufferfv (int buffer, int drawbuffer, FloatBuffer value) { GL30.glClearBuffer(buffer, drawbuffer, value); } @Override public void glClearBufferfi (int buffer, int drawbuffer, float depth, int stencil) { GL30.glClearBufferfi(buffer, drawbuffer, depth, stencil); } @Override public String glGetStringi (int name, int index) { return GL30.glGetStringi(name, index); } @Override public void glCopyBufferSubData (int readTarget, int writeTarget, int readOffset, int writeOffset, int size) { GL31.glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); } @Override public void glGetUniformIndices (int program, String[] uniformNames, IntBuffer uniformIndices) { GL31.glGetUniformIndices(program, uniformNames, uniformIndices); } @Override public void glGetActiveUniformsiv (int program, int uniformCount, IntBuffer uniformIndices, int pname, IntBuffer params) { GL31.glGetActiveUniforms(program, uniformIndices, pname, params); } @Override public int glGetUniformBlockIndex (int program, String uniformBlockName) { return GL31.glGetUniformBlockIndex(program, uniformBlockName); } @Override public void glGetActiveUniformBlockiv (int program, int uniformBlockIndex, int pname, IntBuffer params) { GL31.glGetActiveUniformBlock(program, uniformBlockIndex, pname, params); } @Override public void glGetActiveUniformBlockName (int program, int uniformBlockIndex, Buffer length, Buffer uniformBlockName) { GL31.glGetActiveUniformBlockName(program, uniformBlockIndex, (IntBuffer)length, (ByteBuffer)uniformBlockName); } @Override public String glGetActiveUniformBlockName (int program, int uniformBlockIndex) { return GL31.glGetActiveUniformBlockName(program, uniformBlockIndex, 1024); } @Override public void glUniformBlockBinding (int program, int uniformBlockIndex, int uniformBlockBinding) { GL31.glUniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); } @Override public void glDrawArraysInstanced (int mode, int first, int count, int instanceCount) { GL31.glDrawArraysInstanced(mode, first, count, instanceCount); } @Override public void glDrawElementsInstanced (int mode, int count, int type, int indicesOffset, int instanceCount) { GL31.glDrawElementsInstanced(mode, count, type, indicesOffset, instanceCount); } @Override public void glGetInteger64v (int pname, LongBuffer params) { GL32.glGetInteger64(pname, params); } @Override public void glGetBufferParameteri64v (int target, int pname, LongBuffer params) { params.put(GL32.glGetBufferParameteri64(target, pname)); } @Override public void glGenSamplers (int count, int[] samplers, int offset) { for (int i = offset; i < offset + count; i++) { samplers[i] = GL33.glGenSamplers(); } } @Override public void glGenSamplers (int count, IntBuffer samplers) { GL33.glGenSamplers(samplers); } @Override public void glDeleteSamplers (int count, int[] samplers, int offset) { for (int i = offset; i < offset + count; i++) { GL33.glDeleteSamplers(samplers[i]); } } @Override public void glDeleteSamplers (int count, IntBuffer samplers) { GL33.glDeleteSamplers(samplers); } @Override public boolean glIsSampler (int sampler) { return GL33.glIsSampler(sampler); } @Override public void glBindSampler (int unit, int sampler) { GL33.glBindSampler(unit, sampler); } @Override public void glSamplerParameteri (int sampler, int pname, int param) { GL33.glSamplerParameteri(sampler, pname, param); } @Override public void glSamplerParameteriv (int sampler, int pname, IntBuffer param) { GL33.glSamplerParameter(sampler, pname, param); } @Override public void glSamplerParameterf (int sampler, int pname, float param) { GL33.glSamplerParameterf(sampler, pname, param); } @Override public void glSamplerParameterfv (int sampler, int pname, FloatBuffer param) { GL33.glSamplerParameter(sampler, pname, param); } @Override public void glGetSamplerParameteriv (int sampler, int pname, IntBuffer params) { GL33.glGetSamplerParameterI(sampler, pname, params); } @Override public void glGetSamplerParameterfv (int sampler, int pname, FloatBuffer params) { GL33.glGetSamplerParameter(sampler, pname, params); } @Override public void glVertexAttribDivisor (int index, int divisor) { GL33.glVertexAttribDivisor(index, divisor); } @Override public void glBindTransformFeedback (int target, int id) { GL40.glBindTransformFeedback(target, id); } @Override public void glDeleteTransformFeedbacks (int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { GL40.glDeleteTransformFeedbacks(ids[i]); } } @Override public void glDeleteTransformFeedbacks (int n, IntBuffer ids) { GL40.glDeleteTransformFeedbacks(ids); } @Override public void glGenTransformFeedbacks (int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { ids[i] = GL40.glGenTransformFeedbacks(); } } @Override public void glGenTransformFeedbacks (int n, IntBuffer ids) { GL40.glGenTransformFeedbacks(ids); } @Override public boolean glIsTransformFeedback (int id) { return GL40.glIsTransformFeedback(id); } @Override public void glPauseTransformFeedback () { GL40.glPauseTransformFeedback(); } @Override public void glResumeTransformFeedback () { GL40.glResumeTransformFeedback(); } @Override public void glProgramParameteri (int program, int pname, int value) { GL41.glProgramParameteri(program, pname, value); } @Override public void glInvalidateFramebuffer (int target, int numAttachments, IntBuffer attachments) { GL43.glInvalidateFramebuffer(target, attachments); } @Override public void glInvalidateSubFramebuffer (int target, int numAttachments, IntBuffer attachments, int x, int y, int width, int height) { GL43.glInvalidateSubFramebuffer(target, attachments, x, y, width, height); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.backends.lwjgl; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.DoubleBuffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.nio.LongBuffer; import java.nio.ShortBuffer; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; import org.lwjgl.opengl.GL15; import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL21; import org.lwjgl.opengl.GL30; import org.lwjgl.opengl.GL31; import org.lwjgl.opengl.GL32; import org.lwjgl.opengl.GL33; import org.lwjgl.opengl.GL40; import org.lwjgl.opengl.GL41; import org.lwjgl.opengl.GL43; import com.badlogic.gdx.utils.GdxRuntimeException; class LwjglGL30 extends LwjglGL20 implements com.badlogic.gdx.graphics.GL30 { @Override public void glReadBuffer (int mode) { GL11.glReadBuffer(mode); } @Override public void glDrawRangeElements (int mode, int start, int end, int count, int type, Buffer indices) { if (indices instanceof ByteBuffer) GL12.glDrawRangeElements(mode, start, end, (ByteBuffer)indices); else if (indices instanceof ShortBuffer) GL12.glDrawRangeElements(mode, start, end, (ShortBuffer)indices); else if (indices instanceof IntBuffer) GL12.glDrawRangeElements(mode, start, end, (IntBuffer)indices); else throw new GdxRuntimeException("indices must be byte, short or int buffer"); } @Override public void glDrawRangeElements (int mode, int start, int end, int count, int type, int offset) { GL12.glDrawRangeElements(mode, start, end, count, type, offset); } @Override public void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, int offset) { GL11.glTexImage2D(target, level, internalformat, width, height, border, format, type, offset); } @Override public void glTexImage3D (int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, Buffer pixels) { if (pixels == null) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (ByteBuffer)null); else if (pixels instanceof ByteBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (ByteBuffer)pixels); else if (pixels instanceof ShortBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (ShortBuffer)pixels); else if (pixels instanceof IntBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (IntBuffer)pixels); else if (pixels instanceof FloatBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (FloatBuffer)pixels); else if (pixels instanceof DoubleBuffer) GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (DoubleBuffer)pixels); else throw new GdxRuntimeException("Can't use " + pixels.getClass().getName() + " with this method. Use ByteBuffer, ShortBuffer, IntBuffer, FloatBuffer or DoubleBuffer instead. Blame LWJGL"); } @Override public void glTexImage3D (int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, int offset) { GL12.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, offset); } @Override public void glTexSubImage2D (int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int offset) { GL11.glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, offset); } @Override public void glTexSubImage3D (int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels) { if (pixels instanceof ByteBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (ByteBuffer)pixels); else if (pixels instanceof ShortBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (ShortBuffer)pixels); else if (pixels instanceof IntBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (IntBuffer)pixels); else if (pixels instanceof FloatBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (FloatBuffer)pixels); else if (pixels instanceof DoubleBuffer) GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (DoubleBuffer)pixels); else throw new GdxRuntimeException("Can't use " + pixels.getClass().getName() + " with this method. Use ByteBuffer, ShortBuffer, IntBuffer, FloatBuffer or DoubleBuffer instead. Blame LWJGL"); } @Override public void glTexSubImage3D (int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int offset) { GL12.glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, offset); } @Override public void glCopyTexSubImage3D (int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { GL12.glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); } @Override public void glGenQueries (int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { ids[i] = GL15.glGenQueries(); } } @Override public void glGenQueries (int n, IntBuffer ids) { for (int i = 0; i < n; i++) { ids.put(GL15.glGenQueries()); } } @Override public void glDeleteQueries (int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { GL15.glDeleteQueries(ids[i]); } } @Override public void glDeleteQueries (int n, IntBuffer ids) { for (int i = 0; i < n; i++) { GL15.glDeleteQueries(ids.get()); } } @Override public boolean glIsQuery (int id) { return GL15.glIsQuery(id); } @Override public void glBeginQuery (int target, int id) { GL15.glBeginQuery(target, id); } @Override public void glEndQuery (int target) { GL15.glEndQuery(target); } @Override public void glGetQueryiv (int target, int pname, IntBuffer params) { GL15.glGetQuery(target, pname, params); } @Override public void glGetQueryObjectuiv (int id, int pname, IntBuffer params) { GL15.glGetQueryObjectu(id, pname, params); } @Override public boolean glUnmapBuffer (int target) { return GL15.glUnmapBuffer(target); } @Override public Buffer glGetBufferPointerv (int target, int pname) { return GL15.glGetBufferPointer(target, pname); } @Override public void glDrawBuffers (int n, IntBuffer bufs) { int limit = bufs.limit(); ((Buffer)bufs).limit(n); GL20.glDrawBuffers(bufs); ((Buffer)bufs).limit(limit); } @Override public void glUniformMatrix2x3fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix2x3(location, transpose, value); } @Override public void glUniformMatrix3x2fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix3x2(location, transpose, value); } @Override public void glUniformMatrix2x4fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix2x4(location, transpose, value); } @Override public void glUniformMatrix4x2fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix4x2(location, transpose, value); } @Override public void glUniformMatrix3x4fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix3x4(location, transpose, value); } @Override public void glUniformMatrix4x3fv (int location, int count, boolean transpose, FloatBuffer value) { GL21.glUniformMatrix4x3(location, transpose, value); } @Override public void glBlitFramebuffer (int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { GL30.glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); } @Override public void glBindFramebuffer (int target, int framebuffer) { GL30.glBindFramebuffer(target, framebuffer); } @Override public void glBindRenderbuffer (int target, int renderbuffer) { GL30.glBindRenderbuffer(target, renderbuffer); } @Override public int glCheckFramebufferStatus (int target) { return GL30.glCheckFramebufferStatus(target); } @Override public void glDeleteFramebuffers (int n, IntBuffer framebuffers) { GL30.glDeleteFramebuffers(framebuffers); } @Override public void glDeleteFramebuffer (int framebuffer) { GL30.glDeleteFramebuffers(framebuffer); } @Override public void glDeleteRenderbuffers (int n, IntBuffer renderbuffers) { GL30.glDeleteRenderbuffers(renderbuffers); } @Override public void glDeleteRenderbuffer (int renderbuffer) { GL30.glDeleteRenderbuffers(renderbuffer); } @Override public void glGenerateMipmap (int target) { GL30.glGenerateMipmap(target); } @Override public void glGenFramebuffers (int n, IntBuffer framebuffers) { GL30.glGenFramebuffers(framebuffers); } @Override public int glGenFramebuffer () { return GL30.glGenFramebuffers(); } @Override public void glGenRenderbuffers (int n, IntBuffer renderbuffers) { GL30.glGenRenderbuffers(renderbuffers); } @Override public int glGenRenderbuffer () { return GL30.glGenRenderbuffers(); } @Override public void glGetRenderbufferParameteriv (int target, int pname, IntBuffer params) { GL30.glGetRenderbufferParameter(target, pname, params); } @Override public boolean glIsFramebuffer (int framebuffer) { return GL30.glIsFramebuffer(framebuffer); } @Override public boolean glIsRenderbuffer (int renderbuffer) { return GL30.glIsRenderbuffer(renderbuffer); } @Override public void glRenderbufferStorage (int target, int internalformat, int width, int height) { GL30.glRenderbufferStorage(target, internalformat, width, height); } @Override public void glRenderbufferStorageMultisample (int target, int samples, int internalformat, int width, int height) { GL30.glRenderbufferStorageMultisample(target, samples, internalformat, width, height); } @Override public void glFramebufferTexture2D (int target, int attachment, int textarget, int texture, int level) { GL30.glFramebufferTexture2D(target, attachment, textarget, texture, level); } @Override public void glFramebufferRenderbuffer (int target, int attachment, int renderbuffertarget, int renderbuffer) { GL30.glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer); } @Override public void glFramebufferTextureLayer (int target, int attachment, int texture, int level, int layer) { GL30.glFramebufferTextureLayer(target, attachment, texture, level, layer); } @Override public java.nio.Buffer glMapBufferRange (int target, int offset, int length, int access) { return GL30.glMapBufferRange(target, offset, length, access, null); } @Override public void glFlushMappedBufferRange (int target, int offset, int length) { GL30.glFlushMappedBufferRange(target, offset, length); } @Override public void glBindVertexArray (int array) { GL30.glBindVertexArray(array); } @Override public void glDeleteVertexArrays (int n, int[] arrays, int offset) { for (int i = offset; i < offset + n; i++) { GL30.glDeleteVertexArrays(arrays[i]); } } @Override public void glDeleteVertexArrays (int n, IntBuffer arrays) { GL30.glDeleteVertexArrays(arrays); } @Override public void glGenVertexArrays (int n, int[] arrays, int offset) { for (int i = offset; i < offset + n; i++) { arrays[i] = GL30.glGenVertexArrays(); } } @Override public void glGenVertexArrays (int n, IntBuffer arrays) { GL30.glGenVertexArrays(arrays); } @Override public boolean glIsVertexArray (int array) { return GL30.glIsVertexArray(array); } @Override public void glBeginTransformFeedback (int primitiveMode) { GL30.glBeginTransformFeedback(primitiveMode); } @Override public void glEndTransformFeedback () { GL30.glEndTransformFeedback(); } @Override public void glBindBufferRange (int target, int index, int buffer, int offset, int size) { GL30.glBindBufferRange(target, index, buffer, offset, size); } @Override public void glBindBufferBase (int target, int index, int buffer) { GL30.glBindBufferBase(target, index, buffer); } @Override public void glTransformFeedbackVaryings (int program, String[] varyings, int bufferMode) { GL30.glTransformFeedbackVaryings(program, varyings, bufferMode); } @Override public void glVertexAttribIPointer (int index, int size, int type, int stride, int offset) { GL30.glVertexAttribIPointer(index, size, type, stride, offset); } @Override public void glGetVertexAttribIiv (int index, int pname, IntBuffer params) { GL30.glGetVertexAttribI(index, pname, params); } @Override public void glGetVertexAttribIuiv (int index, int pname, IntBuffer params) { GL30.glGetVertexAttribIu(index, pname, params); } @Override public void glVertexAttribI4i (int index, int x, int y, int z, int w) { GL30.glVertexAttribI4i(index, x, y, z, w); } @Override public void glVertexAttribI4ui (int index, int x, int y, int z, int w) { GL30.glVertexAttribI4ui(index, x, y, z, w); } @Override public void glGetUniformuiv (int program, int location, IntBuffer params) { GL30.glGetUniformu(program, location, params); } @Override public int glGetFragDataLocation (int program, String name) { return GL30.glGetFragDataLocation(program, name); } @Override public void glUniform1uiv (int location, int count, IntBuffer value) { GL30.glUniform1u(location, value); } @Override public void glUniform3uiv (int location, int count, IntBuffer value) { GL30.glUniform3u(location, value); } @Override public void glUniform4uiv (int location, int count, IntBuffer value) { GL30.glUniform4u(location, value); } @Override public void glClearBufferiv (int buffer, int drawbuffer, IntBuffer value) { GL30.glClearBuffer(buffer, drawbuffer, value); } @Override public void glClearBufferuiv (int buffer, int drawbuffer, IntBuffer value) { GL30.glClearBufferu(buffer, drawbuffer, value); } @Override public void glClearBufferfv (int buffer, int drawbuffer, FloatBuffer value) { GL30.glClearBuffer(buffer, drawbuffer, value); } @Override public void glClearBufferfi (int buffer, int drawbuffer, float depth, int stencil) { GL30.glClearBufferfi(buffer, drawbuffer, depth, stencil); } @Override public String glGetStringi (int name, int index) { return GL30.glGetStringi(name, index); } @Override public void glCopyBufferSubData (int readTarget, int writeTarget, int readOffset, int writeOffset, int size) { GL31.glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); } @Override public void glGetUniformIndices (int program, String[] uniformNames, IntBuffer uniformIndices) { GL31.glGetUniformIndices(program, uniformNames, uniformIndices); } @Override public void glGetActiveUniformsiv (int program, int uniformCount, IntBuffer uniformIndices, int pname, IntBuffer params) { GL31.glGetActiveUniforms(program, uniformIndices, pname, params); } @Override public int glGetUniformBlockIndex (int program, String uniformBlockName) { return GL31.glGetUniformBlockIndex(program, uniformBlockName); } @Override public void glGetActiveUniformBlockiv (int program, int uniformBlockIndex, int pname, IntBuffer params) { GL31.glGetActiveUniformBlock(program, uniformBlockIndex, pname, params); } @Override public void glGetActiveUniformBlockName (int program, int uniformBlockIndex, Buffer length, Buffer uniformBlockName) { GL31.glGetActiveUniformBlockName(program, uniformBlockIndex, (IntBuffer)length, (ByteBuffer)uniformBlockName); } @Override public String glGetActiveUniformBlockName (int program, int uniformBlockIndex) { return GL31.glGetActiveUniformBlockName(program, uniformBlockIndex, 1024); } @Override public void glUniformBlockBinding (int program, int uniformBlockIndex, int uniformBlockBinding) { GL31.glUniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); } @Override public void glDrawArraysInstanced (int mode, int first, int count, int instanceCount) { GL31.glDrawArraysInstanced(mode, first, count, instanceCount); } @Override public void glDrawElementsInstanced (int mode, int count, int type, int indicesOffset, int instanceCount) { GL31.glDrawElementsInstanced(mode, count, type, indicesOffset, instanceCount); } @Override public void glGetInteger64v (int pname, LongBuffer params) { GL32.glGetInteger64(pname, params); } @Override public void glGetBufferParameteri64v (int target, int pname, LongBuffer params) { params.put(GL32.glGetBufferParameteri64(target, pname)); } @Override public void glGenSamplers (int count, int[] samplers, int offset) { for (int i = offset; i < offset + count; i++) { samplers[i] = GL33.glGenSamplers(); } } @Override public void glGenSamplers (int count, IntBuffer samplers) { GL33.glGenSamplers(samplers); } @Override public void glDeleteSamplers (int count, int[] samplers, int offset) { for (int i = offset; i < offset + count; i++) { GL33.glDeleteSamplers(samplers[i]); } } @Override public void glDeleteSamplers (int count, IntBuffer samplers) { GL33.glDeleteSamplers(samplers); } @Override public boolean glIsSampler (int sampler) { return GL33.glIsSampler(sampler); } @Override public void glBindSampler (int unit, int sampler) { GL33.glBindSampler(unit, sampler); } @Override public void glSamplerParameteri (int sampler, int pname, int param) { GL33.glSamplerParameteri(sampler, pname, param); } @Override public void glSamplerParameteriv (int sampler, int pname, IntBuffer param) { GL33.glSamplerParameter(sampler, pname, param); } @Override public void glSamplerParameterf (int sampler, int pname, float param) { GL33.glSamplerParameterf(sampler, pname, param); } @Override public void glSamplerParameterfv (int sampler, int pname, FloatBuffer param) { GL33.glSamplerParameter(sampler, pname, param); } @Override public void glGetSamplerParameteriv (int sampler, int pname, IntBuffer params) { GL33.glGetSamplerParameterI(sampler, pname, params); } @Override public void glGetSamplerParameterfv (int sampler, int pname, FloatBuffer params) { GL33.glGetSamplerParameter(sampler, pname, params); } @Override public void glVertexAttribDivisor (int index, int divisor) { GL33.glVertexAttribDivisor(index, divisor); } @Override public void glBindTransformFeedback (int target, int id) { GL40.glBindTransformFeedback(target, id); } @Override public void glDeleteTransformFeedbacks (int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { GL40.glDeleteTransformFeedbacks(ids[i]); } } @Override public void glDeleteTransformFeedbacks (int n, IntBuffer ids) { GL40.glDeleteTransformFeedbacks(ids); } @Override public void glGenTransformFeedbacks (int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { ids[i] = GL40.glGenTransformFeedbacks(); } } @Override public void glGenTransformFeedbacks (int n, IntBuffer ids) { GL40.glGenTransformFeedbacks(ids); } @Override public boolean glIsTransformFeedback (int id) { return GL40.glIsTransformFeedback(id); } @Override public void glPauseTransformFeedback () { GL40.glPauseTransformFeedback(); } @Override public void glResumeTransformFeedback () { GL40.glResumeTransformFeedback(); } @Override public void glProgramParameteri (int program, int pname, int value) { GL41.glProgramParameteri(program, pname, value); } @Override public void glInvalidateFramebuffer (int target, int numAttachments, IntBuffer attachments) { GL43.glInvalidateFramebuffer(target, attachments); } @Override public void glInvalidateSubFramebuffer (int target, int numAttachments, IntBuffer attachments, int x, int y, int width, int height) { GL43.glInvalidateSubFramebuffer(target, attachments, x, y, width, height); } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./tests/gdx-tests-iosrobovm/data/Media.xcassets/AppIcon.appiconset/Contents.json
{ "images" : [ { "size" : "20x20", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "20x20", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "3x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "3x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "3x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "3x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "1x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "1x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "1x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "1x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "83.5x83.5", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "1024x1024", "idiom" : "ios-marketing", "filename" : "[email protected]", "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } }
{ "images" : [ { "size" : "20x20", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "20x20", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "3x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "3x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "3x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "[email protected]", "scale" : "3x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "1x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "1x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "1x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "1x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "83.5x83.5", "idiom" : "ipad", "filename" : "[email protected]", "scale" : "2x" }, { "size" : "1024x1024", "idiom" : "ios-marketing", "filename" : "[email protected]", "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } }
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/swig-src/extras/extras_wrap.h
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #ifndef SWIG_Extras_WRAP_H_ #define SWIG_Extras_WRAP_H_ class SwigDirector_btBulletWorldImporter : public btBulletWorldImporter, public Swig::Director { public: void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); SwigDirector_btBulletWorldImporter(JNIEnv *jenv, btDynamicsWorld *world = 0); virtual ~SwigDirector_btBulletWorldImporter(); virtual void deleteAllData(); virtual void setDynamicsWorldInfo(btVector3 const &gravity, btContactSolverInfo const &solverInfo); virtual btRigidBody *createRigidBody(bool isDynamic, btScalar mass, btTransform const &startTransform, btCollisionShape *shape, char const *bodyName); virtual btCollisionObject *createCollisionObject(btTransform const &startTransform, btCollisionShape *shape, char const *bodyName); virtual btCollisionShape *createPlaneShape(btVector3 const &planeNormal, btScalar planeConstant); virtual btCollisionShape *createBoxShape(btVector3 const &halfExtents); virtual btCollisionShape *createSphereShape(btScalar radius); virtual btCollisionShape *createCapsuleShapeX(btScalar radius, btScalar height); virtual btCollisionShape *createCapsuleShapeY(btScalar radius, btScalar height); virtual btCollisionShape *createCapsuleShapeZ(btScalar radius, btScalar height); virtual btCollisionShape *createCylinderShapeX(btScalar radius, btScalar height); virtual btCollisionShape *createCylinderShapeY(btScalar radius, btScalar height); virtual btCollisionShape *createCylinderShapeZ(btScalar radius, btScalar height); virtual btCollisionShape *createConeShapeX(btScalar radius, btScalar height); virtual btCollisionShape *createConeShapeY(btScalar radius, btScalar height); virtual btCollisionShape *createConeShapeZ(btScalar radius, btScalar height); virtual btTriangleIndexVertexArray *createTriangleMeshContainer(); virtual btBvhTriangleMeshShape *createBvhTriangleMeshShape(btStridingMeshInterface *trimesh, btOptimizedBvh *bvh); virtual btCollisionShape *createConvexTriangleMeshShape(btStridingMeshInterface *trimesh); virtual btGImpactMeshShape *createGimpactShape(btStridingMeshInterface *trimesh); virtual btStridingMeshInterfaceData *createStridingMeshInterfaceData(btStridingMeshInterfaceData *interfaceData); virtual btConvexHullShape *createConvexHullShape(); virtual btCompoundShape *createCompoundShape(); virtual btScaledBvhTriangleMeshShape *createScaledTrangleMeshShape(btBvhTriangleMeshShape *meshShape, btVector3 const &localScalingbtBvhTriangleMeshShape); virtual btTriangleIndexVertexArray *createMeshInterface(btStridingMeshInterfaceData &meshData); virtual btOptimizedBvh *createOptimizedBvh(); virtual btTriangleInfoMap *createTriangleInfoMap(); virtual btPoint2PointConstraint *createPoint2PointConstraint(btRigidBody &rbA, btRigidBody &rbB, btVector3 const &pivotInA, btVector3 const &pivotInB); virtual btPoint2PointConstraint *createPoint2PointConstraint(btRigidBody &rbA, btVector3 const &pivotInA); virtual btHingeConstraint *createHingeConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &rbAFrame, btTransform const &rbBFrame, bool useReferenceFrameA = false); virtual btHingeConstraint *createHingeConstraint(btRigidBody &rbA, btTransform const &rbAFrame, bool useReferenceFrameA = false); virtual btConeTwistConstraint *createConeTwistConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &rbAFrame, btTransform const &rbBFrame); virtual btConeTwistConstraint *createConeTwistConstraint(btRigidBody &rbA, btTransform const &rbAFrame); virtual btGeneric6DofConstraint *createGeneric6DofConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &frameInA, btTransform const &frameInB, bool useLinearReferenceFrameA); virtual btGeneric6DofConstraint *createGeneric6DofConstraint(btRigidBody &rbB, btTransform const &frameInB, bool useLinearReferenceFrameB); virtual btGeneric6DofSpringConstraint *createGeneric6DofSpringConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &frameInA, btTransform const &frameInB, bool useLinearReferenceFrameA); virtual btGeneric6DofSpring2Constraint *createGeneric6DofSpring2Constraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &frameInA, btTransform const &frameInB, int rotateOrder); virtual btSliderConstraint *createSliderConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &frameInA, btTransform const &frameInB, bool useLinearReferenceFrameA); virtual btSliderConstraint *createSliderConstraint(btRigidBody &rbB, btTransform const &frameInB, bool useLinearReferenceFrameA); virtual btGearConstraint *createGearConstraint(btRigidBody &rbA, btRigidBody &rbB, btVector3 const &axisInA, btVector3 const &axisInB, btScalar ratio); virtual bool convertAllObjects(bParse::btBulletFile *file); public: bool swig_overrides(int n) { return (n < 43 ? swig_override[n] : false); } protected: Swig::BoolArray<43> swig_override; }; #endif
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #ifndef SWIG_Extras_WRAP_H_ #define SWIG_Extras_WRAP_H_ class SwigDirector_btBulletWorldImporter : public btBulletWorldImporter, public Swig::Director { public: void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); SwigDirector_btBulletWorldImporter(JNIEnv *jenv, btDynamicsWorld *world = 0); virtual ~SwigDirector_btBulletWorldImporter(); virtual void deleteAllData(); virtual void setDynamicsWorldInfo(btVector3 const &gravity, btContactSolverInfo const &solverInfo); virtual btRigidBody *createRigidBody(bool isDynamic, btScalar mass, btTransform const &startTransform, btCollisionShape *shape, char const *bodyName); virtual btCollisionObject *createCollisionObject(btTransform const &startTransform, btCollisionShape *shape, char const *bodyName); virtual btCollisionShape *createPlaneShape(btVector3 const &planeNormal, btScalar planeConstant); virtual btCollisionShape *createBoxShape(btVector3 const &halfExtents); virtual btCollisionShape *createSphereShape(btScalar radius); virtual btCollisionShape *createCapsuleShapeX(btScalar radius, btScalar height); virtual btCollisionShape *createCapsuleShapeY(btScalar radius, btScalar height); virtual btCollisionShape *createCapsuleShapeZ(btScalar radius, btScalar height); virtual btCollisionShape *createCylinderShapeX(btScalar radius, btScalar height); virtual btCollisionShape *createCylinderShapeY(btScalar radius, btScalar height); virtual btCollisionShape *createCylinderShapeZ(btScalar radius, btScalar height); virtual btCollisionShape *createConeShapeX(btScalar radius, btScalar height); virtual btCollisionShape *createConeShapeY(btScalar radius, btScalar height); virtual btCollisionShape *createConeShapeZ(btScalar radius, btScalar height); virtual btTriangleIndexVertexArray *createTriangleMeshContainer(); virtual btBvhTriangleMeshShape *createBvhTriangleMeshShape(btStridingMeshInterface *trimesh, btOptimizedBvh *bvh); virtual btCollisionShape *createConvexTriangleMeshShape(btStridingMeshInterface *trimesh); virtual btGImpactMeshShape *createGimpactShape(btStridingMeshInterface *trimesh); virtual btStridingMeshInterfaceData *createStridingMeshInterfaceData(btStridingMeshInterfaceData *interfaceData); virtual btConvexHullShape *createConvexHullShape(); virtual btCompoundShape *createCompoundShape(); virtual btScaledBvhTriangleMeshShape *createScaledTrangleMeshShape(btBvhTriangleMeshShape *meshShape, btVector3 const &localScalingbtBvhTriangleMeshShape); virtual btTriangleIndexVertexArray *createMeshInterface(btStridingMeshInterfaceData &meshData); virtual btOptimizedBvh *createOptimizedBvh(); virtual btTriangleInfoMap *createTriangleInfoMap(); virtual btPoint2PointConstraint *createPoint2PointConstraint(btRigidBody &rbA, btRigidBody &rbB, btVector3 const &pivotInA, btVector3 const &pivotInB); virtual btPoint2PointConstraint *createPoint2PointConstraint(btRigidBody &rbA, btVector3 const &pivotInA); virtual btHingeConstraint *createHingeConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &rbAFrame, btTransform const &rbBFrame, bool useReferenceFrameA = false); virtual btHingeConstraint *createHingeConstraint(btRigidBody &rbA, btTransform const &rbAFrame, bool useReferenceFrameA = false); virtual btConeTwistConstraint *createConeTwistConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &rbAFrame, btTransform const &rbBFrame); virtual btConeTwistConstraint *createConeTwistConstraint(btRigidBody &rbA, btTransform const &rbAFrame); virtual btGeneric6DofConstraint *createGeneric6DofConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &frameInA, btTransform const &frameInB, bool useLinearReferenceFrameA); virtual btGeneric6DofConstraint *createGeneric6DofConstraint(btRigidBody &rbB, btTransform const &frameInB, bool useLinearReferenceFrameB); virtual btGeneric6DofSpringConstraint *createGeneric6DofSpringConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &frameInA, btTransform const &frameInB, bool useLinearReferenceFrameA); virtual btGeneric6DofSpring2Constraint *createGeneric6DofSpring2Constraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &frameInA, btTransform const &frameInB, int rotateOrder); virtual btSliderConstraint *createSliderConstraint(btRigidBody &rbA, btRigidBody &rbB, btTransform const &frameInA, btTransform const &frameInB, bool useLinearReferenceFrameA); virtual btSliderConstraint *createSliderConstraint(btRigidBody &rbB, btTransform const &frameInB, bool useLinearReferenceFrameA); virtual btGearConstraint *createGearConstraint(btRigidBody &rbA, btRigidBody &rbB, btVector3 const &axisInA, btVector3 const &axisInB, btScalar ratio); virtual bool convertAllObjects(bParse::btBulletFile *file); public: bool swig_overrides(int n) { return (n < 43 ? swig_override[n] : false); } protected: Swig::BoolArray<43> swig_override; }; #endif
-1
libgdx/libgdx
7,305
Adds status detection for an httpRequest
This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
supermaximus80
"2023-12-22T21:58:24Z"
"2023-12-27T14:37:55Z"
60f074309093046d7fd9dd3c895bba398b415797
2b691f735f4b167c062f8f68186a6d7237d3d855
Adds status detection for an httpRequest. This commit adds the public boolean isHttpRequestPending (HttpRequest httpRequest) method to Gdx.net user interface. It allows end users to detect if an httpRequest is pending or already finished. It helpfull for creating advanced business logic.
./extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/btManifoldResult.h
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #ifndef BT_MANIFOLD_RESULT_H #define BT_MANIFOLD_RESULT_H class btCollisionObject; struct btCollisionObjectWrapper; #include "BulletCollision/NarrowPhaseCollision/btPersistentManifold.h" class btManifoldPoint; #include "BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h" #include "LinearMath/btTransform.h" #include "BulletCollision/CollisionDispatch/btCollisionObjectWrapper.h" #include "BulletCollision/CollisionDispatch/btCollisionObject.h" typedef bool (*ContactAddedCallback)(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1); extern ContactAddedCallback gContactAddedCallback; //#define DEBUG_PART_INDEX 1 ///btManifoldResult is a helper class to manage contact results. class btManifoldResult : public btDiscreteCollisionDetectorInterface::Result { protected: btPersistentManifold* m_manifoldPtr; const btCollisionObjectWrapper* m_body0Wrap; const btCollisionObjectWrapper* m_body1Wrap; int m_partId0; int m_partId1; int m_index0; int m_index1; public: btManifoldResult() : #ifdef DEBUG_PART_INDEX m_partId0(-1), m_partId1(-1), m_index0(-1), m_index1(-1) #endif //DEBUG_PART_INDEX m_closestPointDistanceThreshold(0) { } btManifoldResult(const btCollisionObjectWrapper* body0Wrap,const btCollisionObjectWrapper* body1Wrap); virtual ~btManifoldResult() {}; void setPersistentManifold(btPersistentManifold* manifoldPtr) { m_manifoldPtr = manifoldPtr; } const btPersistentManifold* getPersistentManifold() const { return m_manifoldPtr; } btPersistentManifold* getPersistentManifold() { return m_manifoldPtr; } virtual void setShapeIdentifiersA(int partId0,int index0) { m_partId0=partId0; m_index0=index0; } virtual void setShapeIdentifiersB( int partId1,int index1) { m_partId1=partId1; m_index1=index1; } virtual void addContactPoint(const btVector3& normalOnBInWorld,const btVector3& pointInWorld,btScalar depth); SIMD_FORCE_INLINE void refreshContactPoints() { btAssert(m_manifoldPtr); if (!m_manifoldPtr->getNumContacts()) return; bool isSwapped = m_manifoldPtr->getBody0() != m_body0Wrap->getCollisionObject(); if (isSwapped) { m_manifoldPtr->refreshContactPoints(m_body1Wrap->getCollisionObject()->getWorldTransform(),m_body0Wrap->getCollisionObject()->getWorldTransform()); } else { m_manifoldPtr->refreshContactPoints(m_body0Wrap->getCollisionObject()->getWorldTransform(),m_body1Wrap->getCollisionObject()->getWorldTransform()); } } const btCollisionObjectWrapper* getBody0Wrap() const { return m_body0Wrap; } const btCollisionObjectWrapper* getBody1Wrap() const { return m_body1Wrap; } void setBody0Wrap(const btCollisionObjectWrapper* obj0Wrap) { m_body0Wrap = obj0Wrap; } void setBody1Wrap(const btCollisionObjectWrapper* obj1Wrap) { m_body1Wrap = obj1Wrap; } const btCollisionObject* getBody0Internal() const { return m_body0Wrap->getCollisionObject(); } const btCollisionObject* getBody1Internal() const { return m_body1Wrap->getCollisionObject(); } btScalar m_closestPointDistanceThreshold; /// in the future we can let the user override the methods to combine restitution and friction static btScalar calculateCombinedRestitution(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedFriction(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedRollingFriction(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedSpinningFriction(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedContactDamping(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedContactStiffness(const btCollisionObject* body0,const btCollisionObject* body1); }; #endif //BT_MANIFOLD_RESULT_H
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #ifndef BT_MANIFOLD_RESULT_H #define BT_MANIFOLD_RESULT_H class btCollisionObject; struct btCollisionObjectWrapper; #include "BulletCollision/NarrowPhaseCollision/btPersistentManifold.h" class btManifoldPoint; #include "BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h" #include "LinearMath/btTransform.h" #include "BulletCollision/CollisionDispatch/btCollisionObjectWrapper.h" #include "BulletCollision/CollisionDispatch/btCollisionObject.h" typedef bool (*ContactAddedCallback)(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1); extern ContactAddedCallback gContactAddedCallback; //#define DEBUG_PART_INDEX 1 ///btManifoldResult is a helper class to manage contact results. class btManifoldResult : public btDiscreteCollisionDetectorInterface::Result { protected: btPersistentManifold* m_manifoldPtr; const btCollisionObjectWrapper* m_body0Wrap; const btCollisionObjectWrapper* m_body1Wrap; int m_partId0; int m_partId1; int m_index0; int m_index1; public: btManifoldResult() : #ifdef DEBUG_PART_INDEX m_partId0(-1), m_partId1(-1), m_index0(-1), m_index1(-1) #endif //DEBUG_PART_INDEX m_closestPointDistanceThreshold(0) { } btManifoldResult(const btCollisionObjectWrapper* body0Wrap,const btCollisionObjectWrapper* body1Wrap); virtual ~btManifoldResult() {}; void setPersistentManifold(btPersistentManifold* manifoldPtr) { m_manifoldPtr = manifoldPtr; } const btPersistentManifold* getPersistentManifold() const { return m_manifoldPtr; } btPersistentManifold* getPersistentManifold() { return m_manifoldPtr; } virtual void setShapeIdentifiersA(int partId0,int index0) { m_partId0=partId0; m_index0=index0; } virtual void setShapeIdentifiersB( int partId1,int index1) { m_partId1=partId1; m_index1=index1; } virtual void addContactPoint(const btVector3& normalOnBInWorld,const btVector3& pointInWorld,btScalar depth); SIMD_FORCE_INLINE void refreshContactPoints() { btAssert(m_manifoldPtr); if (!m_manifoldPtr->getNumContacts()) return; bool isSwapped = m_manifoldPtr->getBody0() != m_body0Wrap->getCollisionObject(); if (isSwapped) { m_manifoldPtr->refreshContactPoints(m_body1Wrap->getCollisionObject()->getWorldTransform(),m_body0Wrap->getCollisionObject()->getWorldTransform()); } else { m_manifoldPtr->refreshContactPoints(m_body0Wrap->getCollisionObject()->getWorldTransform(),m_body1Wrap->getCollisionObject()->getWorldTransform()); } } const btCollisionObjectWrapper* getBody0Wrap() const { return m_body0Wrap; } const btCollisionObjectWrapper* getBody1Wrap() const { return m_body1Wrap; } void setBody0Wrap(const btCollisionObjectWrapper* obj0Wrap) { m_body0Wrap = obj0Wrap; } void setBody1Wrap(const btCollisionObjectWrapper* obj1Wrap) { m_body1Wrap = obj1Wrap; } const btCollisionObject* getBody0Internal() const { return m_body0Wrap->getCollisionObject(); } const btCollisionObject* getBody1Internal() const { return m_body1Wrap->getCollisionObject(); } btScalar m_closestPointDistanceThreshold; /// in the future we can let the user override the methods to combine restitution and friction static btScalar calculateCombinedRestitution(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedFriction(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedRollingFriction(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedSpinningFriction(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedContactDamping(const btCollisionObject* body0,const btCollisionObject* body1); static btScalar calculateCombinedContactStiffness(const btCollisionObject* body0,const btCollisionObject* body1); }; #endif //BT_MANIFOLD_RESULT_H
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./CHANGES
[1.12.2-SNAPSHOT] - Fixed GlyphLayout for fixed width glyph offsets at the start and end of lines. [1.12.1] - LWJGL3 Improvement: Audio device is automatically switched if it was changed in the operating system. - Tiled Fix: TiledLayer parallax default values fix - API Addition: TiledDrawable: Align can be set to manipulate the alignment of the rendering (TiledDrawable#setAlign, TiledDrawable#getAlign) - API Addition: TiledDrawable#draw: Also available as a static function (with align) if you don't want to create an extra instance per texture region - Android: Removed mouse catching added on 1.12.0 due to unintended effects (see #7187). - Android: Fixed touch state inconsistency when touching screen with 3 fingers on some devices (see #7256) - iOS: Update to MobiVM 2.3.20 - API Addition: Using "object" property in Tiled object now fetches MapObject being pointed to, and BaseTmxMapLoader includes method for fetching map where key is id and value is MapObject instance. - Update to LWJGL 3.3.3 - API Addition: Vector4 is just like Vector2 or Vector3, but with x, y, z, and w float components; a Vector4 can be passed as a shader uniform. - Fix: Fix crash with ANGLE GLES renderer - API Change: Use STBVorbis to decode ogg data for Sound - API Change: Remove usage of deprecated tag on GL30 - Lower GLIBC requirements to 2.17 in order to support older Linux systems - Fix: Fix setCursor releasing the caught cursor on the LWJGL 3 backend. - Fix crash in ParticleEditor and Flame - Fix bitwise precedence in ModelBatch#addMesh (float[] vertices, short[] indices) - Improve the default font's compatibility with GL30 - Fix potential IndexOutOfBoundsException on AsynchronousAndroidSound - API Addition: GwtGL20 & GwtGL30#glGetFramebufferAttachmentParameteriv - Fix Tiled classes not being registered in the reflection cache - Fix: Change androidx.fragment dependency to compileOnly - Fix borderless fullscreen when taskbar is on the left/top [1.12.0] - [BREAKING CHANGE] Added #touchCancelled to InputProcessor interface, see #6871. - [BREAKING CHANGE] Android: Immersive mode is now true by default. Set `useImmersiveMode` config to `false` to disable it. - [BREAKING CHANGE] iOS: Increased min supported iOS version to 11.0. Update your Info.plist file if necessary. - [BREAKING CHANGE] iOS: `hideHomeIndicator` set to `false` by default (was `true`). - [BREAKING CHANGE] iOS: `screenEdgesDeferringSystemGestures` set to `UIRectEdge.All` by default (was `UIRectEdge.None`). - [BREAKING CHANGE] iOS: preferred FPS is now uncapped by default, see #6717 - [BREAKING CHANGE] iOS: `ApplicationListener.create` and first `resize` are now called within `UIApplicationDelegate.didFinishLaunching`. Allows for earlier rendering and prevents black screen frames after launch screen. NOTE: App will get terminated if this method is blocked for more than 10-20 sec. - [BREAKING CHANGE] Actor#localToAscendantCoordinates throws an exception if the specified actor is not an ascendant. - [BREAKING CHANGE] WidgetGroup#hit first validates the layout. - [BREAKING CHANGE] Cell getters return object wrapper instead of primitives. - [BREAKING CHANGE] MeshPartBuilder#lastIndex now returns int instead of short. - [BREAKING CHANGE] 3D API - max bone weights is now configurable and limited to 4 by default. Change this value if you need less or more. See #6522. - [BREAKING CHANGE] Mesh#getVerticesBuffer, Mesh#getIndicesBuffer, VertexData#getBuffer, and IndexData#getBuffer are deprecated in favor to new methods with boolean parameter. If you subclassed some of these classes, you need to implement the new methods. - [BREAKING CHANGE] Desktop: The return value of AudioDevice#getLatency() is now in samples, and not milliseconds - [BREAKING CHANGE] iOS: 32 bit (armv7) builds are no longer supported. Builds must be 64 bit (arm64) only. - [BREAKING CHANGE] iOS: Use dynamic frameworks instead of static libs - [BREAKING CHANGE] optimized Mesh#bind and Mesh#unbind have a new parameter for instanced attribute locations. If you use these methods without instancing, you can pass a null value. - [BREAKING CHANGE] Dropped support for older libc versions since libGDX is now built on Ubuntu 20.04 (#7005) - [KNOWN ISSUE] Android drag behaviour. Gdx.input.getDeltaX() and Gdx.input.getDeltaY always return 0 for pointer 0. Fixed on next version. - Update to jnigen 2.4.1 - LWJGL Fix: setPosision() for MP3 files. - iOS: Add new MobiVM MetalANGLE backend - iOS: Update to MobiVM 2.3.19 - Update to LWJGL 3.3.2 - API Addition: Added Audio#switchOutputDevice and Audio#getAvailableOutputDevices to specify output devices. Only works for LWJGL3 - Fix LWJGL3: Audio doesn't die anymore, if a device gets disconnected - API Addition: Added Haptics API with 4 different Input#vibrate() methods with complete Android and iOS implementations. - API Addition: Vector2: Added static methods for angleDeg and angleRad - Fix: Fixed Android and iOS touch cancelled related issues, see #6871. - Javadoc: Add "-use" flag to javadoc generation - Android: gdx-setup now uses AGP 7.2.2 and SDK 32, requiring Android Studio Chipmunk or IntelliJ IDEA 2022.2 and JDK 11. - libGDX is now built using Java 11 due to new Android requirements. The rest of libGDX can still be built with JDK 8 and runtime compatibility of libGDX projects should be unaffected. - Fixed glViewport when using HdpiMode.Logical with the LWJGL3 backend. - Added Stage#actorRemoved to fire exit events just before an actor is removed. - ScrollPane#setScrollingDisabled avoids invalidate() if nothing changed. - Fixed incorrect ScrollPane#scrollTo. - API Addition: Added Texture3D support - Fix: Throw an exception when maximum Attribute count is reached to prevent silent failure. - API Fix: The cursor can now be catched on Android. - LWJGL3 Fix: Stereo audio can now be played on mono output devices. This may also improve downmixing to stereo and upmixing to surround. - API Addition: Added CheckBox#getImageDrawable. - FIX: HexagonalTiledMapRenderer now displays maps with the correct stagger index. - API Addition: Added I18NBundle#keys() method. - TOOLS Features: Save mode can be changed in Flame particle 3D editor. - API Addition: added WebGL 2.0 implementation to Gwt backend : you can enable it by GwtApplicationConfiguration#useGL30 - Added GLES31 and GLES32 support with Lwjgl3 backend implementation - API Addition: JsonReader#stop() to stop parsing. - API Change: TextureAtlas now uses FileHandle#reader so outside code can control the charset - API Fix: Intersector#isPointInTriangle - API Addition: The Skin serializer now supports useIntegerPositions - API Change: The skin serializer now treats scaledSize as a float - API Change: DataInput throws an EOF-Exception - API Fix: RenderBuffer leak in GLFrameBuffer class - API Change: Pixmap#setPixels will now verify it has been given a direct ByteBuffer - API Addition: glTexImage2D and glTexSubImage2D with offset parameter - API Addition: OrientedBoundingBox - API Addition: Tiled parallax factor support - API Fix: LWJGL 3’s borderless fullscreen works with negative monitor coords - API Fix: Update mouse x and y values immediately after calling #setCursorPosition - API Change: Never stall with AssetManager on GWT - API Change: Allow packed depth stencil buffer creation when not using GL30 - API Fix: Fixed DataInput#readString for non-ASCII - API Fix: LwjglGraphics.setupDisplay() is no longer choosing the wrong display mode - API Fix: MathUtils.lerpAngle() fixed for extreme inputs - MathUtils trigonometry improvements - Various Scene2D fixes and improvements - Fix: JsonValue#addChild now clears leftover list pointers, preventing inconsistent or looping JSON objects. [1.11.0] - [BREAKING CHANGE] iOS: Increased min supported iOS version to 9.0. Update your Info.plist file if necessary. - [BREAKING CHANGE] Removed Maven and Ant build systems. libGDX is now solely built with Gradle. See https://libgdx.com/dev/from-source/ for updated build instructions. - [BREAKING CHANGE] Android Moved natives loading out of static init block, see #5795 - [BREAKING CHANGE] Linux: Shared libraries are now built on Ubuntu 18.04 (up from Ubuntu 16.04) - [BREAKING CHANGE] The built-in font files arial-15.fnt and arial-15.png have been replaced with lsans-15.fnt and lsans-15.png; this may change some text layout that uses the built-in font, and code that expects arial-15 assets to be present must change to lsans-15. - [BREAKING CHANGE] Legacy LWJGL3 projects must update the sourceCompatibility to 1.8 or higher. - [BREAKING CHANGE] Android Removed hideStatusBar configuration, see #6683 - [BREAKING CHANGE] Lwjgl3ApplicationConfiguration#useOpenGL3 was replaced by #setOpenGLEmulation - Gradle build now takes -PjavaVersion=7|8|9... to specify the Java version against which to compile libGDX. Default is Java 7 for everything, except the LWJGL3 backend, which is compiled for Java 8. - LWJGL3 extension: Added gdx-lwjgl3-glfw-awt-macos extension. Fixes GLFW in such a way, that the LWJGL3/libGDX must no longer run on the main thread in macOS, which allows AWT to work in parallel, i.e. file dialogs, JFrames, ImageIO, etc. You no longer need to pass `-XstartOnFirstThread` when starting an LWJGL3 app on macOS. See `AwtTestLWJGL` in gdx-tests-lwjgl3. For more information, see https://github.com/libgdx/libgdx/pull/6772 - API Addition: Added LWJGL3 ANGLE support for x86_64 Windows, Linux, and macOS. Emulates OpenGL ES 2.0 through DirectX (Windows), desktop OpenGL (Linux), and Metal (macOS). May become the preferred method of rendering on macOS if Apple removes OpenGL support entirely. May fix some OpenGL driver issues. More information here: https://github.com/libgdx/libgdx/pull/6672 - iOS: Update to MobiVM 2.3.16 - Update to LWJGL 3.3.1 - API Addition: ObjLoader now supports ambientColor, ambientTexture, transparencyTexture, specularTexture and shininessTexture - API Addition: PointSpriteParticleBatch blending is now configurable. - TOOLS Features: Blending mode and sort mode can be changed in Flame particle 3D editor. - API Addition: Polygon methods setVertex, getVertex, getVertexCount, getCentroid. - API Addition: TMX built-in tile property "type" is now supported. - API Addition: Octree structure. - API Addition: Added StringBuilder#toStringAndClear() method. - FirstPersonCameraController keys mapping is now configurable - Fix: GlyphLayout: Several fixes for color markup runs with multi-line or wrapping texts - API change: GlyphLayout#GlyphRun is now one GlyphRun per line. "color" was removed from GlyphRun and is now handled by GlyphLayout. - Gdx Setup Tool: Target Android API 30 and update AGP plugin to 4.1.3 - API Fix: Sound IDs are now properly removed; this prevents changes to music instances with the same ID - API Fix: LWJGL3Net#openURI does now work on macOS & JDK >= 16 - API Fix: Fixed a possible deadlock with AssetManager#dispose() and #clear() - API Change: Enable the AL_DIRECT_CHANNELS_SOFT option for Sounds and AudioDevices as well to fix stereo sound - API Addition: CameraInputController#setInvertedControls(boolean) - API Removal: AnimatedTiledMapTile#frameCount - LWJGL 3 is now the default desktop backend. If you want to port your existing applications, take a look here: https://gist.github.com/crykn/eb37cb4f7a03d006b3a0ecad27292a2d - Brought the official and third-party extensions in gdx-setup up to date. Removed some unmaintained ones and added gdx-websockets & jbump. - API Fix: Escaped characters in XML attributes are now properly un-escaped - Bug Fix: AssetManager backslash conversion removed - fixes use of filenames containing backslashes - gdx-setup now places the assets directory in project root instead of android or core. See advanced settings (UI) or arguments (command line) if you don't want it in root. - API Fix: Resolved issues with LWJGL 3 and borderless fullscreen - API Addition: GeometryUtils,polygons isCCW, ensureClockwise, reverseVertices - API Addition: Added FreeTypeFontGenerator#hasCharGlyph method. - API Fix: Pool discard method now resets object by default. This fixes the known issue about Pool in libGDX 1.10.0. - API Addition: Split GWT reflection cache into two generated classes - API Fix: Fix Box2D memory leak with ropes on GWT - API Fix: Fix NPE in Type#getDeclaredAnnotation - API Addition: Add pause/resume methods to AudioDevice - API Fix: Protection against NullPointerException in World#destroyBody() - API Fix: Prevent repeated mipmap generation in FileTextureArrayData - API Fix: Fix issue with camera reference in CameraGroupStrategy’s default sorter - API Fix: Move vertex array index buffer limit to backends to fix issue with numIndices parameter - API Fix: TexturePacker: Fix wrong Y value when using padding - API Fix: Lwjgl3Net: Add fallback to xdg-open on Linux if Desktop.BROWSE is unavailable - API Addition: Add NWSEResize, NESWResize, AllResize, NotAllowed and None SystemCursors - API Addition: GWTApplication#getJavaHeap and getNativeHeap are now supported - API Addition: Box2D Shape now implements Disposable - API Addition: Added ChainShape#clear method - API Addition: Added Tooltip#setTouchIndependent; see #6758 - API Addition: Emulate Timer#isEmpty on GWT - API Addition: Bits add copy constructor public Bits (Bits bitsToCpy) - API Addition: Added List#drawSelection(). - API Addition: GwtApplicationConfiguration#xrCompatible - API Fix: setSystemCursor() now works on Android - API Fix: getDisplayMode() is now more accurate on Android and GWT. - API Addition: JsonValue#iterator(String) to more easily iterate a child that may not exist. - API Addition: Added ExtendViewport#setScaling, eg for use with Scaling.contain. - API Addition: Added application lifecycle methods to IOSAudio for custom audio implementations. - API Addition: Added getBoundingRectangle() to Polyline - API Addition: ShapeRenderer#check() has now protected visibility - API Addition: Add ability to host GWT module on a different domain than the site, see #6851 - API Addition: Addes Tooltip#setTouchIndependent; see #6758 - API ADDITION: Emulate Timer#isEmpty on GWT - API Addition: OrientedBoundingBox. [1.10.0] - [BREAKING CHANGE] Android armeabi support has been removed. To migrate your projects: remove any dependency with natives-armeabi qualifier from your gradle build file, this apply to gdx-platform, gdx-bullet-platform, gdx-freetype-platform and gdx-box2d-platform. - [BREAKING CHANGE] tvOS libraries have been removed. No migration steps required. - [BREAKING CHANGE] Linux x86 (32-bit) support has been removed. No migration steps required. - [BREAKING CHANGE] Requires Java 7 or above. - [BREAKING CHANGE] API Change: Scaling is now an object instead of an enum. This may change behavior when used with serialization. - [BREAKING CHANGE] Group#clear() and #clearChildren() now unfocus the children. Added clear(boolean) and clearChildren(boolean) for when this isn't wanted. Code that overrides clear()/clearChildren() probably should change to override the (boolean) method. #6423 - [BREAKING CHANGE] Lwjgl3WindowConfiguration#autoIconify is enabled by default. - [KNOWN ISSUE] Pool no longer reset freed objects when pool size is above its retention limit. Pool will discard objects instead. If you want to keep the old behavior, you should override Pool#discard method to reset discarded objects. - Scene2d.ui: Added new ParticleEffectActor to use particle effects on Stage - API addition: iOS: Added HdpiMode option to IOSApplicationConfiguration to allow users to set whether they want to work in logical or raw pixels (default logical). - Fix for #6377 Gdx.net.openURI not working with targetSdk 30 - Api Addition: Added a Pool#discard(T) method. - Architecture support: Linux ARM and AARCH64 support has been added. The gdx-xxx-natives.jar files now contain native libraries of these architectures as well. - API Addition: Desktop Sound now returns number of channels and sample rate. [1.9.14] - [BREAKING CHANGE] iOS: IOSUIViewController has been moved to its own separate class - [BREAKING CHANGE] API Change: G3D AnimationDesc#update now returns -1 (instead of 0) if animation not finished. - [BREAKING CHANGE] InputEventQueue no longer implements InputProcessor, pass InputProcessor to #drain. - [BREAKING CHANGE] HeadlessApplicationConfiguration#renderInterval was changed to #updatesPerSecond - API addition: Added Pixmap#setPixels(ByteBuffer). - API change: ScreenUtils#getFrameBufferPixmap is deprecated in favor to new method Pixmap#createFromFrameBuffer. - API Addition: Added overridable createFiles() methods to backend application classes to allow initializing custom module implementations. - API Addition: Add a Graphics#setForegroundFPS() method. [1.9.13] - [BREAKING CHANGE] Fixed keycode representations for ESCAPE, END, INSERT and F1 to F12. These keys are working on Android now, but if you hardcoded or saved the values you might need to migrate. - [BREAKING CHANGE] TextureAtlas.AtlasRegion and Region splits and pads fields have been removed and moved to name/value pairs, use #findValue("split") and #findValue("pad") instead. - iOS: Update to MobiVM 2.3.12 - GWT: Key codes set with Gdx.input.setCatchKey prevent default browser behaviour - Added Scaling.contain mode: Scales the source to fit the target while keeping the same aspect ratio, but the source is not scaled at all if smaller in both directions. - API Addition: Added hasContents() to Clipboard interface, to reduce clipboard notifications on iOS 14 - TOOLS Features: Blending mode can be changed in Flame particle 3D editor. - Input Keycodes added: CAPS_LOCK, PAUSE (aka Break), PRINT_SCREEN, SCROLL_LOCK, F13 to F24, NUMPAD_DIVIDE, NUMPAD_MULTIPLY, NUMPAD_SUBTRACT, NUMPAD_ADD, NUMPAD_DOT, NUMPAD_COMMA, NUMPAD_ENTER, NUMPAD_EQUALS, NUMPAD_LEFT_PAREN, NUMPAD_RIGHT_PAREN, NUM_LOCK. Following changes might be done depending on platform: Keys.STAR to Keys.NUMPAD_MULTIPLY, Keys.SLASH to Keys.NUMPAD_DIVIDE, Keys.NUM to Keys.NUM_LOCK, Keys.COMMA to Keys.NUMPAD_COMMA, Keys.PERIOD to Keys.NUMPAD_DOT, Keys.COMMA to Keys.NUMPAD_COMMA, Keys.ENTER to Keys.NUMPAD_ENTER, Keys.PLUS to Keys.NUMPAD_ADD, Keys.MINUS to Keys.NUMPAD_SUBTRACT - Added a QuadFloatTree class. - Desktop: Cubemap Seamless feature is now enabled by default when supported, can be changed via backend specific methods, see supportsCubeMapSeamless and enableCubeMapSeamless in both LwjglGraphics and Lwjgl3Graphics. - API Addition: TextureAtlas reads arbitrary name/value pairs for each region. See #6316. - TexturePacker writes using a new format when legacyOutput is false (default is true). TextureAtlas can read both old and new formats. See #6316. [1.9.12] - [BREAKING CHANGE] iOS: Changed how Retina/hdpi handled on iOS. See #3709. - [BREAKING CHANGE] API Change: InputProcessor scrolled method now receives scroll amount for X and Y. Changed type to float to support devices which report fractional scroll amounts. Updated InputEvent in scene2d accordingly: added scrollAmountX, scrollAmountY attributes and corresponding setters and getters. See #6154. - [BREAKING CHANGE] API Change: Vector2 angleRad(Vector2) now correctly returns counter-clockwise angles. See #5428 - [BREAKING CHANGE] Android: getDeltaTime() now returns the raw delta time instead of a smoothed one. See #6228. - Fixed vertices returned by Decal.getVertices() not being updated - Fixes Issue #5048. The function Intersector.overlapConvexPolygons now should return the right minimum translation vector values. - Update to MobiVM 2.3.11 - API Change: Removed Pool constructor with preFill parameter in favor of using Pool#fill() method. See #6117 - API Addition: Slider can now be configured to only trigger on certain mouse button clicks (Slider#setButton(int)). - Fixed GlyphLayout not laying out correctly with color markup. - Fixed TileDrawable not applying its scale correctly. - API Addition: Added epsilon methods to maps with float values. - API Addition: Added an insertRange method to array collections. - Fixed GestureDetector maxFlingDelay. - API Change: Changed default GestureDetector maxFlingDelay to Integer.MAX_VALUE (didn't work before, this matches that). - Gdx.files.external on Android now uses app external storage - see wiki article File handling for more information - Improved text, cursor and selection rendering in TextArea. - API Addition: Added setProgrammaticChangeEvents, updateVisualValue, round methods to ProgressBar/Slider. - iOS: Keyboard events working on RoboVM on iOS 13.5 and up, uses same API as on other platforms - API Addition: Added AndroidLiveWallpaper.notifyColorsChanged() to communicate visually significant colors back to the wallpaper engine. - API Change: AssetManager invokes the loaded callback when an asset is unloaded from the load queue if the asset is already loaded. - GWT: changed audio backend to WebAudio API. Now working on mobiles, pitch implemented. Configuration change: preferFlash removed. When updating existing projects, you can remove the soundmanager js files from your webapp folder and the references to it from index.html - GWT: added possibility to lazy load assets via AssetManager instead of preload them before game start. See GWT specifics wiki article for more information. - GWT: New configuration setting usePhysicalPixels to use native resolution on mobile / Retina / HDPI screens. When using this option, make sure to update your code in index.html and HTMLLauncher from setup template. - GWT: GwtApplicationConfiguration and GWT backend now support an application to be resizable or fixed size. You can remove your own resizing code from your HTMLLaunchers. - GWT: Assets in distribute build are renamed with md5 hash suffix to bypass browser cache on changes - GWT: Fixed GwtFileHandle that was only returning text assets when listing a directory, now returns all children - API Addition: Pixmap.downloadFromUrl() downloads an image from http(s) URLs and passes it back as a Pixmap on all platforms - Added support for Linux ARM builds. - 32-bit: ARMv7/armhf - 64-bit: ARMv8/AArch64 - API Change: Removed arm abi from SharedLibraryLoader - API Addition: Added a Lwjgl3ApplicationConfiguration#foregroundFPS option. - API Change: Utility classes are now final and have a private constructor to prevent instantiation. - API Change: ScrollPane now supports all combinations of scrollBarsOnTop and fadeScrollBars. - API Addition: Added new methods with a "deg" suffix in the method's name for all Vector2 degrees-based methods and deprecated the old ones. - API Addition: Added Slider#setVisualPercent. - API Change: Enabling fullscreen mode on the lwjgl3 backend now automatically sets the vsync setting again. - API Addition: Added put(key, value, defaultValue) for maps with primitive keys, so the old value can be returned. - API Addition: Added ObjectLongMap. - Added Intersector#intersectRayOrientedBoundsFast to detect if a ray intersects an oriented bounding box, see https://github.com/libgdx/libgdx/pull/6139 - API Addition: Added Table#clip() and Container#clip() methods. - API Addition: Added getBackgroundDrawable() to Button. - API Addition: Added imageCheckedDown and getImageDrawable() to ImageButton and ImageTextButton. - API Addition: Added focusedFontColor, checkedFocusedFontColor, and getFontColor() to TextButton and ImageTextButton. - API Addition: Added wrapReverse setting to HorizontalGroup. - API Addition: Added Slider style drawables for over and down: background, knobBefore, and knobAfter. - Fixed LwjglFrame not hiding the canvas in some situations. - API Change: Table#round uses ceil/floor and is applied during layout, rather than afterward. - Fixed blurry NinePatch rendering when using a single center region. - API Change: Upon changing the window size with the lwjgl3 backend, the window is centered on the monitor. - Fixed DepthShaderProvider no longer creates one DepthShader per bones count. Now it creates only one skinned variant and one non-skinned variant based on DepthShader/Config numBones. - API Addition: Added Intersector#intersectPlanes to calculate the point intersected by three planes, see https://github.com/libgdx/libgdx/pull/6217 - API Addition: Added alternative Android Audio implementation for performant sound. See https://github.com/libgdx/libgdx/pull/6243. - API Addition: Expose SpriteBatch and PolygonSpriteBatch setupMatrices() as protected. - API Addition: New parameter OnscreenKeyboardType for Input.setOnscreenKeyboardVisible and Input.getTextInput [1.9.11] - Update to MobiVM 2.3.8 - Update to LWJGL 3.2.3 - Fixed AndroidInput crashes due to missing array resize (pressure array). - API Change: Ray#set methods and Ray#mul(Matrix4) normalize direction vector. Use public field to set and avoid nor() - API Change: New internal implementation of all Map and Set classes (except ArrayMap) to avoid OutOfMemoryErrors when too many keys collide. This also helps resistance against malicious users who can choose problematic names. - API Addition: OrderedMap#alter(Object,Object) and OrderedMap#alterIndex(int,Object) allow swapping out a key in-place without changing its value; OrderedSet also has this. - API Addition: Json can now read/write: ObjectIntMap, ObjectFloatMap, IntMap, LongMap. - API Addition: Added @Null annotation for IDE null analysis. All parameters and return values should be considered non-null unless annotated (or javadoc'ed if not yet annotated). - API Addition: Added ParticleEmitter#preAllocateParticles() and ParticleEffect#preAllocateParticles() to avoid particle allocations during updates. - Fixed changing looping state of already playing sounds on Android by first pausing the sound before setting the looping state (see #5822). - API Change: scene2d: Table#getRow now returns -1 when over the table but not over a row (used to return the last row). - API Change: scene2d: Tree#addToTree and #removeFromTree now have an "int actorIndex" parameter. - API Addition: scene2d: Convenience method Actions#targeting(Actor, Action) to set an action's target. - API Change: scene2d: In TextField, only revert the text if the change event was cancelled. This allows the text to be manipulated in the change listener. - API Change: scene2d: Tree.Node#removeAll renamed to clearChildren. - API Addition: scene2d: Added SelectBox#setSelectedPrefWidth to make the pref width based on the selected item and SelectBoxStyle#overFontColor. - API Change: DefaultTextureBinder WEIGHTED strategy replaced by LRU strategy. - API Change: ShaderProgram begin and end methods are deprecated in favor to bind method. - API Addition: Added a OpenALAudio#getSourceId(long) method. - API Addition: Added a ShaderProgram#getHandle() method. - API Change: Replaced deprecated android support libraries with androidx. AndroidFragmentApplication is only affected. - API Addition: Created interfaces AndroidAudio and AndroidInput and added AndroidApplication#createAudio and AndroidApplication#createInput to allow initializing custom module implementations. - Allows up to 64k (65536) vertices in a Mesh instead of 32k before. Indices can use unsigned short range, so index above 32767 should be converted to int using bitwise mask, eg. int unsigneShortIndex = (shortIndex & 0xFFFF). - API Change: DragAndDrop only removes actors that were not already in the stage. This is to better support using a source actor as the drag actor, see #5675 and #5403. - API Change: Changed TiledMapTileLayer#tileWidth & #tileHeight from float to int - API Addition: convenient Matrix4 rotate methods: rotateTowardDirection and rotateTowardTarget - API Addition: Convenience method Actions#targeting(Actor, Action) to set an action's target. - API Change: Correction of TextField#ENTER_ANDROID renamed to NEWLINE and TextField#ENTER_DESKTOP renamed to CARRIAGE_RETURN. - API Change: Changed the visibility of TextField#BULLET, TextField#DELETE, TextField#TAB and TextField#BACKSPACE to protected. - API Addition: TextField and TextArea are providing the protected method TextField#checkFocusTraverse(char) to handle the focus traversal. - API Addition: UIUtils provides the constants UIUtils#isAndroid and UIUtils#isIos now. - Fixed: The behaving of TextFields and TextAreas new line and focus traversal works like intended on all platforms now. - API Change: Changed Base64Coder#encodeString() to use UTF-8 instead of the platform default encoding. See #6061 - Fixed: SphereShapeBuilder poles are now merged which removes lighting artifacts, see #6068 for more information. - API Change: Matrix3#setToRotation(Vector3, float float) now rotates counter-clockwise about the axis provided. This also changes Matrix3:setToRotation(Vector3, float) and the 3d particles will rotate counter-clockwise as well. - API Change: TexturePacker uses a dash when naming atlas page image files if the name ends with a digit or a digit + 'x'. - API Addition: Added Skin#setScale to control the size of drawables from the skin. This enables scaling a UI and using different sized images to match, without affecting layout. - API Change: Moved adding touch focus from Actor#notify to InputListener#handle (see #6082). Code that overrides InputListener#handle or otherwise handles InputEvent.Type.touchDown events must now call Stage#addTouchFocus to get touchDragged and touchUp events. - API Addition: Added AsynchronousAssetLoader#unloadAsync to fix memory leaks when an asset is unloaded during loading. - Fixed Label text wrapping when it shouldn't (#6098). - Fixed ShapeRenderer not being able to render alpha 0xff (was max 0xfe). - API Change: glGetActiveUniform and glGetActiveAttrib parameter changed from Buffer to IntBuffer. [1.9.10] - API Addition: Allow target display for maximization LWJGL3 backend - API Addition: Accelerometer support on GWT - API Change: Set default behaviour of iOS audio to allow use of iPod - API Change: IOSDevice is no longer an enum to allow users to add their own new devices when LibGDX is not up to date - API Addition: Add statusBarVisible configuration to IOSApplicationConfiguration - Update GWT Backend to GWT 2.8.2 - Update Android backend to build against API 28 (Android 9.0) - API Addition: Input.isButtonJustPressed - Update to LWJGL 2 backend to 2.9.3 - Update to MobiVM 2.3.6 release - Update to LWJGL 3.2.1 - API Addition: Input allows getting the maximum number of pointers supported by the backend - API Addition: Configuration option added to allow setting a max number of threads to use for net requests - API Change: NetJavaImpl now uses a cached thread pool to allow concurrent requests (by default, the thread pool is unbounded - use maxNetThreads in backend configurations to set a limit - set to 1 for previous behavior) - API Addition: New MathUtils norm and map methods - API Change: Pixmap blending was incorrect. Generated fonts may change for the better, but may require adjusting font settings. - API Change: Particle effects obtained from a ParticleEffectPool are now automatically started - Removed OSX 32-bit support - API Change: By default LWJGL2 backend no longer does pause/resume when becoming background/foreground window. New app config setting was added to enable the old behavior. - API Change: By default LWJGL2 backend now does pause/resume when window is minimized/restored. New app config setting was added to disable this behavior. - LWJGL3: Fixed window creation ignoring refresh rate of fullscreen mode. - TmxMapLoader and AtlasTmxMapLoader refactoring: Shared functionality was moved to BaseTmxMapLoader, duplicate code was removed. - AtlasTmxMapLoader supports group layers now (a positive side effect of the BaseTmxMapLoader refactoring). - API Change: TmxMapLoader and AtlasTmxMapLoader: load/loadAsync methods work exactly as before, but many methods of these classes had to change. This makes it possible implement new Tiled features. - API Addition: TextField#drawMessageText. - Fixed TextField rendering text outside the widget at small sizes. - API Addition: Group#getChild(int) - API Addition: notEmpty() for collections. - API Change: scene2d.ui Tree methods renamed for node set/getObject to set/getValue. - API Change: scene2d.ui Tree and Tree.Node require generics for the type of node, values, and actors. - API Change: For Selection in scene2d.utils "toggle" is now respected when !required and selected.size == 1. - API Addition: new InstanceBufferObject and InstanceBufferObjectSubData classes to enable instanced rendering. - API Addition: Support for InstancedRendering via Mesh - API Change: Cell#setLayout renamed to setTable. - API Addition: Added Collections#allocateIterators. When true, iterators are allocated. When false (default), iterators cannot be used nested. - API Addition: Added Group#removeActorAt(int,boolean) to avoid looking up the actor index. Subclasses intending to take action when an actor is removed may need to override this new method. - API Change: If Group#addActorAfter is called with an afterActor not in the group, the actor is added as the last child (not the first). [1.9.9] - API Addition: Add support for stripping whitespace in PixmapPacker - API Addition: Add support for 9 patch packing in PixmapPacker - API Addition: Pressure support for ios/android. https://github.com/libgdx/libgdx/pull/5270 - Update to Lwjgl 3.2.0 - Update android level we build against to 7.1 (API 25) - API Change: gdx-tools no longer bundles dependencies to be compatible with java 9 - Skin JSON files can now use the simple names of classes, i.e. "BitmapFont" rather than "com.badlogic.gdx.graphics.g2d.BitmapFont". Custom classes can be added by overriding Skin.getJsonLoader() and calling json.setClassTag(). - Skin supports cascading styles in JSON. Use the "parent" property to tag another style by name to use its values as defaults. See https://github.com/libgdx/libgdx/blob/master/tests/gdx-tests-android/assets/data/uiskin.json for example. - SkinLoader can be used on subclasses of Skin by overriding generateSkin(). - API addition: Tree indentation can be customized. - Fixed GlyphLayout not respecting BitmapFontData#down. - API Addition: Added faceIndex paramter to #FreeTypeFontGenerator(FileHandle, int). - API Change: BitmapFont#getSpaceWidth changed to BitmapFont#getSpaceXadvance. - Many GlyphLayout fixes. - API Addition: Added FileHandle#map(), can be used to memory map a file - API Change: BitmapFontData#getGlyphs changed for better glyph layout. See https://github.com/libgdx/libgdx/commit/9a7dfdff3c6374a5ebd2f33a819982aceb287dfa - API Change: Actor#hit is now responsible for returning null if invisible. #5264 - API Addition: Added [Collection]#isEmpty() method to all 22 custom LibGDX-collections (e.g. Array, ObjectMap, ObjectSet, Queue, ...) - API Addition: StringBuilder#clear() - API Addition: Color#WHITE_FLOAT_BITS - Table layout fixed when expand is used and the layout width is less than the table's min width. - InputMultiplexer#setProcessors(Array) now copies the items instead of using the specified array instance. - API Change: A wrapped HorizontalGroup or VerticalGroup will now size children down to their min size if the group is smaller than their pref size. - LWJGL3: useVSync() is now a per-window setting. Any additional windows should disable vsync to avoid frames dropping to (refresh rate / # of windows). - Batch and sprite implementations and SpriteCache store Color separately from the float packed color, since converting to/from float is lossy. - API Change: NumberUtils floatToIntColor expands the alpha from 0-254 to 0-255, so 255 doesn't become 254 from conversion from int to float to int. - API Change: Batch and Decal setColor(float) renamed to setPackedColor for differentiation, since the conversion from float to Color is lossy. - API Change: PolygonSprite getVertexColor renamed to getPackedColor to match other classes. - API Change: FreeTypeFontGenerator only generates a missing glyph if \0 is in the characters. - API Change: DragScrollListener no longer requires the touch/mouse cursor to be directly above/below the scroll pane. - API Change: List#toString(Object) changed from protected to public. Subclasses overriding this need to change to public. - API Change: List now handles more key presses. - API Change: TexturePacker ImageProcessor#addImage(File, String) now returns the Rect. [1.9.8] - Add iPhoneX images - Fix MacOS issue with GL_ARB_texture_float extension check - Fix AtlasTmxMapLoader tileset tile id offset - Bullet: updated to 2.87, see: http://bulletphysics.org/wordpress/?p=485 - API Addition: Possibility to specify TexturePacker settings for resampling when scaling. - API Addition: Support for customizing render buffer attachments in GLFrameBuffers - API Change: Revert to constructors for GLFrameBuffers for easier customization [1.9.7] - Update to MobiVM(RoboVM) 2.3.3 - Add iOS 11 support - Update to Lwjgl 3.1.3 - Update to MOE 1.4.0 - API Change: GLFrameBuffer has been refactored https://github.com/libgdx/libgdx/pull/4882. Create standard FrameBuffers with static methods. Customized FBOS with FrameBufferBuilder - API addition: Tiled group layer support - Fix Tiled properties, offset parsing for image layers - API addition: Added utility methods for Vector equals with epsilon - Fix Animation backing array type - Fix Mesh copying with 0 indices - Fix restoration of pooled particle effects scale - Fix loss of controller listeners on reconnect - Added basic kotlin project generation support in the setup tool - API addition: Allow APK expansion to be used in fragments and activities - API addition: Added color properties support from tiled maps - API Change: Added rotation vector sensor support on Android - API Change: GLProfiler refactored for OOP and lwjgl3 multi windows - LWJGL3: The creation of additional windows via Lwjgl3Application.newWindow() is now deferred, with postRunnable(), until all existing windows have been updated. This fixes a potential native crash with NVidia GL drivers on Windows, presumably caused by a GL context conflict. - API addition: Lwjgl3WindowListener.created() is called after a new window has been created. It's unsafe to call Lwjgl3Window functions in between Lwjgl3Application.newWindow() and this callback. - Updated LWJGL3 backend to 3.1.3. - Lwjgl3Graphics.setUndecorated() and Lwjgl3Graphics.setResizable() now delegate their work to the respective GLFW functions. - API addition: ProgressBar.isVertical() - returns whether a progress bar is vertical or horizontal. - API Change: SplitPane now by default does not allow the split amount to shrink children below their minimum sizes (cropping them). This behavior can be reverted by overriding clampSplitAmount or wrapping the children in Containers set to minSize(0) and fill(). SplitPane also now correctly includes the handle min size in its own min size calculations. - API Change: SplitPane.getSplit() renamed to SplitPane.getSplitAmount() to match other getter and setter names. - Improved internal Timer synchronization. - API Change: List#drawItem, added float width parameter. - API Addition: Make it possible to disable sound on the GWT-Backend with disableSound=true. - API Change: ScrollPane setWidget deprecated in favor of setActor to match other APIs. - API Change: removed JGLFW backend - Fixed mixed up use of TexturePacker.Settings.stripWhitespaceX|Y. - Added joystick POV support to LWJGL3 controller backend. - Added support for 2d particles sprite animation. - API Change: ParticleEmitter getSprite, setSprite, getImagePath, setImagePath are now getSprites, setSprites, getImagePaths, setImagePaths. - Added support for 2d particles independant scale X and Y. - API Change: ParticleEmitter getScale, matchSize are now getScaleX/getScaleY, matchSizeX/matchSizeY. Added scaleSize(float scaleX, float scaleY) - API Change: Added iconDropped() callback to AndroidWallpaperListener. [1.9.6] - Fix performance regression in LWJGL3 backend, use java.nio instead of BufferUtils. Those are intrinsics and quite a bit faster than BufferUtils on HotSpot. - Updated to latest Sound Manager 2 - Added mappings for Xbox 360 controller for Linux - Separated error log for vertex/fragment shaders for easier debugging - Minimum Android API level is now level 9 (Android 2.3) - API addition: Configurable TexturePacker bleed iterations - Updated IOS Multi-OS Engine backend to 1.3.6 - API Change: Pixmap.setBlending, Pixmap.setFilter are now instance methods - VertexAttribute expert constructors exposed. Short types can now be used for attributes. [1.9.5] - Fix NPE swallowing "video driver unsupported" error on LWJGL 2 backend. - Allow window icons to be set in Lwjgl3ApplicationConfiguration or Lwjgl3WindowConfiguration. - Allow window icon and title to be changed in Lwjgl3Window - API Addition: ApplicationLogger interface, allowing easier access to custom logging - DefaultRenderableSorter accounts for center of Renderable mesh, see https://github.com/libgdx/libgdx/pull/4319 - Bullet: added FilterableVehicleRaycaster, see https://github.com/libgdx/libgdx/pull/4361 - Bullet: updated to 2.85, see: http://bulletphysics.org/wordpress/?p=456 - Updated iOS native build scripts to iOS 10.1 and TVOS 10.0 - API Addition: BitmapFont#blankLineScale. - Fixed rounding of Drawables in ProgressBar. Allow rounding to be disabled with setRound(). - Updated LWJGL3 backend to LWJGL 3.1.0, see https://blog.lwjgl.org/lwjgl-3-1-0-released/ - LWJGL3 backend now supports non-continuous rendering, see https://github.com/libgdx/libgdx/pull/3772 - API Change: Lwjgl3WindowListener.refreshRequested() is called when the windowing system (GLFW) reports contents of a window are dirty and need to be redrawn. - API Change: Lwjgl3WindowListener.maximized() is called when a window enters or exits a maximized state. - API Change: Lwjgl3WindowListener.deiconified() removed, combined with .iconified(). - API Change: Lwjgl3Window.deiconify() renamed to .restore() since it can also be used to de-maximize a window. - Lwjgl3Window now has a maximize() method, and windows can be started maximized using the window or app configuration's setMaximized() method. - NinePatch can now be drawn rotated or scaled. - NinepatchDrawable is now a TransformDrawable. - API Change: Group add* methods no longer remove and re-add the actor if it is already in the group, instead they do nothing. - API Change: g2d.Animation is now generic so it can support Drawables, PolygonRegions, NinePatches, etc. To fix existing code, specify the TextureRegion type in animation declarations (and instantiations in Java 6), i.e. Animation<TextureRegion> myAnimation = new Animation<TextureRegion>(...); - TiledDrawable throws unsupported operation if trying to draw rotated/scaled. #4005 - API Change: DragAndDrop now puts default position of drag actor at pointer location. The original default offset from the pointer was (14, -20). - Added ShaderProgramLoader for AssetManager. - BoundingBox#isValid now returns also true when min==max, see: https://github.com/libgdx/libgdx/pull/4460 [1.9.4] - Moved snapping from ProgressBar to Slider to prevent snapping when setting the value programmatically. - Bullet: added btSoftBody#getLinkCount() and btSoftBody#getLink(int), see https://github.com/libgdx/libgdx/issues/4152 - API Change: Wrapping for scene2d's HorizontalGroup and VerticalGroup. - Fix hiero problem with certain unicode characters. See https://github.com/libgdx/libgdx/issues/4202 - Switched to RoboVM fork 2.2.0, fixes incompatibility with Android Gradle plugin and iOS 9.3.4 [1.9.3] - Switched to MobiDevelop's RoboVM fork (http://robovm.mobidevelop.com) - Addition of Intel Multi-OS Engine backend for deploying to iOS - Updated iOS native build scripts to iOS 9.3 and TVOS 9.2 - API Addition: GestureDetector#pinchStop() called when no longer pinching - API Addition: Gdx.graphics.setUndecorated/setResizable API added to Graphics https://github.com/libgdx/libgdx/pull/3847 - API Addition: Gdx.graphics.getGLVersion(), grab the GL version and implementation type. https://github.com/libgdx/libgdx/pull/3788 - API Change: Lwjgl3WindowListener -> filesDropped(String[] files) adds drag'n drop support for the lwjgl3 backend - Added isComplete() to ParticleEffect to make it easier to know when all the emitters are done, behaves the same as in the 2D API. - API Change: renamed Lwjgl3WindowListener.windowIsClosing() to closeRequested() to better communicate its intent. - Add IndexData.updateIndices method to increase performance when used with IndexBufferObjectSubData. - Added FlushablePool - Added ShapeCache see https://github.com/libgdx/libgdx/pull/3953 - API Change: moved shape builder logic out of MeshBuilder, see: https://github.com/libgdx/libgdx/pull/3996 - API Change: changed copy constructor OrderedMap(ObjectMap) to OrderedMap(OrderedMap) - API Change: Table reset now calls clearChildren, not clear. - Fixed crashes in AndroidMusic.java when isPlaying is called. Errors are now logged only rather than crashing the app. - Added emulation of ScreenUtils for GWT - Improved performance of glReadPixels() on GWT. New method is 20-30 times faster - Fixed crash on Mac when using LWJGL2, custom cursors and embedding the game in an AWT window - Fixed getDisplayModes(Monitor monitor) returning wrong data on LWJGL2 backend - Fixed Gdx.input.getCurrentEventTime() not being set on LWJGL3, fixes GestureDetector and flick scroll not working - Fixed not being able to select non-latin characters in TextFields - Bullet: added CustomActionInterface, see https://github.com/libgdx/libgdx/pull/4025 - Add window size limits option to LWJGL3 app and window configurations - Add handling of tag "<objectgroup>" within tags "<tile>" in TmxMap loaders. [1.9.2] - Added TextureArray wrapper see https://github.com/libgdx/libgdx/pull/3807 - Fixed bug in AndroidGL20.cpp which cast a pointer to a 32-bit int. Crash on 64-bit ARM, but only for a specific code path and address... - Fixed multiple controllers registering on same index with LWJGL3, see https://github.com/libgdx/libgdx/issues/3774 - Fixed the FreeTypeFontGenerator texture bleeding, see https://github.com/libgdx/libgdx/issues/3521 [1.9.1] - API Change: Override GwtApplication#createApplicationListener() to create your ApplicationListener on GWT, overriding GwtApplication#getApplicationListener() isn't needed anymore, see https://github.com/libgdx/libgdx/issues/3628 - Fixed ARM64 and x86_64 binaries for Android [1.9.0] - API Change: Lwjgl3ApplicationConfiguration#setBackbufferConfig -> setBackBufferConfig - Fixed HexagonalTiledMapRenderer, see https://github.com/libgdx/libgdx/pull/3654 - Added support for locking the screen orientation in GWT, see https://github.com/libgdx/libgdx/pull/3633 - Added Gdx-Kiwi and gdx-lml to extensions, see https://github.com/libgdx/libgdx/pull/3597 - Added Gyroscope support in Input, implemented for Android, see https://github.com/libgdx/libgdx/pull/3594 - Fixed touch mapping on iOS, see https://github.com/libgdx/libgdx/pull/3590 - Added orientation to Box2D Transform class, see https://github.com/libgdx/libgdx/pull/3308 - Added system cursors to GWT, fix 'Ibeam' system cursor not working on LWJGL3. - Added experimental AndroidApplicationConfiguration#useGL30 and IOSApplicationConfiguration#useGL30 for testing OpenGL ES 3.0 support on mobile devices, do not use in production. - Fix broken kerning for FreeType fonts, see https://github.com/libgdx/libgdx/pull/3756 - Added ARM64 and x86_64 binaries for Android - API Addition: FreeTypeFontParameter has an additional field for tweaking hinting, see https://github.com/libgdx/libgdx/pull/3757 [1.8.0] - API Change: Rewrote FreeType shadow rendering (much better). - Added spaceX/Y to FreeType fonts. - Higher quality FreeType font rendering. - Hiero updated to v5, now with FreeType support and other new features! - GlyphLayout now allocates much, much less memory when processing long text that wraps. - Added LWJGL 3 backend, see https://github.com/libgdx/libgdx/issues/3673 for more info. - Added Graphics#getBackBufferWidth and Graphics#getBackBufferHeight for HDPI handling - API Change: Added HdpiUtils. Instead of calling GL20#glViewport and GL20#glScissor yourself please use HdpiUtils instead. It will ensure that you handle HDPI monitors correctly when using those OpenGL functions. On HDPI monitors, the size reported by Gdx.graphics getWidth/getHeight is in logical coordinates as dictated by the operating system, usually half the HDPI resolution. The OpenGL drawing surface works in backbuffer coordinates at the full HDPI resolution. If you pass logical coordinates to glViewport and glScissor, you only affect a quarter of the real backbuffer size. Use HdpiUtils instead, it will do the right thing, while letting you continue to work in logical (aka returned by Gdx.graphics.getWidth/getHeight) coordinates. - API Change: Graphis#getDesktopDisplayMode() has been renamed to Graphics#getDisplayMode() and returns the current display mode of the monitor the window is shown on (primary monitor on all backends except LWJGL3, which supports real multi-monitor setups). - API Change: Graphics#getDisplayModes() return the display modes of the monitor the monitor the window is shown on (primary monitor on all backends except LWJGL3 which supports real multi-monitor setups). - API Change: Graphics#setDisplayMode(DisplayMode) has been renamed to Graphics#setFullscreenMode(). If the window is in windowed mode, it will be switched to fullscreen mode on the monitor from which the DisplayMode stems from. - API Change: Graphics#setDisplayMode(int, int, boolean) has been renamed to Graphics#setWindowedMode(int, int). This will NOT allow you to switch to fullscreen anymore, use Graphics#setFullscreenMode() instead. If the window is in fullscreen mode, it will be switched to windowed mode on the monitor the window was in fullscreen mode on. - API Addition: Graphics#Monitor, represents a monitor connected to the machine the app is running on. A monitor is defined by a name and it's position relative to other connected monitors. All backends except the LWJGL3 backend will report only the primary monitor - API Addition: Graphics#getPrimaryMonitor() returns the primary monitor you usually want to work with. - API Addition: Graphics#getMonitor() returns the monitor your app's window is shown on, which may not be the primary monitor in >= 2 monitor systems. All backends except the LWJGL3 backend will report only the primary monitor. - API Addition: Graphics#getMonitors() returns all monitors connected to the system. All backends except the LWJGL3 backend will only report the primary monitor. - API Addition: Graphics#getDisplayMode(Monitor) returns the display mode of the monitor the app's window is shown on. All backends except the LWJGL3 backend will report the primary monitor display mode instead of the actual monitor's display mode. Not a problem as all other backends run on systems with only a single monitor so far (primary monitor). - Added option to include credentials on cross-origin http requests (used only for GWT backend). - Added option to specify crossorigin attribute when loading images with AssetDownloader (GWT), see #3216. - API Change: removed Sound#setPriority, this was only implemented for the Android backend. However, Android itself never honored priority settings. - API Change: cursor API has been cleaned up. To create a custom cursor, call Graphics#newCursor(), to set the custom cursor call Graphics#setCursor(), to set a system cursor call Graphics#setSystemCursor(). The Cursor#setSystemCursor method has been removed as that was not the right place. Note that cursors only work on the LWJGL, LWJGL3 and GWT backends. Note that system cursors only fully work on LWJGL3 as the other two backends lack a means to set a specific system cursor. These backends fall back to displaying an arrow cursor when setting any system cursor. - API Addition: Added Lwjgl3WindowListener, allows you to hook into per-window iconficiation, focus and close events. Also allows you to prevent closing the window when a close event arrives. [1.7.2] - Added AndroidAudio#newMusic(FileDescriptor) to allow loading music from a file descriptor, see #2970 - Added GLOnlyTextureData, which is now the default for FrameBuffer and FrameBufferCubemap, see #3539 - Added rotationChanged() for Actor class, called when rotation changes, see https://github.com/libgdx/libgdx/pull/3563 - Fixed crash on MacOS when enumerating connected gamepads. - ParticleEmitter no longer says it's complete when it's set to continuous, see #3516 - Improved JSON parsing and object mapping error messages. - Updated FreeType from version 2.5.5 to 2.6.2. - Fixed corrupt FreeType rendering for some font sizes. - API Change: FreeTypeFontParameter has new fields for rendering borders and shadows. - FreeTypeFontParameter can render much better fonts at small sizes using gamma settings. - BitmapFont can now render missing (tofu) glyph for glyphs not in the font. - FreeTypeFontGenerator depreacted methods removed. - Fixed BitmapFont color tags changing glyph spacing versus not using color tags. BitmapFont#getGlyphs has a new paramter. See #3455. - Skin's TintedDrawable now works with TiledDrawable. #3627 - Updated jnigen to Java Parser 2.3.0 (http://javaparser.github.io/javaparser/). - FreeType fonts no longer look terrible at small size. This is a big deal! - Updated to RoboVM 1.12.0, includes tvOS support! [1.7.1] - Fixes AtlasTmxMapLoader region name loading to tileset name instead of filename - Changes TiledMapPacker output, region names are tileset names, adjusts gid, defaults to one atlas per map - API Change: members of Renderable and MeshPart are changed, see https://github.com/libgdx/libgdx/pull/3483 - Added Vector#setToRandomDirection(), see #3222 - Updated to stb_image v2.08 - Added Node#copy(), used when creating a ModelInstance from a Model to allow using custom nodes - Add ModelCache, see https://github.com/libgdx/libgdx/wiki/ModelCache - Updated bullet to v2.83.6 - Updated to RoboVM 1.9, for free life-time license read http://www.badlogicgames.com/wordpress/?p=3762 [1.7.0] - Gdx.input.setCursorImage removed, replaced with Gdx.graphics.setCursor and Gdx.graphics.newCursor see https://github.com/libgdx/libgdx/pull/2841/ - Fixed an issue with UTF8 decoding in GWT emulation of InputStreamReader - Updated to RoboVM 1.8 for iOS 9 support. [1.6.5] - Objects from animated tiles in TMX maps are now supported. - Made possible to use any actor for tooltips. - Improved cross-platform reflection api for annotations. - NinePatch#scale now also scales middle patch size. - GLFrameBuffer is now abstract, renamed setupTexture to createColorTexture, added disposeColorTexture - Added LwjglApplicationConfiguration#gles30Context*Version, see https://github.com/libgdx/libgdx/pull/2941 - Added OpenGL error checking to GLProfiler, see https://github.com/libgdx/libgdx/pull/2889 - Updated to RoboVM 1.6 [1.6.4] - TextField cursor and selection size changed. https://github.com/libgdx/libgdx/commit/2a830dea348948d2a37bd8f6338af2023fec9b09 - FreeTypeFontGenerator setting to improve shadows and borders. - ScrollPane scrolls smoothly when the scrolled area is much larger than the scrollbars. - TexturePacker sorts page regions by name. - GlyphLayout text wrapping changed to not trim whitespace. https://github.com/libgdx/libgdx/commit/ee42693da067da7c5ddd747f051c1423d262cb96 - Fixed BitmapFont computing space width incorrectly when padding is used and no space glyph is in the font. - Fixed TextArea cursor and selection drawing positions. - Fixed ActorGestureListener pan and zoom when the actor is rotated or scaled. - Fixed TextField for non-pixel display. - Allow ellipsis string to be set on Label. - AssetManager gets hook for handling loading failure. - TextField now fires a ChangeEvent when the text change. Can be cancelled too! - Added tooltips to scene2d.ui. - Updated to RoboVM 1.5 [1.6.3] - Updated to RoboVM 1.4 [1.6.2] - API Change: TiledMapImageLayer now uses floats instead of ints for positioning - API Change: Added GLFrameBuffer and FrameBufferCubemap: Framebuffer now extends GLFramebuffer, see #2933 [1.6.1] - Added optional hostname argument to Net.newServerSocket method to allow specific ip bindings for server applications made with gdx. - Changed the way iOS native libs are handled. Removed updateRoboVMXML and copyNatives task from ios/build.gradle. Instead natives are now packaged in jars, within the META-INF/robovm/ios folder. Additionally, a robovm.xml file is stored there that gets merged with the project's robovm.xml file by RoboVM. [1.6.0] - API Change: GlyphLayout xAdvances now have an additional entry at the beginning. This was required to implement tighter text bounds. #3034 - API Change: Label#getTextBounds changed to getGlyphLayout. This exposes all the runs, not just the width and height. - In the 2D ParticleEditor, all chart points can be dragged at once by holding ctrl. They can be dragged proportionally by holding ctrl-shift. - Added Merge button to the 2D ParticleEditor, for merging a loaded particle effect file with the currently open particle effect. - Added ability to retrieve method annotations to reflection api - Added PixmapPacker.updateTextureRegions() method. - Added ability to pack "anonymous" pixmaps into PixmapPacker, which will appear in the generated texture but not a generated or updated TextureAtlas - Added PixmapPacker.packDirectToTexture() methods. - API Change: PixmapPacker.generateTextureAtlas(...) now returns an atlas which can be updated with subsequent calls to PixmapPacker.updateTextureAtlas(...) - API Change: FreeTypeFontGenerator.generateFont(...) now works with a user-provided PixmapPacker. - Added DirectionalLightsAttribute, PointLightsAttribute and SpotLightsAttribute, removed Environment#directionalLights/pointLights/spotLights, added Environment#remove, lights are now just like any other attribute. See also https://github.com/libgdx/libgdx/wiki/Material-and-environment#lights - API Change: BitmapFont metrics now respect padding. #3074 - Update bullet wrapper to v2.83 - Added AnimatedTiledMapTile.getFrameTiles() method [1.5.6] - API Change: Refactored Window. https://github.com/libgdx/libgdx/commit/7d372b3c67d4fcfe4e82546b0ad6891d14d03242 - Added VertexBufferObjectWithVAO, see https://github.com/libgdx/libgdx/pull/2527 - API Change: Removed Mesh.create(...), use MeshBuilder instead - API Change: BitmapFontData, BitmapFont, and BitmapFontCache have been refactored. http://www.badlogicgames.com/wordpress/?p=3658 - FreeTypeFontGenerator can now render glyphs on the fly. - Attribute now implements Comparable, custom attributes might need to be updated, see: https://github.com/libgdx/libgdx/wiki/Material-and-environment#custom-attributes - API Change: Removed (previously deprecated) GLTexture#createTextureData/createGLHandle, Ray#getEndPoint(float), Color#tmp, Node#parent/children, VertexAttribute#Color(), Usage#Color, ModelBuilder#createFromMesh, BoundingBox#getCenter()/updateCorners()/getCorners(), Matrix4.tmp [1.5.5] - Added iOS ARM-64 bit support for Bullet physics - 3D Animation, NodeAnimation keyframes are separated into translation, rotation and scaling - Added capability to enable color markup from inside skin json file. - Exposed method ControllerManager#clearListeners on Controllers class - Net#openURI now returns a boolean to indicate whether the uri was actually opened. - DefaultShader now always combines material and environment attributes - Added ShapeRenderer constructor to pass a custom shader program to ImmediateModeRenderer20. - API Change: Group#toString now returns actor hierarchy. Group#print is gone. - Added SpotLight class, see https://github.com/libgdx/libgdx/pull/2907 - Added support for resolving file handles using classpaths (ClasspathFileHandleResolver) [1.5.4] - Added support for image layers in Tiled maps (TiledMapImageLayer) - Added support for loading texture objects from TMX Maps (TextureMapObject) - Added support for border and shadow with FreeTypeFontGenerator - see https://github.com/libgdx/libgdx/pull/2774 - Now unknown markup colors are silently ignored and considered as normal text. - Updated freetype from version 2.4.10 to 2.5.5 - Added 3rd party extensions to setup application, see - Updated to RoboVM 1.0.0-beta-04 - Updated to GWT 2.6.1, sadly GWT 2.7.0 isn't production ready yet. [1.5.3] - API Change: TextField#setRightAlign -> TextField#setAlignment - I18NBundle is now compatible with Android 2.2 - Fixed GWT reflection includes for 3D particles - 3D ParticleEffectLoader registered by default - Added HttpRequestBuilder, see https://github.com/libgdx/libgdx/pull/2698 - Added LwjglApplicationConfiguration.useHDPI for Mac OS X with retina displays. Allows you to get "real" pixel coordinates for mouse and display coordinates. - Updated RoboVM to 1.0.0-beta-03 [1.5.2] - Fixed issue #2433 with color markup and alpha animation. - Fixed natives loading for LWJGL on Mac OS X [1.5.1] - Gradle updated to 2.2 - Android Gradle tooling updated to 1.0.0 - API Change: Switched from Timer to AnimationScheduler for driving main loop on GWT. Removed fps field from GwtApplicationConfiguration to instead let the browser choose the most optimal rate. - API Change: Added pause and resume handling on GWT backend. When the browser supports the page visibility api, pause and resume will be called when the tab or window loses and gains visibility. - API Change: Added concept of target actor, separate from the actor the action is added to. This allows an action to be added to one actor but affect another. This is useful to create a sequence of actions that affect many different actors. Previously this would require adding actions to each actor and using delays to get them to play in the correct order. - Added 64-bit support for iOS sim and device - Deprecated Node#children and Node#parent, added inheritTransform flag and methods to add/get/remove children - API Change: By default keyframes are no longer copied from Model to ModelInstance but shared instead, can be changed using the `ModelInstance.defaultShareKeyframes` flag or `shareKeyframes` constructor argument. - JSON minimal format now makes commas optional: newline can be used in place of any comma. - JSON minimal format is now more lenient with unquoted strings: spaces and more are allowed. - API Change: Added support for KTX/ZKTX file format, https://github.com/libgdx/libgdx/pull/2431 - Update stb_image from v1.33 to v1.48, see https://github.com/libgdx/libgdx/pull/2668 - Bullet Wrapper: added Gimpact, see https://github.com/libgdx/libgdx/issues/2619 - API Addition: Added MeshPartBuilder#addMesh(...), can be used to more easily combine meshes/models - Update to LWJGL 2.9.2, fixes fullscreen mode on "retina" displays - Fixes to RoboVM backend which would crash if accelerometer is used. [1.5.0] - API Addition: IOSInput now uses CMCoreMotion for accelerometer and magnetometer - API Addition: Added getter for UITextField on IOS for keyboard customization - API Addition: Added ability to save PixmapPackers to atlas files. See PixmapPackerIO. - API Addition: Added HttpRequestHeader and HttpResponseHeader with constants for HTTP headers. - API Addition: HttpRequest is now poolable. - New PNG encoder that supports compression, more efficient vertical flipping, and minimal allocation when encoding multiple PNGs. - API Change: Label#setEllipse -> Label#setEllipsis. - API Change: BatchTiledMapRenderer *SpriteBatch fields and methods renamed to *Batch - API Change: ScrollPane#scrollToCenter -> ScrollPane#scrollTo; see optional boolean arguments centerHorizontal and centerVertical (scrollToCenter centered vertically only). - API Change: Changed Input#getTextInput to accept both text and hint, removed Input#getPlaceholderTextInput. - Bug Fix: Fixed potential NPE with immersive mode in the Android fragment backend. - iOS backend now supports sound ids, thanks Tomski! [1.4.1] - Update to the Gradle Integration plugin nightly build if you are on Eclipse 4.4.x! - Update Intellij IDEA to 13.1.5+, because Gradle! - Updated to Gradle 2.1 and Android build tools 20, default Android version to 20. You need to install the latest Android build tools via the SDK manager - API Change: deprecation of bounding box methods, see https://github.com/libgdx/libgdx/pull/2408 - Added non-continuous rendering to iOS backend, thanks Dominik! - Setup now uses Gradle 2.1 with default Android API level 20, build tools 20.0.0 - Non-continuous renderering implemented for iOS - Added color markup support for scene2d label and window title. - API Change: removed default constructor of DecalBatch, removed DefaultGroupStrategy - Updated to latests RoboVM release, 1.0.0-alpha-04, please update your RoboVM plugins/installations - Reduced I18NBundle loading times on Android and bypassed unclosed stream on iOS. - Removed the gdx-ai extension from the libGDX repository. Now it lives in its own repository under the libGDX umbrella, see https://github.com/libgdx/gdx-ai - API Addition: Added randomSign and randomTriangular methods to MathUtils. - API Addition: Decal has now a getter for the Color. - API Addition: now I18NBundle can be set so that no exception is thrown when the key can not be found. - API Addition: added annotation support in reflection layer, thanks code-disaster! https://github.com/libgdx/libgdx/pull/2215 - API Addition: shapes like Rect, Circle etc. now implement Shape2D interface so you can put them all into a single collection https://github.com/libgdx/libgdx/pull/2178 - API Addition: bitmap fonts can now be loaded from an atlas via AssetManager/BitmapFontLoader, see https://github.com/libgdx/libgdx/pull/2110 - API Change: updated to RoboVM 1.0.0-SNAPSHOT for now until the next alpha is released. - API Change: Table now uses padding from its background drawable by default. https://github.com/libgdx/libgdx/issues/2322 - Drawables now know their names, making debugging easier. - API Change: Table fill now respects the widget's minimum size. - Texture packer, fixed image size written to atlas file. - API Change: Cell no longer uses primitive wrappers in public API and boxing is minimized. - API Addition: TextureAttribute now supports uv transform (texture regions). - API Change: Added parameters to Elastic Interpolation. - API Change: Removed Actor#setCenterPosition, added setPosition(x,y,align). - API Change: JsonReader, forward slash added to characters an unquoted strings cannot start with. - API Change: Stage#cancelTouchFocus(EventListener,Actor) changed to cancelTouchFocusExcept. - API Change: Json/JsonWriter.setQuoteLongValues() quotes Long, BigDecimal and BigInteger types to prevent truncation in languages like JavaScript and PHP. [1.3.1] - API change: Viewport refactoring. https://github.com/libgdx/libgdx/pull/2220 - Fixed GWT issues [1.3.0] - Added Input.isKeyJustPressed. - API Addition: multiple recipients are now supported by MessageDispatcher, see https://github.com/libgdx/libgdx/wiki/Message-Handling#multiple-recipients - API Change: State#onMessage now takes the message receiver as argument. - API Addition: added StackStateMachine to the gdx-ai extension. - API change: ShapeRenderer: rect methods accept scale, more methods can work under both line and fill types, auto shape type changing. - API change: Built-in ShapeRenderer debugging for Stage, see https://github.com/libgdx/libgdx/pull/2011 - Files#getLocalStoragePath now returns the actual path instead of the empty string synonym on desktop (LWJGL and JGLFW). - Fixed and improved xorshift128+ PRNG implementation. - Added support for Tiled's animated tiles, and varying frame duration tile animations. - Fixed an issue with time granularity in MessageDispatcher. - Updated to Android API level 19 and build tools 19.1.0 which will require the latest Eclipse ADT 23.02, see http://stackoverflow.com/questions/24437564/update-eclipse-with-android-development-tools-23 for how things are broken this time... - Updated to RoboVM 0.0.14 and RoboVM Gradle plugin version 0.0.10 - API Addition: added FreeTypeFontLoader so you can transparently load BitmapFonts generated through gdx-freetype via AssetManager, see https://github.com/libgdx/libgdx/blob/master/tests/gdx-tests/src/com/badlogic/gdx/tests/FreeTypeFontLoaderTest.java - Preferences put methods now return "this" for chaining - Fixed issue 2048 where MessageDispatcher was dispatching delayed messages immediately. - API Addition: 3d particle system and accompanying editor, contributed by lordjone, see https://github.com/libgdx/libgdx/pull/2005 - API Addition: extended shape classes like Circle, Ellipse etc. with hashcode/equals and other helper methods, see https://github.com/libgdx/libgdx/pull/2018 - minor API change (will not increase minor revision number): fixed a bug in handling of atlasPrefixes, https://github.com/libgdx/libgdx/pull/2023 - Bullet: btManifoldPoint member getters/setters changed from btVector3 to Vector3, also it is no longer pooled, instead static instances are used for callback methods - Added Intersector#intersectRayRay to detect if two 2D rays intersect, see https://github.com/libgdx/libgdx/pull/2132 - Bullet: ClosestRayResultCallback, AllHitsRayResultCallback, LocalConvexResult, ClosestConvexResultCallback and subclasses now use getter/setters taking a Vector3 instead of btVector3, see https://github.com/libgdx/libgdx/pull/2176 - 2d particle system supports pre-multiplied alpha. - Bullet: btIDebugDrawer/DebugDrawer now use pooled Vector3 instances instead of btVector3, see https://github.com/libgdx/libgdx/issues/2174 [1.2.0] - API Addition: Some OpenGL profiling utilities have been added, see https://github.com/libgdx/libgdx/wiki/Profiling - API Addition: A FreeTypeFontGeneratorLoader has been added to the gdx-freetype extension - API change: Animation#frameDuration and #animationDuration are now hidden behind a getter/setter and dynamic - API Addition: Vector#setZero - API Addition: gdx-ai, extension for AI algorithms. Currently supports FSMs, see https://github.com/libgdx/libgdx/wiki/Artificial-Intelligence - API change: TableLayout has been forked and integrated into libgdx more tightly, see http://www.badlogicgames.com/wordpress/?p=3458 - API Addition: added equals/hashCode methods to Rectangle, may break old code (very, very unlikely) - API Addition: scene2D Actors now have a setCenterPosition method, see https://github.com/libgdx/libgdx/pull/2000 [1.1.0] - Updated to RoboVM 0.0.13 and RoboVM Gradle plugin 0.0.9 - Big improvements to setup-ui and build times in Intellij IDEA https://github.com/libgdx/libgdx/pull/1865 - Setup now uses android build tools version: 19.1.0 - BitmapFontCache now supports in-string colored text through a simple markup language, see https://github.com/libgdx/libgdx/wiki/Color-Markup-Language - Added i18n localization/internationalization support, thanks davebaol, see https://github.com/libgdx/libgdx/wiki/Internationalization-and-Localization - Possibility to override density on desktop to simulate mobile devices, see https://github.com/libgdx/libgdx/pull/1825 - Progressive JPEG support through JPGD (https://code.google.com/p/jpeg-compressor/). - Mavenized JGLFW backend - Box2D: Added MotorJoint and ghost vertices on EdgeShape - Updated GWT Box2D to latest version - Updated native Box2D to latest version 2.3.1, no API changes - API change: Matrix4.set(x,y,z, translation) changed, z axis is no more flipped - API addition: Matrix4.avg(Matrix4[],float[]) that lets weighted averaging multiple matrices, Quaternion.slerp(Quaternion[],float[]) that lets weighted slerping multiple Quaternions - fixed the long standing issue of the alpha=1 not actually being fully opaque, thanks kalle! https://github.com/libgdx/libgdx/issues/1815 - down to 25 issues on the tracker, 8 bugs, 17 enhancement requests :) [1.0.1] - updated to RoboVM 0.12 (and so should you!) - fixed GC issues on iOS with regards to touch (thanks Niklas!), see https://github.com/libgdx/libgdx/pull/1758 - updated gwt gradle plugin to 0.4, android build tools to 0.10, gradle version to 1.11 - Tiled maps are now always y-up - Tiled maps now support drawing offsets for tiles - FileHandle#list is now supported in GWT! - FileHandle#list now supports FileFilters - Controllers now reinitialize on the desktop when switching between windowed/fullscreen - added a Texture unpacker that will extract all images from a texture atlas, see https://github.com/libgdx/libgdx/pull/1774 - updates to gdx-setup - CustomCollisionDispatcher in bullet, see https://github.com/libgdx/libgdx/commit/916fc85cecf433c3461b458e00f8afc516ad21e3 [1.0.0] - Box2D is no longer in the core, it has been moved to an extension. See http://www.badlogicgames.com/wordpress/?p=3404 - Merged gdx-openal project into gdx-backend-lwjgl - Now LoadedCallback in AssetLoaderParameters is always called after loading an asset from AssetManager, even if the asset is already loaded - Added Payload as a new parameter to Source.dragStop, see https://github.com/libgdx/libgdx/pull/1666 - You can now load PolygonRegions via AssetLoader, see https://github.com/libgdx/libgdx/pull/1602 - implemented software keyboard support in RoboVM iOS backend - Fixed an issue where key event timestamp is not set by the android backend. - scene2d.ui, added to TextArea the preferred number of rows used to calculate the preferred height. - scene2d.actions, fixed infinite recursion for event listener's handle(event). - Various Quaternion changes. - scene2d.ui, fixed a drawing issue with knobBefore when there's no knob (typical progress bar). - Various MeshBuilder fixes and additions. - Math package: added cumulative distribution. - Fixed Music isPlaying() on iOS when is paused. - Added support for C-style comments to JsonReader (mainly used for json skin files). - Support for resource removal from Skin objects. - Added fling gesture to generate fling in scrollpane. - Vector classes now have mulAdd method for adding pre-multiplied values - Vector implementations no longer use squared value for margin comparisons, see: isZero(float margin), isUnit(float margin). - Vector2 now has isUnit and isZero methods (copied from Vector3) - Removed deprecated methods from Vector classes. - Added new headless backend for server applications - Support 'scaledSize' as a json skin data value for BitmapFont - Added setAlpha(float a) method to Sprite class - Added Input.Keys.toString(int keycode) and Input.Keys.valueOf(String keyname) methods - Added Immersive Mode support to Android backend - Added userObject to Actor in scene2d, allowing for custom data storage - Altered Android's hide status bar behavior - Changed the way wakelocks are implemented. You no longer need any special permissions for the libgdx wakelock - BitmapFontCache setColor changes to match SpriteBatch and friends. http://www.badlogicgames.com/forum/viewtopic.php?f=23&t=12112 - Changed ParticleEffect: the ParticleEffect.save method now takes a Writer instead of a File - TexturePacker2 renamed to TexturePacker, added grid and scaling settings. - Added support for custom prefrences on the desktop backends. - Fixed double resume calls on iOS. - Android Music no longer throws exceptions if MediaPlayer is null. - PolygonSpriteBatch implements Batch. - New scene2d actions: EventAction, CountdownEventAction. - Adds cancelHttpRequest() method to Net interface - Updated GWT/HTML5 Backend to GWT 2.6.0 - Minimal Android version is 2.2, see http://www.badlogicgames.com/wordpress/?p=3297 - Updated to LWJGL 2.9.1 - Can now embed your libgdx app as a fragment, more info on the wiki - scene2d.ui, renamed Actor methods translate, rotate, scale, size to moveBy, rotateBy, scaleBy, sizeBy. May have conflicts with Actions static import, eg you'll need to use "Actions.moveBy" - scene2d.ui, Table background is now drawn usign the table's transform - scene2d.ui, added Container which is similar to a Table with one cell, but more lightweight - Added texture filters and mip map generation to BitMapFontLoader and FreeTypeFontGenerator - scene2d.ui, VerticalGroup and HorizontalGroup got pad, fill and an API similar to Table/Container - Removed OpenGL ES 1.0, 1.1 support; see http://www.badlogicgames.com/wordpress/?p=3311 - Added OpenGL ES 3 support - Updated Android backend, demos, tests to 4.4 - Added Viewport, changed Stage to have a Viewport instead of a Camera (API change, see http://www.badlogicgames.com/wordpress/?p=3322 ). - Changed play mode constants of Animation class to enumeration, see http://www.badlogicgames.com/wordpress/?p=3330 - Updated to RoboVM 0.0.11 and RoboVM Gradle plugin 0.0.6, see http://www.badlogicgames.com/wordpress/?p=3351 - Updated to Swig 3.0 for Bullet, disabled SIMD on Mac OS X as alignements are broken in Bullet, see https://github.com/libgdx/libgdx/pull/1595 - TextureData can only be Custom or Pixmap; compressed image files are considered custom [0.9.9] - added setCursorImage method to Input interface to support custom mouse cursors on the desktop - removed Xamarin backend, see http://www.badlogicgames.com/wordpress/?p=3213 - added Select class for selecting kth ordered statistic from arrays (see Array.selectRanked() method) - refactored Box2D to use badlogic Arrays instead of java.util.ArrayLists - MipMapGenerator methods now don't take disposePixmap argument anymore - added GLTexture, base class for all textures, encapsulates target (2d, cubemap, ...) - added CubeMap, 6 sided texture - changed TextureData#consumeCompressedData, takes target now - added RoboVM backend jar and native libs (libObjectAL, libgdx, in ios/ folder of distribution) - added RoboVM backend to build - changed Bullet wrapper API, see http://www.badlogicgames.com/wordpress/?p=3150 - changed MusicLoader and SoundLoader to be asynchronous loaders - changed behaviour of Net#sendHttpRequest() so HttpResponseListener#handleHttpResponse() callback is executed in worker thread instead of main thread - added Bresenham2, for drawing lines on an integer 2D grid - added GridPoint2 and GridPoint3, representing integer points in a 2D or 3D grid - added attribute location caching for VertexData/Mesh. Hand vertex attribs to a ShaderProgram, get back int[], pass that to Mesh - added Android x86 builds, removed libandroidgl20.so, it's now build as part of gdx-core for Android - changed method signature on Box2D World#getBodies and World#getJoints, pass in an Array to fill - removed glGetShaderSource from GL20, use ShaderProgram#getVertexShaderSource/getFragmentShaderSource instead - added reflection api - added AsynchExecutor, execute tasks asynchronously. Used for GWT mainly. - removed FileHandle#file(), has no business in there. - removed box2deditor - removed custom typedarrays in gwt backend - added classpath files support for gwt backend (limited) - moved AndroidWallpaperListener to Android Backend - added new VertexAttribute Usage flags, bone weight, tangent, binormal. previously encoded as Usage.Generic. Also added field "unit" to VertexAttribute, used by texture coordinates and bone weights to specify index/unit. - setup-ui template for iOS disables pngcrush, also updated wiki iOS article - add Pixmap#fillTriangle via jni gdx2d_fill_triangle() to fill a triangle based on its vertices. - add asynchronous download with continuous progress feedback to GWT asset preloader, see https://github.com/libgdx/libgdx/pull/409?w=1 - add capability to add/exclude package/classes GWT Reflection system, see https://github.com/libgdx/libgdx/pull/409?w=1 - add updated gdx-tiled-preprocessor, generate one single TextureAtlas for all the specified Tiled maps, see http://www.badlogicgames.com/forum/viewtopic.php?f=17&t=8911 - maps API, add new AtlasTiledMapLoader for loading maps produced by the tiled preprocessor tool - ImageProcessor, TexturePacker2 now accepts BufferedImage objects as input - TexturePacker2 now avoids duplicated aliases - Updated to LWJGL 2.9.0 - refactored JSON API, see http://www.badlogicgames.com/wordpress/?p=2993 - Updated Box2D to the latest trunk. Body#applyXXX methods now take an additional boolean parameter. - TmxMapLoader has a flag in Parameters that lets you specify whether to generate mipmaps - Animation#isAnimationFinished was fixed to behave as per javadocs (ignores looping) - remove GLU interface and implementations. Use Matrix4 et al instead. see http://www.badlogicgames.com/wordpress/?p=2886 - new maps API, see http://www.badlogicgames.com/wordpress/?p=2870 - removed static public tmp Vector2 instances, manage such temporary vars yourself, see http://www.badlogicgames.com/wordpress/?p=2840 - changed Scene2D Group#clear(), see http://www.badlogicgames.com/wordpress/?p=2837 - changed the build system, natives are now fetched from the build server, see http://www.badlogicgames.com/wordpress/?p=2821 - freetype extension supported on iOS, see http://www.badlogicgames.com/wordpress/?p=2819 - changed ShapeRenderer API, see http://www.badlogicgames.com/wordpress/?p=2809 - changed Actions.add to addAction, changed parameter order, and added removeAction, addListener, removeListener - Box2d joints now allow for user data - Changes to Intersector, Circle, Rectangle and BoundingBox for consistency in #overlap, #intersect and #contains methods, see https://github.com/libgdx/libgdx/pull/312 - Removed LwjglApplicationConfiguration CPU sync. Added foreground and background target framerate. - scene2d, no longer use getters/setters internally for Actor x, y, width, height, scalex, scaley and rotation. - Array, detect nested iterator usage and throw exception. - Added getVolume to Music class and Android, IOS and GWT backends - 1381, fixed JSON parsing of longs. In addition to Float, it now parses Long if no decimal point is found. - Changed Array constructors that took an array to have offset and count - scene2d, Actor parentToLocalCoordinates and localToParentCoordinates refactoring, see http://www.badlogicgames.com/forum/viewtopic.php?p=40441#p40441 - scene2d, Action#setActor no longer calls reset if the Action has no pool. This allows non-pooled actions to be add and removed from actors, restarted, and reused. - ScrollBar#setForceOverscroll renamed to setForceScroll, as it affects more than just overscroll. - ArrayMap#addAll renamed to putAll to match the other maps. - Added ObjectSet and IntSet. - Added completion listener to Music. - Added Music#setPan. - Sound#play and Sound#loop on Android now return -1 on failure, to match other backends. - DelegateAction subclasses need to implement delegate() instead of act(). http://www.badlogicgames.com/forum/viewtopic.php?p=43576#p43576 - Added pause and resume methods to Sound. - Changed AssetErrorListener#error to have AssetDescriptor to enable access to parameters of failed asset. - Changed SelectBoxStyle to have ScrollPaneStyle and ListStyle for fully customizing the drop down list. http://www.badlogicgames.com/wordpress/?p=3110 - AssetLoader now takes a FileHandle that is the resolved file name. The AssetLoader no longer has to resolve the file name, so we can prevent it from being resolved twice. - Rewrote EarClippingTriangulator to not allocate (no more Vector2s). - Added ParticleEffectLoader to make AssetManager load ParticleEffects - Added GeometryUtils, more Intersector functions, DelaunayTriangulator, ConvexHull. - Added getBoundingBox to ParticleEffect - EarClippingTriangulator changed to return triangle indices. - PolygonSpriteBatch and friends refactored to use triangle indices. - Added add(T, float), remove(int), remove(T) and clear() methods to BinaryHeap - Bitmap Font changes: - FreeTypeFontGenerator allows you to specify the PixmapPacker now, to create an atlas with many different fonts (see FreeTypePackTest) - BitmapFont, BitmapFontCache and FreeTypeFontGenerator now support fonts with multiple texture pages. (see BitmapFontTest and FreeTypePackTest) - BitmapFontData.imagePath and getImagePath() is depreacted, use imagePaths[] and getImagePath(int) instead - Added two BitmapFont constructors for convenience; no need to specify flip boolean - Added getCache() to BitmapFont, for expert users who wish to use the BitmapFontCache (see BitmapFontTest) - FreeTypeFontGenerator now includes setMaxTextureSize and getMaxTextureSize to cap the generated glyph atlas size (default 1024) - added render-hooks beginRender() and endRender() to BatchTiledMapRenderer - Added panStop to GestureListener interface. - ScissorStack#calculateScissors changed to take viewport, enabling it to work with glViewport. - Added Bits#getAndClear, Bits#getAndSet and Bits#containsAll - Added setX and setY to TextureAtlas.AtlasSprite so it matches expected behavior [0.9.8] - see http://www.badlogicgames.com/wordpress/?p=2791 [0.9.7] - see http://www.badlogicgames.com/wordpress/?p=2664 [0.9.6] - see http://www.badlogicgames.com/wordpress/?p=2513
[1.12.2-SNAPSHOT] - Fixed GlyphLayout for fixed width glyph offsets at the start and end of lines. - Fixed scene2d.ui layout for fractional positions and sizes. [1.12.1] - LWJGL3 Improvement: Audio device is automatically switched if it was changed in the operating system. - Tiled Fix: TiledLayer parallax default values fix - API Addition: TiledDrawable: Align can be set to manipulate the alignment of the rendering (TiledDrawable#setAlign, TiledDrawable#getAlign) - API Addition: TiledDrawable#draw: Also available as a static function (with align) if you don't want to create an extra instance per texture region - Android: Removed mouse catching added on 1.12.0 due to unintended effects (see #7187). - Android: Fixed touch state inconsistency when touching screen with 3 fingers on some devices (see #7256) - iOS: Update to MobiVM 2.3.20 - API Addition: Using "object" property in Tiled object now fetches MapObject being pointed to, and BaseTmxMapLoader includes method for fetching map where key is id and value is MapObject instance. - Update to LWJGL 3.3.3 - API Addition: Vector4 is just like Vector2 or Vector3, but with x, y, z, and w float components; a Vector4 can be passed as a shader uniform. - Fix: Fix crash with ANGLE GLES renderer - API Change: Use STBVorbis to decode ogg data for Sound - API Change: Remove usage of deprecated tag on GL30 - Lower GLIBC requirements to 2.17 in order to support older Linux systems - Fix: Fix setCursor releasing the caught cursor on the LWJGL 3 backend. - Fix crash in ParticleEditor and Flame - Fix bitwise precedence in ModelBatch#addMesh (float[] vertices, short[] indices) - Improve the default font's compatibility with GL30 - Fix potential IndexOutOfBoundsException on AsynchronousAndroidSound - API Addition: GwtGL20 & GwtGL30#glGetFramebufferAttachmentParameteriv - Fix Tiled classes not being registered in the reflection cache - Fix: Change androidx.fragment dependency to compileOnly - Fix borderless fullscreen when taskbar is on the left/top [1.12.0] - [BREAKING CHANGE] Added #touchCancelled to InputProcessor interface, see #6871. - [BREAKING CHANGE] Android: Immersive mode is now true by default. Set `useImmersiveMode` config to `false` to disable it. - [BREAKING CHANGE] iOS: Increased min supported iOS version to 11.0. Update your Info.plist file if necessary. - [BREAKING CHANGE] iOS: `hideHomeIndicator` set to `false` by default (was `true`). - [BREAKING CHANGE] iOS: `screenEdgesDeferringSystemGestures` set to `UIRectEdge.All` by default (was `UIRectEdge.None`). - [BREAKING CHANGE] iOS: preferred FPS is now uncapped by default, see #6717 - [BREAKING CHANGE] iOS: `ApplicationListener.create` and first `resize` are now called within `UIApplicationDelegate.didFinishLaunching`. Allows for earlier rendering and prevents black screen frames after launch screen. NOTE: App will get terminated if this method is blocked for more than 10-20 sec. - [BREAKING CHANGE] Actor#localToAscendantCoordinates throws an exception if the specified actor is not an ascendant. - [BREAKING CHANGE] WidgetGroup#hit first validates the layout. - [BREAKING CHANGE] Cell getters return object wrapper instead of primitives. - [BREAKING CHANGE] MeshPartBuilder#lastIndex now returns int instead of short. - [BREAKING CHANGE] 3D API - max bone weights is now configurable and limited to 4 by default. Change this value if you need less or more. See #6522. - [BREAKING CHANGE] Mesh#getVerticesBuffer, Mesh#getIndicesBuffer, VertexData#getBuffer, and IndexData#getBuffer are deprecated in favor to new methods with boolean parameter. If you subclassed some of these classes, you need to implement the new methods. - [BREAKING CHANGE] Desktop: The return value of AudioDevice#getLatency() is now in samples, and not milliseconds - [BREAKING CHANGE] iOS: 32 bit (armv7) builds are no longer supported. Builds must be 64 bit (arm64) only. - [BREAKING CHANGE] iOS: Use dynamic frameworks instead of static libs - [BREAKING CHANGE] optimized Mesh#bind and Mesh#unbind have a new parameter for instanced attribute locations. If you use these methods without instancing, you can pass a null value. - [BREAKING CHANGE] Dropped support for older libc versions since libGDX is now built on Ubuntu 20.04 (#7005) - [KNOWN ISSUE] Android drag behaviour. Gdx.input.getDeltaX() and Gdx.input.getDeltaY always return 0 for pointer 0. Fixed on next version. - Update to jnigen 2.4.1 - LWJGL Fix: setPosision() for MP3 files. - iOS: Add new MobiVM MetalANGLE backend - iOS: Update to MobiVM 2.3.19 - Update to LWJGL 3.3.2 - API Addition: Added Audio#switchOutputDevice and Audio#getAvailableOutputDevices to specify output devices. Only works for LWJGL3 - Fix LWJGL3: Audio doesn't die anymore, if a device gets disconnected - API Addition: Added Haptics API with 4 different Input#vibrate() methods with complete Android and iOS implementations. - API Addition: Vector2: Added static methods for angleDeg and angleRad - Fix: Fixed Android and iOS touch cancelled related issues, see #6871. - Javadoc: Add "-use" flag to javadoc generation - Android: gdx-setup now uses AGP 7.2.2 and SDK 32, requiring Android Studio Chipmunk or IntelliJ IDEA 2022.2 and JDK 11. - libGDX is now built using Java 11 due to new Android requirements. The rest of libGDX can still be built with JDK 8 and runtime compatibility of libGDX projects should be unaffected. - Fixed glViewport when using HdpiMode.Logical with the LWJGL3 backend. - Added Stage#actorRemoved to fire exit events just before an actor is removed. - ScrollPane#setScrollingDisabled avoids invalidate() if nothing changed. - Fixed incorrect ScrollPane#scrollTo. - API Addition: Added Texture3D support - Fix: Throw an exception when maximum Attribute count is reached to prevent silent failure. - API Fix: The cursor can now be catched on Android. - LWJGL3 Fix: Stereo audio can now be played on mono output devices. This may also improve downmixing to stereo and upmixing to surround. - API Addition: Added CheckBox#getImageDrawable. - FIX: HexagonalTiledMapRenderer now displays maps with the correct stagger index. - API Addition: Added I18NBundle#keys() method. - TOOLS Features: Save mode can be changed in Flame particle 3D editor. - API Addition: added WebGL 2.0 implementation to Gwt backend : you can enable it by GwtApplicationConfiguration#useGL30 - Added GLES31 and GLES32 support with Lwjgl3 backend implementation - API Addition: JsonReader#stop() to stop parsing. - API Change: TextureAtlas now uses FileHandle#reader so outside code can control the charset - API Fix: Intersector#isPointInTriangle - API Addition: The Skin serializer now supports useIntegerPositions - API Change: The skin serializer now treats scaledSize as a float - API Change: DataInput throws an EOF-Exception - API Fix: RenderBuffer leak in GLFrameBuffer class - API Change: Pixmap#setPixels will now verify it has been given a direct ByteBuffer - API Addition: glTexImage2D and glTexSubImage2D with offset parameter - API Addition: OrientedBoundingBox - API Addition: Tiled parallax factor support - API Fix: LWJGL 3’s borderless fullscreen works with negative monitor coords - API Fix: Update mouse x and y values immediately after calling #setCursorPosition - API Change: Never stall with AssetManager on GWT - API Change: Allow packed depth stencil buffer creation when not using GL30 - API Fix: Fixed DataInput#readString for non-ASCII - API Fix: LwjglGraphics.setupDisplay() is no longer choosing the wrong display mode - API Fix: MathUtils.lerpAngle() fixed for extreme inputs - MathUtils trigonometry improvements - Various Scene2D fixes and improvements - Fix: JsonValue#addChild now clears leftover list pointers, preventing inconsistent or looping JSON objects. [1.11.0] - [BREAKING CHANGE] iOS: Increased min supported iOS version to 9.0. Update your Info.plist file if necessary. - [BREAKING CHANGE] Removed Maven and Ant build systems. libGDX is now solely built with Gradle. See https://libgdx.com/dev/from-source/ for updated build instructions. - [BREAKING CHANGE] Android Moved natives loading out of static init block, see #5795 - [BREAKING CHANGE] Linux: Shared libraries are now built on Ubuntu 18.04 (up from Ubuntu 16.04) - [BREAKING CHANGE] The built-in font files arial-15.fnt and arial-15.png have been replaced with lsans-15.fnt and lsans-15.png; this may change some text layout that uses the built-in font, and code that expects arial-15 assets to be present must change to lsans-15. - [BREAKING CHANGE] Legacy LWJGL3 projects must update the sourceCompatibility to 1.8 or higher. - [BREAKING CHANGE] Android Removed hideStatusBar configuration, see #6683 - [BREAKING CHANGE] Lwjgl3ApplicationConfiguration#useOpenGL3 was replaced by #setOpenGLEmulation - Gradle build now takes -PjavaVersion=7|8|9... to specify the Java version against which to compile libGDX. Default is Java 7 for everything, except the LWJGL3 backend, which is compiled for Java 8. - LWJGL3 extension: Added gdx-lwjgl3-glfw-awt-macos extension. Fixes GLFW in such a way, that the LWJGL3/libGDX must no longer run on the main thread in macOS, which allows AWT to work in parallel, i.e. file dialogs, JFrames, ImageIO, etc. You no longer need to pass `-XstartOnFirstThread` when starting an LWJGL3 app on macOS. See `AwtTestLWJGL` in gdx-tests-lwjgl3. For more information, see https://github.com/libgdx/libgdx/pull/6772 - API Addition: Added LWJGL3 ANGLE support for x86_64 Windows, Linux, and macOS. Emulates OpenGL ES 2.0 through DirectX (Windows), desktop OpenGL (Linux), and Metal (macOS). May become the preferred method of rendering on macOS if Apple removes OpenGL support entirely. May fix some OpenGL driver issues. More information here: https://github.com/libgdx/libgdx/pull/6672 - iOS: Update to MobiVM 2.3.16 - Update to LWJGL 3.3.1 - API Addition: ObjLoader now supports ambientColor, ambientTexture, transparencyTexture, specularTexture and shininessTexture - API Addition: PointSpriteParticleBatch blending is now configurable. - TOOLS Features: Blending mode and sort mode can be changed in Flame particle 3D editor. - API Addition: Polygon methods setVertex, getVertex, getVertexCount, getCentroid. - API Addition: TMX built-in tile property "type" is now supported. - API Addition: Octree structure. - API Addition: Added StringBuilder#toStringAndClear() method. - FirstPersonCameraController keys mapping is now configurable - Fix: GlyphLayout: Several fixes for color markup runs with multi-line or wrapping texts - API change: GlyphLayout#GlyphRun is now one GlyphRun per line. "color" was removed from GlyphRun and is now handled by GlyphLayout. - Gdx Setup Tool: Target Android API 30 and update AGP plugin to 4.1.3 - API Fix: Sound IDs are now properly removed; this prevents changes to music instances with the same ID - API Fix: LWJGL3Net#openURI does now work on macOS & JDK >= 16 - API Fix: Fixed a possible deadlock with AssetManager#dispose() and #clear() - API Change: Enable the AL_DIRECT_CHANNELS_SOFT option for Sounds and AudioDevices as well to fix stereo sound - API Addition: CameraInputController#setInvertedControls(boolean) - API Removal: AnimatedTiledMapTile#frameCount - LWJGL 3 is now the default desktop backend. If you want to port your existing applications, take a look here: https://gist.github.com/crykn/eb37cb4f7a03d006b3a0ecad27292a2d - Brought the official and third-party extensions in gdx-setup up to date. Removed some unmaintained ones and added gdx-websockets & jbump. - API Fix: Escaped characters in XML attributes are now properly un-escaped - Bug Fix: AssetManager backslash conversion removed - fixes use of filenames containing backslashes - gdx-setup now places the assets directory in project root instead of android or core. See advanced settings (UI) or arguments (command line) if you don't want it in root. - API Fix: Resolved issues with LWJGL 3 and borderless fullscreen - API Addition: GeometryUtils,polygons isCCW, ensureClockwise, reverseVertices - API Addition: Added FreeTypeFontGenerator#hasCharGlyph method. - API Fix: Pool discard method now resets object by default. This fixes the known issue about Pool in libGDX 1.10.0. - API Addition: Split GWT reflection cache into two generated classes - API Fix: Fix Box2D memory leak with ropes on GWT - API Fix: Fix NPE in Type#getDeclaredAnnotation - API Addition: Add pause/resume methods to AudioDevice - API Fix: Protection against NullPointerException in World#destroyBody() - API Fix: Prevent repeated mipmap generation in FileTextureArrayData - API Fix: Fix issue with camera reference in CameraGroupStrategy’s default sorter - API Fix: Move vertex array index buffer limit to backends to fix issue with numIndices parameter - API Fix: TexturePacker: Fix wrong Y value when using padding - API Fix: Lwjgl3Net: Add fallback to xdg-open on Linux if Desktop.BROWSE is unavailable - API Addition: Add NWSEResize, NESWResize, AllResize, NotAllowed and None SystemCursors - API Addition: GWTApplication#getJavaHeap and getNativeHeap are now supported - API Addition: Box2D Shape now implements Disposable - API Addition: Added ChainShape#clear method - API Addition: Added Tooltip#setTouchIndependent; see #6758 - API Addition: Emulate Timer#isEmpty on GWT - API Addition: Bits add copy constructor public Bits (Bits bitsToCpy) - API Addition: Added List#drawSelection(). - API Addition: GwtApplicationConfiguration#xrCompatible - API Fix: setSystemCursor() now works on Android - API Fix: getDisplayMode() is now more accurate on Android and GWT. - API Addition: JsonValue#iterator(String) to more easily iterate a child that may not exist. - API Addition: Added ExtendViewport#setScaling, eg for use with Scaling.contain. - API Addition: Added application lifecycle methods to IOSAudio for custom audio implementations. - API Addition: Added getBoundingRectangle() to Polyline - API Addition: ShapeRenderer#check() has now protected visibility - API Addition: Add ability to host GWT module on a different domain than the site, see #6851 - API Addition: Addes Tooltip#setTouchIndependent; see #6758 - API ADDITION: Emulate Timer#isEmpty on GWT - API Addition: OrientedBoundingBox. [1.10.0] - [BREAKING CHANGE] Android armeabi support has been removed. To migrate your projects: remove any dependency with natives-armeabi qualifier from your gradle build file, this apply to gdx-platform, gdx-bullet-platform, gdx-freetype-platform and gdx-box2d-platform. - [BREAKING CHANGE] tvOS libraries have been removed. No migration steps required. - [BREAKING CHANGE] Linux x86 (32-bit) support has been removed. No migration steps required. - [BREAKING CHANGE] Requires Java 7 or above. - [BREAKING CHANGE] API Change: Scaling is now an object instead of an enum. This may change behavior when used with serialization. - [BREAKING CHANGE] Group#clear() and #clearChildren() now unfocus the children. Added clear(boolean) and clearChildren(boolean) for when this isn't wanted. Code that overrides clear()/clearChildren() probably should change to override the (boolean) method. #6423 - [BREAKING CHANGE] Lwjgl3WindowConfiguration#autoIconify is enabled by default. - [KNOWN ISSUE] Pool no longer reset freed objects when pool size is above its retention limit. Pool will discard objects instead. If you want to keep the old behavior, you should override Pool#discard method to reset discarded objects. - Scene2d.ui: Added new ParticleEffectActor to use particle effects on Stage - API addition: iOS: Added HdpiMode option to IOSApplicationConfiguration to allow users to set whether they want to work in logical or raw pixels (default logical). - Fix for #6377 Gdx.net.openURI not working with targetSdk 30 - Api Addition: Added a Pool#discard(T) method. - Architecture support: Linux ARM and AARCH64 support has been added. The gdx-xxx-natives.jar files now contain native libraries of these architectures as well. - API Addition: Desktop Sound now returns number of channels and sample rate. [1.9.14] - [BREAKING CHANGE] iOS: IOSUIViewController has been moved to its own separate class - [BREAKING CHANGE] API Change: G3D AnimationDesc#update now returns -1 (instead of 0) if animation not finished. - [BREAKING CHANGE] InputEventQueue no longer implements InputProcessor, pass InputProcessor to #drain. - [BREAKING CHANGE] HeadlessApplicationConfiguration#renderInterval was changed to #updatesPerSecond - API addition: Added Pixmap#setPixels(ByteBuffer). - API change: ScreenUtils#getFrameBufferPixmap is deprecated in favor to new method Pixmap#createFromFrameBuffer. - API Addition: Added overridable createFiles() methods to backend application classes to allow initializing custom module implementations. - API Addition: Add a Graphics#setForegroundFPS() method. [1.9.13] - [BREAKING CHANGE] Fixed keycode representations for ESCAPE, END, INSERT and F1 to F12. These keys are working on Android now, but if you hardcoded or saved the values you might need to migrate. - [BREAKING CHANGE] TextureAtlas.AtlasRegion and Region splits and pads fields have been removed and moved to name/value pairs, use #findValue("split") and #findValue("pad") instead. - iOS: Update to MobiVM 2.3.12 - GWT: Key codes set with Gdx.input.setCatchKey prevent default browser behaviour - Added Scaling.contain mode: Scales the source to fit the target while keeping the same aspect ratio, but the source is not scaled at all if smaller in both directions. - API Addition: Added hasContents() to Clipboard interface, to reduce clipboard notifications on iOS 14 - TOOLS Features: Blending mode can be changed in Flame particle 3D editor. - Input Keycodes added: CAPS_LOCK, PAUSE (aka Break), PRINT_SCREEN, SCROLL_LOCK, F13 to F24, NUMPAD_DIVIDE, NUMPAD_MULTIPLY, NUMPAD_SUBTRACT, NUMPAD_ADD, NUMPAD_DOT, NUMPAD_COMMA, NUMPAD_ENTER, NUMPAD_EQUALS, NUMPAD_LEFT_PAREN, NUMPAD_RIGHT_PAREN, NUM_LOCK. Following changes might be done depending on platform: Keys.STAR to Keys.NUMPAD_MULTIPLY, Keys.SLASH to Keys.NUMPAD_DIVIDE, Keys.NUM to Keys.NUM_LOCK, Keys.COMMA to Keys.NUMPAD_COMMA, Keys.PERIOD to Keys.NUMPAD_DOT, Keys.COMMA to Keys.NUMPAD_COMMA, Keys.ENTER to Keys.NUMPAD_ENTER, Keys.PLUS to Keys.NUMPAD_ADD, Keys.MINUS to Keys.NUMPAD_SUBTRACT - Added a QuadFloatTree class. - Desktop: Cubemap Seamless feature is now enabled by default when supported, can be changed via backend specific methods, see supportsCubeMapSeamless and enableCubeMapSeamless in both LwjglGraphics and Lwjgl3Graphics. - API Addition: TextureAtlas reads arbitrary name/value pairs for each region. See #6316. - TexturePacker writes using a new format when legacyOutput is false (default is true). TextureAtlas can read both old and new formats. See #6316. [1.9.12] - [BREAKING CHANGE] iOS: Changed how Retina/hdpi handled on iOS. See #3709. - [BREAKING CHANGE] API Change: InputProcessor scrolled method now receives scroll amount for X and Y. Changed type to float to support devices which report fractional scroll amounts. Updated InputEvent in scene2d accordingly: added scrollAmountX, scrollAmountY attributes and corresponding setters and getters. See #6154. - [BREAKING CHANGE] API Change: Vector2 angleRad(Vector2) now correctly returns counter-clockwise angles. See #5428 - [BREAKING CHANGE] Android: getDeltaTime() now returns the raw delta time instead of a smoothed one. See #6228. - Fixed vertices returned by Decal.getVertices() not being updated - Fixes Issue #5048. The function Intersector.overlapConvexPolygons now should return the right minimum translation vector values. - Update to MobiVM 2.3.11 - API Change: Removed Pool constructor with preFill parameter in favor of using Pool#fill() method. See #6117 - API Addition: Slider can now be configured to only trigger on certain mouse button clicks (Slider#setButton(int)). - Fixed GlyphLayout not laying out correctly with color markup. - Fixed TileDrawable not applying its scale correctly. - API Addition: Added epsilon methods to maps with float values. - API Addition: Added an insertRange method to array collections. - Fixed GestureDetector maxFlingDelay. - API Change: Changed default GestureDetector maxFlingDelay to Integer.MAX_VALUE (didn't work before, this matches that). - Gdx.files.external on Android now uses app external storage - see wiki article File handling for more information - Improved text, cursor and selection rendering in TextArea. - API Addition: Added setProgrammaticChangeEvents, updateVisualValue, round methods to ProgressBar/Slider. - iOS: Keyboard events working on RoboVM on iOS 13.5 and up, uses same API as on other platforms - API Addition: Added AndroidLiveWallpaper.notifyColorsChanged() to communicate visually significant colors back to the wallpaper engine. - API Change: AssetManager invokes the loaded callback when an asset is unloaded from the load queue if the asset is already loaded. - GWT: changed audio backend to WebAudio API. Now working on mobiles, pitch implemented. Configuration change: preferFlash removed. When updating existing projects, you can remove the soundmanager js files from your webapp folder and the references to it from index.html - GWT: added possibility to lazy load assets via AssetManager instead of preload them before game start. See GWT specifics wiki article for more information. - GWT: New configuration setting usePhysicalPixels to use native resolution on mobile / Retina / HDPI screens. When using this option, make sure to update your code in index.html and HTMLLauncher from setup template. - GWT: GwtApplicationConfiguration and GWT backend now support an application to be resizable or fixed size. You can remove your own resizing code from your HTMLLaunchers. - GWT: Assets in distribute build are renamed with md5 hash suffix to bypass browser cache on changes - GWT: Fixed GwtFileHandle that was only returning text assets when listing a directory, now returns all children - API Addition: Pixmap.downloadFromUrl() downloads an image from http(s) URLs and passes it back as a Pixmap on all platforms - Added support for Linux ARM builds. - 32-bit: ARMv7/armhf - 64-bit: ARMv8/AArch64 - API Change: Removed arm abi from SharedLibraryLoader - API Addition: Added a Lwjgl3ApplicationConfiguration#foregroundFPS option. - API Change: Utility classes are now final and have a private constructor to prevent instantiation. - API Change: ScrollPane now supports all combinations of scrollBarsOnTop and fadeScrollBars. - API Addition: Added new methods with a "deg" suffix in the method's name for all Vector2 degrees-based methods and deprecated the old ones. - API Addition: Added Slider#setVisualPercent. - API Change: Enabling fullscreen mode on the lwjgl3 backend now automatically sets the vsync setting again. - API Addition: Added put(key, value, defaultValue) for maps with primitive keys, so the old value can be returned. - API Addition: Added ObjectLongMap. - Added Intersector#intersectRayOrientedBoundsFast to detect if a ray intersects an oriented bounding box, see https://github.com/libgdx/libgdx/pull/6139 - API Addition: Added Table#clip() and Container#clip() methods. - API Addition: Added getBackgroundDrawable() to Button. - API Addition: Added imageCheckedDown and getImageDrawable() to ImageButton and ImageTextButton. - API Addition: Added focusedFontColor, checkedFocusedFontColor, and getFontColor() to TextButton and ImageTextButton. - API Addition: Added wrapReverse setting to HorizontalGroup. - API Addition: Added Slider style drawables for over and down: background, knobBefore, and knobAfter. - Fixed LwjglFrame not hiding the canvas in some situations. - API Change: Table#round uses ceil/floor and is applied during layout, rather than afterward. - Fixed blurry NinePatch rendering when using a single center region. - API Change: Upon changing the window size with the lwjgl3 backend, the window is centered on the monitor. - Fixed DepthShaderProvider no longer creates one DepthShader per bones count. Now it creates only one skinned variant and one non-skinned variant based on DepthShader/Config numBones. - API Addition: Added Intersector#intersectPlanes to calculate the point intersected by three planes, see https://github.com/libgdx/libgdx/pull/6217 - API Addition: Added alternative Android Audio implementation for performant sound. See https://github.com/libgdx/libgdx/pull/6243. - API Addition: Expose SpriteBatch and PolygonSpriteBatch setupMatrices() as protected. - API Addition: New parameter OnscreenKeyboardType for Input.setOnscreenKeyboardVisible and Input.getTextInput [1.9.11] - Update to MobiVM 2.3.8 - Update to LWJGL 3.2.3 - Fixed AndroidInput crashes due to missing array resize (pressure array). - API Change: Ray#set methods and Ray#mul(Matrix4) normalize direction vector. Use public field to set and avoid nor() - API Change: New internal implementation of all Map and Set classes (except ArrayMap) to avoid OutOfMemoryErrors when too many keys collide. This also helps resistance against malicious users who can choose problematic names. - API Addition: OrderedMap#alter(Object,Object) and OrderedMap#alterIndex(int,Object) allow swapping out a key in-place without changing its value; OrderedSet also has this. - API Addition: Json can now read/write: ObjectIntMap, ObjectFloatMap, IntMap, LongMap. - API Addition: Added @Null annotation for IDE null analysis. All parameters and return values should be considered non-null unless annotated (or javadoc'ed if not yet annotated). - API Addition: Added ParticleEmitter#preAllocateParticles() and ParticleEffect#preAllocateParticles() to avoid particle allocations during updates. - Fixed changing looping state of already playing sounds on Android by first pausing the sound before setting the looping state (see #5822). - API Change: scene2d: Table#getRow now returns -1 when over the table but not over a row (used to return the last row). - API Change: scene2d: Tree#addToTree and #removeFromTree now have an "int actorIndex" parameter. - API Addition: scene2d: Convenience method Actions#targeting(Actor, Action) to set an action's target. - API Change: scene2d: In TextField, only revert the text if the change event was cancelled. This allows the text to be manipulated in the change listener. - API Change: scene2d: Tree.Node#removeAll renamed to clearChildren. - API Addition: scene2d: Added SelectBox#setSelectedPrefWidth to make the pref width based on the selected item and SelectBoxStyle#overFontColor. - API Change: DefaultTextureBinder WEIGHTED strategy replaced by LRU strategy. - API Change: ShaderProgram begin and end methods are deprecated in favor to bind method. - API Addition: Added a OpenALAudio#getSourceId(long) method. - API Addition: Added a ShaderProgram#getHandle() method. - API Change: Replaced deprecated android support libraries with androidx. AndroidFragmentApplication is only affected. - API Addition: Created interfaces AndroidAudio and AndroidInput and added AndroidApplication#createAudio and AndroidApplication#createInput to allow initializing custom module implementations. - Allows up to 64k (65536) vertices in a Mesh instead of 32k before. Indices can use unsigned short range, so index above 32767 should be converted to int using bitwise mask, eg. int unsigneShortIndex = (shortIndex & 0xFFFF). - API Change: DragAndDrop only removes actors that were not already in the stage. This is to better support using a source actor as the drag actor, see #5675 and #5403. - API Change: Changed TiledMapTileLayer#tileWidth & #tileHeight from float to int - API Addition: convenient Matrix4 rotate methods: rotateTowardDirection and rotateTowardTarget - API Addition: Convenience method Actions#targeting(Actor, Action) to set an action's target. - API Change: Correction of TextField#ENTER_ANDROID renamed to NEWLINE and TextField#ENTER_DESKTOP renamed to CARRIAGE_RETURN. - API Change: Changed the visibility of TextField#BULLET, TextField#DELETE, TextField#TAB and TextField#BACKSPACE to protected. - API Addition: TextField and TextArea are providing the protected method TextField#checkFocusTraverse(char) to handle the focus traversal. - API Addition: UIUtils provides the constants UIUtils#isAndroid and UIUtils#isIos now. - Fixed: The behaving of TextFields and TextAreas new line and focus traversal works like intended on all platforms now. - API Change: Changed Base64Coder#encodeString() to use UTF-8 instead of the platform default encoding. See #6061 - Fixed: SphereShapeBuilder poles are now merged which removes lighting artifacts, see #6068 for more information. - API Change: Matrix3#setToRotation(Vector3, float float) now rotates counter-clockwise about the axis provided. This also changes Matrix3:setToRotation(Vector3, float) and the 3d particles will rotate counter-clockwise as well. - API Change: TexturePacker uses a dash when naming atlas page image files if the name ends with a digit or a digit + 'x'. - API Addition: Added Skin#setScale to control the size of drawables from the skin. This enables scaling a UI and using different sized images to match, without affecting layout. - API Change: Moved adding touch focus from Actor#notify to InputListener#handle (see #6082). Code that overrides InputListener#handle or otherwise handles InputEvent.Type.touchDown events must now call Stage#addTouchFocus to get touchDragged and touchUp events. - API Addition: Added AsynchronousAssetLoader#unloadAsync to fix memory leaks when an asset is unloaded during loading. - Fixed Label text wrapping when it shouldn't (#6098). - Fixed ShapeRenderer not being able to render alpha 0xff (was max 0xfe). - API Change: glGetActiveUniform and glGetActiveAttrib parameter changed from Buffer to IntBuffer. [1.9.10] - API Addition: Allow target display for maximization LWJGL3 backend - API Addition: Accelerometer support on GWT - API Change: Set default behaviour of iOS audio to allow use of iPod - API Change: IOSDevice is no longer an enum to allow users to add their own new devices when LibGDX is not up to date - API Addition: Add statusBarVisible configuration to IOSApplicationConfiguration - Update GWT Backend to GWT 2.8.2 - Update Android backend to build against API 28 (Android 9.0) - API Addition: Input.isButtonJustPressed - Update to LWJGL 2 backend to 2.9.3 - Update to MobiVM 2.3.6 release - Update to LWJGL 3.2.1 - API Addition: Input allows getting the maximum number of pointers supported by the backend - API Addition: Configuration option added to allow setting a max number of threads to use for net requests - API Change: NetJavaImpl now uses a cached thread pool to allow concurrent requests (by default, the thread pool is unbounded - use maxNetThreads in backend configurations to set a limit - set to 1 for previous behavior) - API Addition: New MathUtils norm and map methods - API Change: Pixmap blending was incorrect. Generated fonts may change for the better, but may require adjusting font settings. - API Change: Particle effects obtained from a ParticleEffectPool are now automatically started - Removed OSX 32-bit support - API Change: By default LWJGL2 backend no longer does pause/resume when becoming background/foreground window. New app config setting was added to enable the old behavior. - API Change: By default LWJGL2 backend now does pause/resume when window is minimized/restored. New app config setting was added to disable this behavior. - LWJGL3: Fixed window creation ignoring refresh rate of fullscreen mode. - TmxMapLoader and AtlasTmxMapLoader refactoring: Shared functionality was moved to BaseTmxMapLoader, duplicate code was removed. - AtlasTmxMapLoader supports group layers now (a positive side effect of the BaseTmxMapLoader refactoring). - API Change: TmxMapLoader and AtlasTmxMapLoader: load/loadAsync methods work exactly as before, but many methods of these classes had to change. This makes it possible implement new Tiled features. - API Addition: TextField#drawMessageText. - Fixed TextField rendering text outside the widget at small sizes. - API Addition: Group#getChild(int) - API Addition: notEmpty() for collections. - API Change: scene2d.ui Tree methods renamed for node set/getObject to set/getValue. - API Change: scene2d.ui Tree and Tree.Node require generics for the type of node, values, and actors. - API Change: For Selection in scene2d.utils "toggle" is now respected when !required and selected.size == 1. - API Addition: new InstanceBufferObject and InstanceBufferObjectSubData classes to enable instanced rendering. - API Addition: Support for InstancedRendering via Mesh - API Change: Cell#setLayout renamed to setTable. - API Addition: Added Collections#allocateIterators. When true, iterators are allocated. When false (default), iterators cannot be used nested. - API Addition: Added Group#removeActorAt(int,boolean) to avoid looking up the actor index. Subclasses intending to take action when an actor is removed may need to override this new method. - API Change: If Group#addActorAfter is called with an afterActor not in the group, the actor is added as the last child (not the first). [1.9.9] - API Addition: Add support for stripping whitespace in PixmapPacker - API Addition: Add support for 9 patch packing in PixmapPacker - API Addition: Pressure support for ios/android. https://github.com/libgdx/libgdx/pull/5270 - Update to Lwjgl 3.2.0 - Update android level we build against to 7.1 (API 25) - API Change: gdx-tools no longer bundles dependencies to be compatible with java 9 - Skin JSON files can now use the simple names of classes, i.e. "BitmapFont" rather than "com.badlogic.gdx.graphics.g2d.BitmapFont". Custom classes can be added by overriding Skin.getJsonLoader() and calling json.setClassTag(). - Skin supports cascading styles in JSON. Use the "parent" property to tag another style by name to use its values as defaults. See https://github.com/libgdx/libgdx/blob/master/tests/gdx-tests-android/assets/data/uiskin.json for example. - SkinLoader can be used on subclasses of Skin by overriding generateSkin(). - API addition: Tree indentation can be customized. - Fixed GlyphLayout not respecting BitmapFontData#down. - API Addition: Added faceIndex paramter to #FreeTypeFontGenerator(FileHandle, int). - API Change: BitmapFont#getSpaceWidth changed to BitmapFont#getSpaceXadvance. - Many GlyphLayout fixes. - API Addition: Added FileHandle#map(), can be used to memory map a file - API Change: BitmapFontData#getGlyphs changed for better glyph layout. See https://github.com/libgdx/libgdx/commit/9a7dfdff3c6374a5ebd2f33a819982aceb287dfa - API Change: Actor#hit is now responsible for returning null if invisible. #5264 - API Addition: Added [Collection]#isEmpty() method to all 22 custom LibGDX-collections (e.g. Array, ObjectMap, ObjectSet, Queue, ...) - API Addition: StringBuilder#clear() - API Addition: Color#WHITE_FLOAT_BITS - Table layout fixed when expand is used and the layout width is less than the table's min width. - InputMultiplexer#setProcessors(Array) now copies the items instead of using the specified array instance. - API Change: A wrapped HorizontalGroup or VerticalGroup will now size children down to their min size if the group is smaller than their pref size. - LWJGL3: useVSync() is now a per-window setting. Any additional windows should disable vsync to avoid frames dropping to (refresh rate / # of windows). - Batch and sprite implementations and SpriteCache store Color separately from the float packed color, since converting to/from float is lossy. - API Change: NumberUtils floatToIntColor expands the alpha from 0-254 to 0-255, so 255 doesn't become 254 from conversion from int to float to int. - API Change: Batch and Decal setColor(float) renamed to setPackedColor for differentiation, since the conversion from float to Color is lossy. - API Change: PolygonSprite getVertexColor renamed to getPackedColor to match other classes. - API Change: FreeTypeFontGenerator only generates a missing glyph if \0 is in the characters. - API Change: DragScrollListener no longer requires the touch/mouse cursor to be directly above/below the scroll pane. - API Change: List#toString(Object) changed from protected to public. Subclasses overriding this need to change to public. - API Change: List now handles more key presses. - API Change: TexturePacker ImageProcessor#addImage(File, String) now returns the Rect. [1.9.8] - Add iPhoneX images - Fix MacOS issue with GL_ARB_texture_float extension check - Fix AtlasTmxMapLoader tileset tile id offset - Bullet: updated to 2.87, see: http://bulletphysics.org/wordpress/?p=485 - API Addition: Possibility to specify TexturePacker settings for resampling when scaling. - API Addition: Support for customizing render buffer attachments in GLFrameBuffers - API Change: Revert to constructors for GLFrameBuffers for easier customization [1.9.7] - Update to MobiVM(RoboVM) 2.3.3 - Add iOS 11 support - Update to Lwjgl 3.1.3 - Update to MOE 1.4.0 - API Change: GLFrameBuffer has been refactored https://github.com/libgdx/libgdx/pull/4882. Create standard FrameBuffers with static methods. Customized FBOS with FrameBufferBuilder - API addition: Tiled group layer support - Fix Tiled properties, offset parsing for image layers - API addition: Added utility methods for Vector equals with epsilon - Fix Animation backing array type - Fix Mesh copying with 0 indices - Fix restoration of pooled particle effects scale - Fix loss of controller listeners on reconnect - Added basic kotlin project generation support in the setup tool - API addition: Allow APK expansion to be used in fragments and activities - API addition: Added color properties support from tiled maps - API Change: Added rotation vector sensor support on Android - API Change: GLProfiler refactored for OOP and lwjgl3 multi windows - LWJGL3: The creation of additional windows via Lwjgl3Application.newWindow() is now deferred, with postRunnable(), until all existing windows have been updated. This fixes a potential native crash with NVidia GL drivers on Windows, presumably caused by a GL context conflict. - API addition: Lwjgl3WindowListener.created() is called after a new window has been created. It's unsafe to call Lwjgl3Window functions in between Lwjgl3Application.newWindow() and this callback. - Updated LWJGL3 backend to 3.1.3. - Lwjgl3Graphics.setUndecorated() and Lwjgl3Graphics.setResizable() now delegate their work to the respective GLFW functions. - API addition: ProgressBar.isVertical() - returns whether a progress bar is vertical or horizontal. - API Change: SplitPane now by default does not allow the split amount to shrink children below their minimum sizes (cropping them). This behavior can be reverted by overriding clampSplitAmount or wrapping the children in Containers set to minSize(0) and fill(). SplitPane also now correctly includes the handle min size in its own min size calculations. - API Change: SplitPane.getSplit() renamed to SplitPane.getSplitAmount() to match other getter and setter names. - Improved internal Timer synchronization. - API Change: List#drawItem, added float width parameter. - API Addition: Make it possible to disable sound on the GWT-Backend with disableSound=true. - API Change: ScrollPane setWidget deprecated in favor of setActor to match other APIs. - API Change: removed JGLFW backend - Fixed mixed up use of TexturePacker.Settings.stripWhitespaceX|Y. - Added joystick POV support to LWJGL3 controller backend. - Added support for 2d particles sprite animation. - API Change: ParticleEmitter getSprite, setSprite, getImagePath, setImagePath are now getSprites, setSprites, getImagePaths, setImagePaths. - Added support for 2d particles independant scale X and Y. - API Change: ParticleEmitter getScale, matchSize are now getScaleX/getScaleY, matchSizeX/matchSizeY. Added scaleSize(float scaleX, float scaleY) - API Change: Added iconDropped() callback to AndroidWallpaperListener. [1.9.6] - Fix performance regression in LWJGL3 backend, use java.nio instead of BufferUtils. Those are intrinsics and quite a bit faster than BufferUtils on HotSpot. - Updated to latest Sound Manager 2 - Added mappings for Xbox 360 controller for Linux - Separated error log for vertex/fragment shaders for easier debugging - Minimum Android API level is now level 9 (Android 2.3) - API addition: Configurable TexturePacker bleed iterations - Updated IOS Multi-OS Engine backend to 1.3.6 - API Change: Pixmap.setBlending, Pixmap.setFilter are now instance methods - VertexAttribute expert constructors exposed. Short types can now be used for attributes. [1.9.5] - Fix NPE swallowing "video driver unsupported" error on LWJGL 2 backend. - Allow window icons to be set in Lwjgl3ApplicationConfiguration or Lwjgl3WindowConfiguration. - Allow window icon and title to be changed in Lwjgl3Window - API Addition: ApplicationLogger interface, allowing easier access to custom logging - DefaultRenderableSorter accounts for center of Renderable mesh, see https://github.com/libgdx/libgdx/pull/4319 - Bullet: added FilterableVehicleRaycaster, see https://github.com/libgdx/libgdx/pull/4361 - Bullet: updated to 2.85, see: http://bulletphysics.org/wordpress/?p=456 - Updated iOS native build scripts to iOS 10.1 and TVOS 10.0 - API Addition: BitmapFont#blankLineScale. - Fixed rounding of Drawables in ProgressBar. Allow rounding to be disabled with setRound(). - Updated LWJGL3 backend to LWJGL 3.1.0, see https://blog.lwjgl.org/lwjgl-3-1-0-released/ - LWJGL3 backend now supports non-continuous rendering, see https://github.com/libgdx/libgdx/pull/3772 - API Change: Lwjgl3WindowListener.refreshRequested() is called when the windowing system (GLFW) reports contents of a window are dirty and need to be redrawn. - API Change: Lwjgl3WindowListener.maximized() is called when a window enters or exits a maximized state. - API Change: Lwjgl3WindowListener.deiconified() removed, combined with .iconified(). - API Change: Lwjgl3Window.deiconify() renamed to .restore() since it can also be used to de-maximize a window. - Lwjgl3Window now has a maximize() method, and windows can be started maximized using the window or app configuration's setMaximized() method. - NinePatch can now be drawn rotated or scaled. - NinepatchDrawable is now a TransformDrawable. - API Change: Group add* methods no longer remove and re-add the actor if it is already in the group, instead they do nothing. - API Change: g2d.Animation is now generic so it can support Drawables, PolygonRegions, NinePatches, etc. To fix existing code, specify the TextureRegion type in animation declarations (and instantiations in Java 6), i.e. Animation<TextureRegion> myAnimation = new Animation<TextureRegion>(...); - TiledDrawable throws unsupported operation if trying to draw rotated/scaled. #4005 - API Change: DragAndDrop now puts default position of drag actor at pointer location. The original default offset from the pointer was (14, -20). - Added ShaderProgramLoader for AssetManager. - BoundingBox#isValid now returns also true when min==max, see: https://github.com/libgdx/libgdx/pull/4460 [1.9.4] - Moved snapping from ProgressBar to Slider to prevent snapping when setting the value programmatically. - Bullet: added btSoftBody#getLinkCount() and btSoftBody#getLink(int), see https://github.com/libgdx/libgdx/issues/4152 - API Change: Wrapping for scene2d's HorizontalGroup and VerticalGroup. - Fix hiero problem with certain unicode characters. See https://github.com/libgdx/libgdx/issues/4202 - Switched to RoboVM fork 2.2.0, fixes incompatibility with Android Gradle plugin and iOS 9.3.4 [1.9.3] - Switched to MobiDevelop's RoboVM fork (http://robovm.mobidevelop.com) - Addition of Intel Multi-OS Engine backend for deploying to iOS - Updated iOS native build scripts to iOS 9.3 and TVOS 9.2 - API Addition: GestureDetector#pinchStop() called when no longer pinching - API Addition: Gdx.graphics.setUndecorated/setResizable API added to Graphics https://github.com/libgdx/libgdx/pull/3847 - API Addition: Gdx.graphics.getGLVersion(), grab the GL version and implementation type. https://github.com/libgdx/libgdx/pull/3788 - API Change: Lwjgl3WindowListener -> filesDropped(String[] files) adds drag'n drop support for the lwjgl3 backend - Added isComplete() to ParticleEffect to make it easier to know when all the emitters are done, behaves the same as in the 2D API. - API Change: renamed Lwjgl3WindowListener.windowIsClosing() to closeRequested() to better communicate its intent. - Add IndexData.updateIndices method to increase performance when used with IndexBufferObjectSubData. - Added FlushablePool - Added ShapeCache see https://github.com/libgdx/libgdx/pull/3953 - API Change: moved shape builder logic out of MeshBuilder, see: https://github.com/libgdx/libgdx/pull/3996 - API Change: changed copy constructor OrderedMap(ObjectMap) to OrderedMap(OrderedMap) - API Change: Table reset now calls clearChildren, not clear. - Fixed crashes in AndroidMusic.java when isPlaying is called. Errors are now logged only rather than crashing the app. - Added emulation of ScreenUtils for GWT - Improved performance of glReadPixels() on GWT. New method is 20-30 times faster - Fixed crash on Mac when using LWJGL2, custom cursors and embedding the game in an AWT window - Fixed getDisplayModes(Monitor monitor) returning wrong data on LWJGL2 backend - Fixed Gdx.input.getCurrentEventTime() not being set on LWJGL3, fixes GestureDetector and flick scroll not working - Fixed not being able to select non-latin characters in TextFields - Bullet: added CustomActionInterface, see https://github.com/libgdx/libgdx/pull/4025 - Add window size limits option to LWJGL3 app and window configurations - Add handling of tag "<objectgroup>" within tags "<tile>" in TmxMap loaders. [1.9.2] - Added TextureArray wrapper see https://github.com/libgdx/libgdx/pull/3807 - Fixed bug in AndroidGL20.cpp which cast a pointer to a 32-bit int. Crash on 64-bit ARM, but only for a specific code path and address... - Fixed multiple controllers registering on same index with LWJGL3, see https://github.com/libgdx/libgdx/issues/3774 - Fixed the FreeTypeFontGenerator texture bleeding, see https://github.com/libgdx/libgdx/issues/3521 [1.9.1] - API Change: Override GwtApplication#createApplicationListener() to create your ApplicationListener on GWT, overriding GwtApplication#getApplicationListener() isn't needed anymore, see https://github.com/libgdx/libgdx/issues/3628 - Fixed ARM64 and x86_64 binaries for Android [1.9.0] - API Change: Lwjgl3ApplicationConfiguration#setBackbufferConfig -> setBackBufferConfig - Fixed HexagonalTiledMapRenderer, see https://github.com/libgdx/libgdx/pull/3654 - Added support for locking the screen orientation in GWT, see https://github.com/libgdx/libgdx/pull/3633 - Added Gdx-Kiwi and gdx-lml to extensions, see https://github.com/libgdx/libgdx/pull/3597 - Added Gyroscope support in Input, implemented for Android, see https://github.com/libgdx/libgdx/pull/3594 - Fixed touch mapping on iOS, see https://github.com/libgdx/libgdx/pull/3590 - Added orientation to Box2D Transform class, see https://github.com/libgdx/libgdx/pull/3308 - Added system cursors to GWT, fix 'Ibeam' system cursor not working on LWJGL3. - Added experimental AndroidApplicationConfiguration#useGL30 and IOSApplicationConfiguration#useGL30 for testing OpenGL ES 3.0 support on mobile devices, do not use in production. - Fix broken kerning for FreeType fonts, see https://github.com/libgdx/libgdx/pull/3756 - Added ARM64 and x86_64 binaries for Android - API Addition: FreeTypeFontParameter has an additional field for tweaking hinting, see https://github.com/libgdx/libgdx/pull/3757 [1.8.0] - API Change: Rewrote FreeType shadow rendering (much better). - Added spaceX/Y to FreeType fonts. - Higher quality FreeType font rendering. - Hiero updated to v5, now with FreeType support and other new features! - GlyphLayout now allocates much, much less memory when processing long text that wraps. - Added LWJGL 3 backend, see https://github.com/libgdx/libgdx/issues/3673 for more info. - Added Graphics#getBackBufferWidth and Graphics#getBackBufferHeight for HDPI handling - API Change: Added HdpiUtils. Instead of calling GL20#glViewport and GL20#glScissor yourself please use HdpiUtils instead. It will ensure that you handle HDPI monitors correctly when using those OpenGL functions. On HDPI monitors, the size reported by Gdx.graphics getWidth/getHeight is in logical coordinates as dictated by the operating system, usually half the HDPI resolution. The OpenGL drawing surface works in backbuffer coordinates at the full HDPI resolution. If you pass logical coordinates to glViewport and glScissor, you only affect a quarter of the real backbuffer size. Use HdpiUtils instead, it will do the right thing, while letting you continue to work in logical (aka returned by Gdx.graphics.getWidth/getHeight) coordinates. - API Change: Graphis#getDesktopDisplayMode() has been renamed to Graphics#getDisplayMode() and returns the current display mode of the monitor the window is shown on (primary monitor on all backends except LWJGL3, which supports real multi-monitor setups). - API Change: Graphics#getDisplayModes() return the display modes of the monitor the monitor the window is shown on (primary monitor on all backends except LWJGL3 which supports real multi-monitor setups). - API Change: Graphics#setDisplayMode(DisplayMode) has been renamed to Graphics#setFullscreenMode(). If the window is in windowed mode, it will be switched to fullscreen mode on the monitor from which the DisplayMode stems from. - API Change: Graphics#setDisplayMode(int, int, boolean) has been renamed to Graphics#setWindowedMode(int, int). This will NOT allow you to switch to fullscreen anymore, use Graphics#setFullscreenMode() instead. If the window is in fullscreen mode, it will be switched to windowed mode on the monitor the window was in fullscreen mode on. - API Addition: Graphics#Monitor, represents a monitor connected to the machine the app is running on. A monitor is defined by a name and it's position relative to other connected monitors. All backends except the LWJGL3 backend will report only the primary monitor - API Addition: Graphics#getPrimaryMonitor() returns the primary monitor you usually want to work with. - API Addition: Graphics#getMonitor() returns the monitor your app's window is shown on, which may not be the primary monitor in >= 2 monitor systems. All backends except the LWJGL3 backend will report only the primary monitor. - API Addition: Graphics#getMonitors() returns all monitors connected to the system. All backends except the LWJGL3 backend will only report the primary monitor. - API Addition: Graphics#getDisplayMode(Monitor) returns the display mode of the monitor the app's window is shown on. All backends except the LWJGL3 backend will report the primary monitor display mode instead of the actual monitor's display mode. Not a problem as all other backends run on systems with only a single monitor so far (primary monitor). - Added option to include credentials on cross-origin http requests (used only for GWT backend). - Added option to specify crossorigin attribute when loading images with AssetDownloader (GWT), see #3216. - API Change: removed Sound#setPriority, this was only implemented for the Android backend. However, Android itself never honored priority settings. - API Change: cursor API has been cleaned up. To create a custom cursor, call Graphics#newCursor(), to set the custom cursor call Graphics#setCursor(), to set a system cursor call Graphics#setSystemCursor(). The Cursor#setSystemCursor method has been removed as that was not the right place. Note that cursors only work on the LWJGL, LWJGL3 and GWT backends. Note that system cursors only fully work on LWJGL3 as the other two backends lack a means to set a specific system cursor. These backends fall back to displaying an arrow cursor when setting any system cursor. - API Addition: Added Lwjgl3WindowListener, allows you to hook into per-window iconficiation, focus and close events. Also allows you to prevent closing the window when a close event arrives. [1.7.2] - Added AndroidAudio#newMusic(FileDescriptor) to allow loading music from a file descriptor, see #2970 - Added GLOnlyTextureData, which is now the default for FrameBuffer and FrameBufferCubemap, see #3539 - Added rotationChanged() for Actor class, called when rotation changes, see https://github.com/libgdx/libgdx/pull/3563 - Fixed crash on MacOS when enumerating connected gamepads. - ParticleEmitter no longer says it's complete when it's set to continuous, see #3516 - Improved JSON parsing and object mapping error messages. - Updated FreeType from version 2.5.5 to 2.6.2. - Fixed corrupt FreeType rendering for some font sizes. - API Change: FreeTypeFontParameter has new fields for rendering borders and shadows. - FreeTypeFontParameter can render much better fonts at small sizes using gamma settings. - BitmapFont can now render missing (tofu) glyph for glyphs not in the font. - FreeTypeFontGenerator depreacted methods removed. - Fixed BitmapFont color tags changing glyph spacing versus not using color tags. BitmapFont#getGlyphs has a new paramter. See #3455. - Skin's TintedDrawable now works with TiledDrawable. #3627 - Updated jnigen to Java Parser 2.3.0 (http://javaparser.github.io/javaparser/). - FreeType fonts no longer look terrible at small size. This is a big deal! - Updated to RoboVM 1.12.0, includes tvOS support! [1.7.1] - Fixes AtlasTmxMapLoader region name loading to tileset name instead of filename - Changes TiledMapPacker output, region names are tileset names, adjusts gid, defaults to one atlas per map - API Change: members of Renderable and MeshPart are changed, see https://github.com/libgdx/libgdx/pull/3483 - Added Vector#setToRandomDirection(), see #3222 - Updated to stb_image v2.08 - Added Node#copy(), used when creating a ModelInstance from a Model to allow using custom nodes - Add ModelCache, see https://github.com/libgdx/libgdx/wiki/ModelCache - Updated bullet to v2.83.6 - Updated to RoboVM 1.9, for free life-time license read http://www.badlogicgames.com/wordpress/?p=3762 [1.7.0] - Gdx.input.setCursorImage removed, replaced with Gdx.graphics.setCursor and Gdx.graphics.newCursor see https://github.com/libgdx/libgdx/pull/2841/ - Fixed an issue with UTF8 decoding in GWT emulation of InputStreamReader - Updated to RoboVM 1.8 for iOS 9 support. [1.6.5] - Objects from animated tiles in TMX maps are now supported. - Made possible to use any actor for tooltips. - Improved cross-platform reflection api for annotations. - NinePatch#scale now also scales middle patch size. - GLFrameBuffer is now abstract, renamed setupTexture to createColorTexture, added disposeColorTexture - Added LwjglApplicationConfiguration#gles30Context*Version, see https://github.com/libgdx/libgdx/pull/2941 - Added OpenGL error checking to GLProfiler, see https://github.com/libgdx/libgdx/pull/2889 - Updated to RoboVM 1.6 [1.6.4] - TextField cursor and selection size changed. https://github.com/libgdx/libgdx/commit/2a830dea348948d2a37bd8f6338af2023fec9b09 - FreeTypeFontGenerator setting to improve shadows and borders. - ScrollPane scrolls smoothly when the scrolled area is much larger than the scrollbars. - TexturePacker sorts page regions by name. - GlyphLayout text wrapping changed to not trim whitespace. https://github.com/libgdx/libgdx/commit/ee42693da067da7c5ddd747f051c1423d262cb96 - Fixed BitmapFont computing space width incorrectly when padding is used and no space glyph is in the font. - Fixed TextArea cursor and selection drawing positions. - Fixed ActorGestureListener pan and zoom when the actor is rotated or scaled. - Fixed TextField for non-pixel display. - Allow ellipsis string to be set on Label. - AssetManager gets hook for handling loading failure. - TextField now fires a ChangeEvent when the text change. Can be cancelled too! - Added tooltips to scene2d.ui. - Updated to RoboVM 1.5 [1.6.3] - Updated to RoboVM 1.4 [1.6.2] - API Change: TiledMapImageLayer now uses floats instead of ints for positioning - API Change: Added GLFrameBuffer and FrameBufferCubemap: Framebuffer now extends GLFramebuffer, see #2933 [1.6.1] - Added optional hostname argument to Net.newServerSocket method to allow specific ip bindings for server applications made with gdx. - Changed the way iOS native libs are handled. Removed updateRoboVMXML and copyNatives task from ios/build.gradle. Instead natives are now packaged in jars, within the META-INF/robovm/ios folder. Additionally, a robovm.xml file is stored there that gets merged with the project's robovm.xml file by RoboVM. [1.6.0] - API Change: GlyphLayout xAdvances now have an additional entry at the beginning. This was required to implement tighter text bounds. #3034 - API Change: Label#getTextBounds changed to getGlyphLayout. This exposes all the runs, not just the width and height. - In the 2D ParticleEditor, all chart points can be dragged at once by holding ctrl. They can be dragged proportionally by holding ctrl-shift. - Added Merge button to the 2D ParticleEditor, for merging a loaded particle effect file with the currently open particle effect. - Added ability to retrieve method annotations to reflection api - Added PixmapPacker.updateTextureRegions() method. - Added ability to pack "anonymous" pixmaps into PixmapPacker, which will appear in the generated texture but not a generated or updated TextureAtlas - Added PixmapPacker.packDirectToTexture() methods. - API Change: PixmapPacker.generateTextureAtlas(...) now returns an atlas which can be updated with subsequent calls to PixmapPacker.updateTextureAtlas(...) - API Change: FreeTypeFontGenerator.generateFont(...) now works with a user-provided PixmapPacker. - Added DirectionalLightsAttribute, PointLightsAttribute and SpotLightsAttribute, removed Environment#directionalLights/pointLights/spotLights, added Environment#remove, lights are now just like any other attribute. See also https://github.com/libgdx/libgdx/wiki/Material-and-environment#lights - API Change: BitmapFont metrics now respect padding. #3074 - Update bullet wrapper to v2.83 - Added AnimatedTiledMapTile.getFrameTiles() method [1.5.6] - API Change: Refactored Window. https://github.com/libgdx/libgdx/commit/7d372b3c67d4fcfe4e82546b0ad6891d14d03242 - Added VertexBufferObjectWithVAO, see https://github.com/libgdx/libgdx/pull/2527 - API Change: Removed Mesh.create(...), use MeshBuilder instead - API Change: BitmapFontData, BitmapFont, and BitmapFontCache have been refactored. http://www.badlogicgames.com/wordpress/?p=3658 - FreeTypeFontGenerator can now render glyphs on the fly. - Attribute now implements Comparable, custom attributes might need to be updated, see: https://github.com/libgdx/libgdx/wiki/Material-and-environment#custom-attributes - API Change: Removed (previously deprecated) GLTexture#createTextureData/createGLHandle, Ray#getEndPoint(float), Color#tmp, Node#parent/children, VertexAttribute#Color(), Usage#Color, ModelBuilder#createFromMesh, BoundingBox#getCenter()/updateCorners()/getCorners(), Matrix4.tmp [1.5.5] - Added iOS ARM-64 bit support for Bullet physics - 3D Animation, NodeAnimation keyframes are separated into translation, rotation and scaling - Added capability to enable color markup from inside skin json file. - Exposed method ControllerManager#clearListeners on Controllers class - Net#openURI now returns a boolean to indicate whether the uri was actually opened. - DefaultShader now always combines material and environment attributes - Added ShapeRenderer constructor to pass a custom shader program to ImmediateModeRenderer20. - API Change: Group#toString now returns actor hierarchy. Group#print is gone. - Added SpotLight class, see https://github.com/libgdx/libgdx/pull/2907 - Added support for resolving file handles using classpaths (ClasspathFileHandleResolver) [1.5.4] - Added support for image layers in Tiled maps (TiledMapImageLayer) - Added support for loading texture objects from TMX Maps (TextureMapObject) - Added support for border and shadow with FreeTypeFontGenerator - see https://github.com/libgdx/libgdx/pull/2774 - Now unknown markup colors are silently ignored and considered as normal text. - Updated freetype from version 2.4.10 to 2.5.5 - Added 3rd party extensions to setup application, see - Updated to RoboVM 1.0.0-beta-04 - Updated to GWT 2.6.1, sadly GWT 2.7.0 isn't production ready yet. [1.5.3] - API Change: TextField#setRightAlign -> TextField#setAlignment - I18NBundle is now compatible with Android 2.2 - Fixed GWT reflection includes for 3D particles - 3D ParticleEffectLoader registered by default - Added HttpRequestBuilder, see https://github.com/libgdx/libgdx/pull/2698 - Added LwjglApplicationConfiguration.useHDPI for Mac OS X with retina displays. Allows you to get "real" pixel coordinates for mouse and display coordinates. - Updated RoboVM to 1.0.0-beta-03 [1.5.2] - Fixed issue #2433 with color markup and alpha animation. - Fixed natives loading for LWJGL on Mac OS X [1.5.1] - Gradle updated to 2.2 - Android Gradle tooling updated to 1.0.0 - API Change: Switched from Timer to AnimationScheduler for driving main loop on GWT. Removed fps field from GwtApplicationConfiguration to instead let the browser choose the most optimal rate. - API Change: Added pause and resume handling on GWT backend. When the browser supports the page visibility api, pause and resume will be called when the tab or window loses and gains visibility. - API Change: Added concept of target actor, separate from the actor the action is added to. This allows an action to be added to one actor but affect another. This is useful to create a sequence of actions that affect many different actors. Previously this would require adding actions to each actor and using delays to get them to play in the correct order. - Added 64-bit support for iOS sim and device - Deprecated Node#children and Node#parent, added inheritTransform flag and methods to add/get/remove children - API Change: By default keyframes are no longer copied from Model to ModelInstance but shared instead, can be changed using the `ModelInstance.defaultShareKeyframes` flag or `shareKeyframes` constructor argument. - JSON minimal format now makes commas optional: newline can be used in place of any comma. - JSON minimal format is now more lenient with unquoted strings: spaces and more are allowed. - API Change: Added support for KTX/ZKTX file format, https://github.com/libgdx/libgdx/pull/2431 - Update stb_image from v1.33 to v1.48, see https://github.com/libgdx/libgdx/pull/2668 - Bullet Wrapper: added Gimpact, see https://github.com/libgdx/libgdx/issues/2619 - API Addition: Added MeshPartBuilder#addMesh(...), can be used to more easily combine meshes/models - Update to LWJGL 2.9.2, fixes fullscreen mode on "retina" displays - Fixes to RoboVM backend which would crash if accelerometer is used. [1.5.0] - API Addition: IOSInput now uses CMCoreMotion for accelerometer and magnetometer - API Addition: Added getter for UITextField on IOS for keyboard customization - API Addition: Added ability to save PixmapPackers to atlas files. See PixmapPackerIO. - API Addition: Added HttpRequestHeader and HttpResponseHeader with constants for HTTP headers. - API Addition: HttpRequest is now poolable. - New PNG encoder that supports compression, more efficient vertical flipping, and minimal allocation when encoding multiple PNGs. - API Change: Label#setEllipse -> Label#setEllipsis. - API Change: BatchTiledMapRenderer *SpriteBatch fields and methods renamed to *Batch - API Change: ScrollPane#scrollToCenter -> ScrollPane#scrollTo; see optional boolean arguments centerHorizontal and centerVertical (scrollToCenter centered vertically only). - API Change: Changed Input#getTextInput to accept both text and hint, removed Input#getPlaceholderTextInput. - Bug Fix: Fixed potential NPE with immersive mode in the Android fragment backend. - iOS backend now supports sound ids, thanks Tomski! [1.4.1] - Update to the Gradle Integration plugin nightly build if you are on Eclipse 4.4.x! - Update Intellij IDEA to 13.1.5+, because Gradle! - Updated to Gradle 2.1 and Android build tools 20, default Android version to 20. You need to install the latest Android build tools via the SDK manager - API Change: deprecation of bounding box methods, see https://github.com/libgdx/libgdx/pull/2408 - Added non-continuous rendering to iOS backend, thanks Dominik! - Setup now uses Gradle 2.1 with default Android API level 20, build tools 20.0.0 - Non-continuous renderering implemented for iOS - Added color markup support for scene2d label and window title. - API Change: removed default constructor of DecalBatch, removed DefaultGroupStrategy - Updated to latests RoboVM release, 1.0.0-alpha-04, please update your RoboVM plugins/installations - Reduced I18NBundle loading times on Android and bypassed unclosed stream on iOS. - Removed the gdx-ai extension from the libGDX repository. Now it lives in its own repository under the libGDX umbrella, see https://github.com/libgdx/gdx-ai - API Addition: Added randomSign and randomTriangular methods to MathUtils. - API Addition: Decal has now a getter for the Color. - API Addition: now I18NBundle can be set so that no exception is thrown when the key can not be found. - API Addition: added annotation support in reflection layer, thanks code-disaster! https://github.com/libgdx/libgdx/pull/2215 - API Addition: shapes like Rect, Circle etc. now implement Shape2D interface so you can put them all into a single collection https://github.com/libgdx/libgdx/pull/2178 - API Addition: bitmap fonts can now be loaded from an atlas via AssetManager/BitmapFontLoader, see https://github.com/libgdx/libgdx/pull/2110 - API Change: updated to RoboVM 1.0.0-SNAPSHOT for now until the next alpha is released. - API Change: Table now uses padding from its background drawable by default. https://github.com/libgdx/libgdx/issues/2322 - Drawables now know their names, making debugging easier. - API Change: Table fill now respects the widget's minimum size. - Texture packer, fixed image size written to atlas file. - API Change: Cell no longer uses primitive wrappers in public API and boxing is minimized. - API Addition: TextureAttribute now supports uv transform (texture regions). - API Change: Added parameters to Elastic Interpolation. - API Change: Removed Actor#setCenterPosition, added setPosition(x,y,align). - API Change: JsonReader, forward slash added to characters an unquoted strings cannot start with. - API Change: Stage#cancelTouchFocus(EventListener,Actor) changed to cancelTouchFocusExcept. - API Change: Json/JsonWriter.setQuoteLongValues() quotes Long, BigDecimal and BigInteger types to prevent truncation in languages like JavaScript and PHP. [1.3.1] - API change: Viewport refactoring. https://github.com/libgdx/libgdx/pull/2220 - Fixed GWT issues [1.3.0] - Added Input.isKeyJustPressed. - API Addition: multiple recipients are now supported by MessageDispatcher, see https://github.com/libgdx/libgdx/wiki/Message-Handling#multiple-recipients - API Change: State#onMessage now takes the message receiver as argument. - API Addition: added StackStateMachine to the gdx-ai extension. - API change: ShapeRenderer: rect methods accept scale, more methods can work under both line and fill types, auto shape type changing. - API change: Built-in ShapeRenderer debugging for Stage, see https://github.com/libgdx/libgdx/pull/2011 - Files#getLocalStoragePath now returns the actual path instead of the empty string synonym on desktop (LWJGL and JGLFW). - Fixed and improved xorshift128+ PRNG implementation. - Added support for Tiled's animated tiles, and varying frame duration tile animations. - Fixed an issue with time granularity in MessageDispatcher. - Updated to Android API level 19 and build tools 19.1.0 which will require the latest Eclipse ADT 23.02, see http://stackoverflow.com/questions/24437564/update-eclipse-with-android-development-tools-23 for how things are broken this time... - Updated to RoboVM 0.0.14 and RoboVM Gradle plugin version 0.0.10 - API Addition: added FreeTypeFontLoader so you can transparently load BitmapFonts generated through gdx-freetype via AssetManager, see https://github.com/libgdx/libgdx/blob/master/tests/gdx-tests/src/com/badlogic/gdx/tests/FreeTypeFontLoaderTest.java - Preferences put methods now return "this" for chaining - Fixed issue 2048 where MessageDispatcher was dispatching delayed messages immediately. - API Addition: 3d particle system and accompanying editor, contributed by lordjone, see https://github.com/libgdx/libgdx/pull/2005 - API Addition: extended shape classes like Circle, Ellipse etc. with hashcode/equals and other helper methods, see https://github.com/libgdx/libgdx/pull/2018 - minor API change (will not increase minor revision number): fixed a bug in handling of atlasPrefixes, https://github.com/libgdx/libgdx/pull/2023 - Bullet: btManifoldPoint member getters/setters changed from btVector3 to Vector3, also it is no longer pooled, instead static instances are used for callback methods - Added Intersector#intersectRayRay to detect if two 2D rays intersect, see https://github.com/libgdx/libgdx/pull/2132 - Bullet: ClosestRayResultCallback, AllHitsRayResultCallback, LocalConvexResult, ClosestConvexResultCallback and subclasses now use getter/setters taking a Vector3 instead of btVector3, see https://github.com/libgdx/libgdx/pull/2176 - 2d particle system supports pre-multiplied alpha. - Bullet: btIDebugDrawer/DebugDrawer now use pooled Vector3 instances instead of btVector3, see https://github.com/libgdx/libgdx/issues/2174 [1.2.0] - API Addition: Some OpenGL profiling utilities have been added, see https://github.com/libgdx/libgdx/wiki/Profiling - API Addition: A FreeTypeFontGeneratorLoader has been added to the gdx-freetype extension - API change: Animation#frameDuration and #animationDuration are now hidden behind a getter/setter and dynamic - API Addition: Vector#setZero - API Addition: gdx-ai, extension for AI algorithms. Currently supports FSMs, see https://github.com/libgdx/libgdx/wiki/Artificial-Intelligence - API change: TableLayout has been forked and integrated into libgdx more tightly, see http://www.badlogicgames.com/wordpress/?p=3458 - API Addition: added equals/hashCode methods to Rectangle, may break old code (very, very unlikely) - API Addition: scene2D Actors now have a setCenterPosition method, see https://github.com/libgdx/libgdx/pull/2000 [1.1.0] - Updated to RoboVM 0.0.13 and RoboVM Gradle plugin 0.0.9 - Big improvements to setup-ui and build times in Intellij IDEA https://github.com/libgdx/libgdx/pull/1865 - Setup now uses android build tools version: 19.1.0 - BitmapFontCache now supports in-string colored text through a simple markup language, see https://github.com/libgdx/libgdx/wiki/Color-Markup-Language - Added i18n localization/internationalization support, thanks davebaol, see https://github.com/libgdx/libgdx/wiki/Internationalization-and-Localization - Possibility to override density on desktop to simulate mobile devices, see https://github.com/libgdx/libgdx/pull/1825 - Progressive JPEG support through JPGD (https://code.google.com/p/jpeg-compressor/). - Mavenized JGLFW backend - Box2D: Added MotorJoint and ghost vertices on EdgeShape - Updated GWT Box2D to latest version - Updated native Box2D to latest version 2.3.1, no API changes - API change: Matrix4.set(x,y,z, translation) changed, z axis is no more flipped - API addition: Matrix4.avg(Matrix4[],float[]) that lets weighted averaging multiple matrices, Quaternion.slerp(Quaternion[],float[]) that lets weighted slerping multiple Quaternions - fixed the long standing issue of the alpha=1 not actually being fully opaque, thanks kalle! https://github.com/libgdx/libgdx/issues/1815 - down to 25 issues on the tracker, 8 bugs, 17 enhancement requests :) [1.0.1] - updated to RoboVM 0.12 (and so should you!) - fixed GC issues on iOS with regards to touch (thanks Niklas!), see https://github.com/libgdx/libgdx/pull/1758 - updated gwt gradle plugin to 0.4, android build tools to 0.10, gradle version to 1.11 - Tiled maps are now always y-up - Tiled maps now support drawing offsets for tiles - FileHandle#list is now supported in GWT! - FileHandle#list now supports FileFilters - Controllers now reinitialize on the desktop when switching between windowed/fullscreen - added a Texture unpacker that will extract all images from a texture atlas, see https://github.com/libgdx/libgdx/pull/1774 - updates to gdx-setup - CustomCollisionDispatcher in bullet, see https://github.com/libgdx/libgdx/commit/916fc85cecf433c3461b458e00f8afc516ad21e3 [1.0.0] - Box2D is no longer in the core, it has been moved to an extension. See http://www.badlogicgames.com/wordpress/?p=3404 - Merged gdx-openal project into gdx-backend-lwjgl - Now LoadedCallback in AssetLoaderParameters is always called after loading an asset from AssetManager, even if the asset is already loaded - Added Payload as a new parameter to Source.dragStop, see https://github.com/libgdx/libgdx/pull/1666 - You can now load PolygonRegions via AssetLoader, see https://github.com/libgdx/libgdx/pull/1602 - implemented software keyboard support in RoboVM iOS backend - Fixed an issue where key event timestamp is not set by the android backend. - scene2d.ui, added to TextArea the preferred number of rows used to calculate the preferred height. - scene2d.actions, fixed infinite recursion for event listener's handle(event). - Various Quaternion changes. - scene2d.ui, fixed a drawing issue with knobBefore when there's no knob (typical progress bar). - Various MeshBuilder fixes and additions. - Math package: added cumulative distribution. - Fixed Music isPlaying() on iOS when is paused. - Added support for C-style comments to JsonReader (mainly used for json skin files). - Support for resource removal from Skin objects. - Added fling gesture to generate fling in scrollpane. - Vector classes now have mulAdd method for adding pre-multiplied values - Vector implementations no longer use squared value for margin comparisons, see: isZero(float margin), isUnit(float margin). - Vector2 now has isUnit and isZero methods (copied from Vector3) - Removed deprecated methods from Vector classes. - Added new headless backend for server applications - Support 'scaledSize' as a json skin data value for BitmapFont - Added setAlpha(float a) method to Sprite class - Added Input.Keys.toString(int keycode) and Input.Keys.valueOf(String keyname) methods - Added Immersive Mode support to Android backend - Added userObject to Actor in scene2d, allowing for custom data storage - Altered Android's hide status bar behavior - Changed the way wakelocks are implemented. You no longer need any special permissions for the libgdx wakelock - BitmapFontCache setColor changes to match SpriteBatch and friends. http://www.badlogicgames.com/forum/viewtopic.php?f=23&t=12112 - Changed ParticleEffect: the ParticleEffect.save method now takes a Writer instead of a File - TexturePacker2 renamed to TexturePacker, added grid and scaling settings. - Added support for custom prefrences on the desktop backends. - Fixed double resume calls on iOS. - Android Music no longer throws exceptions if MediaPlayer is null. - PolygonSpriteBatch implements Batch. - New scene2d actions: EventAction, CountdownEventAction. - Adds cancelHttpRequest() method to Net interface - Updated GWT/HTML5 Backend to GWT 2.6.0 - Minimal Android version is 2.2, see http://www.badlogicgames.com/wordpress/?p=3297 - Updated to LWJGL 2.9.1 - Can now embed your libgdx app as a fragment, more info on the wiki - scene2d.ui, renamed Actor methods translate, rotate, scale, size to moveBy, rotateBy, scaleBy, sizeBy. May have conflicts with Actions static import, eg you'll need to use "Actions.moveBy" - scene2d.ui, Table background is now drawn usign the table's transform - scene2d.ui, added Container which is similar to a Table with one cell, but more lightweight - Added texture filters and mip map generation to BitMapFontLoader and FreeTypeFontGenerator - scene2d.ui, VerticalGroup and HorizontalGroup got pad, fill and an API similar to Table/Container - Removed OpenGL ES 1.0, 1.1 support; see http://www.badlogicgames.com/wordpress/?p=3311 - Added OpenGL ES 3 support - Updated Android backend, demos, tests to 4.4 - Added Viewport, changed Stage to have a Viewport instead of a Camera (API change, see http://www.badlogicgames.com/wordpress/?p=3322 ). - Changed play mode constants of Animation class to enumeration, see http://www.badlogicgames.com/wordpress/?p=3330 - Updated to RoboVM 0.0.11 and RoboVM Gradle plugin 0.0.6, see http://www.badlogicgames.com/wordpress/?p=3351 - Updated to Swig 3.0 for Bullet, disabled SIMD on Mac OS X as alignements are broken in Bullet, see https://github.com/libgdx/libgdx/pull/1595 - TextureData can only be Custom or Pixmap; compressed image files are considered custom [0.9.9] - added setCursorImage method to Input interface to support custom mouse cursors on the desktop - removed Xamarin backend, see http://www.badlogicgames.com/wordpress/?p=3213 - added Select class for selecting kth ordered statistic from arrays (see Array.selectRanked() method) - refactored Box2D to use badlogic Arrays instead of java.util.ArrayLists - MipMapGenerator methods now don't take disposePixmap argument anymore - added GLTexture, base class for all textures, encapsulates target (2d, cubemap, ...) - added CubeMap, 6 sided texture - changed TextureData#consumeCompressedData, takes target now - added RoboVM backend jar and native libs (libObjectAL, libgdx, in ios/ folder of distribution) - added RoboVM backend to build - changed Bullet wrapper API, see http://www.badlogicgames.com/wordpress/?p=3150 - changed MusicLoader and SoundLoader to be asynchronous loaders - changed behaviour of Net#sendHttpRequest() so HttpResponseListener#handleHttpResponse() callback is executed in worker thread instead of main thread - added Bresenham2, for drawing lines on an integer 2D grid - added GridPoint2 and GridPoint3, representing integer points in a 2D or 3D grid - added attribute location caching for VertexData/Mesh. Hand vertex attribs to a ShaderProgram, get back int[], pass that to Mesh - added Android x86 builds, removed libandroidgl20.so, it's now build as part of gdx-core for Android - changed method signature on Box2D World#getBodies and World#getJoints, pass in an Array to fill - removed glGetShaderSource from GL20, use ShaderProgram#getVertexShaderSource/getFragmentShaderSource instead - added reflection api - added AsynchExecutor, execute tasks asynchronously. Used for GWT mainly. - removed FileHandle#file(), has no business in there. - removed box2deditor - removed custom typedarrays in gwt backend - added classpath files support for gwt backend (limited) - moved AndroidWallpaperListener to Android Backend - added new VertexAttribute Usage flags, bone weight, tangent, binormal. previously encoded as Usage.Generic. Also added field "unit" to VertexAttribute, used by texture coordinates and bone weights to specify index/unit. - setup-ui template for iOS disables pngcrush, also updated wiki iOS article - add Pixmap#fillTriangle via jni gdx2d_fill_triangle() to fill a triangle based on its vertices. - add asynchronous download with continuous progress feedback to GWT asset preloader, see https://github.com/libgdx/libgdx/pull/409?w=1 - add capability to add/exclude package/classes GWT Reflection system, see https://github.com/libgdx/libgdx/pull/409?w=1 - add updated gdx-tiled-preprocessor, generate one single TextureAtlas for all the specified Tiled maps, see http://www.badlogicgames.com/forum/viewtopic.php?f=17&t=8911 - maps API, add new AtlasTiledMapLoader for loading maps produced by the tiled preprocessor tool - ImageProcessor, TexturePacker2 now accepts BufferedImage objects as input - TexturePacker2 now avoids duplicated aliases - Updated to LWJGL 2.9.0 - refactored JSON API, see http://www.badlogicgames.com/wordpress/?p=2993 - Updated Box2D to the latest trunk. Body#applyXXX methods now take an additional boolean parameter. - TmxMapLoader has a flag in Parameters that lets you specify whether to generate mipmaps - Animation#isAnimationFinished was fixed to behave as per javadocs (ignores looping) - remove GLU interface and implementations. Use Matrix4 et al instead. see http://www.badlogicgames.com/wordpress/?p=2886 - new maps API, see http://www.badlogicgames.com/wordpress/?p=2870 - removed static public tmp Vector2 instances, manage such temporary vars yourself, see http://www.badlogicgames.com/wordpress/?p=2840 - changed Scene2D Group#clear(), see http://www.badlogicgames.com/wordpress/?p=2837 - changed the build system, natives are now fetched from the build server, see http://www.badlogicgames.com/wordpress/?p=2821 - freetype extension supported on iOS, see http://www.badlogicgames.com/wordpress/?p=2819 - changed ShapeRenderer API, see http://www.badlogicgames.com/wordpress/?p=2809 - changed Actions.add to addAction, changed parameter order, and added removeAction, addListener, removeListener - Box2d joints now allow for user data - Changes to Intersector, Circle, Rectangle and BoundingBox for consistency in #overlap, #intersect and #contains methods, see https://github.com/libgdx/libgdx/pull/312 - Removed LwjglApplicationConfiguration CPU sync. Added foreground and background target framerate. - scene2d, no longer use getters/setters internally for Actor x, y, width, height, scalex, scaley and rotation. - Array, detect nested iterator usage and throw exception. - Added getVolume to Music class and Android, IOS and GWT backends - 1381, fixed JSON parsing of longs. In addition to Float, it now parses Long if no decimal point is found. - Changed Array constructors that took an array to have offset and count - scene2d, Actor parentToLocalCoordinates and localToParentCoordinates refactoring, see http://www.badlogicgames.com/forum/viewtopic.php?p=40441#p40441 - scene2d, Action#setActor no longer calls reset if the Action has no pool. This allows non-pooled actions to be add and removed from actors, restarted, and reused. - ScrollBar#setForceOverscroll renamed to setForceScroll, as it affects more than just overscroll. - ArrayMap#addAll renamed to putAll to match the other maps. - Added ObjectSet and IntSet. - Added completion listener to Music. - Added Music#setPan. - Sound#play and Sound#loop on Android now return -1 on failure, to match other backends. - DelegateAction subclasses need to implement delegate() instead of act(). http://www.badlogicgames.com/forum/viewtopic.php?p=43576#p43576 - Added pause and resume methods to Sound. - Changed AssetErrorListener#error to have AssetDescriptor to enable access to parameters of failed asset. - Changed SelectBoxStyle to have ScrollPaneStyle and ListStyle for fully customizing the drop down list. http://www.badlogicgames.com/wordpress/?p=3110 - AssetLoader now takes a FileHandle that is the resolved file name. The AssetLoader no longer has to resolve the file name, so we can prevent it from being resolved twice. - Rewrote EarClippingTriangulator to not allocate (no more Vector2s). - Added ParticleEffectLoader to make AssetManager load ParticleEffects - Added GeometryUtils, more Intersector functions, DelaunayTriangulator, ConvexHull. - Added getBoundingBox to ParticleEffect - EarClippingTriangulator changed to return triangle indices. - PolygonSpriteBatch and friends refactored to use triangle indices. - Added add(T, float), remove(int), remove(T) and clear() methods to BinaryHeap - Bitmap Font changes: - FreeTypeFontGenerator allows you to specify the PixmapPacker now, to create an atlas with many different fonts (see FreeTypePackTest) - BitmapFont, BitmapFontCache and FreeTypeFontGenerator now support fonts with multiple texture pages. (see BitmapFontTest and FreeTypePackTest) - BitmapFontData.imagePath and getImagePath() is depreacted, use imagePaths[] and getImagePath(int) instead - Added two BitmapFont constructors for convenience; no need to specify flip boolean - Added getCache() to BitmapFont, for expert users who wish to use the BitmapFontCache (see BitmapFontTest) - FreeTypeFontGenerator now includes setMaxTextureSize and getMaxTextureSize to cap the generated glyph atlas size (default 1024) - added render-hooks beginRender() and endRender() to BatchTiledMapRenderer - Added panStop to GestureListener interface. - ScissorStack#calculateScissors changed to take viewport, enabling it to work with glViewport. - Added Bits#getAndClear, Bits#getAndSet and Bits#containsAll - Added setX and setY to TextureAtlas.AtlasSprite so it matches expected behavior [0.9.8] - see http://www.badlogicgames.com/wordpress/?p=2791 [0.9.7] - see http://www.badlogicgames.com/wordpress/?p=2664 [0.9.6] - see http://www.badlogicgames.com/wordpress/?p=2513
1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Container.java
package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.ui.Value.Fixed; import com.badlogic.gdx.scenes.scene2d.utils.Cullable; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.Null; /** A group with a single child that sizes and positions the child using constraints. This provides layout similar to a * {@link Table} with a single cell but is more lightweight. * @author Nathan Sweet */ public class Container<T extends Actor> extends WidgetGroup { private @Null T actor; private Value minWidth = Value.minWidth, minHeight = Value.minHeight; private Value prefWidth = Value.prefWidth, prefHeight = Value.prefHeight; private Value maxWidth = Value.zero, maxHeight = Value.zero; private Value padTop = Value.zero, padLeft = Value.zero, padBottom = Value.zero, padRight = Value.zero; private float fillX, fillY; private int align; private @Null Drawable background; private boolean clip; private boolean round = true; /** Creates a container with no actor. */ public Container () { setTouchable(Touchable.childrenOnly); setTransform(false); } public Container (@Null T actor) { this(); setActor(actor); } public void draw (Batch batch, float parentAlpha) { validate(); if (isTransform()) { applyTransform(batch, computeTransform()); drawBackground(batch, parentAlpha, 0, 0); if (clip) { batch.flush(); float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this); if (clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this), getHeight() - padBottom - padTop.get(this))) { drawChildren(batch, parentAlpha); batch.flush(); clipEnd(); } } else drawChildren(batch, parentAlpha); resetTransform(batch); } else { drawBackground(batch, parentAlpha, getX(), getY()); super.draw(batch, parentAlpha); } } /** Called to draw the background, before clipping is applied (if enabled). Default implementation draws the background * drawable. */ protected void drawBackground (Batch batch, float parentAlpha, float x, float y) { if (background == null) return; Color color = getColor(); batch.setColor(color.r, color.g, color.b, color.a * parentAlpha); background.draw(batch, x, y, getWidth(), getHeight()); } /** Sets the background drawable and adjusts the container's padding to match the background. * @see #setBackground(Drawable, boolean) */ public void setBackground (@Null Drawable background) { setBackground(background, true); } /** Sets the background drawable and, if adjustPadding is true, sets the container's padding to * {@link Drawable#getBottomHeight()} , {@link Drawable#getTopHeight()}, {@link Drawable#getLeftWidth()}, and * {@link Drawable#getRightWidth()}. * @param background If null, the background will be cleared and padding removed. */ public void setBackground (@Null Drawable background, boolean adjustPadding) { if (this.background == background) return; this.background = background; if (adjustPadding) { if (background == null) pad(Value.zero); else pad(background.getTopHeight(), background.getLeftWidth(), background.getBottomHeight(), background.getRightWidth()); invalidate(); } } /** @see #setBackground(Drawable) */ public Container<T> background (@Null Drawable background) { setBackground(background); return this; } public @Null Drawable getBackground () { return background; } public void layout () { if (actor == null) return; float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this); float containerWidth = getWidth() - padLeft - padRight.get(this); float containerHeight = getHeight() - padBottom - padTop.get(this); float minWidth = this.minWidth.get(actor), minHeight = this.minHeight.get(actor); float prefWidth = this.prefWidth.get(actor), prefHeight = this.prefHeight.get(actor); float maxWidth = this.maxWidth.get(actor), maxHeight = this.maxHeight.get(actor); float width; if (fillX > 0) width = containerWidth * fillX; else width = Math.min(prefWidth, containerWidth); if (width < minWidth) width = minWidth; if (maxWidth > 0 && width > maxWidth) width = maxWidth; float height; if (fillY > 0) height = containerHeight * fillY; else height = Math.min(prefHeight, containerHeight); if (height < minHeight) height = minHeight; if (maxHeight > 0 && height > maxHeight) height = maxHeight; float x = padLeft; if ((align & Align.right) != 0) x += containerWidth - width; else if ((align & Align.left) == 0) // center x += (containerWidth - width) / 2; float y = padBottom; if ((align & Align.top) != 0) y += containerHeight - height; else if ((align & Align.bottom) == 0) // center y += (containerHeight - height) / 2; if (round) { x = Math.round(x); y = Math.round(y); width = Math.round(width); height = Math.round(height); } actor.setBounds(x, y, width, height); if (actor instanceof Layout) ((Layout)actor).validate(); } public void setCullingArea (Rectangle cullingArea) { super.setCullingArea(cullingArea); if (fillX == 1 && fillY == 1 && actor instanceof Cullable) ((Cullable)actor).setCullingArea(cullingArea); } /** @param actor May be null. */ public void setActor (@Null T actor) { if (actor == this) throw new IllegalArgumentException("actor cannot be the Container."); if (actor == this.actor) return; if (this.actor != null) super.removeActor(this.actor); this.actor = actor; if (actor != null) super.addActor(actor); } /** @return May be null. */ public @Null T getActor () { return actor; } /** @deprecated Container may have only a single child. * @see #setActor(Actor) */ @Deprecated public void addActor (Actor actor) { throw new UnsupportedOperationException("Use Container#setActor."); } /** @deprecated Container may have only a single child. * @see #setActor(Actor) */ @Deprecated public void addActorAt (int index, Actor actor) { throw new UnsupportedOperationException("Use Container#setActor."); } /** @deprecated Container may have only a single child. * @see #setActor(Actor) */ @Deprecated public void addActorBefore (Actor actorBefore, Actor actor) { throw new UnsupportedOperationException("Use Container#setActor."); } /** @deprecated Container may have only a single child. * @see #setActor(Actor) */ @Deprecated public void addActorAfter (Actor actorAfter, Actor actor) { throw new UnsupportedOperationException("Use Container#setActor."); } public boolean removeActor (Actor actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); if (actor != this.actor) return false; setActor(null); return true; } public boolean removeActor (Actor actor, boolean unfocus) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); if (actor != this.actor) return false; this.actor = null; return super.removeActor(actor, unfocus); } public Actor removeActorAt (int index, boolean unfocus) { Actor actor = super.removeActorAt(index, unfocus); if (actor == this.actor) this.actor = null; return actor; } /** Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified value. */ public Container<T> size (Value size) { if (size == null) throw new IllegalArgumentException("size cannot be null."); minWidth = size; minHeight = size; prefWidth = size; prefHeight = size; maxWidth = size; maxHeight = size; return this; } /** Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified values. */ public Container<T> size (Value width, Value height) { if (width == null) throw new IllegalArgumentException("width cannot be null."); if (height == null) throw new IllegalArgumentException("height cannot be null."); minWidth = width; minHeight = height; prefWidth = width; prefHeight = height; maxWidth = width; maxHeight = height; return this; } /** Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified value. */ public Container<T> size (float size) { size(Fixed.valueOf(size)); return this; } /** Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified values. */ public Container<T> size (float width, float height) { size(Fixed.valueOf(width), Fixed.valueOf(height)); return this; } /** Sets the minWidth, prefWidth, and maxWidth to the specified value. */ public Container<T> width (Value width) { if (width == null) throw new IllegalArgumentException("width cannot be null."); minWidth = width; prefWidth = width; maxWidth = width; return this; } /** Sets the minWidth, prefWidth, and maxWidth to the specified value. */ public Container<T> width (float width) { width(Fixed.valueOf(width)); return this; } /** Sets the minHeight, prefHeight, and maxHeight to the specified value. */ public Container<T> height (Value height) { if (height == null) throw new IllegalArgumentException("height cannot be null."); minHeight = height; prefHeight = height; maxHeight = height; return this; } /** Sets the minHeight, prefHeight, and maxHeight to the specified value. */ public Container<T> height (float height) { height(Fixed.valueOf(height)); return this; } /** Sets the minWidth and minHeight to the specified value. */ public Container<T> minSize (Value size) { if (size == null) throw new IllegalArgumentException("size cannot be null."); minWidth = size; minHeight = size; return this; } /** Sets the minWidth and minHeight to the specified values. */ public Container<T> minSize (Value width, Value height) { if (width == null) throw new IllegalArgumentException("width cannot be null."); if (height == null) throw new IllegalArgumentException("height cannot be null."); minWidth = width; minHeight = height; return this; } public Container<T> minWidth (Value minWidth) { if (minWidth == null) throw new IllegalArgumentException("minWidth cannot be null."); this.minWidth = minWidth; return this; } public Container<T> minHeight (Value minHeight) { if (minHeight == null) throw new IllegalArgumentException("minHeight cannot be null."); this.minHeight = minHeight; return this; } /** Sets the minWidth and minHeight to the specified value. */ public Container<T> minSize (float size) { minSize(Fixed.valueOf(size)); return this; } /** Sets the minWidth and minHeight to the specified values. */ public Container<T> minSize (float width, float height) { minSize(Fixed.valueOf(width), Fixed.valueOf(height)); return this; } public Container<T> minWidth (float minWidth) { this.minWidth = Fixed.valueOf(minWidth); return this; } public Container<T> minHeight (float minHeight) { this.minHeight = Fixed.valueOf(minHeight); return this; } /** Sets the prefWidth and prefHeight to the specified value. */ public Container<T> prefSize (Value size) { if (size == null) throw new IllegalArgumentException("size cannot be null."); prefWidth = size; prefHeight = size; return this; } /** Sets the prefWidth and prefHeight to the specified values. */ public Container<T> prefSize (Value width, Value height) { if (width == null) throw new IllegalArgumentException("width cannot be null."); if (height == null) throw new IllegalArgumentException("height cannot be null."); prefWidth = width; prefHeight = height; return this; } public Container<T> prefWidth (Value prefWidth) { if (prefWidth == null) throw new IllegalArgumentException("prefWidth cannot be null."); this.prefWidth = prefWidth; return this; } public Container<T> prefHeight (Value prefHeight) { if (prefHeight == null) throw new IllegalArgumentException("prefHeight cannot be null."); this.prefHeight = prefHeight; return this; } /** Sets the prefWidth and prefHeight to the specified value. */ public Container<T> prefSize (float width, float height) { prefSize(Fixed.valueOf(width), Fixed.valueOf(height)); return this; } /** Sets the prefWidth and prefHeight to the specified values. */ public Container<T> prefSize (float size) { prefSize(Fixed.valueOf(size)); return this; } public Container<T> prefWidth (float prefWidth) { this.prefWidth = Fixed.valueOf(prefWidth); return this; } public Container<T> prefHeight (float prefHeight) { this.prefHeight = Fixed.valueOf(prefHeight); return this; } /** Sets the maxWidth and maxHeight to the specified value. */ public Container<T> maxSize (Value size) { if (size == null) throw new IllegalArgumentException("size cannot be null."); maxWidth = size; maxHeight = size; return this; } /** Sets the maxWidth and maxHeight to the specified values. */ public Container<T> maxSize (Value width, Value height) { if (width == null) throw new IllegalArgumentException("width cannot be null."); if (height == null) throw new IllegalArgumentException("height cannot be null."); maxWidth = width; maxHeight = height; return this; } public Container<T> maxWidth (Value maxWidth) { if (maxWidth == null) throw new IllegalArgumentException("maxWidth cannot be null."); this.maxWidth = maxWidth; return this; } public Container<T> maxHeight (Value maxHeight) { if (maxHeight == null) throw new IllegalArgumentException("maxHeight cannot be null."); this.maxHeight = maxHeight; return this; } /** Sets the maxWidth and maxHeight to the specified value. */ public Container<T> maxSize (float size) { maxSize(Fixed.valueOf(size)); return this; } /** Sets the maxWidth and maxHeight to the specified values. */ public Container<T> maxSize (float width, float height) { maxSize(Fixed.valueOf(width), Fixed.valueOf(height)); return this; } public Container<T> maxWidth (float maxWidth) { this.maxWidth = Fixed.valueOf(maxWidth); return this; } public Container<T> maxHeight (float maxHeight) { this.maxHeight = Fixed.valueOf(maxHeight); return this; } /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */ public Container<T> pad (Value pad) { if (pad == null) throw new IllegalArgumentException("pad cannot be null."); padTop = pad; padLeft = pad; padBottom = pad; padRight = pad; return this; } public Container<T> pad (Value top, Value left, Value bottom, Value right) { if (top == null) throw new IllegalArgumentException("top cannot be null."); if (left == null) throw new IllegalArgumentException("left cannot be null."); if (bottom == null) throw new IllegalArgumentException("bottom cannot be null."); if (right == null) throw new IllegalArgumentException("right cannot be null."); padTop = top; padLeft = left; padBottom = bottom; padRight = right; return this; } public Container<T> padTop (Value padTop) { if (padTop == null) throw new IllegalArgumentException("padTop cannot be null."); this.padTop = padTop; return this; } public Container<T> padLeft (Value padLeft) { if (padLeft == null) throw new IllegalArgumentException("padLeft cannot be null."); this.padLeft = padLeft; return this; } public Container<T> padBottom (Value padBottom) { if (padBottom == null) throw new IllegalArgumentException("padBottom cannot be null."); this.padBottom = padBottom; return this; } public Container<T> padRight (Value padRight) { if (padRight == null) throw new IllegalArgumentException("padRight cannot be null."); this.padRight = padRight; return this; } /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */ public Container<T> pad (float pad) { Value value = Fixed.valueOf(pad); padTop = value; padLeft = value; padBottom = value; padRight = value; return this; } public Container<T> pad (float top, float left, float bottom, float right) { padTop = Fixed.valueOf(top); padLeft = Fixed.valueOf(left); padBottom = Fixed.valueOf(bottom); padRight = Fixed.valueOf(right); return this; } public Container<T> padTop (float padTop) { this.padTop = Fixed.valueOf(padTop); return this; } public Container<T> padLeft (float padLeft) { this.padLeft = Fixed.valueOf(padLeft); return this; } public Container<T> padBottom (float padBottom) { this.padBottom = Fixed.valueOf(padBottom); return this; } public Container<T> padRight (float padRight) { this.padRight = Fixed.valueOf(padRight); return this; } /** Sets fillX and fillY to 1. */ public Container<T> fill () { fillX = 1f; fillY = 1f; return this; } /** Sets fillX to 1. */ public Container<T> fillX () { fillX = 1f; return this; } /** Sets fillY to 1. */ public Container<T> fillY () { fillY = 1f; return this; } public Container<T> fill (float x, float y) { fillX = x; fillY = y; return this; } /** Sets fillX and fillY to 1 if true, 0 if false. */ public Container<T> fill (boolean x, boolean y) { fillX = x ? 1f : 0; fillY = y ? 1f : 0; return this; } /** Sets fillX and fillY to 1 if true, 0 if false. */ public Container<T> fill (boolean fill) { fillX = fill ? 1f : 0; fillY = fill ? 1f : 0; return this; } /** Sets the alignment of the actor within the container. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom}, * {@link Align#left}, {@link Align#right}, or any combination of those. */ public Container<T> align (int align) { this.align = align; return this; } /** Sets the alignment of the actor within the container to {@link Align#center}. This clears any other alignment. */ public Container<T> center () { align = Align.center; return this; } /** Sets {@link Align#top} and clears {@link Align#bottom} for the alignment of the actor within the container. */ public Container<T> top () { align |= Align.top; align &= ~Align.bottom; return this; } /** Sets {@link Align#left} and clears {@link Align#right} for the alignment of the actor within the container. */ public Container<T> left () { align |= Align.left; align &= ~Align.right; return this; } /** Sets {@link Align#bottom} and clears {@link Align#top} for the alignment of the actor within the container. */ public Container<T> bottom () { align |= Align.bottom; align &= ~Align.top; return this; } /** Sets {@link Align#right} and clears {@link Align#left} for the alignment of the actor within the container. */ public Container<T> right () { align |= Align.right; align &= ~Align.left; return this; } public float getMinWidth () { return minWidth.get(actor) + padLeft.get(this) + padRight.get(this); } public Value getMinHeightValue () { return minHeight; } public float getMinHeight () { return minHeight.get(actor) + padTop.get(this) + padBottom.get(this); } public Value getPrefWidthValue () { return prefWidth; } public float getPrefWidth () { float v = prefWidth.get(actor); if (background != null) v = Math.max(v, background.getMinWidth()); return Math.max(getMinWidth(), v + padLeft.get(this) + padRight.get(this)); } public Value getPrefHeightValue () { return prefHeight; } public float getPrefHeight () { float v = prefHeight.get(actor); if (background != null) v = Math.max(v, background.getMinHeight()); return Math.max(getMinHeight(), v + padTop.get(this) + padBottom.get(this)); } public Value getMaxWidthValue () { return maxWidth; } public float getMaxWidth () { float v = maxWidth.get(actor); if (v > 0) v += padLeft.get(this) + padRight.get(this); return v; } public Value getMaxHeightValue () { return maxHeight; } public float getMaxHeight () { float v = maxHeight.get(actor); if (v > 0) v += padTop.get(this) + padBottom.get(this); return v; } public Value getPadTopValue () { return padTop; } public float getPadTop () { return padTop.get(this); } public Value getPadLeftValue () { return padLeft; } public float getPadLeft () { return padLeft.get(this); } public Value getPadBottomValue () { return padBottom; } public float getPadBottom () { return padBottom.get(this); } public Value getPadRightValue () { return padRight; } public float getPadRight () { return padRight.get(this); } /** Returns {@link #getPadLeft()} plus {@link #getPadRight()}. */ public float getPadX () { return padLeft.get(this) + padRight.get(this); } /** Returns {@link #getPadTop()} plus {@link #getPadBottom()}. */ public float getPadY () { return padTop.get(this) + padBottom.get(this); } public float getFillX () { return fillX; } public float getFillY () { return fillY; } public int getAlign () { return align; } /** If true (the default), positions and sizes are rounded to integers. */ public void setRound (boolean round) { this.round = round; } /** Sets clip to true. */ public Container<T> clip () { setClip(true); return this; } public Container<T> clip (boolean enabled) { setClip(enabled); return this; } /** Causes the contents to be clipped if they exceed the container bounds. Enabling clipping will set * {@link #setTransform(boolean)} to true. */ public void setClip (boolean enabled) { clip = enabled; setTransform(enabled); invalidate(); } public boolean getClip () { return clip; } public @Null Actor hit (float x, float y, boolean touchable) { if (clip) { if (touchable && getTouchable() == Touchable.disabled) return null; if (x < 0 || x >= getWidth() || y < 0 || y >= getHeight()) return null; } return super.hit(x, y, touchable); } public void drawDebug (ShapeRenderer shapes) { validate(); if (isTransform()) { applyTransform(shapes, computeTransform()); if (clip) { shapes.flush(); float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this); boolean draw = background == null ? clipBegin(0, 0, getWidth(), getHeight()) : clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this), getHeight() - padBottom - padTop.get(this)); if (draw) { drawDebugChildren(shapes); clipEnd(); } } else drawDebugChildren(shapes); resetTransform(shapes); } else super.drawDebug(shapes); } }
package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.ui.Value.Fixed; import com.badlogic.gdx.scenes.scene2d.utils.Cullable; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.Null; /** A group with a single child that sizes and positions the child using constraints. This provides layout similar to a * {@link Table} with a single cell but is more lightweight. * @author Nathan Sweet */ public class Container<T extends Actor> extends WidgetGroup { private @Null T actor; private Value minWidth = Value.minWidth, minHeight = Value.minHeight; private Value prefWidth = Value.prefWidth, prefHeight = Value.prefHeight; private Value maxWidth = Value.zero, maxHeight = Value.zero; private Value padTop = Value.zero, padLeft = Value.zero, padBottom = Value.zero, padRight = Value.zero; private float fillX, fillY; private int align; private @Null Drawable background; private boolean clip; private boolean round = true; /** Creates a container with no actor. */ public Container () { setTouchable(Touchable.childrenOnly); setTransform(false); } public Container (@Null T actor) { this(); setActor(actor); } public void draw (Batch batch, float parentAlpha) { validate(); if (isTransform()) { applyTransform(batch, computeTransform()); drawBackground(batch, parentAlpha, 0, 0); if (clip) { batch.flush(); float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this); if (clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this), getHeight() - padBottom - padTop.get(this))) { drawChildren(batch, parentAlpha); batch.flush(); clipEnd(); } } else drawChildren(batch, parentAlpha); resetTransform(batch); } else { drawBackground(batch, parentAlpha, getX(), getY()); super.draw(batch, parentAlpha); } } /** Called to draw the background, before clipping is applied (if enabled). Default implementation draws the background * drawable. */ protected void drawBackground (Batch batch, float parentAlpha, float x, float y) { if (background == null) return; Color color = getColor(); batch.setColor(color.r, color.g, color.b, color.a * parentAlpha); background.draw(batch, x, y, getWidth(), getHeight()); } /** Sets the background drawable and adjusts the container's padding to match the background. * @see #setBackground(Drawable, boolean) */ public void setBackground (@Null Drawable background) { setBackground(background, true); } /** Sets the background drawable and, if adjustPadding is true, sets the container's padding to * {@link Drawable#getBottomHeight()} , {@link Drawable#getTopHeight()}, {@link Drawable#getLeftWidth()}, and * {@link Drawable#getRightWidth()}. * @param background If null, the background will be cleared and padding removed. */ public void setBackground (@Null Drawable background, boolean adjustPadding) { if (this.background == background) return; this.background = background; if (adjustPadding) { if (background == null) pad(Value.zero); else pad(background.getTopHeight(), background.getLeftWidth(), background.getBottomHeight(), background.getRightWidth()); invalidate(); } } /** @see #setBackground(Drawable) */ public Container<T> background (@Null Drawable background) { setBackground(background); return this; } public @Null Drawable getBackground () { return background; } public void layout () { if (actor == null) return; float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this); float containerWidth = getWidth() - padLeft - padRight.get(this); float containerHeight = getHeight() - padBottom - padTop.get(this); float minWidth = this.minWidth.get(actor), minHeight = this.minHeight.get(actor); float prefWidth = this.prefWidth.get(actor), prefHeight = this.prefHeight.get(actor); float maxWidth = this.maxWidth.get(actor), maxHeight = this.maxHeight.get(actor); float width; if (fillX > 0) width = containerWidth * fillX; else width = Math.min(prefWidth, containerWidth); if (width < minWidth) width = minWidth; if (maxWidth > 0 && width > maxWidth) width = maxWidth; float height; if (fillY > 0) height = containerHeight * fillY; else height = Math.min(prefHeight, containerHeight); if (height < minHeight) height = minHeight; if (maxHeight > 0 && height > maxHeight) height = maxHeight; float x = padLeft; if ((align & Align.right) != 0) x += containerWidth - width; else if ((align & Align.left) == 0) // center x += (containerWidth - width) / 2; float y = padBottom; if ((align & Align.top) != 0) y += containerHeight - height; else if ((align & Align.bottom) == 0) // center y += (containerHeight - height) / 2; if (round) { x = (float)Math.floor(x); y = (float)Math.floor(y); width = (float)Math.ceil(width); height = (float)Math.ceil(height); } actor.setBounds(x, y, width, height); if (actor instanceof Layout) ((Layout)actor).validate(); } public void setCullingArea (Rectangle cullingArea) { super.setCullingArea(cullingArea); if (fillX == 1 && fillY == 1 && actor instanceof Cullable) ((Cullable)actor).setCullingArea(cullingArea); } /** @param actor May be null. */ public void setActor (@Null T actor) { if (actor == this) throw new IllegalArgumentException("actor cannot be the Container."); if (actor == this.actor) return; if (this.actor != null) super.removeActor(this.actor); this.actor = actor; if (actor != null) super.addActor(actor); } /** @return May be null. */ public @Null T getActor () { return actor; } /** @deprecated Container may have only a single child. * @see #setActor(Actor) */ @Deprecated public void addActor (Actor actor) { throw new UnsupportedOperationException("Use Container#setActor."); } /** @deprecated Container may have only a single child. * @see #setActor(Actor) */ @Deprecated public void addActorAt (int index, Actor actor) { throw new UnsupportedOperationException("Use Container#setActor."); } /** @deprecated Container may have only a single child. * @see #setActor(Actor) */ @Deprecated public void addActorBefore (Actor actorBefore, Actor actor) { throw new UnsupportedOperationException("Use Container#setActor."); } /** @deprecated Container may have only a single child. * @see #setActor(Actor) */ @Deprecated public void addActorAfter (Actor actorAfter, Actor actor) { throw new UnsupportedOperationException("Use Container#setActor."); } public boolean removeActor (Actor actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); if (actor != this.actor) return false; setActor(null); return true; } public boolean removeActor (Actor actor, boolean unfocus) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); if (actor != this.actor) return false; this.actor = null; return super.removeActor(actor, unfocus); } public Actor removeActorAt (int index, boolean unfocus) { Actor actor = super.removeActorAt(index, unfocus); if (actor == this.actor) this.actor = null; return actor; } /** Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified value. */ public Container<T> size (Value size) { if (size == null) throw new IllegalArgumentException("size cannot be null."); minWidth = size; minHeight = size; prefWidth = size; prefHeight = size; maxWidth = size; maxHeight = size; return this; } /** Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified values. */ public Container<T> size (Value width, Value height) { if (width == null) throw new IllegalArgumentException("width cannot be null."); if (height == null) throw new IllegalArgumentException("height cannot be null."); minWidth = width; minHeight = height; prefWidth = width; prefHeight = height; maxWidth = width; maxHeight = height; return this; } /** Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified value. */ public Container<T> size (float size) { size(Fixed.valueOf(size)); return this; } /** Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified values. */ public Container<T> size (float width, float height) { size(Fixed.valueOf(width), Fixed.valueOf(height)); return this; } /** Sets the minWidth, prefWidth, and maxWidth to the specified value. */ public Container<T> width (Value width) { if (width == null) throw new IllegalArgumentException("width cannot be null."); minWidth = width; prefWidth = width; maxWidth = width; return this; } /** Sets the minWidth, prefWidth, and maxWidth to the specified value. */ public Container<T> width (float width) { width(Fixed.valueOf(width)); return this; } /** Sets the minHeight, prefHeight, and maxHeight to the specified value. */ public Container<T> height (Value height) { if (height == null) throw new IllegalArgumentException("height cannot be null."); minHeight = height; prefHeight = height; maxHeight = height; return this; } /** Sets the minHeight, prefHeight, and maxHeight to the specified value. */ public Container<T> height (float height) { height(Fixed.valueOf(height)); return this; } /** Sets the minWidth and minHeight to the specified value. */ public Container<T> minSize (Value size) { if (size == null) throw new IllegalArgumentException("size cannot be null."); minWidth = size; minHeight = size; return this; } /** Sets the minWidth and minHeight to the specified values. */ public Container<T> minSize (Value width, Value height) { if (width == null) throw new IllegalArgumentException("width cannot be null."); if (height == null) throw new IllegalArgumentException("height cannot be null."); minWidth = width; minHeight = height; return this; } public Container<T> minWidth (Value minWidth) { if (minWidth == null) throw new IllegalArgumentException("minWidth cannot be null."); this.minWidth = minWidth; return this; } public Container<T> minHeight (Value minHeight) { if (minHeight == null) throw new IllegalArgumentException("minHeight cannot be null."); this.minHeight = minHeight; return this; } /** Sets the minWidth and minHeight to the specified value. */ public Container<T> minSize (float size) { minSize(Fixed.valueOf(size)); return this; } /** Sets the minWidth and minHeight to the specified values. */ public Container<T> minSize (float width, float height) { minSize(Fixed.valueOf(width), Fixed.valueOf(height)); return this; } public Container<T> minWidth (float minWidth) { this.minWidth = Fixed.valueOf(minWidth); return this; } public Container<T> minHeight (float minHeight) { this.minHeight = Fixed.valueOf(minHeight); return this; } /** Sets the prefWidth and prefHeight to the specified value. */ public Container<T> prefSize (Value size) { if (size == null) throw new IllegalArgumentException("size cannot be null."); prefWidth = size; prefHeight = size; return this; } /** Sets the prefWidth and prefHeight to the specified values. */ public Container<T> prefSize (Value width, Value height) { if (width == null) throw new IllegalArgumentException("width cannot be null."); if (height == null) throw new IllegalArgumentException("height cannot be null."); prefWidth = width; prefHeight = height; return this; } public Container<T> prefWidth (Value prefWidth) { if (prefWidth == null) throw new IllegalArgumentException("prefWidth cannot be null."); this.prefWidth = prefWidth; return this; } public Container<T> prefHeight (Value prefHeight) { if (prefHeight == null) throw new IllegalArgumentException("prefHeight cannot be null."); this.prefHeight = prefHeight; return this; } /** Sets the prefWidth and prefHeight to the specified value. */ public Container<T> prefSize (float width, float height) { prefSize(Fixed.valueOf(width), Fixed.valueOf(height)); return this; } /** Sets the prefWidth and prefHeight to the specified values. */ public Container<T> prefSize (float size) { prefSize(Fixed.valueOf(size)); return this; } public Container<T> prefWidth (float prefWidth) { this.prefWidth = Fixed.valueOf(prefWidth); return this; } public Container<T> prefHeight (float prefHeight) { this.prefHeight = Fixed.valueOf(prefHeight); return this; } /** Sets the maxWidth and maxHeight to the specified value. */ public Container<T> maxSize (Value size) { if (size == null) throw new IllegalArgumentException("size cannot be null."); maxWidth = size; maxHeight = size; return this; } /** Sets the maxWidth and maxHeight to the specified values. */ public Container<T> maxSize (Value width, Value height) { if (width == null) throw new IllegalArgumentException("width cannot be null."); if (height == null) throw new IllegalArgumentException("height cannot be null."); maxWidth = width; maxHeight = height; return this; } public Container<T> maxWidth (Value maxWidth) { if (maxWidth == null) throw new IllegalArgumentException("maxWidth cannot be null."); this.maxWidth = maxWidth; return this; } public Container<T> maxHeight (Value maxHeight) { if (maxHeight == null) throw new IllegalArgumentException("maxHeight cannot be null."); this.maxHeight = maxHeight; return this; } /** Sets the maxWidth and maxHeight to the specified value. */ public Container<T> maxSize (float size) { maxSize(Fixed.valueOf(size)); return this; } /** Sets the maxWidth and maxHeight to the specified values. */ public Container<T> maxSize (float width, float height) { maxSize(Fixed.valueOf(width), Fixed.valueOf(height)); return this; } public Container<T> maxWidth (float maxWidth) { this.maxWidth = Fixed.valueOf(maxWidth); return this; } public Container<T> maxHeight (float maxHeight) { this.maxHeight = Fixed.valueOf(maxHeight); return this; } /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */ public Container<T> pad (Value pad) { if (pad == null) throw new IllegalArgumentException("pad cannot be null."); padTop = pad; padLeft = pad; padBottom = pad; padRight = pad; return this; } public Container<T> pad (Value top, Value left, Value bottom, Value right) { if (top == null) throw new IllegalArgumentException("top cannot be null."); if (left == null) throw new IllegalArgumentException("left cannot be null."); if (bottom == null) throw new IllegalArgumentException("bottom cannot be null."); if (right == null) throw new IllegalArgumentException("right cannot be null."); padTop = top; padLeft = left; padBottom = bottom; padRight = right; return this; } public Container<T> padTop (Value padTop) { if (padTop == null) throw new IllegalArgumentException("padTop cannot be null."); this.padTop = padTop; return this; } public Container<T> padLeft (Value padLeft) { if (padLeft == null) throw new IllegalArgumentException("padLeft cannot be null."); this.padLeft = padLeft; return this; } public Container<T> padBottom (Value padBottom) { if (padBottom == null) throw new IllegalArgumentException("padBottom cannot be null."); this.padBottom = padBottom; return this; } public Container<T> padRight (Value padRight) { if (padRight == null) throw new IllegalArgumentException("padRight cannot be null."); this.padRight = padRight; return this; } /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */ public Container<T> pad (float pad) { Value value = Fixed.valueOf(pad); padTop = value; padLeft = value; padBottom = value; padRight = value; return this; } public Container<T> pad (float top, float left, float bottom, float right) { padTop = Fixed.valueOf(top); padLeft = Fixed.valueOf(left); padBottom = Fixed.valueOf(bottom); padRight = Fixed.valueOf(right); return this; } public Container<T> padTop (float padTop) { this.padTop = Fixed.valueOf(padTop); return this; } public Container<T> padLeft (float padLeft) { this.padLeft = Fixed.valueOf(padLeft); return this; } public Container<T> padBottom (float padBottom) { this.padBottom = Fixed.valueOf(padBottom); return this; } public Container<T> padRight (float padRight) { this.padRight = Fixed.valueOf(padRight); return this; } /** Sets fillX and fillY to 1. */ public Container<T> fill () { fillX = 1f; fillY = 1f; return this; } /** Sets fillX to 1. */ public Container<T> fillX () { fillX = 1f; return this; } /** Sets fillY to 1. */ public Container<T> fillY () { fillY = 1f; return this; } public Container<T> fill (float x, float y) { fillX = x; fillY = y; return this; } /** Sets fillX and fillY to 1 if true, 0 if false. */ public Container<T> fill (boolean x, boolean y) { fillX = x ? 1f : 0; fillY = y ? 1f : 0; return this; } /** Sets fillX and fillY to 1 if true, 0 if false. */ public Container<T> fill (boolean fill) { fillX = fill ? 1f : 0; fillY = fill ? 1f : 0; return this; } /** Sets the alignment of the actor within the container. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom}, * {@link Align#left}, {@link Align#right}, or any combination of those. */ public Container<T> align (int align) { this.align = align; return this; } /** Sets the alignment of the actor within the container to {@link Align#center}. This clears any other alignment. */ public Container<T> center () { align = Align.center; return this; } /** Sets {@link Align#top} and clears {@link Align#bottom} for the alignment of the actor within the container. */ public Container<T> top () { align |= Align.top; align &= ~Align.bottom; return this; } /** Sets {@link Align#left} and clears {@link Align#right} for the alignment of the actor within the container. */ public Container<T> left () { align |= Align.left; align &= ~Align.right; return this; } /** Sets {@link Align#bottom} and clears {@link Align#top} for the alignment of the actor within the container. */ public Container<T> bottom () { align |= Align.bottom; align &= ~Align.top; return this; } /** Sets {@link Align#right} and clears {@link Align#left} for the alignment of the actor within the container. */ public Container<T> right () { align |= Align.right; align &= ~Align.left; return this; } public float getMinWidth () { return minWidth.get(actor) + padLeft.get(this) + padRight.get(this); } public Value getMinHeightValue () { return minHeight; } public float getMinHeight () { return minHeight.get(actor) + padTop.get(this) + padBottom.get(this); } public Value getPrefWidthValue () { return prefWidth; } public float getPrefWidth () { float v = prefWidth.get(actor); if (background != null) v = Math.max(v, background.getMinWidth()); return Math.max(getMinWidth(), v + padLeft.get(this) + padRight.get(this)); } public Value getPrefHeightValue () { return prefHeight; } public float getPrefHeight () { float v = prefHeight.get(actor); if (background != null) v = Math.max(v, background.getMinHeight()); return Math.max(getMinHeight(), v + padTop.get(this) + padBottom.get(this)); } public Value getMaxWidthValue () { return maxWidth; } public float getMaxWidth () { float v = maxWidth.get(actor); if (v > 0) v += padLeft.get(this) + padRight.get(this); return v; } public Value getMaxHeightValue () { return maxHeight; } public float getMaxHeight () { float v = maxHeight.get(actor); if (v > 0) v += padTop.get(this) + padBottom.get(this); return v; } public Value getPadTopValue () { return padTop; } public float getPadTop () { return padTop.get(this); } public Value getPadLeftValue () { return padLeft; } public float getPadLeft () { return padLeft.get(this); } public Value getPadBottomValue () { return padBottom; } public float getPadBottom () { return padBottom.get(this); } public Value getPadRightValue () { return padRight; } public float getPadRight () { return padRight.get(this); } /** Returns {@link #getPadLeft()} plus {@link #getPadRight()}. */ public float getPadX () { return padLeft.get(this) + padRight.get(this); } /** Returns {@link #getPadTop()} plus {@link #getPadBottom()}. */ public float getPadY () { return padTop.get(this) + padBottom.get(this); } public float getFillX () { return fillX; } public float getFillY () { return fillY; } public int getAlign () { return align; } /** If true (the default), positions and sizes are rounded to integers. */ public void setRound (boolean round) { this.round = round; } /** Sets clip to true. */ public Container<T> clip () { setClip(true); return this; } public Container<T> clip (boolean enabled) { setClip(enabled); return this; } /** Causes the contents to be clipped if they exceed the container bounds. Enabling clipping will set * {@link #setTransform(boolean)} to true. */ public void setClip (boolean enabled) { clip = enabled; setTransform(enabled); invalidate(); } public boolean getClip () { return clip; } public @Null Actor hit (float x, float y, boolean touchable) { if (clip) { if (touchable && getTouchable() == Touchable.disabled) return null; if (x < 0 || x >= getWidth() || y < 0 || y >= getHeight()) return null; } return super.hit(x, y, touchable); } public void drawDebug (ShapeRenderer shapes) { validate(); if (isTransform()) { applyTransform(shapes, computeTransform()); if (clip) { shapes.flush(); float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this); boolean draw = background == null ? clipBegin(0, 0, getWidth(), getHeight()) : clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this), getHeight() - padBottom - padTop.get(this)); if (draw) { drawDebugChildren(shapes); clipEnd(); } } else drawDebugChildren(shapes); resetTransform(shapes); } else super.drawDebug(shapes); } }
1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/scenes/scene2d/ui/HorizontalGroup.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.FloatArray; import com.badlogic.gdx.utils.SnapshotArray; /** A group that lays out its children side by side horizontally, with optional wrapping. This can be easier than using * {@link Table} when actors need to be inserted into or removed from the middle of the group. {@link #getChildren()} can be * sorted to change the order of the actors (eg {@link Actor#setZIndex(int)}). {@link #invalidate()} must be called after changing * the children order. * <p> * The preferred width is the sum of the children's preferred widths plus spacing. The preferred height is the largest preferred * height of any child. The preferred size is slightly different when {@link #wrap() wrap} is enabled. The min size is the * preferred size and the max size is 0. * <p> * Widgets are sized using their {@link Layout#getPrefWidth() preferred width}, so widgets which return 0 as their preferred width * will be given a width of 0 (eg, a label with {@link Label#setWrap(boolean) word wrap} enabled). * @author Nathan Sweet */ public class HorizontalGroup extends WidgetGroup { private float prefWidth, prefHeight, lastPrefHeight; private boolean sizeInvalid = true; private FloatArray rowSizes; // row width, row height, ... private int align = Align.left, rowAlign; private boolean reverse, round = true, wrap, wrapReverse, expand; private float space, wrapSpace, fill, padTop, padLeft, padBottom, padRight; public HorizontalGroup () { setTouchable(Touchable.childrenOnly); } public void invalidate () { super.invalidate(); sizeInvalid = true; } private void computeSize () { sizeInvalid = false; SnapshotArray<Actor> children = getChildren(); int n = children.size; prefHeight = 0; if (wrap) { prefWidth = 0; if (rowSizes == null) rowSizes = new FloatArray(); else rowSizes.clear(); FloatArray rowSizes = this.rowSizes; float space = this.space, wrapSpace = this.wrapSpace; float pad = padLeft + padRight, groupWidth = getWidth() - pad, x = 0, y = 0, rowHeight = 0; int i = 0, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (; i != n; i += incr) { Actor child = children.get(i); float width, height; if (child instanceof Layout) { Layout layout = (Layout)child; width = layout.getPrefWidth(); if (width > groupWidth) width = Math.max(groupWidth, layout.getMinWidth()); height = layout.getPrefHeight(); } else { width = child.getWidth(); height = child.getHeight(); } float incrX = width + (x > 0 ? space : 0); if (x + incrX > groupWidth && x > 0) { rowSizes.add(x); rowSizes.add(rowHeight); prefWidth = Math.max(prefWidth, x + pad); if (y > 0) y += wrapSpace; y += rowHeight; rowHeight = 0; x = 0; incrX = width; } x += incrX; rowHeight = Math.max(rowHeight, height); } rowSizes.add(x); rowSizes.add(rowHeight); prefWidth = Math.max(prefWidth, x + pad); if (y > 0) y += wrapSpace; prefHeight = Math.max(prefHeight, y + rowHeight); } else { prefWidth = padLeft + padRight + space * (n - 1); for (int i = 0; i < n; i++) { Actor child = children.get(i); if (child instanceof Layout) { Layout layout = (Layout)child; prefWidth += layout.getPrefWidth(); prefHeight = Math.max(prefHeight, layout.getPrefHeight()); } else { prefWidth += child.getWidth(); prefHeight = Math.max(prefHeight, child.getHeight()); } } } prefHeight += padTop + padBottom; if (round) { prefWidth = Math.round(prefWidth); prefHeight = Math.round(prefHeight); } } public void layout () { if (sizeInvalid) computeSize(); if (wrap) { layoutWrapped(); return; } boolean round = this.round; int align = this.align; float space = this.space, padBottom = this.padBottom, fill = this.fill; float rowHeight = (expand ? getHeight() : prefHeight) - padTop - padBottom, x = padLeft; if ((align & Align.right) != 0) x += getWidth() - prefWidth; else if ((align & Align.left) == 0) // center x += (getWidth() - prefWidth) / 2; float startY; if ((align & Align.bottom) != 0) startY = padBottom; else if ((align & Align.top) != 0) startY = getHeight() - padTop - rowHeight; else startY = padBottom + (getHeight() - padBottom - padTop - rowHeight) / 2; align = rowAlign; SnapshotArray<Actor> children = getChildren(); int i = 0, n = children.size, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (int r = 0; i != n; i += incr) { Actor child = children.get(i); float width, height; Layout layout = null; if (child instanceof Layout) { layout = (Layout)child; width = layout.getPrefWidth(); height = layout.getPrefHeight(); } else { width = child.getWidth(); height = child.getHeight(); } if (fill > 0) height = rowHeight * fill; if (layout != null) { height = Math.max(height, layout.getMinHeight()); float maxHeight = layout.getMaxHeight(); if (maxHeight > 0 && height > maxHeight) height = maxHeight; } float y = startY; if ((align & Align.top) != 0) y += rowHeight - height; else if ((align & Align.bottom) == 0) // center y += (rowHeight - height) / 2; if (round) child.setBounds(Math.round(x), Math.round(y), Math.round(width), Math.round(height)); else child.setBounds(x, y, width, height); x += width + space; if (layout != null) layout.validate(); } } private void layoutWrapped () { float prefHeight = getPrefHeight(); if (prefHeight != lastPrefHeight) { lastPrefHeight = prefHeight; invalidateHierarchy(); } int align = this.align; boolean round = this.round; float space = this.space, fill = this.fill, wrapSpace = this.wrapSpace; float maxWidth = prefWidth - padLeft - padRight; float rowY = prefHeight - padTop, groupWidth = getWidth(), xStart = padLeft, x = 0, rowHeight = 0, rowDir = -1; if ((align & Align.top) != 0) rowY += getHeight() - prefHeight; else if ((align & Align.bottom) == 0) // center rowY += (getHeight() - prefHeight) / 2; if (wrapReverse) { rowY -= prefHeight + rowSizes.get(1); rowDir = 1; } if ((align & Align.right) != 0) xStart += groupWidth - prefWidth; else if ((align & Align.left) == 0) // center xStart += (groupWidth - prefWidth) / 2; groupWidth -= padRight; align = this.rowAlign; FloatArray rowSizes = this.rowSizes; SnapshotArray<Actor> children = getChildren(); int i = 0, n = children.size, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (int r = 0; i != n; i += incr) { Actor child = children.get(i); float width, height; Layout layout = null; if (child instanceof Layout) { layout = (Layout)child; width = layout.getPrefWidth(); if (width > groupWidth) width = Math.max(groupWidth, layout.getMinWidth()); height = layout.getPrefHeight(); } else { width = child.getWidth(); height = child.getHeight(); } if (x + width > groupWidth || r == 0) { r = Math.min(r, rowSizes.size - 2); // In case an actor changed size without invalidating this layout. x = xStart; if ((align & Align.right) != 0) x += maxWidth - rowSizes.get(r); else if ((align & Align.left) == 0) // center x += (maxWidth - rowSizes.get(r)) / 2; rowHeight = rowSizes.get(r + 1); if (r > 0) rowY += wrapSpace * rowDir; rowY += rowHeight * rowDir; r += 2; } if (fill > 0) height = rowHeight * fill; if (layout != null) { height = Math.max(height, layout.getMinHeight()); float maxHeight = layout.getMaxHeight(); if (maxHeight > 0 && height > maxHeight) height = maxHeight; } float y = rowY; if ((align & Align.top) != 0) y += rowHeight - height; else if ((align & Align.bottom) == 0) // center y += (rowHeight - height) / 2; if (round) child.setBounds(Math.round(x), Math.round(y), Math.round(width), Math.round(height)); else child.setBounds(x, y, width, height); x += width + space; if (layout != null) layout.validate(); } } public float getPrefWidth () { if (wrap) return 0; if (sizeInvalid) computeSize(); return prefWidth; } public float getPrefHeight () { if (sizeInvalid) computeSize(); return prefHeight; } /** When wrapping is enabled, the number of rows may be > 1. */ public int getRows () { return wrap ? rowSizes.size >> 1 : 1; } /** If true (the default), positions and sizes are rounded to integers. */ public void setRound (boolean round) { this.round = round; } /** The children will be displayed last to first. */ public HorizontalGroup reverse () { reverse = true; return this; } /** If true, the children will be displayed last to first. */ public HorizontalGroup reverse (boolean reverse) { this.reverse = reverse; return this; } public boolean getReverse () { return reverse; } /** Rows will wrap above the previous rows. */ public HorizontalGroup wrapReverse () { wrapReverse = true; return this; } /** If true, rows will wrap above the previous rows. */ public HorizontalGroup wrapReverse (boolean wrapReverse) { this.wrapReverse = wrapReverse; return this; } public boolean getWrapReverse () { return wrapReverse; } /** Sets the horizontal space between children. */ public HorizontalGroup space (float space) { this.space = space; return this; } public float getSpace () { return space; } /** Sets the vertical space between rows when wrap is enabled. */ public HorizontalGroup wrapSpace (float wrapSpace) { this.wrapSpace = wrapSpace; return this; } public float getWrapSpace () { return wrapSpace; } /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */ public HorizontalGroup pad (float pad) { padTop = pad; padLeft = pad; padBottom = pad; padRight = pad; return this; } public HorizontalGroup pad (float top, float left, float bottom, float right) { padTop = top; padLeft = left; padBottom = bottom; padRight = right; return this; } public HorizontalGroup padTop (float padTop) { this.padTop = padTop; return this; } public HorizontalGroup padLeft (float padLeft) { this.padLeft = padLeft; return this; } public HorizontalGroup padBottom (float padBottom) { this.padBottom = padBottom; return this; } public HorizontalGroup padRight (float padRight) { this.padRight = padRight; return this; } public float getPadTop () { return padTop; } public float getPadLeft () { return padLeft; } public float getPadBottom () { return padBottom; } public float getPadRight () { return padRight; } /** Sets the alignment of all widgets within the horizontal group. Set to {@link Align#center}, {@link Align#top}, * {@link Align#bottom}, {@link Align#left}, {@link Align#right}, or any combination of those. */ public HorizontalGroup align (int align) { this.align = align; return this; } /** Sets the alignment of all widgets within the horizontal group to {@link Align#center}. This clears any other alignment. */ public HorizontalGroup center () { align = Align.center; return this; } /** Sets {@link Align#top} and clears {@link Align#bottom} for the alignment of all widgets within the horizontal group. */ public HorizontalGroup top () { align |= Align.top; align &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of all widgets within the horizontal group. */ public HorizontalGroup left () { align |= Align.left; align &= ~Align.right; return this; } /** Sets {@link Align#bottom} and clears {@link Align#top} for the alignment of all widgets within the horizontal group. */ public HorizontalGroup bottom () { align |= Align.bottom; align &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of all widgets within the horizontal group. */ public HorizontalGroup right () { align |= Align.right; align &= ~Align.left; return this; } public int getAlign () { return align; } public HorizontalGroup fill () { fill = 1f; return this; } /** @param fill 0 will use preferred width. */ public HorizontalGroup fill (float fill) { this.fill = fill; return this; } public float getFill () { return fill; } public HorizontalGroup expand () { expand = true; return this; } /** When true and wrap is false, the rows will take up the entire horizontal group height. */ public HorizontalGroup expand (boolean expand) { this.expand = expand; return this; } public boolean getExpand () { return expand; } /** Sets fill to 1 and expand to true. */ public HorizontalGroup grow () { expand = true; fill = 1; return this; } /** If false, the widgets are arranged in a single row and the preferred width is the widget widths plus spacing. * <p> * If true, the widgets will wrap using the width of the horizontal group. The preferred width of the group will be 0 as it is * expected that something external will set the width of the group. Widgets are sized to their preferred width unless it is * larger than the group's width, in which case they are sized to the group's width but not less than their minimum width. * Default is false. * <p> * When wrap is enabled, the group's preferred height depends on the width of the group. In some cases the parent of the group * will need to layout twice: once to set the width of the group and a second time to adjust to the group's new preferred * height. */ public HorizontalGroup wrap () { wrap = true; return this; } public HorizontalGroup wrap (boolean wrap) { this.wrap = wrap; return this; } public boolean getWrap () { return wrap; } /** Sets the horizontal alignment of each row of widgets when {@link #wrap() wrapping} is enabled and sets the vertical * alignment of widgets within each row. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom}, * {@link Align#left}, {@link Align#right}, or any combination of those. */ public HorizontalGroup rowAlign (int rowAlign) { this.rowAlign = rowAlign; return this; } /** Sets the alignment of widgets within each row to {@link Align#center}. This clears any other alignment. */ public HorizontalGroup rowCenter () { rowAlign = Align.center; return this; } /** Sets {@link Align#top} and clears {@link Align#bottom} for the alignment of widgets within each row. */ public HorizontalGroup rowTop () { rowAlign |= Align.top; rowAlign &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of each row of widgets when {@link #wrap() * wrapping} is enabled. */ public HorizontalGroup rowLeft () { rowAlign |= Align.left; rowAlign &= ~Align.right; return this; } /** Sets {@link Align#bottom} and clears {@link Align#top} for the alignment of widgets within each row. */ public HorizontalGroup rowBottom () { rowAlign |= Align.bottom; rowAlign &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of each row of widgets when {@link #wrap() * wrapping} is enabled. */ public HorizontalGroup rowRight () { rowAlign |= Align.right; rowAlign &= ~Align.left; return this; } protected void drawDebugBounds (ShapeRenderer shapes) { super.drawDebugBounds(shapes); if (!getDebug()) return; shapes.set(ShapeType.Line); if (getStage() != null) shapes.setColor(getStage().getDebugColor()); shapes.rect(getX() + padLeft, getY() + padBottom, getOriginX(), getOriginY(), getWidth() - padLeft - padRight, getHeight() - padBottom - padTop, getScaleX(), getScaleY(), getRotation()); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.FloatArray; import com.badlogic.gdx.utils.SnapshotArray; /** A group that lays out its children side by side horizontally, with optional wrapping. This can be easier than using * {@link Table} when actors need to be inserted into or removed from the middle of the group. {@link #getChildren()} can be * sorted to change the order of the actors (eg {@link Actor#setZIndex(int)}). {@link #invalidate()} must be called after changing * the children order. * <p> * The preferred width is the sum of the children's preferred widths plus spacing. The preferred height is the largest preferred * height of any child. The preferred size is slightly different when {@link #wrap() wrap} is enabled. The min size is the * preferred size and the max size is 0. * <p> * Widgets are sized using their {@link Layout#getPrefWidth() preferred width}, so widgets which return 0 as their preferred width * will be given a width of 0 (eg, a label with {@link Label#setWrap(boolean) word wrap} enabled). * @author Nathan Sweet */ public class HorizontalGroup extends WidgetGroup { private float prefWidth, prefHeight, lastPrefHeight; private boolean sizeInvalid = true; private FloatArray rowSizes; // row width, row height, ... private int align = Align.left, rowAlign; private boolean reverse, round = true, wrap, wrapReverse, expand; private float space, wrapSpace, fill, padTop, padLeft, padBottom, padRight; public HorizontalGroup () { setTouchable(Touchable.childrenOnly); } public void invalidate () { super.invalidate(); sizeInvalid = true; } private void computeSize () { sizeInvalid = false; SnapshotArray<Actor> children = getChildren(); int n = children.size; prefHeight = 0; if (wrap) { prefWidth = 0; if (rowSizes == null) rowSizes = new FloatArray(); else rowSizes.clear(); FloatArray rowSizes = this.rowSizes; float space = this.space, wrapSpace = this.wrapSpace; float pad = padLeft + padRight, groupWidth = getWidth() - pad, x = 0, y = 0, rowHeight = 0; int i = 0, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (; i != n; i += incr) { Actor child = children.get(i); float width, height; if (child instanceof Layout) { Layout layout = (Layout)child; width = layout.getPrefWidth(); if (width > groupWidth) width = Math.max(groupWidth, layout.getMinWidth()); height = layout.getPrefHeight(); } else { width = child.getWidth(); height = child.getHeight(); } float incrX = width + (x > 0 ? space : 0); if (x + incrX > groupWidth && x > 0) { rowSizes.add(x); rowSizes.add(rowHeight); prefWidth = Math.max(prefWidth, x + pad); if (y > 0) y += wrapSpace; y += rowHeight; rowHeight = 0; x = 0; incrX = width; } x += incrX; rowHeight = Math.max(rowHeight, height); } rowSizes.add(x); rowSizes.add(rowHeight); prefWidth = Math.max(prefWidth, x + pad); if (y > 0) y += wrapSpace; prefHeight = Math.max(prefHeight, y + rowHeight); } else { prefWidth = padLeft + padRight + space * (n - 1); for (int i = 0; i < n; i++) { Actor child = children.get(i); if (child instanceof Layout) { Layout layout = (Layout)child; prefWidth += layout.getPrefWidth(); prefHeight = Math.max(prefHeight, layout.getPrefHeight()); } else { prefWidth += child.getWidth(); prefHeight = Math.max(prefHeight, child.getHeight()); } } } prefHeight += padTop + padBottom; if (round) { prefWidth = (float)Math.ceil(prefWidth); prefHeight = (float)Math.ceil(prefHeight); } } public void layout () { if (sizeInvalid) computeSize(); if (wrap) { layoutWrapped(); return; } boolean round = this.round; int align = this.align; float space = this.space, padBottom = this.padBottom, fill = this.fill; float rowHeight = (expand ? getHeight() : prefHeight) - padTop - padBottom, x = padLeft; if ((align & Align.right) != 0) x += getWidth() - prefWidth; else if ((align & Align.left) == 0) // center x += (getWidth() - prefWidth) / 2; float startY; if ((align & Align.bottom) != 0) startY = padBottom; else if ((align & Align.top) != 0) startY = getHeight() - padTop - rowHeight; else startY = padBottom + (getHeight() - padBottom - padTop - rowHeight) / 2; align = rowAlign; SnapshotArray<Actor> children = getChildren(); int i = 0, n = children.size, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (int r = 0; i != n; i += incr) { Actor child = children.get(i); float width, height; Layout layout = null; if (child instanceof Layout) { layout = (Layout)child; width = layout.getPrefWidth(); height = layout.getPrefHeight(); } else { width = child.getWidth(); height = child.getHeight(); } if (fill > 0) height = rowHeight * fill; if (layout != null) { height = Math.max(height, layout.getMinHeight()); float maxHeight = layout.getMaxHeight(); if (maxHeight > 0 && height > maxHeight) height = maxHeight; } float y = startY; if ((align & Align.top) != 0) y += rowHeight - height; else if ((align & Align.bottom) == 0) // center y += (rowHeight - height) / 2; if (round) child.setBounds((float)Math.floor(x), (float)Math.floor(y), (float)Math.ceil(width), (float)Math.ceil(height)); else child.setBounds(x, y, width, height); x += width + space; if (layout != null) layout.validate(); } } private void layoutWrapped () { float prefHeight = getPrefHeight(); if (prefHeight != lastPrefHeight) { lastPrefHeight = prefHeight; invalidateHierarchy(); } int align = this.align; boolean round = this.round; float space = this.space, fill = this.fill, wrapSpace = this.wrapSpace; float maxWidth = prefWidth - padLeft - padRight; float rowY = prefHeight - padTop, groupWidth = getWidth(), xStart = padLeft, x = 0, rowHeight = 0, rowDir = -1; if ((align & Align.top) != 0) rowY += getHeight() - prefHeight; else if ((align & Align.bottom) == 0) // center rowY += (getHeight() - prefHeight) / 2; if (wrapReverse) { rowY -= prefHeight + rowSizes.get(1); rowDir = 1; } if ((align & Align.right) != 0) xStart += groupWidth - prefWidth; else if ((align & Align.left) == 0) // center xStart += (groupWidth - prefWidth) / 2; groupWidth -= padRight; align = this.rowAlign; FloatArray rowSizes = this.rowSizes; SnapshotArray<Actor> children = getChildren(); int i = 0, n = children.size, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (int r = 0; i != n; i += incr) { Actor child = children.get(i); float width, height; Layout layout = null; if (child instanceof Layout) { layout = (Layout)child; width = layout.getPrefWidth(); if (width > groupWidth) width = Math.max(groupWidth, layout.getMinWidth()); height = layout.getPrefHeight(); } else { width = child.getWidth(); height = child.getHeight(); } if (x + width > groupWidth || r == 0) { r = Math.min(r, rowSizes.size - 2); // In case an actor changed size without invalidating this layout. x = xStart; if ((align & Align.right) != 0) x += maxWidth - rowSizes.get(r); else if ((align & Align.left) == 0) // center x += (maxWidth - rowSizes.get(r)) / 2; rowHeight = rowSizes.get(r + 1); if (r > 0) rowY += wrapSpace * rowDir; rowY += rowHeight * rowDir; r += 2; } if (fill > 0) height = rowHeight * fill; if (layout != null) { height = Math.max(height, layout.getMinHeight()); float maxHeight = layout.getMaxHeight(); if (maxHeight > 0 && height > maxHeight) height = maxHeight; } float y = rowY; if ((align & Align.top) != 0) y += rowHeight - height; else if ((align & Align.bottom) == 0) // center y += (rowHeight - height) / 2; if (round) child.setBounds((float)Math.floor(x), (float)Math.floor(y), (float)Math.ceil(width), (float)Math.ceil(height)); else child.setBounds(x, y, width, height); x += width + space; if (layout != null) layout.validate(); } } public float getPrefWidth () { if (wrap) return 0; if (sizeInvalid) computeSize(); return prefWidth; } public float getPrefHeight () { if (sizeInvalid) computeSize(); return prefHeight; } /** When wrapping is enabled, the number of rows may be > 1. */ public int getRows () { return wrap ? rowSizes.size >> 1 : 1; } /** If true (the default), positions and sizes are rounded to integers. */ public void setRound (boolean round) { this.round = round; } /** The children will be displayed last to first. */ public HorizontalGroup reverse () { reverse = true; return this; } /** If true, the children will be displayed last to first. */ public HorizontalGroup reverse (boolean reverse) { this.reverse = reverse; return this; } public boolean getReverse () { return reverse; } /** Rows will wrap above the previous rows. */ public HorizontalGroup wrapReverse () { wrapReverse = true; return this; } /** If true, rows will wrap above the previous rows. */ public HorizontalGroup wrapReverse (boolean wrapReverse) { this.wrapReverse = wrapReverse; return this; } public boolean getWrapReverse () { return wrapReverse; } /** Sets the horizontal space between children. */ public HorizontalGroup space (float space) { this.space = space; return this; } public float getSpace () { return space; } /** Sets the vertical space between rows when wrap is enabled. */ public HorizontalGroup wrapSpace (float wrapSpace) { this.wrapSpace = wrapSpace; return this; } public float getWrapSpace () { return wrapSpace; } /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */ public HorizontalGroup pad (float pad) { padTop = pad; padLeft = pad; padBottom = pad; padRight = pad; return this; } public HorizontalGroup pad (float top, float left, float bottom, float right) { padTop = top; padLeft = left; padBottom = bottom; padRight = right; return this; } public HorizontalGroup padTop (float padTop) { this.padTop = padTop; return this; } public HorizontalGroup padLeft (float padLeft) { this.padLeft = padLeft; return this; } public HorizontalGroup padBottom (float padBottom) { this.padBottom = padBottom; return this; } public HorizontalGroup padRight (float padRight) { this.padRight = padRight; return this; } public float getPadTop () { return padTop; } public float getPadLeft () { return padLeft; } public float getPadBottom () { return padBottom; } public float getPadRight () { return padRight; } /** Sets the alignment of all widgets within the horizontal group. Set to {@link Align#center}, {@link Align#top}, * {@link Align#bottom}, {@link Align#left}, {@link Align#right}, or any combination of those. */ public HorizontalGroup align (int align) { this.align = align; return this; } /** Sets the alignment of all widgets within the horizontal group to {@link Align#center}. This clears any other alignment. */ public HorizontalGroup center () { align = Align.center; return this; } /** Sets {@link Align#top} and clears {@link Align#bottom} for the alignment of all widgets within the horizontal group. */ public HorizontalGroup top () { align |= Align.top; align &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of all widgets within the horizontal group. */ public HorizontalGroup left () { align |= Align.left; align &= ~Align.right; return this; } /** Sets {@link Align#bottom} and clears {@link Align#top} for the alignment of all widgets within the horizontal group. */ public HorizontalGroup bottom () { align |= Align.bottom; align &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of all widgets within the horizontal group. */ public HorizontalGroup right () { align |= Align.right; align &= ~Align.left; return this; } public int getAlign () { return align; } public HorizontalGroup fill () { fill = 1f; return this; } /** @param fill 0 will use preferred width. */ public HorizontalGroup fill (float fill) { this.fill = fill; return this; } public float getFill () { return fill; } public HorizontalGroup expand () { expand = true; return this; } /** When true and wrap is false, the rows will take up the entire horizontal group height. */ public HorizontalGroup expand (boolean expand) { this.expand = expand; return this; } public boolean getExpand () { return expand; } /** Sets fill to 1 and expand to true. */ public HorizontalGroup grow () { expand = true; fill = 1; return this; } /** If false, the widgets are arranged in a single row and the preferred width is the widget widths plus spacing. * <p> * If true, the widgets will wrap using the width of the horizontal group. The preferred width of the group will be 0 as it is * expected that something external will set the width of the group. Widgets are sized to their preferred width unless it is * larger than the group's width, in which case they are sized to the group's width but not less than their minimum width. * Default is false. * <p> * When wrap is enabled, the group's preferred height depends on the width of the group. In some cases the parent of the group * will need to layout twice: once to set the width of the group and a second time to adjust to the group's new preferred * height. */ public HorizontalGroup wrap () { wrap = true; return this; } public HorizontalGroup wrap (boolean wrap) { this.wrap = wrap; return this; } public boolean getWrap () { return wrap; } /** Sets the horizontal alignment of each row of widgets when {@link #wrap() wrapping} is enabled and sets the vertical * alignment of widgets within each row. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom}, * {@link Align#left}, {@link Align#right}, or any combination of those. */ public HorizontalGroup rowAlign (int rowAlign) { this.rowAlign = rowAlign; return this; } /** Sets the alignment of widgets within each row to {@link Align#center}. This clears any other alignment. */ public HorizontalGroup rowCenter () { rowAlign = Align.center; return this; } /** Sets {@link Align#top} and clears {@link Align#bottom} for the alignment of widgets within each row. */ public HorizontalGroup rowTop () { rowAlign |= Align.top; rowAlign &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of each row of widgets when {@link #wrap() * wrapping} is enabled. */ public HorizontalGroup rowLeft () { rowAlign |= Align.left; rowAlign &= ~Align.right; return this; } /** Sets {@link Align#bottom} and clears {@link Align#top} for the alignment of widgets within each row. */ public HorizontalGroup rowBottom () { rowAlign |= Align.bottom; rowAlign &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of each row of widgets when {@link #wrap() * wrapping} is enabled. */ public HorizontalGroup rowRight () { rowAlign |= Align.right; rowAlign &= ~Align.left; return this; } protected void drawDebugBounds (ShapeRenderer shapes) { super.drawDebugBounds(shapes); if (!getDebug()) return; shapes.set(ShapeType.Line); if (getStage() != null) shapes.setColor(getStage().getDebugColor()); shapes.rect(getX() + padLeft, getY() + padBottom, getOriginX(), getOriginY(), getWidth() - padLeft - padRight, getHeight() - padBottom - padTop, getScaleX(), getScaleY(), getRotation()); } }
1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ProgressBar.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.NinePatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.Interpolation; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener.ChangeEvent; import com.badlogic.gdx.scenes.scene2d.utils.Disableable; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.Pools; /** A progress bar is a widget that visually displays the progress of some activity or a value within given range. The progress * bar has a range (min, max) and a stepping between each value it represents. The percentage of completeness typically starts out * as an empty progress bar and gradually becomes filled in as the task or variable value progresses. * <p> * {@link ChangeEvent} is fired when the progress bar knob is moved. Cancelling the event will move the knob to where it was * previously. * <p> * For a horizontal progress bar, its preferred height is determined by the larger of the knob and background, and the preferred * width is 140, a relatively arbitrary size. These parameters are reversed for a vertical progress bar. * @author mzechner * @author Nathan Sweet */ public class ProgressBar extends Widget implements Disableable { private ProgressBarStyle style; float min, max, stepSize; private float value, animateFromValue; float position; final boolean vertical; private float animateDuration, animateTime; private Interpolation animateInterpolation = Interpolation.linear, visualInterpolation = Interpolation.linear; boolean disabled; private boolean round = true, programmaticChangeEvents = true; public ProgressBar (float min, float max, float stepSize, boolean vertical, Skin skin) { this(min, max, stepSize, vertical, skin.get("default-" + (vertical ? "vertical" : "horizontal"), ProgressBarStyle.class)); } public ProgressBar (float min, float max, float stepSize, boolean vertical, Skin skin, String styleName) { this(min, max, stepSize, vertical, skin.get(styleName, ProgressBarStyle.class)); } /** Creates a new progress bar. If horizontal, its width is determined by the prefWidth parameter, and its height is determined * by the maximum of the height of either the progress bar {@link NinePatch} or progress bar handle {@link TextureRegion}. The * min and max values determine the range the values of this progress bar can take on, the stepSize parameter specifies the * distance between individual values. * <p> * E.g. min could be 4, max could be 10 and stepSize could be 0.2, giving you a total of 30 values, 4.0 4.2, 4.4 and so on. * @param min the minimum value * @param max the maximum value * @param stepSize the step size between values * @param style the {@link ProgressBarStyle} */ public ProgressBar (float min, float max, float stepSize, boolean vertical, ProgressBarStyle style) { if (min > max) throw new IllegalArgumentException("max must be > min. min,max: " + min + ", " + max); if (stepSize <= 0) throw new IllegalArgumentException("stepSize must be > 0: " + stepSize); setStyle(style); this.min = min; this.max = max; this.stepSize = stepSize; this.vertical = vertical; this.value = min; setSize(getPrefWidth(), getPrefHeight()); } public void setStyle (ProgressBarStyle style) { if (style == null) throw new IllegalArgumentException("style cannot be null."); this.style = style; invalidateHierarchy(); } /** Returns the progress bar's style. Modifying the returned style may not have an effect until * {@link #setStyle(ProgressBarStyle)} is called. */ public ProgressBarStyle getStyle () { return style; } public void act (float delta) { super.act(delta); if (animateTime > 0) { animateTime -= delta; Stage stage = getStage(); if (stage != null && stage.getActionsRequestRendering()) Gdx.graphics.requestRendering(); } } public void draw (Batch batch, float parentAlpha) { ProgressBarStyle style = this.style; boolean disabled = this.disabled; Drawable knob = style.knob, currentKnob = getKnobDrawable(); Drawable bg = getBackgroundDrawable(); Drawable knobBefore = getKnobBeforeDrawable(); Drawable knobAfter = getKnobAfterDrawable(); Color color = getColor(); float x = getX(), y = getY(); float width = getWidth(), height = getHeight(); float knobHeight = knob == null ? 0 : knob.getMinHeight(); float knobWidth = knob == null ? 0 : knob.getMinWidth(); float percent = getVisualPercent(); batch.setColor(color.r, color.g, color.b, color.a * parentAlpha); if (vertical) { float bgTopHeight = 0, bgBottomHeight = 0; if (bg != null) { drawRound(batch, bg, x + (width - bg.getMinWidth()) * 0.5f, y, bg.getMinWidth(), height); bgTopHeight = bg.getTopHeight(); bgBottomHeight = bg.getBottomHeight(); height -= bgTopHeight + bgBottomHeight; } float total = height - knobHeight; float beforeHeight = MathUtils.clamp(total * percent, 0, total); position = bgBottomHeight + beforeHeight; float knobHeightHalf = knobHeight * 0.5f; if (knobBefore != null) { drawRound(batch, knobBefore, // x + (width - knobBefore.getMinWidth()) * 0.5f, // y + bgBottomHeight, // knobBefore.getMinWidth(), beforeHeight + knobHeightHalf); } if (knobAfter != null) { drawRound(batch, knobAfter, // x + (width - knobAfter.getMinWidth()) * 0.5f, // y + position + knobHeightHalf, // knobAfter.getMinWidth(), total - (round ? Math.round(beforeHeight - knobHeightHalf) : beforeHeight - knobHeightHalf)); } if (currentKnob != null) { float w = currentKnob.getMinWidth(), h = currentKnob.getMinHeight(); drawRound(batch, currentKnob, // x + (width - w) * 0.5f, // y + position + (knobHeight - h) * 0.5f, // w, h); } } else { float bgLeftWidth = 0, bgRightWidth = 0; if (bg != null) { drawRound(batch, bg, x, Math.round(y + (height - bg.getMinHeight()) * 0.5f), width, Math.round(bg.getMinHeight())); bgLeftWidth = bg.getLeftWidth(); bgRightWidth = bg.getRightWidth(); width -= bgLeftWidth + bgRightWidth; } float total = width - knobWidth; float beforeWidth = MathUtils.clamp(total * percent, 0, total); position = bgLeftWidth + beforeWidth; float knobWidthHalf = knobWidth * 0.5f; if (knobBefore != null) { drawRound(batch, knobBefore, // x + bgLeftWidth, // y + (height - knobBefore.getMinHeight()) * 0.5f, // beforeWidth + knobWidthHalf, knobBefore.getMinHeight()); } if (knobAfter != null) { drawRound(batch, knobAfter, // x + position + knobWidthHalf, // y + (height - knobAfter.getMinHeight()) * 0.5f, // total - (round ? Math.round(beforeWidth - knobWidthHalf) : beforeWidth - knobWidthHalf), knobAfter.getMinHeight()); } if (currentKnob != null) { float w = currentKnob.getMinWidth(), h = currentKnob.getMinHeight(); drawRound(batch, currentKnob, // x + position + (knobWidth - w) * 0.5f, // y + (height - h) * 0.5f, // w, h); } } } private void drawRound (Batch batch, Drawable drawable, float x, float y, float w, float h) { if (round) { x = Math.round(x); y = Math.round(y); w = Math.round(w); h = Math.round(h); } drawable.draw(batch, x, y, w, h); } public float getValue () { return value; } /** If {@link #setAnimateDuration(float) animating} the progress bar value, this returns the value current displayed. */ public float getVisualValue () { if (animateTime > 0) return animateInterpolation.apply(animateFromValue, value, 1 - animateTime / animateDuration); return value; } /** Sets the visual value equal to the actual value. This can be used to set the value without animating. */ public void updateVisualValue () { animateTime = 0; } public float getPercent () { if (min == max) return 0; return (value - min) / (max - min); } public float getVisualPercent () { if (min == max) return 0; return visualInterpolation.apply((getVisualValue() - min) / (max - min)); } protected @Null Drawable getBackgroundDrawable () { if (disabled && style.disabledBackground != null) return style.disabledBackground; return style.background; } protected @Null Drawable getKnobDrawable () { if (disabled && style.disabledKnob != null) return style.disabledKnob; return style.knob; } protected Drawable getKnobBeforeDrawable () { if (disabled && style.disabledKnobBefore != null) return style.disabledKnobBefore; return style.knobBefore; } protected Drawable getKnobAfterDrawable () { if (disabled && style.disabledKnobAfter != null) return style.disabledKnobAfter; return style.knobAfter; } /** Returns progress bar visual position within the range (as it was last calculated in {@link #draw(Batch, float)}). */ protected float getKnobPosition () { return this.position; } /** Sets the progress bar position, rounded to the nearest step size and clamped to the minimum and maximum values. * {@link #clamp(float)} can be overridden to allow values outside of the progress bar's min/max range. * @return false if the value was not changed because the progress bar already had the value or it was canceled by a * listener. */ public boolean setValue (float value) { value = clamp(round(value)); float oldValue = this.value; if (value == oldValue) return false; float oldVisualValue = getVisualValue(); this.value = value; if (programmaticChangeEvents) { ChangeEvent changeEvent = Pools.obtain(ChangeEvent.class); boolean cancelled = fire(changeEvent); Pools.free(changeEvent); if (cancelled) { this.value = oldValue; return false; } } if (animateDuration > 0) { animateFromValue = oldVisualValue; animateTime = animateDuration; } return true; } /** Rouinds the value using the progress bar's step size. This can be overridden to customize or disable rounding. */ protected float round (float value) { return Math.round(value / stepSize) * stepSize; } /** Clamps the value to the progress bar's min/max range. This can be overridden to allow a range different from the progress * bar knob's range. */ protected float clamp (float value) { return MathUtils.clamp(value, min, max); } /** Sets the range of this progress bar. The progress bar's current value is clamped to the range. */ public void setRange (float min, float max) { if (min > max) throw new IllegalArgumentException("min must be <= max: " + min + " <= " + max); this.min = min; this.max = max; if (value < min) setValue(min); else if (value > max) // setValue(max); } public void setStepSize (float stepSize) { if (stepSize <= 0) throw new IllegalArgumentException("steps must be > 0: " + stepSize); this.stepSize = stepSize; } public float getPrefWidth () { if (vertical) { Drawable knob = style.knob, bg = getBackgroundDrawable(); return Math.max(knob == null ? 0 : knob.getMinWidth(), bg == null ? 0 : bg.getMinWidth()); } else return 140; } public float getPrefHeight () { if (vertical) return 140; else { Drawable knob = style.knob, bg = getBackgroundDrawable(); return Math.max(knob == null ? 0 : knob.getMinHeight(), bg == null ? 0 : bg.getMinHeight()); } } public float getMinValue () { return this.min; } public float getMaxValue () { return this.max; } public float getStepSize () { return this.stepSize; } /** If > 0, changes to the progress bar value via {@link #setValue(float)} will happen over this duration in seconds. */ public void setAnimateDuration (float duration) { this.animateDuration = duration; } /** Sets the interpolation to use for {@link #setAnimateDuration(float)}. */ public void setAnimateInterpolation (Interpolation animateInterpolation) { if (animateInterpolation == null) throw new IllegalArgumentException("animateInterpolation cannot be null."); this.animateInterpolation = animateInterpolation; } /** Sets the interpolation to use for display. */ public void setVisualInterpolation (Interpolation interpolation) { this.visualInterpolation = interpolation; } /** If true (the default), inner Drawable positions and sizes are rounded to integers. */ public void setRound (boolean round) { this.round = round; } public void setDisabled (boolean disabled) { this.disabled = disabled; } public boolean isAnimating () { return animateTime > 0; } public boolean isDisabled () { return disabled; } /** True if the progress bar is vertical, false if it is horizontal. **/ public boolean isVertical () { return vertical; } /** If false, {@link #setValue(float)} will not fire {@link ChangeEvent}. The event will only be fired when the user changes * the slider. */ public void setProgrammaticChangeEvents (boolean programmaticChangeEvents) { this.programmaticChangeEvents = programmaticChangeEvents; } /** The style for a progress bar, see {@link ProgressBar}. * @author mzechner * @author Nathan Sweet */ static public class ProgressBarStyle { /** The progress bar background, stretched only in one direction. */ public @Null Drawable background, disabledBackground; public @Null Drawable knob, disabledKnob; public @Null Drawable knobBefore, disabledKnobBefore; public @Null Drawable knobAfter, disabledKnobAfter; public ProgressBarStyle () { } public ProgressBarStyle (@Null Drawable background, @Null Drawable knob) { this.background = background; this.knob = knob; } public ProgressBarStyle (ProgressBarStyle style) { background = style.background; disabledBackground = style.disabledBackground; knob = style.knob; disabledKnob = style.disabledKnob; knobBefore = style.knobBefore; disabledKnobBefore = style.disabledKnobBefore; knobAfter = style.knobAfter; disabledKnobAfter = style.disabledKnobAfter; } } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.NinePatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.Interpolation; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener.ChangeEvent; import com.badlogic.gdx.scenes.scene2d.utils.Disableable; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.Pools; /** A progress bar is a widget that visually displays the progress of some activity or a value within given range. The progress * bar has a range (min, max) and a stepping between each value it represents. The percentage of completeness typically starts out * as an empty progress bar and gradually becomes filled in as the task or variable value progresses. * <p> * {@link ChangeEvent} is fired when the progress bar knob is moved. Cancelling the event will move the knob to where it was * previously. * <p> * For a horizontal progress bar, its preferred height is determined by the larger of the knob and background, and the preferred * width is 140, a relatively arbitrary size. These parameters are reversed for a vertical progress bar. * @author mzechner * @author Nathan Sweet */ public class ProgressBar extends Widget implements Disableable { private ProgressBarStyle style; float min, max, stepSize; private float value, animateFromValue; float position; final boolean vertical; private float animateDuration, animateTime; private Interpolation animateInterpolation = Interpolation.linear, visualInterpolation = Interpolation.linear; boolean disabled; private boolean round = true, programmaticChangeEvents = true; public ProgressBar (float min, float max, float stepSize, boolean vertical, Skin skin) { this(min, max, stepSize, vertical, skin.get("default-" + (vertical ? "vertical" : "horizontal"), ProgressBarStyle.class)); } public ProgressBar (float min, float max, float stepSize, boolean vertical, Skin skin, String styleName) { this(min, max, stepSize, vertical, skin.get(styleName, ProgressBarStyle.class)); } /** Creates a new progress bar. If horizontal, its width is determined by the prefWidth parameter, and its height is determined * by the maximum of the height of either the progress bar {@link NinePatch} or progress bar handle {@link TextureRegion}. The * min and max values determine the range the values of this progress bar can take on, the stepSize parameter specifies the * distance between individual values. * <p> * E.g. min could be 4, max could be 10 and stepSize could be 0.2, giving you a total of 30 values, 4.0 4.2, 4.4 and so on. * @param min the minimum value * @param max the maximum value * @param stepSize the step size between values * @param style the {@link ProgressBarStyle} */ public ProgressBar (float min, float max, float stepSize, boolean vertical, ProgressBarStyle style) { if (min > max) throw new IllegalArgumentException("max must be > min. min,max: " + min + ", " + max); if (stepSize <= 0) throw new IllegalArgumentException("stepSize must be > 0: " + stepSize); setStyle(style); this.min = min; this.max = max; this.stepSize = stepSize; this.vertical = vertical; this.value = min; setSize(getPrefWidth(), getPrefHeight()); } public void setStyle (ProgressBarStyle style) { if (style == null) throw new IllegalArgumentException("style cannot be null."); this.style = style; invalidateHierarchy(); } /** Returns the progress bar's style. Modifying the returned style may not have an effect until * {@link #setStyle(ProgressBarStyle)} is called. */ public ProgressBarStyle getStyle () { return style; } public void act (float delta) { super.act(delta); if (animateTime > 0) { animateTime -= delta; Stage stage = getStage(); if (stage != null && stage.getActionsRequestRendering()) Gdx.graphics.requestRendering(); } } public void draw (Batch batch, float parentAlpha) { ProgressBarStyle style = this.style; boolean disabled = this.disabled; Drawable knob = style.knob, currentKnob = getKnobDrawable(); Drawable bg = getBackgroundDrawable(); Drawable knobBefore = getKnobBeforeDrawable(); Drawable knobAfter = getKnobAfterDrawable(); Color color = getColor(); float x = getX(), y = getY(); float width = getWidth(), height = getHeight(); float knobHeight = knob == null ? 0 : knob.getMinHeight(); float knobWidth = knob == null ? 0 : knob.getMinWidth(); float percent = getVisualPercent(); batch.setColor(color.r, color.g, color.b, color.a * parentAlpha); if (vertical) { float bgTopHeight = 0, bgBottomHeight = 0; if (bg != null) { drawRound(batch, bg, x + (width - bg.getMinWidth()) * 0.5f, y, bg.getMinWidth(), height); bgTopHeight = bg.getTopHeight(); bgBottomHeight = bg.getBottomHeight(); height -= bgTopHeight + bgBottomHeight; } float total = height - knobHeight; float beforeHeight = MathUtils.clamp(total * percent, 0, total); position = bgBottomHeight + beforeHeight; float knobHeightHalf = knobHeight * 0.5f; if (knobBefore != null) { drawRound(batch, knobBefore, // x + (width - knobBefore.getMinWidth()) * 0.5f, // y + bgBottomHeight, // knobBefore.getMinWidth(), beforeHeight + knobHeightHalf); } if (knobAfter != null) { drawRound(batch, knobAfter, // x + (width - knobAfter.getMinWidth()) * 0.5f, // y + position + knobHeightHalf, // knobAfter.getMinWidth(), total - (round ? (float)Math.ceil(beforeHeight - knobHeightHalf) : beforeHeight - knobHeightHalf)); } if (currentKnob != null) { float w = currentKnob.getMinWidth(), h = currentKnob.getMinHeight(); drawRound(batch, currentKnob, // x + (width - w) * 0.5f, // y + position + (knobHeight - h) * 0.5f, // w, h); } } else { float bgLeftWidth = 0, bgRightWidth = 0; if (bg != null) { drawRound(batch, bg, x, Math.round(y + (height - bg.getMinHeight()) * 0.5f), width, Math.round(bg.getMinHeight())); bgLeftWidth = bg.getLeftWidth(); bgRightWidth = bg.getRightWidth(); width -= bgLeftWidth + bgRightWidth; } float total = width - knobWidth; float beforeWidth = MathUtils.clamp(total * percent, 0, total); position = bgLeftWidth + beforeWidth; float knobWidthHalf = knobWidth * 0.5f; if (knobBefore != null) { drawRound(batch, knobBefore, // x + bgLeftWidth, // y + (height - knobBefore.getMinHeight()) * 0.5f, // beforeWidth + knobWidthHalf, knobBefore.getMinHeight()); } if (knobAfter != null) { drawRound(batch, knobAfter, // x + position + knobWidthHalf, // y + (height - knobAfter.getMinHeight()) * 0.5f, // total - (round ? (float)Math.ceil(beforeWidth - knobWidthHalf) : beforeWidth - knobWidthHalf), knobAfter.getMinHeight()); } if (currentKnob != null) { float w = currentKnob.getMinWidth(), h = currentKnob.getMinHeight(); drawRound(batch, currentKnob, // x + position + (knobWidth - w) * 0.5f, // y + (height - h) * 0.5f, // w, h); } } } private void drawRound (Batch batch, Drawable drawable, float x, float y, float w, float h) { if (round) { x = (float)Math.floor(x); y = (float)Math.floor(y); w = (float)Math.ceil(w); h = (float)Math.ceil(h); } drawable.draw(batch, x, y, w, h); } public float getValue () { return value; } /** If {@link #setAnimateDuration(float) animating} the progress bar value, this returns the value current displayed. */ public float getVisualValue () { if (animateTime > 0) return animateInterpolation.apply(animateFromValue, value, 1 - animateTime / animateDuration); return value; } /** Sets the visual value equal to the actual value. This can be used to set the value without animating. */ public void updateVisualValue () { animateTime = 0; } public float getPercent () { if (min == max) return 0; return (value - min) / (max - min); } public float getVisualPercent () { if (min == max) return 0; return visualInterpolation.apply((getVisualValue() - min) / (max - min)); } protected @Null Drawable getBackgroundDrawable () { if (disabled && style.disabledBackground != null) return style.disabledBackground; return style.background; } protected @Null Drawable getKnobDrawable () { if (disabled && style.disabledKnob != null) return style.disabledKnob; return style.knob; } protected Drawable getKnobBeforeDrawable () { if (disabled && style.disabledKnobBefore != null) return style.disabledKnobBefore; return style.knobBefore; } protected Drawable getKnobAfterDrawable () { if (disabled && style.disabledKnobAfter != null) return style.disabledKnobAfter; return style.knobAfter; } /** Returns progress bar visual position within the range (as it was last calculated in {@link #draw(Batch, float)}). */ protected float getKnobPosition () { return this.position; } /** Sets the progress bar position, rounded to the nearest step size and clamped to the minimum and maximum values. * {@link #clamp(float)} can be overridden to allow values outside of the progress bar's min/max range. * @return false if the value was not changed because the progress bar already had the value or it was canceled by a * listener. */ public boolean setValue (float value) { value = clamp(round(value)); float oldValue = this.value; if (value == oldValue) return false; float oldVisualValue = getVisualValue(); this.value = value; if (programmaticChangeEvents) { ChangeEvent changeEvent = Pools.obtain(ChangeEvent.class); boolean cancelled = fire(changeEvent); Pools.free(changeEvent); if (cancelled) { this.value = oldValue; return false; } } if (animateDuration > 0) { animateFromValue = oldVisualValue; animateTime = animateDuration; } return true; } /** Rouinds the value using the progress bar's step size. This can be overridden to customize or disable rounding. */ protected float round (float value) { return Math.round(value / stepSize) * stepSize; } /** Clamps the value to the progress bar's min/max range. This can be overridden to allow a range different from the progress * bar knob's range. */ protected float clamp (float value) { return MathUtils.clamp(value, min, max); } /** Sets the range of this progress bar. The progress bar's current value is clamped to the range. */ public void setRange (float min, float max) { if (min > max) throw new IllegalArgumentException("min must be <= max: " + min + " <= " + max); this.min = min; this.max = max; if (value < min) setValue(min); else if (value > max) // setValue(max); } public void setStepSize (float stepSize) { if (stepSize <= 0) throw new IllegalArgumentException("steps must be > 0: " + stepSize); this.stepSize = stepSize; } public float getPrefWidth () { if (vertical) { Drawable knob = style.knob, bg = getBackgroundDrawable(); return Math.max(knob == null ? 0 : knob.getMinWidth(), bg == null ? 0 : bg.getMinWidth()); } else return 140; } public float getPrefHeight () { if (vertical) return 140; else { Drawable knob = style.knob, bg = getBackgroundDrawable(); return Math.max(knob == null ? 0 : knob.getMinHeight(), bg == null ? 0 : bg.getMinHeight()); } } public float getMinValue () { return this.min; } public float getMaxValue () { return this.max; } public float getStepSize () { return this.stepSize; } /** If > 0, changes to the progress bar value via {@link #setValue(float)} will happen over this duration in seconds. */ public void setAnimateDuration (float duration) { this.animateDuration = duration; } /** Sets the interpolation to use for {@link #setAnimateDuration(float)}. */ public void setAnimateInterpolation (Interpolation animateInterpolation) { if (animateInterpolation == null) throw new IllegalArgumentException("animateInterpolation cannot be null."); this.animateInterpolation = animateInterpolation; } /** Sets the interpolation to use for display. */ public void setVisualInterpolation (Interpolation interpolation) { this.visualInterpolation = interpolation; } /** If true (the default), inner Drawable positions and sizes are rounded to integers. */ public void setRound (boolean round) { this.round = round; } public void setDisabled (boolean disabled) { this.disabled = disabled; } public boolean isAnimating () { return animateTime > 0; } public boolean isDisabled () { return disabled; } /** True if the progress bar is vertical, false if it is horizontal. **/ public boolean isVertical () { return vertical; } /** If false, {@link #setValue(float)} will not fire {@link ChangeEvent}. The event will only be fired when the user changes * the slider. */ public void setProgrammaticChangeEvents (boolean programmaticChangeEvents) { this.programmaticChangeEvents = programmaticChangeEvents; } /** The style for a progress bar, see {@link ProgressBar}. * @author mzechner * @author Nathan Sweet */ static public class ProgressBarStyle { /** The progress bar background, stretched only in one direction. */ public @Null Drawable background, disabledBackground; public @Null Drawable knob, disabledKnob; public @Null Drawable knobBefore, disabledKnobBefore; public @Null Drawable knobAfter, disabledKnobAfter; public ProgressBarStyle () { } public ProgressBarStyle (@Null Drawable background, @Null Drawable knob) { this.background = background; this.knob = knob; } public ProgressBarStyle (ProgressBarStyle style) { background = style.background; disabledBackground = style.disabledBackground; knob = style.knob; disabledKnob = style.disabledKnob; knobBefore = style.knobBefore; disabledKnobBefore = style.disabledKnobBefore; knobAfter = style.knobAfter; disabledKnobAfter = style.disabledKnobAfter; } } }
1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Table.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import java.util.Arrays; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle; import com.badlogic.gdx.scenes.scene2d.ui.Value.Fixed; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.Pool; import com.badlogic.gdx.utils.Pools; /** A group that sizes and positions children using table constraints. * <p> * Children added with {@link #add(Actor...)} (and similar methods returning a {@link Cell}) are laid out in rows and columns. * Other children may be added with {@link #addActor(Actor)} (and similar methods) but are not laid out automatically and don't * affect the preferred or minimum sizes. * <p> * By default, {@link #getTouchable()} is {@link Touchable#childrenOnly}. * <p> * The preferred and minimum sizes are that of the children laid out in columns and rows. * @author Nathan Sweet */ public class Table extends WidgetGroup { static public Color debugTableColor = new Color(0, 0, 1, 1); static public Color debugCellColor = new Color(1, 0, 0, 1); static public Color debugActorColor = new Color(0, 1, 0, 1); static final Pool<Cell> cellPool = new Pool<Cell>() { protected Cell newObject () { return new Cell(); } }; static private float[] columnWeightedWidth, rowWeightedHeight; private int columns, rows; private boolean implicitEndRow; private final Array<Cell> cells = new Array(4); private final Cell cellDefaults; private final Array<Cell> columnDefaults = new Array(2); private Cell rowDefaults; private boolean sizeInvalid = true; private float[] columnMinWidth, rowMinHeight; private float[] columnPrefWidth, rowPrefHeight; private float tableMinWidth, tableMinHeight; private float tablePrefWidth, tablePrefHeight; private float[] columnWidth, rowHeight; private float[] expandWidth, expandHeight; Value padTop = backgroundTop, padLeft = backgroundLeft, padBottom = backgroundBottom, padRight = backgroundRight; int align = Align.center; Debug debug = Debug.none; Array<DebugRect> debugRects; @Null Drawable background; private boolean clip; private @Null Skin skin; boolean round = true; public Table () { this(null); } /** Creates a table with a skin, which is required to use {@link #add(CharSequence)} or {@link #add(CharSequence, String)}. */ public Table (@Null Skin skin) { this.skin = skin; cellDefaults = obtainCell(); setTransform(false); setTouchable(Touchable.childrenOnly); } private Cell obtainCell () { Cell cell = cellPool.obtain(); cell.setTable(this); return cell; } public void draw (Batch batch, float parentAlpha) { validate(); if (isTransform()) { applyTransform(batch, computeTransform()); drawBackground(batch, parentAlpha, 0, 0); if (clip) { batch.flush(); float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this); if (clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this), getHeight() - padBottom - padTop.get(this))) { drawChildren(batch, parentAlpha); batch.flush(); clipEnd(); } } else drawChildren(batch, parentAlpha); resetTransform(batch); } else { drawBackground(batch, parentAlpha, getX(), getY()); super.draw(batch, parentAlpha); } } /** Called to draw the background, before clipping is applied (if enabled). Default implementation draws the background * drawable. */ protected void drawBackground (Batch batch, float parentAlpha, float x, float y) { if (background == null) return; Color color = getColor(); batch.setColor(color.r, color.g, color.b, color.a * parentAlpha); background.draw(batch, x, y, getWidth(), getHeight()); } /** Sets the background drawable from the skin and adjusts the table's padding to match the background. This may only be called * if a skin has been set with {@link Table#Table(Skin)} or {@link #setSkin(Skin)}. * @see #setBackground(Drawable) */ public void setBackground (String drawableName) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); setBackground(skin.getDrawable(drawableName)); } /** @param background May be null to clear the background. */ public void setBackground (@Null Drawable background) { if (this.background == background) return; float padTopOld = getPadTop(), padLeftOld = getPadLeft(), padBottomOld = getPadBottom(), padRightOld = getPadRight(); this.background = background; // The default pad values use the background's padding. float padTopNew = getPadTop(), padLeftNew = getPadLeft(), padBottomNew = getPadBottom(), padRightNew = getPadRight(); if (padTopOld + padBottomOld != padTopNew + padBottomNew || padLeftOld + padRightOld != padLeftNew + padRightNew) invalidateHierarchy(); else if (padTopOld != padTopNew || padLeftOld != padLeftNew || padBottomOld != padBottomNew || padRightOld != padRightNew) invalidate(); } /** @see #setBackground(Drawable) */ public Table background (@Null Drawable background) { setBackground(background); return this; } /** @see #setBackground(String) */ public Table background (String drawableName) { setBackground(drawableName); return this; } public @Null Drawable getBackground () { return background; } public @Null Actor hit (float x, float y, boolean touchable) { if (clip) { if (touchable && getTouchable() == Touchable.disabled) return null; if (x < 0 || x >= getWidth() || y < 0 || y >= getHeight()) return null; } return super.hit(x, y, touchable); } /** Sets {@link #setClip(boolean)} to true. */ public Table clip () { setClip(true); return this; } public Table clip (boolean enabled) { setClip(enabled); return this; } /** Causes the contents to be clipped if they exceed the table's bounds. Enabling clipping sets {@link #setTransform(boolean)} * to true. */ public void setClip (boolean enabled) { clip = enabled; setTransform(enabled); invalidate(); } public boolean getClip () { return clip; } public void invalidate () { sizeInvalid = true; super.invalidate(); } /** Adds a new cell to the table with the specified actor. */ public <T extends Actor> Cell<T> add (@Null T actor) { Cell<T> cell = obtainCell(); cell.actor = actor; // The row was ended for layout, not by the user, so revert it. if (implicitEndRow) { implicitEndRow = false; rows--; cells.peek().endRow = false; } int cellCount = cells.size; if (cellCount > 0) { // Set cell column and row. Cell lastCell = cells.peek(); if (!lastCell.endRow) { cell.column = lastCell.column + lastCell.colspan; cell.row = lastCell.row; } else { cell.column = 0; cell.row = lastCell.row + 1; } // Set the index of the cell above. if (cell.row > 0) { Object[] cells = this.cells.items; outer: for (int i = cellCount - 1; i >= 0; i--) { Cell other = (Cell)cells[i]; for (int column = other.column, nn = column + other.colspan; column < nn; column++) { if (column == cell.column) { cell.cellAboveIndex = i; break outer; } } } } } else { cell.column = 0; cell.row = 0; } cells.add(cell); cell.set(cellDefaults); if (cell.column < columnDefaults.size) cell.merge(columnDefaults.get(cell.column)); cell.merge(rowDefaults); if (actor != null) addActor(actor); return cell; } public Table add (Actor... actors) { for (int i = 0, n = actors.length; i < n; i++) add(actors[i]); return this; } /** Adds a new cell with a label. This may only be called if a skin has been set with {@link Table#Table(Skin)} or * {@link #setSkin(Skin)}. */ public Cell<Label> add (@Null CharSequence text) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); return add(new Label(text, skin)); } /** Adds a new cell with a label. This may only be called if a skin has been set with {@link Table#Table(Skin)} or * {@link #setSkin(Skin)}. */ public Cell<Label> add (@Null CharSequence text, String labelStyleName) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); return add(new Label(text, skin.get(labelStyleName, LabelStyle.class))); } /** Adds a new cell with a label. This may only be called if a skin has been set with {@link Table#Table(Skin)} or * {@link #setSkin(Skin)}. */ public Cell<Label> add (@Null CharSequence text, String fontName, @Null Color color) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); return add(new Label(text, new LabelStyle(skin.getFont(fontName), color))); } /** Adds a new cell with a label. This may only be called if a skin has been set with {@link Table#Table(Skin)} or * {@link #setSkin(Skin)}. */ public Cell<Label> add (@Null CharSequence text, String fontName, String colorName) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); return add(new Label(text, new LabelStyle(skin.getFont(fontName), skin.getColor(colorName)))); } /** Adds a cell without an actor. */ public Cell add () { return add((Actor)null); } /** Adds a new cell to the table with the specified actors in a {@link Stack}. * @param actors May be null or empty to add a stack without any actors. */ public Cell<Stack> stack (@Null Actor... actors) { Stack stack = new Stack(); if (actors != null) { for (int i = 0, n = actors.length; i < n; i++) stack.addActor(actors[i]); } return add(stack); } public boolean removeActor (Actor actor) { return removeActor(actor, true); } public boolean removeActor (Actor actor, boolean unfocus) { if (!super.removeActor(actor, unfocus)) return false; Cell cell = getCell(actor); if (cell != null) cell.actor = null; return true; } public Actor removeActorAt (int index, boolean unfocus) { Actor actor = super.removeActorAt(index, unfocus); Cell cell = getCell(actor); if (cell != null) cell.actor = null; return actor; } /** Removes all actors and cells from the table. */ public void clearChildren (boolean unfocus) { Object[] cells = this.cells.items; for (int i = this.cells.size - 1; i >= 0; i--) { Cell cell = (Cell)cells[i]; Actor actor = cell.actor; if (actor != null) actor.remove(); } cellPool.freeAll(this.cells); this.cells.clear(); rows = 0; columns = 0; if (rowDefaults != null) cellPool.free(rowDefaults); rowDefaults = null; implicitEndRow = false; super.clearChildren(unfocus); } /** Removes all actors and cells from the table (same as {@link #clearChildren()}) and additionally resets all table properties * and cell, column, and row defaults. */ public void reset () { clearChildren(); padTop = backgroundTop; padLeft = backgroundLeft; padBottom = backgroundBottom; padRight = backgroundRight; align = Align.center; debug(Debug.none); cellDefaults.reset(); for (int i = 0, n = columnDefaults.size; i < n; i++) { Cell columnCell = columnDefaults.get(i); if (columnCell != null) cellPool.free(columnCell); } columnDefaults.clear(); } /** Indicates that subsequent cells should be added to a new row and returns the cell values that will be used as the defaults * for all cells in the new row. */ public Cell row () { if (cells.size > 0) { if (!implicitEndRow) { if (cells.peek().endRow) return rowDefaults; // Row was already ended. endRow(); } invalidate(); } implicitEndRow = false; if (rowDefaults != null) cellPool.free(rowDefaults); rowDefaults = obtainCell(); rowDefaults.clear(); return rowDefaults; } private void endRow () { Object[] cells = this.cells.items; int rowColumns = 0; for (int i = this.cells.size - 1; i >= 0; i--) { Cell cell = (Cell)cells[i]; if (cell.endRow) break; rowColumns += cell.colspan; } columns = Math.max(columns, rowColumns); rows++; this.cells.peek().endRow = true; } /** Gets the cell values that will be used as the defaults for all cells in the specified column. Columns are indexed starting * at 0. */ public Cell columnDefaults (int column) { Cell cell = columnDefaults.size > column ? columnDefaults.get(column) : null; if (cell == null) { cell = obtainCell(); cell.clear(); if (column >= columnDefaults.size) { for (int i = columnDefaults.size; i < column; i++) columnDefaults.add(null); columnDefaults.add(cell); } else columnDefaults.set(column, cell); } return cell; } /** Returns the cell for the specified actor in this table, or null. */ public @Null <T extends Actor> Cell<T> getCell (T actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); Object[] cells = this.cells.items; for (int i = 0, n = this.cells.size; i < n; i++) { Cell c = (Cell)cells[i]; if (c.actor == actor) return c; } return null; } /** Returns the cells for this table. */ public Array<Cell> getCells () { return cells; } public float getPrefWidth () { if (sizeInvalid) computeSize(); float width = tablePrefWidth; if (background != null) return Math.max(width, background.getMinWidth()); return width; } public float getPrefHeight () { if (sizeInvalid) computeSize(); float height = tablePrefHeight; if (background != null) return Math.max(height, background.getMinHeight()); return height; } public float getMinWidth () { if (sizeInvalid) computeSize(); return tableMinWidth; } public float getMinHeight () { if (sizeInvalid) computeSize(); return tableMinHeight; } /** The cell values that will be used as the defaults for all cells. */ public Cell defaults () { return cellDefaults; } /** Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value. */ public Table pad (Value pad) { if (pad == null) throw new IllegalArgumentException("pad cannot be null."); padTop = pad; padLeft = pad; padBottom = pad; padRight = pad; sizeInvalid = true; return this; } public Table pad (Value top, Value left, Value bottom, Value right) { if (top == null) throw new IllegalArgumentException("top cannot be null."); if (left == null) throw new IllegalArgumentException("left cannot be null."); if (bottom == null) throw new IllegalArgumentException("bottom cannot be null."); if (right == null) throw new IllegalArgumentException("right cannot be null."); padTop = top; padLeft = left; padBottom = bottom; padRight = right; sizeInvalid = true; return this; } /** Padding at the top edge of the table. */ public Table padTop (Value padTop) { if (padTop == null) throw new IllegalArgumentException("padTop cannot be null."); this.padTop = padTop; sizeInvalid = true; return this; } /** Padding at the left edge of the table. */ public Table padLeft (Value padLeft) { if (padLeft == null) throw new IllegalArgumentException("padLeft cannot be null."); this.padLeft = padLeft; sizeInvalid = true; return this; } /** Padding at the bottom edge of the table. */ public Table padBottom (Value padBottom) { if (padBottom == null) throw new IllegalArgumentException("padBottom cannot be null."); this.padBottom = padBottom; sizeInvalid = true; return this; } /** Padding at the right edge of the table. */ public Table padRight (Value padRight) { if (padRight == null) throw new IllegalArgumentException("padRight cannot be null."); this.padRight = padRight; sizeInvalid = true; return this; } /** Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value. */ public Table pad (float pad) { pad(Fixed.valueOf(pad)); return this; } public Table pad (float top, float left, float bottom, float right) { padTop = Fixed.valueOf(top); padLeft = Fixed.valueOf(left); padBottom = Fixed.valueOf(bottom); padRight = Fixed.valueOf(right); sizeInvalid = true; return this; } /** Padding at the top edge of the table. */ public Table padTop (float padTop) { this.padTop = Fixed.valueOf(padTop); sizeInvalid = true; return this; } /** Padding at the left edge of the table. */ public Table padLeft (float padLeft) { this.padLeft = Fixed.valueOf(padLeft); sizeInvalid = true; return this; } /** Padding at the bottom edge of the table. */ public Table padBottom (float padBottom) { this.padBottom = Fixed.valueOf(padBottom); sizeInvalid = true; return this; } /** Padding at the right edge of the table. */ public Table padRight (float padRight) { this.padRight = Fixed.valueOf(padRight); sizeInvalid = true; return this; } /** Alignment of the logical table within the table actor. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom} * , {@link Align#left}, {@link Align#right}, or any combination of those. */ public Table align (int align) { this.align = align; return this; } /** Sets the alignment of the logical table within the table actor to {@link Align#center}. This clears any other alignment. */ public Table center () { align = Align.center; return this; } /** Adds {@link Align#top} and clears {@link Align#bottom} for the alignment of the logical table within the table actor. */ public Table top () { align |= Align.top; align &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of the logical table within the table actor. */ public Table left () { align |= Align.left; align &= ~Align.right; return this; } /** Adds {@link Align#bottom} and clears {@link Align#top} for the alignment of the logical table within the table actor. */ public Table bottom () { align |= Align.bottom; align &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of the logical table within the table actor. */ public Table right () { align |= Align.right; align &= ~Align.left; return this; } public void setDebug (boolean enabled) { debug(enabled ? Debug.all : Debug.none); } public Table debug () { super.debug(); return this; } public Table debugAll () { super.debugAll(); return this; } /** Turns on table debug lines. */ public Table debugTable () { super.setDebug(true); if (debug != Debug.table) { this.debug = Debug.table; invalidate(); } return this; } /** Turns on cell debug lines. */ public Table debugCell () { super.setDebug(true); if (debug != Debug.cell) { this.debug = Debug.cell; invalidate(); } return this; } /** Turns on actor debug lines. */ public Table debugActor () { super.setDebug(true); if (debug != Debug.actor) { this.debug = Debug.actor; invalidate(); } return this; } /** Turns debug lines on or off. */ public Table debug (Debug debug) { super.setDebug(debug != Debug.none); if (this.debug != debug) { this.debug = debug; if (debug == Debug.none) clearDebugRects(); else invalidate(); } return this; } public Debug getTableDebug () { return debug; } public Value getPadTopValue () { return padTop; } public float getPadTop () { return padTop.get(this); } public Value getPadLeftValue () { return padLeft; } public float getPadLeft () { return padLeft.get(this); } public Value getPadBottomValue () { return padBottom; } public float getPadBottom () { return padBottom.get(this); } public Value getPadRightValue () { return padRight; } public float getPadRight () { return padRight.get(this); } /** Returns {@link #getPadLeft()} plus {@link #getPadRight()}. */ public float getPadX () { return padLeft.get(this) + padRight.get(this); } /** Returns {@link #getPadTop()} plus {@link #getPadBottom()}. */ public float getPadY () { return padTop.get(this) + padBottom.get(this); } public int getAlign () { return align; } /** Returns the row index for the y coordinate, or -1 if not over a row. * @param y The y coordinate, where 0 is the top of the table. */ public int getRow (float y) { int n = this.cells.size; if (n == 0) return -1; y += getPadTop(); Object[] cells = this.cells.items; for (int i = 0, row = 0; i < n;) { Cell c = (Cell)cells[i++]; if (c.actorY + c.computedPadTop < y) return row; if (c.endRow) row++; } return -1; } public void setSkin (@Null Skin skin) { this.skin = skin; } /** If true (the default), positions and sizes of child actors are rounded and ceiled to the nearest integer value. */ public void setRound (boolean round) { this.round = round; } public int getRows () { return rows; } public int getColumns () { return columns; } /** Returns the height of the specified row, or 0 if the table layout has not been validated. */ public float getRowHeight (int rowIndex) { if (rowHeight == null) return 0; return rowHeight[rowIndex]; } /** Returns the min height of the specified row. */ public float getRowMinHeight (int rowIndex) { if (sizeInvalid) computeSize(); return rowMinHeight[rowIndex]; } /** Returns the pref height of the specified row. */ public float getRowPrefHeight (int rowIndex) { if (sizeInvalid) computeSize(); return rowPrefHeight[rowIndex]; } /** Returns the width of the specified column, or 0 if the table layout has not been validated. */ public float getColumnWidth (int columnIndex) { if (columnWidth == null) return 0; return columnWidth[columnIndex]; } /** Returns the min height of the specified column. */ public float getColumnMinWidth (int columnIndex) { if (sizeInvalid) computeSize(); return columnMinWidth[columnIndex]; } /** Returns the pref height of the specified column. */ public float getColumnPrefWidth (int columnIndex) { if (sizeInvalid) computeSize(); return columnPrefWidth[columnIndex]; } private float[] ensureSize (float[] array, int size) { if (array == null || array.length < size) return new float[size]; Arrays.fill(array, 0, size, 0); return array; } private void computeSize () { sizeInvalid = false; Object[] cells = this.cells.items; int cellCount = this.cells.size; // Implicitly end the row for layout purposes. if (cellCount > 0 && !((Cell)cells[cellCount - 1]).endRow) { endRow(); implicitEndRow = true; } int columns = this.columns, rows = this.rows; float[] columnMinWidth = this.columnMinWidth = ensureSize(this.columnMinWidth, columns); float[] rowMinHeight = this.rowMinHeight = ensureSize(this.rowMinHeight, rows); float[] columnPrefWidth = this.columnPrefWidth = ensureSize(this.columnPrefWidth, columns); float[] rowPrefHeight = this.rowPrefHeight = ensureSize(this.rowPrefHeight, rows); float[] columnWidth = this.columnWidth = ensureSize(this.columnWidth, columns); float[] rowHeight = this.rowHeight = ensureSize(this.rowHeight, rows); float[] expandWidth = this.expandWidth = ensureSize(this.expandWidth, columns); float[] expandHeight = this.expandHeight = ensureSize(this.expandHeight, rows); float spaceRightLast = 0; for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int column = c.column, row = c.row, colspan = c.colspan; Actor a = c.actor; // Collect rows that expand and colspan=1 columns that expand. if (c.expandY != 0 && expandHeight[row] == 0) expandHeight[row] = c.expandY; if (colspan == 1 && c.expandX != 0 && expandWidth[column] == 0) expandWidth[column] = c.expandX; // Compute combined padding/spacing for cells. // Spacing between actors isn't additive, the larger is used. Also, no spacing around edges. c.computedPadLeft = c.padLeft.get(a) + (column == 0 ? 0 : Math.max(0, c.spaceLeft.get(a) - spaceRightLast)); c.computedPadTop = c.padTop.get(a); if (c.cellAboveIndex != -1) { Cell above = (Cell)cells[c.cellAboveIndex]; c.computedPadTop += Math.max(0, c.spaceTop.get(a) - above.spaceBottom.get(a)); } float spaceRight = c.spaceRight.get(a); c.computedPadRight = c.padRight.get(a) + ((column + colspan) == columns ? 0 : spaceRight); c.computedPadBottom = c.padBottom.get(a) + (row == rows - 1 ? 0 : c.spaceBottom.get(a)); spaceRightLast = spaceRight; // Determine minimum and preferred cell sizes. float prefWidth = c.prefWidth.get(a), prefHeight = c.prefHeight.get(a); float minWidth = c.minWidth.get(a), minHeight = c.minHeight.get(a); float maxWidth = c.maxWidth.get(a), maxHeight = c.maxHeight.get(a); if (prefWidth < minWidth) prefWidth = minWidth; if (prefHeight < minHeight) prefHeight = minHeight; if (maxWidth > 0 && prefWidth > maxWidth) prefWidth = maxWidth; if (maxHeight > 0 && prefHeight > maxHeight) prefHeight = maxHeight; if (round) { minWidth = (float)Math.ceil(minWidth); minHeight = (float)Math.ceil(minHeight); prefWidth = (float)Math.ceil(prefWidth); prefHeight = (float)Math.ceil(prefHeight); } if (colspan == 1) { // Spanned column min and pref width is added later. float hpadding = c.computedPadLeft + c.computedPadRight; columnPrefWidth[column] = Math.max(columnPrefWidth[column], prefWidth + hpadding); columnMinWidth[column] = Math.max(columnMinWidth[column], minWidth + hpadding); } float vpadding = c.computedPadTop + c.computedPadBottom; rowPrefHeight[row] = Math.max(rowPrefHeight[row], prefHeight + vpadding); rowMinHeight[row] = Math.max(rowMinHeight[row], minHeight + vpadding); } float uniformMinWidth = 0, uniformMinHeight = 0; float uniformPrefWidth = 0, uniformPrefHeight = 0; for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int column = c.column; // Colspan with expand will expand all spanned columns if none of the spanned columns have expand. int expandX = c.expandX; outer: if (expandX != 0) { int nn = column + c.colspan; for (int ii = column; ii < nn; ii++) if (expandWidth[ii] != 0) break outer; for (int ii = column; ii < nn; ii++) expandWidth[ii] = expandX; } // Collect uniform sizes. if (c.uniformX == Boolean.TRUE && c.colspan == 1) { float hpadding = c.computedPadLeft + c.computedPadRight; uniformMinWidth = Math.max(uniformMinWidth, columnMinWidth[column] - hpadding); uniformPrefWidth = Math.max(uniformPrefWidth, columnPrefWidth[column] - hpadding); } if (c.uniformY == Boolean.TRUE) { float vpadding = c.computedPadTop + c.computedPadBottom; uniformMinHeight = Math.max(uniformMinHeight, rowMinHeight[c.row] - vpadding); uniformPrefHeight = Math.max(uniformPrefHeight, rowPrefHeight[c.row] - vpadding); } } // Size uniform cells to the same width/height. if (uniformPrefWidth > 0 || uniformPrefHeight > 0) { for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; if (uniformPrefWidth > 0 && c.uniformX == Boolean.TRUE && c.colspan == 1) { float hpadding = c.computedPadLeft + c.computedPadRight; columnMinWidth[c.column] = uniformMinWidth + hpadding; columnPrefWidth[c.column] = uniformPrefWidth + hpadding; } if (uniformPrefHeight > 0 && c.uniformY == Boolean.TRUE) { float vpadding = c.computedPadTop + c.computedPadBottom; rowMinHeight[c.row] = uniformMinHeight + vpadding; rowPrefHeight[c.row] = uniformPrefHeight + vpadding; } } } // Distribute any additional min and pref width added by colspanned cells to the columns spanned. for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int colspan = c.colspan; if (colspan == 1) continue; int column = c.column; Actor a = c.actor; float minWidth = c.minWidth.get(a), prefWidth = c.prefWidth.get(a), maxWidth = c.maxWidth.get(a); if (prefWidth < minWidth) prefWidth = minWidth; if (maxWidth > 0 && prefWidth > maxWidth) prefWidth = maxWidth; if (round) { minWidth = (float)Math.ceil(minWidth); prefWidth = (float)Math.ceil(prefWidth); } float spannedMinWidth = -(c.computedPadLeft + c.computedPadRight), spannedPrefWidth = spannedMinWidth; float totalExpandWidth = 0; for (int ii = column, nn = ii + colspan; ii < nn; ii++) { spannedMinWidth += columnMinWidth[ii]; spannedPrefWidth += columnPrefWidth[ii]; totalExpandWidth += expandWidth[ii]; // Distribute extra space using expand, if any columns have expand. } float extraMinWidth = Math.max(0, minWidth - spannedMinWidth); float extraPrefWidth = Math.max(0, prefWidth - spannedPrefWidth); for (int ii = column, nn = ii + colspan; ii < nn; ii++) { float ratio = totalExpandWidth == 0 ? 1f / colspan : expandWidth[ii] / totalExpandWidth; columnMinWidth[ii] += extraMinWidth * ratio; columnPrefWidth[ii] += extraPrefWidth * ratio; } } // Determine table min and pref size. float hpadding = padLeft.get(this) + padRight.get(this); float vpadding = padTop.get(this) + padBottom.get(this); tableMinWidth = hpadding; tablePrefWidth = hpadding; for (int i = 0; i < columns; i++) { tableMinWidth += columnMinWidth[i]; tablePrefWidth += columnPrefWidth[i]; } tableMinHeight = vpadding; tablePrefHeight = vpadding; for (int i = 0; i < rows; i++) { tableMinHeight += rowMinHeight[i]; tablePrefHeight += Math.max(rowMinHeight[i], rowPrefHeight[i]); } tablePrefWidth = Math.max(tableMinWidth, tablePrefWidth); tablePrefHeight = Math.max(tableMinHeight, tablePrefHeight); } /** Positions and sizes children of the table using the cell associated with each child. The values given are the position * within the parent and size of the table. */ public void layout () { if (sizeInvalid) computeSize(); float layoutWidth = getWidth(), layoutHeight = getHeight(); int columns = this.columns, rows = this.rows; float[] columnWidth = this.columnWidth, rowHeight = this.rowHeight; float padLeft = this.padLeft.get(this), hpadding = padLeft + padRight.get(this); float padTop = this.padTop.get(this), vpadding = padTop + padBottom.get(this); // Size columns and rows between min and pref size using (preferred - min) size to weight distribution of extra space. float[] columnWeightedWidth; float totalGrowWidth = tablePrefWidth - tableMinWidth; if (totalGrowWidth == 0) columnWeightedWidth = columnMinWidth; else { float extraWidth = Math.min(totalGrowWidth, Math.max(0, layoutWidth - tableMinWidth)); columnWeightedWidth = Table.columnWeightedWidth = ensureSize(Table.columnWeightedWidth, columns); float[] columnMinWidth = this.columnMinWidth, columnPrefWidth = this.columnPrefWidth; for (int i = 0; i < columns; i++) { float growWidth = columnPrefWidth[i] - columnMinWidth[i]; float growRatio = growWidth / totalGrowWidth; columnWeightedWidth[i] = columnMinWidth[i] + extraWidth * growRatio; } } float[] rowWeightedHeight; float totalGrowHeight = tablePrefHeight - tableMinHeight; if (totalGrowHeight == 0) rowWeightedHeight = rowMinHeight; else { rowWeightedHeight = Table.rowWeightedHeight = ensureSize(Table.rowWeightedHeight, rows); float extraHeight = Math.min(totalGrowHeight, Math.max(0, layoutHeight - tableMinHeight)); float[] rowMinHeight = this.rowMinHeight, rowPrefHeight = this.rowPrefHeight; for (int i = 0; i < rows; i++) { float growHeight = rowPrefHeight[i] - rowMinHeight[i]; float growRatio = growHeight / totalGrowHeight; rowWeightedHeight[i] = rowMinHeight[i] + extraHeight * growRatio; } } // Determine actor and cell sizes (before expand or fill). Object[] cells = this.cells.items; int cellCount = this.cells.size; for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int column = c.column, row = c.row; Actor a = c.actor; float spannedWeightedWidth = 0; int colspan = c.colspan; for (int ii = column, nn = ii + colspan; ii < nn; ii++) spannedWeightedWidth += columnWeightedWidth[ii]; float weightedHeight = rowWeightedHeight[row]; float prefWidth = c.prefWidth.get(a), prefHeight = c.prefHeight.get(a); float minWidth = c.minWidth.get(a), minHeight = c.minHeight.get(a); float maxWidth = c.maxWidth.get(a), maxHeight = c.maxHeight.get(a); if (prefWidth < minWidth) prefWidth = minWidth; if (prefHeight < minHeight) prefHeight = minHeight; if (maxWidth > 0 && prefWidth > maxWidth) prefWidth = maxWidth; if (maxHeight > 0 && prefHeight > maxHeight) prefHeight = maxHeight; c.actorWidth = Math.min(spannedWeightedWidth - c.computedPadLeft - c.computedPadRight, prefWidth); c.actorHeight = Math.min(weightedHeight - c.computedPadTop - c.computedPadBottom, prefHeight); if (colspan == 1) columnWidth[column] = Math.max(columnWidth[column], spannedWeightedWidth); rowHeight[row] = Math.max(rowHeight[row], weightedHeight); } // Distribute remaining space to any expanding columns/rows. float[] expandWidth = this.expandWidth, expandHeight = this.expandHeight; float totalExpand = 0; for (int i = 0; i < columns; i++) totalExpand += expandWidth[i]; if (totalExpand > 0) { float extra = layoutWidth - hpadding; for (int i = 0; i < columns; i++) extra -= columnWidth[i]; if (extra > 0) { // layoutWidth < tableMinWidth. float used = 0; int lastIndex = 0; for (int i = 0; i < columns; i++) { if (expandWidth[i] == 0) continue; float amount = extra * expandWidth[i] / totalExpand; columnWidth[i] += amount; used += amount; lastIndex = i; } columnWidth[lastIndex] += extra - used; } } totalExpand = 0; for (int i = 0; i < rows; i++) totalExpand += expandHeight[i]; if (totalExpand > 0) { float extra = layoutHeight - vpadding; for (int i = 0; i < rows; i++) extra -= rowHeight[i]; if (extra > 0) { // layoutHeight < tableMinHeight. float used = 0; int lastIndex = 0; for (int i = 0; i < rows; i++) { if (expandHeight[i] == 0) continue; float amount = extra * expandHeight[i] / totalExpand; rowHeight[i] += amount; used += amount; lastIndex = i; } rowHeight[lastIndex] += extra - used; } } // Distribute any additional width added by colspanned cells to the columns spanned. for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int colspan = c.colspan; if (colspan == 1) continue; float extraWidth = 0; for (int column = c.column, nn = column + colspan; column < nn; column++) extraWidth += columnWeightedWidth[column] - columnWidth[column]; extraWidth -= Math.max(0, c.computedPadLeft + c.computedPadRight); extraWidth /= colspan; if (extraWidth > 0) { for (int column = c.column, nn = column + colspan; column < nn; column++) columnWidth[column] += extraWidth; } } // Determine table size. float tableWidth = hpadding, tableHeight = vpadding; for (int i = 0; i < columns; i++) tableWidth += columnWidth[i]; for (int i = 0; i < rows; i++) tableHeight += rowHeight[i]; // Position table within the container. int align = this.align; float x = padLeft; if ((align & Align.right) != 0) x += layoutWidth - tableWidth; else if ((align & Align.left) == 0) // Center x += (layoutWidth - tableWidth) / 2; float y = padTop; if ((align & Align.bottom) != 0) y += layoutHeight - tableHeight; else if ((align & Align.top) == 0) // Center y += (layoutHeight - tableHeight) / 2; // Size and position actors within cells. float currentX = x, currentY = y; for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; float spannedCellWidth = 0; for (int column = c.column, nn = column + c.colspan; column < nn; column++) spannedCellWidth += columnWidth[column]; spannedCellWidth -= c.computedPadLeft + c.computedPadRight; currentX += c.computedPadLeft; float fillX = c.fillX, fillY = c.fillY; if (fillX > 0) { c.actorWidth = Math.max(spannedCellWidth * fillX, c.minWidth.get(c.actor)); float maxWidth = c.maxWidth.get(c.actor); if (maxWidth > 0) c.actorWidth = Math.min(c.actorWidth, maxWidth); } if (fillY > 0) { c.actorHeight = Math.max(rowHeight[c.row] * fillY - c.computedPadTop - c.computedPadBottom, c.minHeight.get(c.actor)); float maxHeight = c.maxHeight.get(c.actor); if (maxHeight > 0) c.actorHeight = Math.min(c.actorHeight, maxHeight); } align = c.align; if ((align & Align.left) != 0) c.actorX = currentX; else if ((align & Align.right) != 0) c.actorX = currentX + spannedCellWidth - c.actorWidth; else c.actorX = currentX + (spannedCellWidth - c.actorWidth) / 2; if ((align & Align.top) != 0) c.actorY = c.computedPadTop; else if ((align & Align.bottom) != 0) c.actorY = rowHeight[c.row] - c.actorHeight - c.computedPadBottom; else c.actorY = (rowHeight[c.row] - c.actorHeight + c.computedPadTop - c.computedPadBottom) / 2; c.actorY = layoutHeight - currentY - c.actorY - c.actorHeight; if (round) { c.actorWidth = (float)Math.ceil(c.actorWidth); c.actorHeight = (float)Math.ceil(c.actorHeight); c.actorX = (float)Math.floor(c.actorX); c.actorY = (float)Math.floor(c.actorY); } if (c.actor != null) c.actor.setBounds(c.actorX, c.actorY, c.actorWidth, c.actorHeight); if (c.endRow) { currentX = x; currentY += rowHeight[c.row]; } else currentX += spannedCellWidth + c.computedPadRight; } // Validate all children (some may not be in cells). Array<Actor> childrenArray = getChildren(); Actor[] children = childrenArray.items; for (int i = 0, n = childrenArray.size; i < n; i++) { Object child = children[i]; if (child instanceof Layout) ((Layout)child).validate(); } // Store debug rectangles. if (debug != Debug.none) addDebugRects(x, y, tableWidth - hpadding, tableHeight - vpadding); } private void addDebugRects (float currentX, float currentY, float width, float height) { clearDebugRects(); if (debug == Debug.table || debug == Debug.all) { // Table actor bounds. addDebugRect(0, 0, getWidth(), getHeight(), debugTableColor); // Table bounds. addDebugRect(currentX, getHeight() - currentY, width, -height, debugTableColor); } float x = currentX; for (int i = 0, n = cells.size; i < n; i++) { Cell c = cells.get(i); // Cell actor bounds. if (debug == Debug.actor || debug == Debug.all) addDebugRect(c.actorX, c.actorY, c.actorWidth, c.actorHeight, debugActorColor); // Cell bounds. float spannedCellWidth = 0; for (int column = c.column, nn = column + c.colspan; column < nn; column++) spannedCellWidth += columnWidth[column]; spannedCellWidth -= c.computedPadLeft + c.computedPadRight; currentX += c.computedPadLeft; if (debug == Debug.cell || debug == Debug.all) { float h = rowHeight[c.row] - c.computedPadTop - c.computedPadBottom; float y = currentY + c.computedPadTop; addDebugRect(currentX, getHeight() - y, spannedCellWidth, -h, debugCellColor); } if (c.endRow) { currentX = x; currentY += rowHeight[c.row]; } else currentX += spannedCellWidth + c.computedPadRight; } } private void clearDebugRects () { if (debugRects == null) debugRects = new Array(); DebugRect.pool.freeAll(debugRects); debugRects.clear(); } private void addDebugRect (float x, float y, float w, float h, Color color) { DebugRect rect = DebugRect.pool.obtain(); rect.color = color; rect.set(x, y, w, h); debugRects.add(rect); } public void drawDebug (ShapeRenderer shapes) { if (isTransform()) { applyTransform(shapes, computeTransform()); drawDebugRects(shapes); if (clip) { shapes.flush(); float x = 0, y = 0, width = getWidth(), height = getHeight(); if (background != null) { x = padLeft.get(this); y = padBottom.get(this); width -= x + padRight.get(this); height -= y + padTop.get(this); } if (clipBegin(x, y, width, height)) { drawDebugChildren(shapes); clipEnd(); } } else drawDebugChildren(shapes); resetTransform(shapes); } else { drawDebugRects(shapes); super.drawDebug(shapes); } } protected void drawDebugBounds (ShapeRenderer shapes) { } private void drawDebugRects (ShapeRenderer shapes) { if (debugRects == null || !getDebug()) return; shapes.set(ShapeType.Line); if (getStage() != null) shapes.setColor(getStage().getDebugColor()); float x = 0, y = 0; if (!isTransform()) { x = getX(); y = getY(); } for (int i = 0, n = debugRects.size; i < n; i++) { DebugRect debugRect = debugRects.get(i); shapes.setColor(debugRect.color); shapes.rect(x + debugRect.x, y + debugRect.y, debugRect.width, debugRect.height); } } /** @return The skin that was passed to this table in its constructor, or null if none was given. */ public @Null Skin getSkin () { return skin; } /** @author Nathan Sweet */ static public class DebugRect extends Rectangle { static Pool<DebugRect> pool = Pools.get(DebugRect.class); Color color; } /** @author Nathan Sweet */ static public enum Debug { none, all, table, cell, actor } /** Value that is the top padding of the table's background. * @author Nathan Sweet */ static public Value backgroundTop = new Value() { public float get (@Null Actor context) { Drawable background = ((Table)context).background; return background == null ? 0 : background.getTopHeight(); } }; /** Value that is the left padding of the table's background. * @author Nathan Sweet */ static public Value backgroundLeft = new Value() { public float get (@Null Actor context) { Drawable background = ((Table)context).background; return background == null ? 0 : background.getLeftWidth(); } }; /** Value that is the bottom padding of the table's background. * @author Nathan Sweet */ static public Value backgroundBottom = new Value() { public float get (@Null Actor context) { Drawable background = ((Table)context).background; return background == null ? 0 : background.getBottomHeight(); } }; /** Value that is the right padding of the table's background. * @author Nathan Sweet */ static public Value backgroundRight = new Value() { public float get (@Null Actor context) { Drawable background = ((Table)context).background; return background == null ? 0 : background.getRightWidth(); } }; }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import java.util.Arrays; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle; import com.badlogic.gdx.scenes.scene2d.ui.Value.Fixed; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.Pool; import com.badlogic.gdx.utils.Pools; /** A group that sizes and positions children using table constraints. * <p> * Children added with {@link #add(Actor...)} (and similar methods returning a {@link Cell}) are laid out in rows and columns. * Other children may be added with {@link #addActor(Actor)} (and similar methods) but are not laid out automatically and don't * affect the preferred or minimum sizes. * <p> * By default, {@link #getTouchable()} is {@link Touchable#childrenOnly}. * <p> * The preferred and minimum sizes are that of the children laid out in columns and rows. * @author Nathan Sweet */ public class Table extends WidgetGroup { static public Color debugTableColor = new Color(0, 0, 1, 1); static public Color debugCellColor = new Color(1, 0, 0, 1); static public Color debugActorColor = new Color(0, 1, 0, 1); static final Pool<Cell> cellPool = new Pool<Cell>() { protected Cell newObject () { return new Cell(); } }; static private float[] columnWeightedWidth, rowWeightedHeight; private int columns, rows; private boolean implicitEndRow; private final Array<Cell> cells = new Array(4); private final Cell cellDefaults; private final Array<Cell> columnDefaults = new Array(2); private Cell rowDefaults; private boolean sizeInvalid = true; private float[] columnMinWidth, rowMinHeight; private float[] columnPrefWidth, rowPrefHeight; private float tableMinWidth, tableMinHeight; private float tablePrefWidth, tablePrefHeight; private float[] columnWidth, rowHeight; private float[] expandWidth, expandHeight; Value padTop = backgroundTop, padLeft = backgroundLeft, padBottom = backgroundBottom, padRight = backgroundRight; int align = Align.center; Debug debug = Debug.none; Array<DebugRect> debugRects; @Null Drawable background; private boolean clip; private @Null Skin skin; boolean round = true; public Table () { this(null); } /** Creates a table with a skin, which is required to use {@link #add(CharSequence)} or {@link #add(CharSequence, String)}. */ public Table (@Null Skin skin) { this.skin = skin; cellDefaults = obtainCell(); setTransform(false); setTouchable(Touchable.childrenOnly); } private Cell obtainCell () { Cell cell = cellPool.obtain(); cell.setTable(this); return cell; } public void draw (Batch batch, float parentAlpha) { validate(); if (isTransform()) { applyTransform(batch, computeTransform()); drawBackground(batch, parentAlpha, 0, 0); if (clip) { batch.flush(); float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this); if (clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this), getHeight() - padBottom - padTop.get(this))) { drawChildren(batch, parentAlpha); batch.flush(); clipEnd(); } } else drawChildren(batch, parentAlpha); resetTransform(batch); } else { drawBackground(batch, parentAlpha, getX(), getY()); super.draw(batch, parentAlpha); } } /** Called to draw the background, before clipping is applied (if enabled). Default implementation draws the background * drawable. */ protected void drawBackground (Batch batch, float parentAlpha, float x, float y) { if (background == null) return; Color color = getColor(); batch.setColor(color.r, color.g, color.b, color.a * parentAlpha); background.draw(batch, x, y, getWidth(), getHeight()); } /** Sets the background drawable from the skin and adjusts the table's padding to match the background. This may only be called * if a skin has been set with {@link Table#Table(Skin)} or {@link #setSkin(Skin)}. * @see #setBackground(Drawable) */ public void setBackground (String drawableName) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); setBackground(skin.getDrawable(drawableName)); } /** @param background May be null to clear the background. */ public void setBackground (@Null Drawable background) { if (this.background == background) return; float padTopOld = getPadTop(), padLeftOld = getPadLeft(), padBottomOld = getPadBottom(), padRightOld = getPadRight(); this.background = background; // The default pad values use the background's padding. float padTopNew = getPadTop(), padLeftNew = getPadLeft(), padBottomNew = getPadBottom(), padRightNew = getPadRight(); if (padTopOld + padBottomOld != padTopNew + padBottomNew || padLeftOld + padRightOld != padLeftNew + padRightNew) invalidateHierarchy(); else if (padTopOld != padTopNew || padLeftOld != padLeftNew || padBottomOld != padBottomNew || padRightOld != padRightNew) invalidate(); } /** @see #setBackground(Drawable) */ public Table background (@Null Drawable background) { setBackground(background); return this; } /** @see #setBackground(String) */ public Table background (String drawableName) { setBackground(drawableName); return this; } public @Null Drawable getBackground () { return background; } public @Null Actor hit (float x, float y, boolean touchable) { if (clip) { if (touchable && getTouchable() == Touchable.disabled) return null; if (x < 0 || x >= getWidth() || y < 0 || y >= getHeight()) return null; } return super.hit(x, y, touchable); } /** Sets {@link #setClip(boolean)} to true. */ public Table clip () { setClip(true); return this; } public Table clip (boolean enabled) { setClip(enabled); return this; } /** Causes the contents to be clipped if they exceed the table's bounds. Enabling clipping sets {@link #setTransform(boolean)} * to true. */ public void setClip (boolean enabled) { clip = enabled; setTransform(enabled); invalidate(); } public boolean getClip () { return clip; } public void invalidate () { sizeInvalid = true; super.invalidate(); } /** Adds a new cell to the table with the specified actor. */ public <T extends Actor> Cell<T> add (@Null T actor) { Cell<T> cell = obtainCell(); cell.actor = actor; // The row was ended for layout, not by the user, so revert it. if (implicitEndRow) { implicitEndRow = false; rows--; cells.peek().endRow = false; } int cellCount = cells.size; if (cellCount > 0) { // Set cell column and row. Cell lastCell = cells.peek(); if (!lastCell.endRow) { cell.column = lastCell.column + lastCell.colspan; cell.row = lastCell.row; } else { cell.column = 0; cell.row = lastCell.row + 1; } // Set the index of the cell above. if (cell.row > 0) { Object[] cells = this.cells.items; outer: for (int i = cellCount - 1; i >= 0; i--) { Cell other = (Cell)cells[i]; for (int column = other.column, nn = column + other.colspan; column < nn; column++) { if (column == cell.column) { cell.cellAboveIndex = i; break outer; } } } } } else { cell.column = 0; cell.row = 0; } cells.add(cell); cell.set(cellDefaults); if (cell.column < columnDefaults.size) cell.merge(columnDefaults.get(cell.column)); cell.merge(rowDefaults); if (actor != null) addActor(actor); return cell; } public Table add (Actor... actors) { for (int i = 0, n = actors.length; i < n; i++) add(actors[i]); return this; } /** Adds a new cell with a label. This may only be called if a skin has been set with {@link Table#Table(Skin)} or * {@link #setSkin(Skin)}. */ public Cell<Label> add (@Null CharSequence text) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); return add(new Label(text, skin)); } /** Adds a new cell with a label. This may only be called if a skin has been set with {@link Table#Table(Skin)} or * {@link #setSkin(Skin)}. */ public Cell<Label> add (@Null CharSequence text, String labelStyleName) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); return add(new Label(text, skin.get(labelStyleName, LabelStyle.class))); } /** Adds a new cell with a label. This may only be called if a skin has been set with {@link Table#Table(Skin)} or * {@link #setSkin(Skin)}. */ public Cell<Label> add (@Null CharSequence text, String fontName, @Null Color color) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); return add(new Label(text, new LabelStyle(skin.getFont(fontName), color))); } /** Adds a new cell with a label. This may only be called if a skin has been set with {@link Table#Table(Skin)} or * {@link #setSkin(Skin)}. */ public Cell<Label> add (@Null CharSequence text, String fontName, String colorName) { if (skin == null) throw new IllegalStateException("Table must have a skin set to use this method."); return add(new Label(text, new LabelStyle(skin.getFont(fontName), skin.getColor(colorName)))); } /** Adds a cell without an actor. */ public Cell add () { return add((Actor)null); } /** Adds a new cell to the table with the specified actors in a {@link Stack}. * @param actors May be null or empty to add a stack without any actors. */ public Cell<Stack> stack (@Null Actor... actors) { Stack stack = new Stack(); if (actors != null) { for (int i = 0, n = actors.length; i < n; i++) stack.addActor(actors[i]); } return add(stack); } public boolean removeActor (Actor actor) { return removeActor(actor, true); } public boolean removeActor (Actor actor, boolean unfocus) { if (!super.removeActor(actor, unfocus)) return false; Cell cell = getCell(actor); if (cell != null) cell.actor = null; return true; } public Actor removeActorAt (int index, boolean unfocus) { Actor actor = super.removeActorAt(index, unfocus); Cell cell = getCell(actor); if (cell != null) cell.actor = null; return actor; } /** Removes all actors and cells from the table. */ public void clearChildren (boolean unfocus) { Object[] cells = this.cells.items; for (int i = this.cells.size - 1; i >= 0; i--) { Cell cell = (Cell)cells[i]; Actor actor = cell.actor; if (actor != null) actor.remove(); } cellPool.freeAll(this.cells); this.cells.clear(); rows = 0; columns = 0; if (rowDefaults != null) cellPool.free(rowDefaults); rowDefaults = null; implicitEndRow = false; super.clearChildren(unfocus); } /** Removes all actors and cells from the table (same as {@link #clearChildren()}) and additionally resets all table properties * and cell, column, and row defaults. */ public void reset () { clearChildren(); padTop = backgroundTop; padLeft = backgroundLeft; padBottom = backgroundBottom; padRight = backgroundRight; align = Align.center; debug(Debug.none); cellDefaults.reset(); for (int i = 0, n = columnDefaults.size; i < n; i++) { Cell columnCell = columnDefaults.get(i); if (columnCell != null) cellPool.free(columnCell); } columnDefaults.clear(); } /** Indicates that subsequent cells should be added to a new row and returns the cell values that will be used as the defaults * for all cells in the new row. */ public Cell row () { if (cells.size > 0) { if (!implicitEndRow) { if (cells.peek().endRow) return rowDefaults; // Row was already ended. endRow(); } invalidate(); } implicitEndRow = false; if (rowDefaults != null) cellPool.free(rowDefaults); rowDefaults = obtainCell(); rowDefaults.clear(); return rowDefaults; } private void endRow () { Object[] cells = this.cells.items; int rowColumns = 0; for (int i = this.cells.size - 1; i >= 0; i--) { Cell cell = (Cell)cells[i]; if (cell.endRow) break; rowColumns += cell.colspan; } columns = Math.max(columns, rowColumns); rows++; this.cells.peek().endRow = true; } /** Gets the cell values that will be used as the defaults for all cells in the specified column. Columns are indexed starting * at 0. */ public Cell columnDefaults (int column) { Cell cell = columnDefaults.size > column ? columnDefaults.get(column) : null; if (cell == null) { cell = obtainCell(); cell.clear(); if (column >= columnDefaults.size) { for (int i = columnDefaults.size; i < column; i++) columnDefaults.add(null); columnDefaults.add(cell); } else columnDefaults.set(column, cell); } return cell; } /** Returns the cell for the specified actor in this table, or null. */ public @Null <T extends Actor> Cell<T> getCell (T actor) { if (actor == null) throw new IllegalArgumentException("actor cannot be null."); Object[] cells = this.cells.items; for (int i = 0, n = this.cells.size; i < n; i++) { Cell c = (Cell)cells[i]; if (c.actor == actor) return c; } return null; } /** Returns the cells for this table. */ public Array<Cell> getCells () { return cells; } public float getPrefWidth () { if (sizeInvalid) computeSize(); float width = tablePrefWidth; if (background != null) return Math.max(width, background.getMinWidth()); return width; } public float getPrefHeight () { if (sizeInvalid) computeSize(); float height = tablePrefHeight; if (background != null) return Math.max(height, background.getMinHeight()); return height; } public float getMinWidth () { if (sizeInvalid) computeSize(); return tableMinWidth; } public float getMinHeight () { if (sizeInvalid) computeSize(); return tableMinHeight; } /** The cell values that will be used as the defaults for all cells. */ public Cell defaults () { return cellDefaults; } /** Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value. */ public Table pad (Value pad) { if (pad == null) throw new IllegalArgumentException("pad cannot be null."); padTop = pad; padLeft = pad; padBottom = pad; padRight = pad; sizeInvalid = true; return this; } public Table pad (Value top, Value left, Value bottom, Value right) { if (top == null) throw new IllegalArgumentException("top cannot be null."); if (left == null) throw new IllegalArgumentException("left cannot be null."); if (bottom == null) throw new IllegalArgumentException("bottom cannot be null."); if (right == null) throw new IllegalArgumentException("right cannot be null."); padTop = top; padLeft = left; padBottom = bottom; padRight = right; sizeInvalid = true; return this; } /** Padding at the top edge of the table. */ public Table padTop (Value padTop) { if (padTop == null) throw new IllegalArgumentException("padTop cannot be null."); this.padTop = padTop; sizeInvalid = true; return this; } /** Padding at the left edge of the table. */ public Table padLeft (Value padLeft) { if (padLeft == null) throw new IllegalArgumentException("padLeft cannot be null."); this.padLeft = padLeft; sizeInvalid = true; return this; } /** Padding at the bottom edge of the table. */ public Table padBottom (Value padBottom) { if (padBottom == null) throw new IllegalArgumentException("padBottom cannot be null."); this.padBottom = padBottom; sizeInvalid = true; return this; } /** Padding at the right edge of the table. */ public Table padRight (Value padRight) { if (padRight == null) throw new IllegalArgumentException("padRight cannot be null."); this.padRight = padRight; sizeInvalid = true; return this; } /** Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value. */ public Table pad (float pad) { pad(Fixed.valueOf(pad)); return this; } public Table pad (float top, float left, float bottom, float right) { padTop = Fixed.valueOf(top); padLeft = Fixed.valueOf(left); padBottom = Fixed.valueOf(bottom); padRight = Fixed.valueOf(right); sizeInvalid = true; return this; } /** Padding at the top edge of the table. */ public Table padTop (float padTop) { this.padTop = Fixed.valueOf(padTop); sizeInvalid = true; return this; } /** Padding at the left edge of the table. */ public Table padLeft (float padLeft) { this.padLeft = Fixed.valueOf(padLeft); sizeInvalid = true; return this; } /** Padding at the bottom edge of the table. */ public Table padBottom (float padBottom) { this.padBottom = Fixed.valueOf(padBottom); sizeInvalid = true; return this; } /** Padding at the right edge of the table. */ public Table padRight (float padRight) { this.padRight = Fixed.valueOf(padRight); sizeInvalid = true; return this; } /** Alignment of the logical table within the table actor. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom} * , {@link Align#left}, {@link Align#right}, or any combination of those. */ public Table align (int align) { this.align = align; return this; } /** Sets the alignment of the logical table within the table actor to {@link Align#center}. This clears any other alignment. */ public Table center () { align = Align.center; return this; } /** Adds {@link Align#top} and clears {@link Align#bottom} for the alignment of the logical table within the table actor. */ public Table top () { align |= Align.top; align &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of the logical table within the table actor. */ public Table left () { align |= Align.left; align &= ~Align.right; return this; } /** Adds {@link Align#bottom} and clears {@link Align#top} for the alignment of the logical table within the table actor. */ public Table bottom () { align |= Align.bottom; align &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of the logical table within the table actor. */ public Table right () { align |= Align.right; align &= ~Align.left; return this; } public void setDebug (boolean enabled) { debug(enabled ? Debug.all : Debug.none); } public Table debug () { super.debug(); return this; } public Table debugAll () { super.debugAll(); return this; } /** Turns on table debug lines. */ public Table debugTable () { super.setDebug(true); if (debug != Debug.table) { this.debug = Debug.table; invalidate(); } return this; } /** Turns on cell debug lines. */ public Table debugCell () { super.setDebug(true); if (debug != Debug.cell) { this.debug = Debug.cell; invalidate(); } return this; } /** Turns on actor debug lines. */ public Table debugActor () { super.setDebug(true); if (debug != Debug.actor) { this.debug = Debug.actor; invalidate(); } return this; } /** Turns debug lines on or off. */ public Table debug (Debug debug) { super.setDebug(debug != Debug.none); if (this.debug != debug) { this.debug = debug; if (debug == Debug.none) clearDebugRects(); else invalidate(); } return this; } public Debug getTableDebug () { return debug; } public Value getPadTopValue () { return padTop; } public float getPadTop () { return padTop.get(this); } public Value getPadLeftValue () { return padLeft; } public float getPadLeft () { return padLeft.get(this); } public Value getPadBottomValue () { return padBottom; } public float getPadBottom () { return padBottom.get(this); } public Value getPadRightValue () { return padRight; } public float getPadRight () { return padRight.get(this); } /** Returns {@link #getPadLeft()} plus {@link #getPadRight()}. */ public float getPadX () { return padLeft.get(this) + padRight.get(this); } /** Returns {@link #getPadTop()} plus {@link #getPadBottom()}. */ public float getPadY () { return padTop.get(this) + padBottom.get(this); } public int getAlign () { return align; } /** Returns the row index for the y coordinate, or -1 if not over a row. * @param y The y coordinate, where 0 is the top of the table. */ public int getRow (float y) { int n = this.cells.size; if (n == 0) return -1; y += getPadTop(); Object[] cells = this.cells.items; for (int i = 0, row = 0; i < n;) { Cell c = (Cell)cells[i++]; if (c.actorY + c.computedPadTop < y) return row; if (c.endRow) row++; } return -1; } public void setSkin (@Null Skin skin) { this.skin = skin; } /** If true (the default), positions and sizes of child actors are rounded and ceiled to the nearest integer value. */ public void setRound (boolean round) { this.round = round; } public int getRows () { return rows; } public int getColumns () { return columns; } /** Returns the height of the specified row, or 0 if the table layout has not been validated. */ public float getRowHeight (int rowIndex) { if (rowHeight == null) return 0; return rowHeight[rowIndex]; } /** Returns the min height of the specified row. */ public float getRowMinHeight (int rowIndex) { if (sizeInvalid) computeSize(); return rowMinHeight[rowIndex]; } /** Returns the pref height of the specified row. */ public float getRowPrefHeight (int rowIndex) { if (sizeInvalid) computeSize(); return rowPrefHeight[rowIndex]; } /** Returns the width of the specified column, or 0 if the table layout has not been validated. */ public float getColumnWidth (int columnIndex) { if (columnWidth == null) return 0; return columnWidth[columnIndex]; } /** Returns the min height of the specified column. */ public float getColumnMinWidth (int columnIndex) { if (sizeInvalid) computeSize(); return columnMinWidth[columnIndex]; } /** Returns the pref height of the specified column. */ public float getColumnPrefWidth (int columnIndex) { if (sizeInvalid) computeSize(); return columnPrefWidth[columnIndex]; } private float[] ensureSize (float[] array, int size) { if (array == null || array.length < size) return new float[size]; Arrays.fill(array, 0, size, 0); return array; } private void computeSize () { sizeInvalid = false; Object[] cells = this.cells.items; int cellCount = this.cells.size; // Implicitly end the row for layout purposes. if (cellCount > 0 && !((Cell)cells[cellCount - 1]).endRow) { endRow(); implicitEndRow = true; } int columns = this.columns, rows = this.rows; float[] columnMinWidth = this.columnMinWidth = ensureSize(this.columnMinWidth, columns); float[] rowMinHeight = this.rowMinHeight = ensureSize(this.rowMinHeight, rows); float[] columnPrefWidth = this.columnPrefWidth = ensureSize(this.columnPrefWidth, columns); float[] rowPrefHeight = this.rowPrefHeight = ensureSize(this.rowPrefHeight, rows); float[] columnWidth = this.columnWidth = ensureSize(this.columnWidth, columns); float[] rowHeight = this.rowHeight = ensureSize(this.rowHeight, rows); float[] expandWidth = this.expandWidth = ensureSize(this.expandWidth, columns); float[] expandHeight = this.expandHeight = ensureSize(this.expandHeight, rows); float spaceRightLast = 0; for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int column = c.column, row = c.row, colspan = c.colspan; Actor a = c.actor; // Collect rows that expand and colspan=1 columns that expand. if (c.expandY != 0 && expandHeight[row] == 0) expandHeight[row] = c.expandY; if (colspan == 1 && c.expandX != 0 && expandWidth[column] == 0) expandWidth[column] = c.expandX; // Compute combined padding/spacing for cells. // Spacing between actors isn't additive, the larger is used. Also, no spacing around edges. c.computedPadLeft = c.padLeft.get(a) + (column == 0 ? 0 : Math.max(0, c.spaceLeft.get(a) - spaceRightLast)); c.computedPadTop = c.padTop.get(a); if (c.cellAboveIndex != -1) { Cell above = (Cell)cells[c.cellAboveIndex]; c.computedPadTop += Math.max(0, c.spaceTop.get(a) - above.spaceBottom.get(a)); } float spaceRight = c.spaceRight.get(a); c.computedPadRight = c.padRight.get(a) + ((column + colspan) == columns ? 0 : spaceRight); c.computedPadBottom = c.padBottom.get(a) + (row == rows - 1 ? 0 : c.spaceBottom.get(a)); spaceRightLast = spaceRight; // Determine minimum and preferred cell sizes. float prefWidth = c.prefWidth.get(a), prefHeight = c.prefHeight.get(a); float minWidth = c.minWidth.get(a), minHeight = c.minHeight.get(a); float maxWidth = c.maxWidth.get(a), maxHeight = c.maxHeight.get(a); if (prefWidth < minWidth) prefWidth = minWidth; if (prefHeight < minHeight) prefHeight = minHeight; if (maxWidth > 0 && prefWidth > maxWidth) prefWidth = maxWidth; if (maxHeight > 0 && prefHeight > maxHeight) prefHeight = maxHeight; if (round) { minWidth = (float)Math.ceil(minWidth); minHeight = (float)Math.ceil(minHeight); prefWidth = (float)Math.ceil(prefWidth); prefHeight = (float)Math.ceil(prefHeight); } if (colspan == 1) { // Spanned column min and pref width is added later. float hpadding = c.computedPadLeft + c.computedPadRight; columnPrefWidth[column] = Math.max(columnPrefWidth[column], prefWidth + hpadding); columnMinWidth[column] = Math.max(columnMinWidth[column], minWidth + hpadding); } float vpadding = c.computedPadTop + c.computedPadBottom; rowPrefHeight[row] = Math.max(rowPrefHeight[row], prefHeight + vpadding); rowMinHeight[row] = Math.max(rowMinHeight[row], minHeight + vpadding); } float uniformMinWidth = 0, uniformMinHeight = 0; float uniformPrefWidth = 0, uniformPrefHeight = 0; for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int column = c.column; // Colspan with expand will expand all spanned columns if none of the spanned columns have expand. int expandX = c.expandX; outer: if (expandX != 0) { int nn = column + c.colspan; for (int ii = column; ii < nn; ii++) if (expandWidth[ii] != 0) break outer; for (int ii = column; ii < nn; ii++) expandWidth[ii] = expandX; } // Collect uniform sizes. if (c.uniformX == Boolean.TRUE && c.colspan == 1) { float hpadding = c.computedPadLeft + c.computedPadRight; uniformMinWidth = Math.max(uniformMinWidth, columnMinWidth[column] - hpadding); uniformPrefWidth = Math.max(uniformPrefWidth, columnPrefWidth[column] - hpadding); } if (c.uniformY == Boolean.TRUE) { float vpadding = c.computedPadTop + c.computedPadBottom; uniformMinHeight = Math.max(uniformMinHeight, rowMinHeight[c.row] - vpadding); uniformPrefHeight = Math.max(uniformPrefHeight, rowPrefHeight[c.row] - vpadding); } } // Size uniform cells to the same width/height. if (uniformPrefWidth > 0 || uniformPrefHeight > 0) { for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; if (uniformPrefWidth > 0 && c.uniformX == Boolean.TRUE && c.colspan == 1) { float hpadding = c.computedPadLeft + c.computedPadRight; columnMinWidth[c.column] = uniformMinWidth + hpadding; columnPrefWidth[c.column] = uniformPrefWidth + hpadding; } if (uniformPrefHeight > 0 && c.uniformY == Boolean.TRUE) { float vpadding = c.computedPadTop + c.computedPadBottom; rowMinHeight[c.row] = uniformMinHeight + vpadding; rowPrefHeight[c.row] = uniformPrefHeight + vpadding; } } } // Distribute any additional min and pref width added by colspanned cells to the columns spanned. for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int colspan = c.colspan; if (colspan == 1) continue; int column = c.column; Actor a = c.actor; float minWidth = c.minWidth.get(a), prefWidth = c.prefWidth.get(a), maxWidth = c.maxWidth.get(a); if (prefWidth < minWidth) prefWidth = minWidth; if (maxWidth > 0 && prefWidth > maxWidth) prefWidth = maxWidth; if (round) { minWidth = (float)Math.ceil(minWidth); prefWidth = (float)Math.ceil(prefWidth); } float spannedMinWidth = -(c.computedPadLeft + c.computedPadRight), spannedPrefWidth = spannedMinWidth; float totalExpandWidth = 0; for (int ii = column, nn = ii + colspan; ii < nn; ii++) { spannedMinWidth += columnMinWidth[ii]; spannedPrefWidth += columnPrefWidth[ii]; totalExpandWidth += expandWidth[ii]; // Distribute extra space using expand, if any columns have expand. } float extraMinWidth = Math.max(0, minWidth - spannedMinWidth); float extraPrefWidth = Math.max(0, prefWidth - spannedPrefWidth); for (int ii = column, nn = ii + colspan; ii < nn; ii++) { float ratio = totalExpandWidth == 0 ? 1f / colspan : expandWidth[ii] / totalExpandWidth; columnMinWidth[ii] += extraMinWidth * ratio; columnPrefWidth[ii] += extraPrefWidth * ratio; } } // Determine table min and pref size. float hpadding = padLeft.get(this) + padRight.get(this); float vpadding = padTop.get(this) + padBottom.get(this); tableMinWidth = hpadding; tablePrefWidth = hpadding; for (int i = 0; i < columns; i++) { tableMinWidth += columnMinWidth[i]; tablePrefWidth += columnPrefWidth[i]; } tableMinHeight = vpadding; tablePrefHeight = vpadding; for (int i = 0; i < rows; i++) { tableMinHeight += rowMinHeight[i]; tablePrefHeight += Math.max(rowMinHeight[i], rowPrefHeight[i]); } tablePrefWidth = Math.max(tableMinWidth, tablePrefWidth); tablePrefHeight = Math.max(tableMinHeight, tablePrefHeight); } /** Positions and sizes children of the table using the cell associated with each child. The values given are the position * within the parent and size of the table. */ public void layout () { if (sizeInvalid) computeSize(); float layoutWidth = getWidth(), layoutHeight = getHeight(); int columns = this.columns, rows = this.rows; float[] columnWidth = this.columnWidth, rowHeight = this.rowHeight; float padLeft = this.padLeft.get(this), hpadding = padLeft + padRight.get(this); float padTop = this.padTop.get(this), vpadding = padTop + padBottom.get(this); // Size columns and rows between min and pref size using (preferred - min) size to weight distribution of extra space. float[] columnWeightedWidth; float totalGrowWidth = tablePrefWidth - tableMinWidth; if (totalGrowWidth == 0) columnWeightedWidth = columnMinWidth; else { float extraWidth = Math.min(totalGrowWidth, Math.max(0, layoutWidth - tableMinWidth)); columnWeightedWidth = Table.columnWeightedWidth = ensureSize(Table.columnWeightedWidth, columns); float[] columnMinWidth = this.columnMinWidth, columnPrefWidth = this.columnPrefWidth; for (int i = 0; i < columns; i++) { float growWidth = columnPrefWidth[i] - columnMinWidth[i]; float growRatio = growWidth / totalGrowWidth; columnWeightedWidth[i] = columnMinWidth[i] + extraWidth * growRatio; } } float[] rowWeightedHeight; float totalGrowHeight = tablePrefHeight - tableMinHeight; if (totalGrowHeight == 0) rowWeightedHeight = rowMinHeight; else { rowWeightedHeight = Table.rowWeightedHeight = ensureSize(Table.rowWeightedHeight, rows); float extraHeight = Math.min(totalGrowHeight, Math.max(0, layoutHeight - tableMinHeight)); float[] rowMinHeight = this.rowMinHeight, rowPrefHeight = this.rowPrefHeight; for (int i = 0; i < rows; i++) { float growHeight = rowPrefHeight[i] - rowMinHeight[i]; float growRatio = growHeight / totalGrowHeight; rowWeightedHeight[i] = rowMinHeight[i] + extraHeight * growRatio; } } // Determine actor and cell sizes (before expand or fill). Object[] cells = this.cells.items; int cellCount = this.cells.size; for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int column = c.column, row = c.row; Actor a = c.actor; float spannedWeightedWidth = 0; int colspan = c.colspan; for (int ii = column, nn = ii + colspan; ii < nn; ii++) spannedWeightedWidth += columnWeightedWidth[ii]; float weightedHeight = rowWeightedHeight[row]; float prefWidth = c.prefWidth.get(a), prefHeight = c.prefHeight.get(a); float minWidth = c.minWidth.get(a), minHeight = c.minHeight.get(a); float maxWidth = c.maxWidth.get(a), maxHeight = c.maxHeight.get(a); if (prefWidth < minWidth) prefWidth = minWidth; if (prefHeight < minHeight) prefHeight = minHeight; if (maxWidth > 0 && prefWidth > maxWidth) prefWidth = maxWidth; if (maxHeight > 0 && prefHeight > maxHeight) prefHeight = maxHeight; c.actorWidth = Math.min(spannedWeightedWidth - c.computedPadLeft - c.computedPadRight, prefWidth); c.actorHeight = Math.min(weightedHeight - c.computedPadTop - c.computedPadBottom, prefHeight); if (colspan == 1) columnWidth[column] = Math.max(columnWidth[column], spannedWeightedWidth); rowHeight[row] = Math.max(rowHeight[row], weightedHeight); } // Distribute remaining space to any expanding columns/rows. float[] expandWidth = this.expandWidth, expandHeight = this.expandHeight; float totalExpand = 0; for (int i = 0; i < columns; i++) totalExpand += expandWidth[i]; if (totalExpand > 0) { float extra = layoutWidth - hpadding; for (int i = 0; i < columns; i++) extra -= columnWidth[i]; if (extra > 0) { // layoutWidth < tableMinWidth. float used = 0; int lastIndex = 0; for (int i = 0; i < columns; i++) { if (expandWidth[i] == 0) continue; float amount = extra * expandWidth[i] / totalExpand; columnWidth[i] += amount; used += amount; lastIndex = i; } columnWidth[lastIndex] += extra - used; } } totalExpand = 0; for (int i = 0; i < rows; i++) totalExpand += expandHeight[i]; if (totalExpand > 0) { float extra = layoutHeight - vpadding; for (int i = 0; i < rows; i++) extra -= rowHeight[i]; if (extra > 0) { // layoutHeight < tableMinHeight. float used = 0; int lastIndex = 0; for (int i = 0; i < rows; i++) { if (expandHeight[i] == 0) continue; float amount = extra * expandHeight[i] / totalExpand; rowHeight[i] += amount; used += amount; lastIndex = i; } rowHeight[lastIndex] += extra - used; } } // Distribute any additional width added by colspanned cells to the columns spanned. for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; int colspan = c.colspan; if (colspan == 1) continue; float extraWidth = 0; for (int column = c.column, nn = column + colspan; column < nn; column++) extraWidth += columnWeightedWidth[column] - columnWidth[column]; extraWidth -= Math.max(0, c.computedPadLeft + c.computedPadRight); extraWidth /= colspan; if (extraWidth > 0) { for (int column = c.column, nn = column + colspan; column < nn; column++) columnWidth[column] += extraWidth; } } // Determine table size. float tableWidth = hpadding, tableHeight = vpadding; for (int i = 0; i < columns; i++) tableWidth += columnWidth[i]; for (int i = 0; i < rows; i++) tableHeight += rowHeight[i]; // Position table within the container. int align = this.align; float x = padLeft; if ((align & Align.right) != 0) x += layoutWidth - tableWidth; else if ((align & Align.left) == 0) // Center x += (layoutWidth - tableWidth) / 2; float y = padTop; if ((align & Align.bottom) != 0) y += layoutHeight - tableHeight; else if ((align & Align.top) == 0) // Center y += (layoutHeight - tableHeight) / 2; // Size and position actors within cells. float currentX = x, currentY = y; for (int i = 0; i < cellCount; i++) { Cell c = (Cell)cells[i]; float spannedCellWidth = 0; for (int column = c.column, nn = column + c.colspan; column < nn; column++) spannedCellWidth += columnWidth[column]; spannedCellWidth -= c.computedPadLeft + c.computedPadRight; currentX += c.computedPadLeft; float fillX = c.fillX, fillY = c.fillY; if (fillX > 0) { c.actorWidth = Math.max(spannedCellWidth * fillX, c.minWidth.get(c.actor)); float maxWidth = c.maxWidth.get(c.actor); if (maxWidth > 0) c.actorWidth = Math.min(c.actorWidth, maxWidth); } if (fillY > 0) { c.actorHeight = Math.max(rowHeight[c.row] * fillY - c.computedPadTop - c.computedPadBottom, c.minHeight.get(c.actor)); float maxHeight = c.maxHeight.get(c.actor); if (maxHeight > 0) c.actorHeight = Math.min(c.actorHeight, maxHeight); } align = c.align; if ((align & Align.left) != 0) c.actorX = currentX; else if ((align & Align.right) != 0) c.actorX = currentX + spannedCellWidth - c.actorWidth; else c.actorX = currentX + (spannedCellWidth - c.actorWidth) / 2; if ((align & Align.top) != 0) c.actorY = c.computedPadTop; else if ((align & Align.bottom) != 0) c.actorY = rowHeight[c.row] - c.actorHeight - c.computedPadBottom; else c.actorY = (rowHeight[c.row] - c.actorHeight + c.computedPadTop - c.computedPadBottom) / 2; c.actorY = layoutHeight - currentY - c.actorY - c.actorHeight; if (round) { c.actorWidth = (float)Math.ceil(c.actorWidth); c.actorHeight = (float)Math.ceil(c.actorHeight); c.actorX = (float)Math.floor(c.actorX); c.actorY = (float)Math.floor(c.actorY); } if (c.actor != null) c.actor.setBounds(c.actorX, c.actorY, c.actorWidth, c.actorHeight); if (c.endRow) { currentX = x; currentY += rowHeight[c.row]; } else currentX += spannedCellWidth + c.computedPadRight; } // Validate all children (some may not be in cells). Array<Actor> childrenArray = getChildren(); Actor[] children = childrenArray.items; for (int i = 0, n = childrenArray.size; i < n; i++) { Object child = children[i]; if (child instanceof Layout) ((Layout)child).validate(); } // Store debug rectangles. if (debug != Debug.none) addDebugRects(x, y, tableWidth - hpadding, tableHeight - vpadding); } private void addDebugRects (float currentX, float currentY, float width, float height) { clearDebugRects(); if (debug == Debug.table || debug == Debug.all) { // Table actor bounds. addDebugRect(0, 0, getWidth(), getHeight(), debugTableColor); // Table bounds. addDebugRect(currentX, getHeight() - currentY, width, -height, debugTableColor); } float x = currentX; for (int i = 0, n = cells.size; i < n; i++) { Cell c = cells.get(i); // Cell actor bounds. if (debug == Debug.actor || debug == Debug.all) addDebugRect(c.actorX, c.actorY, c.actorWidth, c.actorHeight, debugActorColor); // Cell bounds. float spannedCellWidth = 0; for (int column = c.column, nn = column + c.colspan; column < nn; column++) spannedCellWidth += columnWidth[column]; spannedCellWidth -= c.computedPadLeft + c.computedPadRight; currentX += c.computedPadLeft; if (debug == Debug.cell || debug == Debug.all) { float h = rowHeight[c.row] - c.computedPadTop - c.computedPadBottom; float y = currentY + c.computedPadTop; addDebugRect(currentX, getHeight() - y, spannedCellWidth, -h, debugCellColor); } if (c.endRow) { currentX = x; currentY += rowHeight[c.row]; } else currentX += spannedCellWidth + c.computedPadRight; } } private void clearDebugRects () { if (debugRects == null) debugRects = new Array(); DebugRect.pool.freeAll(debugRects); debugRects.clear(); } private void addDebugRect (float x, float y, float w, float h, Color color) { DebugRect rect = DebugRect.pool.obtain(); rect.color = color; rect.set(x, y, w, h); debugRects.add(rect); } public void drawDebug (ShapeRenderer shapes) { if (isTransform()) { applyTransform(shapes, computeTransform()); drawDebugRects(shapes); if (clip) { shapes.flush(); float x = 0, y = 0, width = getWidth(), height = getHeight(); if (background != null) { x = padLeft.get(this); y = padBottom.get(this); width -= x + padRight.get(this); height -= y + padTop.get(this); } if (clipBegin(x, y, width, height)) { drawDebugChildren(shapes); clipEnd(); } } else drawDebugChildren(shapes); resetTransform(shapes); } else { drawDebugRects(shapes); super.drawDebug(shapes); } } protected void drawDebugBounds (ShapeRenderer shapes) { } private void drawDebugRects (ShapeRenderer shapes) { if (debugRects == null || !getDebug()) return; shapes.set(ShapeType.Line); if (getStage() != null) shapes.setColor(getStage().getDebugColor()); float x = 0, y = 0; if (!isTransform()) { x = getX(); y = getY(); } for (int i = 0, n = debugRects.size; i < n; i++) { DebugRect debugRect = debugRects.get(i); shapes.setColor(debugRect.color); shapes.rect(x + debugRect.x, y + debugRect.y, debugRect.width, debugRect.height); } } /** @return The skin that was passed to this table in its constructor, or null if none was given. */ public @Null Skin getSkin () { return skin; } /** @author Nathan Sweet */ static public class DebugRect extends Rectangle { static Pool<DebugRect> pool = Pools.get(DebugRect.class); Color color; } /** @author Nathan Sweet */ static public enum Debug { none, all, table, cell, actor } /** Value that is the top padding of the table's background. * @author Nathan Sweet */ static public Value backgroundTop = new Value() { public float get (@Null Actor context) { Drawable background = ((Table)context).background; return background == null ? 0 : background.getTopHeight(); } }; /** Value that is the left padding of the table's background. * @author Nathan Sweet */ static public Value backgroundLeft = new Value() { public float get (@Null Actor context) { Drawable background = ((Table)context).background; return background == null ? 0 : background.getLeftWidth(); } }; /** Value that is the bottom padding of the table's background. * @author Nathan Sweet */ static public Value backgroundBottom = new Value() { public float get (@Null Actor context) { Drawable background = ((Table)context).background; return background == null ? 0 : background.getBottomHeight(); } }; /** Value that is the right padding of the table's background. * @author Nathan Sweet */ static public Value backgroundRight = new Value() { public float get (@Null Actor context) { Drawable background = ((Table)context).background; return background == null ? 0 : background.getRightWidth(); } }; }
1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextArea.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.GlyphLayout; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.InputListener; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.IntArray; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.Pool; import com.badlogic.gdx.utils.Pools; /** A text input field with multiple lines. */ public class TextArea extends TextField { /** Array storing lines breaks positions **/ IntArray linesBreak; /** Last text processed. This attribute is used to avoid unnecessary computations while calculating offsets **/ private String lastText; /** Current line for the cursor **/ int cursorLine; /** Index of the first line showed by the text area **/ int firstLineShowing; /** Number of lines showed by the text area **/ private int linesShowing; /** Variable to maintain the x offset of the cursor when moving up and down. If it's set to -1, the offset is reset **/ float moveOffset; private float prefRows; public TextArea (String text, Skin skin) { super(text, skin); } public TextArea (String text, Skin skin, String styleName) { super(text, skin, styleName); } public TextArea (String text, TextFieldStyle style) { super(text, style); } protected void initialize () { super.initialize(); writeEnters = true; linesBreak = new IntArray(); cursorLine = 0; firstLineShowing = 0; moveOffset = -1; linesShowing = 0; } protected int letterUnderCursor (float x) { if (linesBreak.size > 0) { if (cursorLine * 2 >= linesBreak.size) { return text.length(); } else { float[] glyphPositions = this.glyphPositions.items; int start = linesBreak.items[cursorLine * 2]; x += glyphPositions[start]; int end = linesBreak.items[cursorLine * 2 + 1]; int i = start; for (; i < end; i++) if (glyphPositions[i] > x) break; if (i > 0 && glyphPositions[i] - x <= x - glyphPositions[i - 1]) return i; return Math.max(0, i - 1); } } else { return 0; } } public void setStyle (TextFieldStyle style) { // same as super(), just different textHeight. no super() so we don't do same work twice if (style == null) throw new IllegalArgumentException("style cannot be null."); this.style = style; // no extra descent to fake line height textHeight = style.font.getCapHeight() - style.font.getDescent(); if (text != null) updateDisplayText(); invalidateHierarchy(); } /** Sets the preferred number of rows (lines) for this text area. Used to calculate preferred height */ public void setPrefRows (float prefRows) { this.prefRows = prefRows; } public float getPrefHeight () { if (prefRows <= 0) { return super.getPrefHeight(); } else { // without ceil we might end up with one less row then expected // due to how linesShowing is calculated in #sizeChanged and #getHeight() returning rounded value float prefHeight = MathUtils.ceil(style.font.getLineHeight() * prefRows); if (style.background != null) { prefHeight = Math.max(prefHeight + style.background.getBottomHeight() + style.background.getTopHeight(), style.background.getMinHeight()); } return prefHeight; } } /** Returns total number of lines that the text occupies **/ public int getLines () { return linesBreak.size / 2 + (newLineAtEnd() ? 1 : 0); } /** Returns if there's a new line at then end of the text **/ public boolean newLineAtEnd () { return text.length() != 0 && (text.charAt(text.length() - 1) == NEWLINE || text.charAt(text.length() - 1) == CARRIAGE_RETURN); } /** Moves the cursor to the given number line **/ public void moveCursorLine (int line) { if (line < 0) { cursorLine = 0; cursor = 0; moveOffset = -1; } else if (line >= getLines()) { int newLine = getLines() - 1; cursor = text.length(); if (line > getLines() || newLine == cursorLine) { moveOffset = -1; } cursorLine = newLine; } else if (line != cursorLine) { if (moveOffset < 0) { moveOffset = linesBreak.size <= cursorLine * 2 ? 0 : glyphPositions.get(cursor) - glyphPositions.get(linesBreak.get(cursorLine * 2)); } cursorLine = line; cursor = cursorLine * 2 >= linesBreak.size ? text.length() : linesBreak.get(cursorLine * 2); while (cursor < text.length() && cursor <= linesBreak.get(cursorLine * 2 + 1) - 1 && glyphPositions.get(cursor) - glyphPositions.get(linesBreak.get(cursorLine * 2)) < moveOffset) { cursor++; } showCursor(); } } /** Updates the current line, checking the cursor position in the text **/ void updateCurrentLine () { int index = calculateCurrentLineIndex(cursor); int line = index / 2; // Special case when cursor moves to the beginning of the line from the end of another and a word // wider than the box if (index % 2 == 0 || index + 1 >= linesBreak.size || cursor != linesBreak.items[index] || linesBreak.items[index + 1] != linesBreak.items[index]) { if (line < linesBreak.size / 2 || text.length() == 0 || text.charAt(text.length() - 1) == NEWLINE || text.charAt(text.length() - 1) == CARRIAGE_RETURN) { cursorLine = line; } } updateFirstLineShowing(); // fix for drag-selecting text out of the TextArea's bounds } /** Scroll the text area to show the line of the cursor **/ void showCursor () { updateCurrentLine(); updateFirstLineShowing(); } void updateFirstLineShowing () { if (cursorLine != firstLineShowing) { int step = cursorLine >= firstLineShowing ? 1 : -1; while (firstLineShowing > cursorLine || firstLineShowing + linesShowing - 1 < cursorLine) { firstLineShowing += step; } } } /** Calculates the text area line for the given cursor position **/ private int calculateCurrentLineIndex (int cursor) { int index = 0; while (index < linesBreak.size && cursor > linesBreak.items[index]) { index++; } return index; } // OVERRIDE from TextField protected void sizeChanged () { lastText = null; // Cause calculateOffsets to recalculate the line breaks. // The number of lines showed must be updated whenever the height is updated BitmapFont font = style.font; Drawable background = style.background; float availableHeight = getHeight() - (background == null ? 0 : background.getBottomHeight() + background.getTopHeight()); linesShowing = (int)Math.floor(availableHeight / font.getLineHeight()); } protected float getTextY (BitmapFont font, @Null Drawable background) { float textY = getHeight(); if (background != null) { textY = textY - background.getTopHeight(); } if (font.usesIntegerPositions()) textY = (int)textY; return textY; } protected void drawSelection (Drawable selection, Batch batch, BitmapFont font, float x, float y) { int i = firstLineShowing * 2; float offsetY = 0; int minIndex = Math.min(cursor, selectionStart); int maxIndex = Math.max(cursor, selectionStart); BitmapFont.BitmapFontData fontData = font.getData(); float lineHeight = style.font.getLineHeight(); while (i + 1 < linesBreak.size && i < (firstLineShowing + linesShowing) * 2) { int lineStart = linesBreak.get(i); int lineEnd = linesBreak.get(i + 1); if (!((minIndex < lineStart && minIndex < lineEnd && maxIndex < lineStart && maxIndex < lineEnd) || (minIndex > lineStart && minIndex > lineEnd && maxIndex > lineStart && maxIndex > lineEnd))) { int start = Math.max(lineStart, minIndex); int end = Math.min(lineEnd, maxIndex); float fontLineOffsetX = 0; float fontLineOffsetWidth = 0; // We can't use fontOffset as it is valid only for first glyph/line in the text. // We will grab first character in this line and calculate proper offset for this line. BitmapFont.Glyph lineFirst = fontData.getGlyph(displayText.charAt(lineStart)); if (lineFirst != null) { // See BitmapFontData.getGlyphs() for offset calculation. // If selection starts when line starts we want to offset width instead of moving the start as it looks better. if (start == lineStart) { fontLineOffsetWidth = lineFirst.fixedWidth ? 0 : -lineFirst.xoffset * fontData.scaleX - fontData.padLeft; } else { fontLineOffsetX = lineFirst.fixedWidth ? 0 : -lineFirst.xoffset * fontData.scaleX - fontData.padLeft; } } float selectionX = glyphPositions.get(start) - glyphPositions.get(lineStart); float selectionWidth = glyphPositions.get(end) - glyphPositions.get(start); selection.draw(batch, x + selectionX + fontLineOffsetX, y - lineHeight - offsetY, selectionWidth + fontLineOffsetWidth, font.getLineHeight()); } offsetY += font.getLineHeight(); i += 2; } } protected void drawText (Batch batch, BitmapFont font, float x, float y) { float offsetY = -(style.font.getLineHeight() - textHeight) / 2; for (int i = firstLineShowing * 2; i < (firstLineShowing + linesShowing) * 2 && i < linesBreak.size; i += 2) { font.draw(batch, displayText, x, y + offsetY, linesBreak.items[i], linesBreak.items[i + 1], 0, Align.left, false); offsetY -= font.getLineHeight(); } } protected void drawCursor (Drawable cursorPatch, Batch batch, BitmapFont font, float x, float y) { cursorPatch.draw(batch, x + getCursorX(), y + getCursorY(), cursorPatch.getMinWidth(), font.getLineHeight()); } protected void calculateOffsets () { super.calculateOffsets(); if (!this.text.equals(lastText)) { this.lastText = text; BitmapFont font = style.font; float maxWidthLine = this.getWidth() - (style.background != null ? style.background.getLeftWidth() + style.background.getRightWidth() : 0); linesBreak.clear(); int lineStart = 0; int lastSpace = 0; char lastCharacter; Pool<GlyphLayout> layoutPool = Pools.get(GlyphLayout.class); GlyphLayout layout = layoutPool.obtain(); for (int i = 0; i < text.length(); i++) { lastCharacter = text.charAt(i); if (lastCharacter == CARRIAGE_RETURN || lastCharacter == NEWLINE) { linesBreak.add(lineStart); linesBreak.add(i); lineStart = i + 1; } else { lastSpace = (continueCursor(i, 0) ? lastSpace : i); layout.setText(font, text.subSequence(lineStart, i + 1)); if (layout.width > maxWidthLine) { if (lineStart >= lastSpace) { lastSpace = i - 1; } linesBreak.add(lineStart); linesBreak.add(lastSpace + 1); lineStart = lastSpace + 1; lastSpace = lineStart; } } } layoutPool.free(layout); // Add last line if (lineStart < text.length()) { linesBreak.add(lineStart); linesBreak.add(text.length()); } showCursor(); } } protected InputListener createInputListener () { return new TextAreaListener(); } public void setSelection (int selectionStart, int selectionEnd) { super.setSelection(selectionStart, selectionEnd); updateCurrentLine(); } protected void moveCursor (boolean forward, boolean jump) { int count = forward ? 1 : -1; int index = (cursorLine * 2) + count; if (index >= 0 && index + 1 < linesBreak.size && linesBreak.items[index] == cursor && linesBreak.items[index + 1] == cursor) { cursorLine += count; if (jump) { super.moveCursor(forward, jump); } showCursor(); } else { super.moveCursor(forward, jump); } updateCurrentLine(); } protected boolean continueCursor (int index, int offset) { int pos = calculateCurrentLineIndex(index + offset); return super.continueCursor(index, offset) && (pos < 0 || pos >= linesBreak.size - 2 || (linesBreak.items[pos + 1] != index) || (linesBreak.items[pos + 1] == linesBreak.items[pos + 2])); } public int getCursorLine () { return cursorLine; } public int getFirstLineShowing () { return firstLineShowing; } public int getLinesShowing () { return linesShowing; } public float getCursorX () { float textOffset = 0; BitmapFont.BitmapFontData fontData = style.font.getData(); if (!(cursor >= glyphPositions.size || cursorLine * 2 >= linesBreak.size)) { int lineStart = linesBreak.items[cursorLine * 2]; float glyphOffset = 0; BitmapFont.Glyph lineFirst = fontData.getGlyph(displayText.charAt(lineStart)); if (lineFirst != null) { // See BitmapFontData.getGlyphs() for offset calculation. glyphOffset = lineFirst.fixedWidth ? 0 : -lineFirst.xoffset * fontData.scaleX - fontData.padLeft; } textOffset = glyphPositions.get(cursor) - glyphPositions.get(lineStart) + glyphOffset; } return textOffset + fontData.cursorX; } public float getCursorY () { BitmapFont font = style.font; return -(cursorLine - firstLineShowing + 1) * font.getLineHeight(); } /** Input listener for the text area **/ public class TextAreaListener extends TextFieldClickListener { protected void setCursorPosition (float x, float y) { moveOffset = -1; Drawable background = style.background; BitmapFont font = style.font; float height = getHeight(); if (background != null) { height -= background.getTopHeight(); x -= background.getLeftWidth(); } x = Math.max(0, x); if (background != null) { y -= background.getTopHeight(); } cursorLine = (int)Math.floor((height - y) / font.getLineHeight()) + firstLineShowing; cursorLine = Math.max(0, Math.min(cursorLine, getLines() - 1)); super.setCursorPosition(x, y); updateCurrentLine(); } public boolean keyDown (InputEvent event, int keycode) { boolean result = super.keyDown(event, keycode); if (hasKeyboardFocus()) { boolean repeat = false; boolean shift = Gdx.input.isKeyPressed(Input.Keys.SHIFT_LEFT) || Gdx.input.isKeyPressed(Input.Keys.SHIFT_RIGHT); if (keycode == Input.Keys.DOWN) { if (shift) { if (!hasSelection) { selectionStart = cursor; hasSelection = true; } } else { clearSelection(); } moveCursorLine(cursorLine + 1); repeat = true; } else if (keycode == Input.Keys.UP) { if (shift) { if (!hasSelection) { selectionStart = cursor; hasSelection = true; } } else { clearSelection(); } moveCursorLine(cursorLine - 1); repeat = true; } else { moveOffset = -1; } if (repeat) { scheduleKeyRepeatTask(keycode); } showCursor(); return true; } return result; } protected boolean checkFocusTraversal (char character) { return focusTraversal && character == TAB; } public boolean keyTyped (InputEvent event, char character) { boolean result = super.keyTyped(event, character); showCursor(); return result; } protected void goHome (boolean jump) { if (jump) { cursor = 0; } else if (cursorLine * 2 < linesBreak.size) { cursor = linesBreak.get(cursorLine * 2); } } protected void goEnd (boolean jump) { if (jump || cursorLine >= getLines()) { cursor = text.length(); } else if (cursorLine * 2 + 1 < linesBreak.size) { cursor = linesBreak.get(cursorLine * 2 + 1); } } } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.GlyphLayout; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.InputListener; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.IntArray; import com.badlogic.gdx.utils.Null; import com.badlogic.gdx.utils.Pool; import com.badlogic.gdx.utils.Pools; /** A text input field with multiple lines. */ public class TextArea extends TextField { /** Array storing lines breaks positions **/ IntArray linesBreak; /** Last text processed. This attribute is used to avoid unnecessary computations while calculating offsets **/ private String lastText; /** Current line for the cursor **/ int cursorLine; /** Index of the first line showed by the text area **/ int firstLineShowing; /** Number of lines showed by the text area **/ private int linesShowing; /** Variable to maintain the x offset of the cursor when moving up and down. If it's set to -1, the offset is reset **/ float moveOffset; private float prefRows; public TextArea (String text, Skin skin) { super(text, skin); } public TextArea (String text, Skin skin, String styleName) { super(text, skin, styleName); } public TextArea (String text, TextFieldStyle style) { super(text, style); } protected void initialize () { super.initialize(); writeEnters = true; linesBreak = new IntArray(); cursorLine = 0; firstLineShowing = 0; moveOffset = -1; linesShowing = 0; } protected int letterUnderCursor (float x) { if (linesBreak.size > 0) { if (cursorLine * 2 >= linesBreak.size) { return text.length(); } else { float[] glyphPositions = this.glyphPositions.items; int start = linesBreak.items[cursorLine * 2]; x += glyphPositions[start]; int end = linesBreak.items[cursorLine * 2 + 1]; int i = start; for (; i < end; i++) if (glyphPositions[i] > x) break; if (i > 0 && glyphPositions[i] - x <= x - glyphPositions[i - 1]) return i; return Math.max(0, i - 1); } } else { return 0; } } public void setStyle (TextFieldStyle style) { // same as super(), just different textHeight. no super() so we don't do same work twice if (style == null) throw new IllegalArgumentException("style cannot be null."); this.style = style; // no extra descent to fake line height textHeight = style.font.getCapHeight() - style.font.getDescent(); if (text != null) updateDisplayText(); invalidateHierarchy(); } /** Sets the preferred number of rows (lines) for this text area. Used to calculate preferred height */ public void setPrefRows (float prefRows) { this.prefRows = prefRows; } public float getPrefHeight () { if (prefRows <= 0) { return super.getPrefHeight(); } else { // without ceil we might end up with one less row then expected // due to how linesShowing is calculated in #sizeChanged and #getHeight() returning rounded value float prefHeight = (float)Math.ceil(style.font.getLineHeight() * prefRows); if (style.background != null) { prefHeight = Math.max(prefHeight + style.background.getBottomHeight() + style.background.getTopHeight(), style.background.getMinHeight()); } return prefHeight; } } /** Returns total number of lines that the text occupies **/ public int getLines () { return linesBreak.size / 2 + (newLineAtEnd() ? 1 : 0); } /** Returns if there's a new line at then end of the text **/ public boolean newLineAtEnd () { return text.length() != 0 && (text.charAt(text.length() - 1) == NEWLINE || text.charAt(text.length() - 1) == CARRIAGE_RETURN); } /** Moves the cursor to the given number line **/ public void moveCursorLine (int line) { if (line < 0) { cursorLine = 0; cursor = 0; moveOffset = -1; } else if (line >= getLines()) { int newLine = getLines() - 1; cursor = text.length(); if (line > getLines() || newLine == cursorLine) { moveOffset = -1; } cursorLine = newLine; } else if (line != cursorLine) { if (moveOffset < 0) { moveOffset = linesBreak.size <= cursorLine * 2 ? 0 : glyphPositions.get(cursor) - glyphPositions.get(linesBreak.get(cursorLine * 2)); } cursorLine = line; cursor = cursorLine * 2 >= linesBreak.size ? text.length() : linesBreak.get(cursorLine * 2); while (cursor < text.length() && cursor <= linesBreak.get(cursorLine * 2 + 1) - 1 && glyphPositions.get(cursor) - glyphPositions.get(linesBreak.get(cursorLine * 2)) < moveOffset) { cursor++; } showCursor(); } } /** Updates the current line, checking the cursor position in the text **/ void updateCurrentLine () { int index = calculateCurrentLineIndex(cursor); int line = index / 2; // Special case when cursor moves to the beginning of the line from the end of another and a word // wider than the box if (index % 2 == 0 || index + 1 >= linesBreak.size || cursor != linesBreak.items[index] || linesBreak.items[index + 1] != linesBreak.items[index]) { if (line < linesBreak.size / 2 || text.length() == 0 || text.charAt(text.length() - 1) == NEWLINE || text.charAt(text.length() - 1) == CARRIAGE_RETURN) { cursorLine = line; } } updateFirstLineShowing(); // fix for drag-selecting text out of the TextArea's bounds } /** Scroll the text area to show the line of the cursor **/ void showCursor () { updateCurrentLine(); updateFirstLineShowing(); } void updateFirstLineShowing () { if (cursorLine != firstLineShowing) { int step = cursorLine >= firstLineShowing ? 1 : -1; while (firstLineShowing > cursorLine || firstLineShowing + linesShowing - 1 < cursorLine) { firstLineShowing += step; } } } /** Calculates the text area line for the given cursor position **/ private int calculateCurrentLineIndex (int cursor) { int index = 0; while (index < linesBreak.size && cursor > linesBreak.items[index]) { index++; } return index; } // OVERRIDE from TextField protected void sizeChanged () { lastText = null; // Cause calculateOffsets to recalculate the line breaks. // The number of lines showed must be updated whenever the height is updated BitmapFont font = style.font; Drawable background = style.background; float availableHeight = getHeight() - (background == null ? 0 : background.getBottomHeight() + background.getTopHeight()); linesShowing = (int)Math.floor(availableHeight / font.getLineHeight()); } protected float getTextY (BitmapFont font, @Null Drawable background) { float textY = getHeight(); if (background != null) { textY = textY - background.getTopHeight(); } if (font.usesIntegerPositions()) textY = (int)textY; return textY; } protected void drawSelection (Drawable selection, Batch batch, BitmapFont font, float x, float y) { int i = firstLineShowing * 2; float offsetY = 0; int minIndex = Math.min(cursor, selectionStart); int maxIndex = Math.max(cursor, selectionStart); BitmapFont.BitmapFontData fontData = font.getData(); float lineHeight = style.font.getLineHeight(); while (i + 1 < linesBreak.size && i < (firstLineShowing + linesShowing) * 2) { int lineStart = linesBreak.get(i); int lineEnd = linesBreak.get(i + 1); if (!((minIndex < lineStart && minIndex < lineEnd && maxIndex < lineStart && maxIndex < lineEnd) || (minIndex > lineStart && minIndex > lineEnd && maxIndex > lineStart && maxIndex > lineEnd))) { int start = Math.max(lineStart, minIndex); int end = Math.min(lineEnd, maxIndex); float fontLineOffsetX = 0; float fontLineOffsetWidth = 0; // We can't use fontOffset as it is valid only for first glyph/line in the text. // We will grab first character in this line and calculate proper offset for this line. BitmapFont.Glyph lineFirst = fontData.getGlyph(displayText.charAt(lineStart)); if (lineFirst != null) { // See BitmapFontData.getGlyphs() for offset calculation. // If selection starts when line starts we want to offset width instead of moving the start as it looks better. if (start == lineStart) { fontLineOffsetWidth = lineFirst.fixedWidth ? 0 : -lineFirst.xoffset * fontData.scaleX - fontData.padLeft; } else { fontLineOffsetX = lineFirst.fixedWidth ? 0 : -lineFirst.xoffset * fontData.scaleX - fontData.padLeft; } } float selectionX = glyphPositions.get(start) - glyphPositions.get(lineStart); float selectionWidth = glyphPositions.get(end) - glyphPositions.get(start); selection.draw(batch, x + selectionX + fontLineOffsetX, y - lineHeight - offsetY, selectionWidth + fontLineOffsetWidth, font.getLineHeight()); } offsetY += font.getLineHeight(); i += 2; } } protected void drawText (Batch batch, BitmapFont font, float x, float y) { float offsetY = -(style.font.getLineHeight() - textHeight) / 2; for (int i = firstLineShowing * 2; i < (firstLineShowing + linesShowing) * 2 && i < linesBreak.size; i += 2) { font.draw(batch, displayText, x, y + offsetY, linesBreak.items[i], linesBreak.items[i + 1], 0, Align.left, false); offsetY -= font.getLineHeight(); } } protected void drawCursor (Drawable cursorPatch, Batch batch, BitmapFont font, float x, float y) { cursorPatch.draw(batch, x + getCursorX(), y + getCursorY(), cursorPatch.getMinWidth(), font.getLineHeight()); } protected void calculateOffsets () { super.calculateOffsets(); if (!this.text.equals(lastText)) { this.lastText = text; BitmapFont font = style.font; float maxWidthLine = this.getWidth() - (style.background != null ? style.background.getLeftWidth() + style.background.getRightWidth() : 0); linesBreak.clear(); int lineStart = 0; int lastSpace = 0; char lastCharacter; Pool<GlyphLayout> layoutPool = Pools.get(GlyphLayout.class); GlyphLayout layout = layoutPool.obtain(); for (int i = 0; i < text.length(); i++) { lastCharacter = text.charAt(i); if (lastCharacter == CARRIAGE_RETURN || lastCharacter == NEWLINE) { linesBreak.add(lineStart); linesBreak.add(i); lineStart = i + 1; } else { lastSpace = (continueCursor(i, 0) ? lastSpace : i); layout.setText(font, text.subSequence(lineStart, i + 1)); if (layout.width > maxWidthLine) { if (lineStart >= lastSpace) { lastSpace = i - 1; } linesBreak.add(lineStart); linesBreak.add(lastSpace + 1); lineStart = lastSpace + 1; lastSpace = lineStart; } } } layoutPool.free(layout); // Add last line if (lineStart < text.length()) { linesBreak.add(lineStart); linesBreak.add(text.length()); } showCursor(); } } protected InputListener createInputListener () { return new TextAreaListener(); } public void setSelection (int selectionStart, int selectionEnd) { super.setSelection(selectionStart, selectionEnd); updateCurrentLine(); } protected void moveCursor (boolean forward, boolean jump) { int count = forward ? 1 : -1; int index = (cursorLine * 2) + count; if (index >= 0 && index + 1 < linesBreak.size && linesBreak.items[index] == cursor && linesBreak.items[index + 1] == cursor) { cursorLine += count; if (jump) { super.moveCursor(forward, jump); } showCursor(); } else { super.moveCursor(forward, jump); } updateCurrentLine(); } protected boolean continueCursor (int index, int offset) { int pos = calculateCurrentLineIndex(index + offset); return super.continueCursor(index, offset) && (pos < 0 || pos >= linesBreak.size - 2 || (linesBreak.items[pos + 1] != index) || (linesBreak.items[pos + 1] == linesBreak.items[pos + 2])); } public int getCursorLine () { return cursorLine; } public int getFirstLineShowing () { return firstLineShowing; } public int getLinesShowing () { return linesShowing; } public float getCursorX () { float textOffset = 0; BitmapFont.BitmapFontData fontData = style.font.getData(); if (!(cursor >= glyphPositions.size || cursorLine * 2 >= linesBreak.size)) { int lineStart = linesBreak.items[cursorLine * 2]; float glyphOffset = 0; BitmapFont.Glyph lineFirst = fontData.getGlyph(displayText.charAt(lineStart)); if (lineFirst != null) { // See BitmapFontData.getGlyphs() for offset calculation. glyphOffset = lineFirst.fixedWidth ? 0 : -lineFirst.xoffset * fontData.scaleX - fontData.padLeft; } textOffset = glyphPositions.get(cursor) - glyphPositions.get(lineStart) + glyphOffset; } return textOffset + fontData.cursorX; } public float getCursorY () { BitmapFont font = style.font; return -(cursorLine - firstLineShowing + 1) * font.getLineHeight(); } /** Input listener for the text area **/ public class TextAreaListener extends TextFieldClickListener { protected void setCursorPosition (float x, float y) { moveOffset = -1; Drawable background = style.background; BitmapFont font = style.font; float height = getHeight(); if (background != null) { height -= background.getTopHeight(); x -= background.getLeftWidth(); } x = Math.max(0, x); if (background != null) { y -= background.getTopHeight(); } cursorLine = (int)Math.floor((height - y) / font.getLineHeight()) + firstLineShowing; cursorLine = Math.max(0, Math.min(cursorLine, getLines() - 1)); super.setCursorPosition(x, y); updateCurrentLine(); } public boolean keyDown (InputEvent event, int keycode) { boolean result = super.keyDown(event, keycode); if (hasKeyboardFocus()) { boolean repeat = false; boolean shift = Gdx.input.isKeyPressed(Input.Keys.SHIFT_LEFT) || Gdx.input.isKeyPressed(Input.Keys.SHIFT_RIGHT); if (keycode == Input.Keys.DOWN) { if (shift) { if (!hasSelection) { selectionStart = cursor; hasSelection = true; } } else { clearSelection(); } moveCursorLine(cursorLine + 1); repeat = true; } else if (keycode == Input.Keys.UP) { if (shift) { if (!hasSelection) { selectionStart = cursor; hasSelection = true; } } else { clearSelection(); } moveCursorLine(cursorLine - 1); repeat = true; } else { moveOffset = -1; } if (repeat) { scheduleKeyRepeatTask(keycode); } showCursor(); return true; } return result; } protected boolean checkFocusTraversal (char character) { return focusTraversal && character == TAB; } public boolean keyTyped (InputEvent event, char character) { boolean result = super.keyTyped(event, character); showCursor(); return result; } protected void goHome (boolean jump) { if (jump) { cursor = 0; } else if (cursorLine * 2 < linesBreak.size) { cursor = linesBreak.get(cursorLine * 2); } } protected void goEnd (boolean jump) { if (jump || cursorLine >= getLines()) { cursor = text.length(); } else if (cursorLine * 2 + 1 < linesBreak.size) { cursor = linesBreak.get(cursorLine * 2 + 1); } } } }
1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/scenes/scene2d/ui/VerticalGroup.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.FloatArray; import com.badlogic.gdx.utils.SnapshotArray; /** A group that lays out its children top to bottom vertically, with optional wrapping. {@link #getChildren()} can be sorted to * change the order of the actors (eg {@link Actor#setZIndex(int)}). This can be easier than using {@link Table} when actors need * to be inserted into or removed from the middle of the group. {@link #invalidate()} must be called after changing the children * order. * <p> * The preferred width is the largest preferred width of any child. The preferred height is the sum of the children's preferred * heights plus spacing. The preferred size is slightly different when {@link #wrap() wrap} is enabled. The min size is the * preferred size and the max size is 0. * <p> * Widgets are sized using their {@link Layout#getPrefWidth() preferred height}, so widgets which return 0 as their preferred * height will be given a height of 0. * @author Nathan Sweet */ public class VerticalGroup extends WidgetGroup { private float prefWidth, prefHeight, lastPrefWidth; private boolean sizeInvalid = true; private FloatArray columnSizes; // column height, column width, ... private int align = Align.top, columnAlign; private boolean reverse, round = true, wrap, expand; private float space, wrapSpace, fill, padTop, padLeft, padBottom, padRight; public VerticalGroup () { setTouchable(Touchable.childrenOnly); } public void invalidate () { super.invalidate(); sizeInvalid = true; } private void computeSize () { sizeInvalid = false; SnapshotArray<Actor> children = getChildren(); int n = children.size; prefWidth = 0; if (wrap) { prefHeight = 0; if (columnSizes == null) columnSizes = new FloatArray(); else columnSizes.clear(); FloatArray columnSizes = this.columnSizes; float space = this.space, wrapSpace = this.wrapSpace; float pad = padTop + padBottom, groupHeight = getHeight() - pad, x = 0, y = 0, columnWidth = 0; int i = 0, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (; i != n; i += incr) { Actor child = children.get(i); float width, height; if (child instanceof Layout) { Layout layout = (Layout)child; width = layout.getPrefWidth(); height = layout.getPrefHeight(); if (height > groupHeight) height = Math.max(groupHeight, layout.getMinHeight()); } else { width = child.getWidth(); height = child.getHeight(); } float incrY = height + (y > 0 ? space : 0); if (y + incrY > groupHeight && y > 0) { columnSizes.add(y); columnSizes.add(columnWidth); prefHeight = Math.max(prefHeight, y + pad); if (x > 0) x += wrapSpace; x += columnWidth; columnWidth = 0; y = 0; incrY = height; } y += incrY; columnWidth = Math.max(columnWidth, width); } columnSizes.add(y); columnSizes.add(columnWidth); prefHeight = Math.max(prefHeight, y + pad); if (x > 0) x += wrapSpace; prefWidth = Math.max(prefWidth, x + columnWidth); } else { prefHeight = padTop + padBottom + space * (n - 1); for (int i = 0; i < n; i++) { Actor child = children.get(i); if (child instanceof Layout) { Layout layout = (Layout)child; prefWidth = Math.max(prefWidth, layout.getPrefWidth()); prefHeight += layout.getPrefHeight(); } else { prefWidth = Math.max(prefWidth, child.getWidth()); prefHeight += child.getHeight(); } } } prefWidth += padLeft + padRight; if (round) { prefWidth = Math.round(prefWidth); prefHeight = Math.round(prefHeight); } } public void layout () { if (sizeInvalid) computeSize(); if (wrap) { layoutWrapped(); return; } boolean round = this.round; int align = this.align; float space = this.space, padLeft = this.padLeft, fill = this.fill; float columnWidth = (expand ? getWidth() : prefWidth) - padLeft - padRight, y = prefHeight - padTop + space; if ((align & Align.top) != 0) y += getHeight() - prefHeight; else if ((align & Align.bottom) == 0) // center y += (getHeight() - prefHeight) / 2; float startX; if ((align & Align.left) != 0) startX = padLeft; else if ((align & Align.right) != 0) startX = getWidth() - padRight - columnWidth; else startX = padLeft + (getWidth() - padLeft - padRight - columnWidth) / 2; align = columnAlign; SnapshotArray<Actor> children = getChildren(); int i = 0, n = children.size, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (int r = 0; i != n; i += incr) { Actor child = children.get(i); float width, height; Layout layout = null; if (child instanceof Layout) { layout = (Layout)child; width = layout.getPrefWidth(); height = layout.getPrefHeight(); } else { width = child.getWidth(); height = child.getHeight(); } if (fill > 0) width = columnWidth * fill; if (layout != null) { width = Math.max(width, layout.getMinWidth()); float maxWidth = layout.getMaxWidth(); if (maxWidth > 0 && width > maxWidth) width = maxWidth; } float x = startX; if ((align & Align.right) != 0) x += columnWidth - width; else if ((align & Align.left) == 0) // center x += (columnWidth - width) / 2; y -= height + space; if (round) child.setBounds(Math.round(x), Math.round(y), Math.round(width), Math.round(height)); else child.setBounds(x, y, width, height); if (layout != null) layout.validate(); } } private void layoutWrapped () { float prefWidth = getPrefWidth(); if (prefWidth != lastPrefWidth) { lastPrefWidth = prefWidth; invalidateHierarchy(); } int align = this.align; boolean round = this.round; float space = this.space, padLeft = this.padLeft, fill = this.fill, wrapSpace = this.wrapSpace; float maxHeight = prefHeight - padTop - padBottom; float columnX = padLeft, groupHeight = getHeight(); float yStart = prefHeight - padTop + space, y = 0, columnWidth = 0; if ((align & Align.right) != 0) columnX += getWidth() - prefWidth; else if ((align & Align.left) == 0) // center columnX += (getWidth() - prefWidth) / 2; if ((align & Align.top) != 0) yStart += groupHeight - prefHeight; else if ((align & Align.bottom) == 0) // center yStart += (groupHeight - prefHeight) / 2; groupHeight -= padTop; align = columnAlign; FloatArray columnSizes = this.columnSizes; SnapshotArray<Actor> children = getChildren(); int i = 0, n = children.size, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (int r = 0; i != n; i += incr) { Actor child = children.get(i); float width, height; Layout layout = null; if (child instanceof Layout) { layout = (Layout)child; width = layout.getPrefWidth(); height = layout.getPrefHeight(); if (height > groupHeight) height = Math.max(groupHeight, layout.getMinHeight()); } else { width = child.getWidth(); height = child.getHeight(); } if (y - height - space < padBottom || r == 0) { r = Math.min(r, columnSizes.size - 2); // In case an actor changed size without invalidating this layout. y = yStart; if ((align & Align.bottom) != 0) y -= maxHeight - columnSizes.get(r); else if ((align & Align.top) == 0) // center y -= (maxHeight - columnSizes.get(r)) / 2; if (r > 0) { columnX += wrapSpace; columnX += columnWidth; } columnWidth = columnSizes.get(r + 1); r += 2; } if (fill > 0) width = columnWidth * fill; if (layout != null) { width = Math.max(width, layout.getMinWidth()); float maxWidth = layout.getMaxWidth(); if (maxWidth > 0 && width > maxWidth) width = maxWidth; } float x = columnX; if ((align & Align.right) != 0) x += columnWidth - width; else if ((align & Align.left) == 0) // center x += (columnWidth - width) / 2; y -= height + space; if (round) child.setBounds(Math.round(x), Math.round(y), Math.round(width), Math.round(height)); else child.setBounds(x, y, width, height); if (layout != null) layout.validate(); } } public float getPrefWidth () { if (sizeInvalid) computeSize(); return prefWidth; } public float getPrefHeight () { if (wrap) return 0; if (sizeInvalid) computeSize(); return prefHeight; } /** When wrapping is enabled, the number of columns may be > 1. */ public int getColumns () { return wrap ? columnSizes.size >> 1 : 1; } /** If true (the default), positions and sizes are rounded to integers. */ public void setRound (boolean round) { this.round = round; } /** The children will be displayed last to first. */ public VerticalGroup reverse () { this.reverse = true; return this; } /** If true, the children will be displayed last to first. */ public VerticalGroup reverse (boolean reverse) { this.reverse = reverse; return this; } public boolean getReverse () { return reverse; } /** Sets the vertical space between children. */ public VerticalGroup space (float space) { this.space = space; return this; } public float getSpace () { return space; } /** Sets the horizontal space between columns when wrap is enabled. */ public VerticalGroup wrapSpace (float wrapSpace) { this.wrapSpace = wrapSpace; return this; } public float getWrapSpace () { return wrapSpace; } /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */ public VerticalGroup pad (float pad) { padTop = pad; padLeft = pad; padBottom = pad; padRight = pad; return this; } public VerticalGroup pad (float top, float left, float bottom, float right) { padTop = top; padLeft = left; padBottom = bottom; padRight = right; return this; } public VerticalGroup padTop (float padTop) { this.padTop = padTop; return this; } public VerticalGroup padLeft (float padLeft) { this.padLeft = padLeft; return this; } public VerticalGroup padBottom (float padBottom) { this.padBottom = padBottom; return this; } public VerticalGroup padRight (float padRight) { this.padRight = padRight; return this; } public float getPadTop () { return padTop; } public float getPadLeft () { return padLeft; } public float getPadBottom () { return padBottom; } public float getPadRight () { return padRight; } /** Sets the alignment of all widgets within the vertical group. Set to {@link Align#center}, {@link Align#top}, * {@link Align#bottom}, {@link Align#left}, {@link Align#right}, or any combination of those. */ public VerticalGroup align (int align) { this.align = align; return this; } /** Sets the alignment of all widgets within the vertical group to {@link Align#center}. This clears any other alignment. */ public VerticalGroup center () { align = Align.center; return this; } /** Sets {@link Align#top} and clears {@link Align#bottom} for the alignment of all widgets within the vertical group. */ public VerticalGroup top () { align |= Align.top; align &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of all widgets within the vertical group. */ public VerticalGroup left () { align |= Align.left; align &= ~Align.right; return this; } /** Sets {@link Align#bottom} and clears {@link Align#top} for the alignment of all widgets within the vertical group. */ public VerticalGroup bottom () { align |= Align.bottom; align &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of all widgets within the vertical group. */ public VerticalGroup right () { align |= Align.right; align &= ~Align.left; return this; } public int getAlign () { return align; } public VerticalGroup fill () { fill = 1f; return this; } /** @param fill 0 will use preferred height. */ public VerticalGroup fill (float fill) { this.fill = fill; return this; } public float getFill () { return fill; } public VerticalGroup expand () { expand = true; return this; } /** When true and wrap is false, the columns will take up the entire vertical group width. */ public VerticalGroup expand (boolean expand) { this.expand = expand; return this; } public boolean getExpand () { return expand; } /** Sets fill to 1 and expand to true. */ public VerticalGroup grow () { expand = true; fill = 1; return this; } /** If false, the widgets are arranged in a single column and the preferred height is the widget heights plus spacing. * <p> * If true, the widgets will wrap using the height of the vertical group. The preferred height of the group will be 0 as it is * expected that something external will set the height of the group. Widgets are sized to their preferred height unless it is * larger than the group's height, in which case they are sized to the group's height but not less than their minimum height. * Default is false. * <p> * When wrap is enabled, the group's preferred width depends on the height of the group. In some cases the parent of the group * will need to layout twice: once to set the height of the group and a second time to adjust to the group's new preferred * width. */ public VerticalGroup wrap () { wrap = true; return this; } public VerticalGroup wrap (boolean wrap) { this.wrap = wrap; return this; } public boolean getWrap () { return wrap; } /** Sets the vertical alignment of each column of widgets when {@link #wrap() wrapping} is enabled and sets the horizontal * alignment of widgets within each column. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom}, * {@link Align#left}, {@link Align#right}, or any combination of those. */ public VerticalGroup columnAlign (int columnAlign) { this.columnAlign = columnAlign; return this; } /** Sets the alignment of widgets within each column to {@link Align#center}. This clears any other alignment. */ public VerticalGroup columnCenter () { columnAlign = Align.center; return this; } /** Adds {@link Align#top} and clears {@link Align#bottom} for the alignment of each column of widgets when {@link #wrap() * wrapping} is enabled. */ public VerticalGroup columnTop () { columnAlign |= Align.top; columnAlign &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of widgets within each column. */ public VerticalGroup columnLeft () { columnAlign |= Align.left; columnAlign &= ~Align.right; return this; } /** Adds {@link Align#bottom} and clears {@link Align#top} for the alignment of each column of widgets when {@link #wrap() * wrapping} is enabled. */ public VerticalGroup columnBottom () { columnAlign |= Align.bottom; columnAlign &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of widgets within each column. */ public VerticalGroup columnRight () { columnAlign |= Align.right; columnAlign &= ~Align.left; return this; } protected void drawDebugBounds (ShapeRenderer shapes) { super.drawDebugBounds(shapes); if (!getDebug()) return; shapes.set(ShapeType.Line); if (getStage() != null) shapes.setColor(getStage().getDebugColor()); shapes.rect(getX() + padLeft, getY() + padBottom, getOriginX(), getOriginY(), getWidth() - padLeft - padRight, getHeight() - padBottom - padTop, getScaleX(), getScaleY(), getRotation()); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.scenes.scene2d.ui; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Touchable; import com.badlogic.gdx.scenes.scene2d.utils.Layout; import com.badlogic.gdx.utils.Align; import com.badlogic.gdx.utils.FloatArray; import com.badlogic.gdx.utils.SnapshotArray; /** A group that lays out its children top to bottom vertically, with optional wrapping. {@link #getChildren()} can be sorted to * change the order of the actors (eg {@link Actor#setZIndex(int)}). This can be easier than using {@link Table} when actors need * to be inserted into or removed from the middle of the group. {@link #invalidate()} must be called after changing the children * order. * <p> * The preferred width is the largest preferred width of any child. The preferred height is the sum of the children's preferred * heights plus spacing. The preferred size is slightly different when {@link #wrap() wrap} is enabled. The min size is the * preferred size and the max size is 0. * <p> * Widgets are sized using their {@link Layout#getPrefWidth() preferred height}, so widgets which return 0 as their preferred * height will be given a height of 0. * @author Nathan Sweet */ public class VerticalGroup extends WidgetGroup { private float prefWidth, prefHeight, lastPrefWidth; private boolean sizeInvalid = true; private FloatArray columnSizes; // column height, column width, ... private int align = Align.top, columnAlign; private boolean reverse, round = true, wrap, expand; private float space, wrapSpace, fill, padTop, padLeft, padBottom, padRight; public VerticalGroup () { setTouchable(Touchable.childrenOnly); } public void invalidate () { super.invalidate(); sizeInvalid = true; } private void computeSize () { sizeInvalid = false; SnapshotArray<Actor> children = getChildren(); int n = children.size; prefWidth = 0; if (wrap) { prefHeight = 0; if (columnSizes == null) columnSizes = new FloatArray(); else columnSizes.clear(); FloatArray columnSizes = this.columnSizes; float space = this.space, wrapSpace = this.wrapSpace; float pad = padTop + padBottom, groupHeight = getHeight() - pad, x = 0, y = 0, columnWidth = 0; int i = 0, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (; i != n; i += incr) { Actor child = children.get(i); float width, height; if (child instanceof Layout) { Layout layout = (Layout)child; width = layout.getPrefWidth(); height = layout.getPrefHeight(); if (height > groupHeight) height = Math.max(groupHeight, layout.getMinHeight()); } else { width = child.getWidth(); height = child.getHeight(); } float incrY = height + (y > 0 ? space : 0); if (y + incrY > groupHeight && y > 0) { columnSizes.add(y); columnSizes.add(columnWidth); prefHeight = Math.max(prefHeight, y + pad); if (x > 0) x += wrapSpace; x += columnWidth; columnWidth = 0; y = 0; incrY = height; } y += incrY; columnWidth = Math.max(columnWidth, width); } columnSizes.add(y); columnSizes.add(columnWidth); prefHeight = Math.max(prefHeight, y + pad); if (x > 0) x += wrapSpace; prefWidth = Math.max(prefWidth, x + columnWidth); } else { prefHeight = padTop + padBottom + space * (n - 1); for (int i = 0; i < n; i++) { Actor child = children.get(i); if (child instanceof Layout) { Layout layout = (Layout)child; prefWidth = Math.max(prefWidth, layout.getPrefWidth()); prefHeight += layout.getPrefHeight(); } else { prefWidth = Math.max(prefWidth, child.getWidth()); prefHeight += child.getHeight(); } } } prefWidth += padLeft + padRight; if (round) { prefWidth = (float)Math.ceil(prefWidth); prefHeight = (float)Math.ceil(prefHeight); } } public void layout () { if (sizeInvalid) computeSize(); if (wrap) { layoutWrapped(); return; } boolean round = this.round; int align = this.align; float space = this.space, padLeft = this.padLeft, fill = this.fill; float columnWidth = (expand ? getWidth() : prefWidth) - padLeft - padRight, y = prefHeight - padTop + space; if ((align & Align.top) != 0) y += getHeight() - prefHeight; else if ((align & Align.bottom) == 0) // center y += (getHeight() - prefHeight) / 2; float startX; if ((align & Align.left) != 0) startX = padLeft; else if ((align & Align.right) != 0) startX = getWidth() - padRight - columnWidth; else startX = padLeft + (getWidth() - padLeft - padRight - columnWidth) / 2; align = columnAlign; SnapshotArray<Actor> children = getChildren(); int i = 0, n = children.size, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (int r = 0; i != n; i += incr) { Actor child = children.get(i); float width, height; Layout layout = null; if (child instanceof Layout) { layout = (Layout)child; width = layout.getPrefWidth(); height = layout.getPrefHeight(); } else { width = child.getWidth(); height = child.getHeight(); } if (fill > 0) width = columnWidth * fill; if (layout != null) { width = Math.max(width, layout.getMinWidth()); float maxWidth = layout.getMaxWidth(); if (maxWidth > 0 && width > maxWidth) width = maxWidth; } float x = startX; if ((align & Align.right) != 0) x += columnWidth - width; else if ((align & Align.left) == 0) // center x += (columnWidth - width) / 2; y -= height + space; if (round) child.setBounds((float)Math.floor(x), (float)Math.floor(y), (float)Math.ceil(width), (float)Math.ceil(height)); else child.setBounds(x, y, width, height); if (layout != null) layout.validate(); } } private void layoutWrapped () { float prefWidth = getPrefWidth(); if (prefWidth != lastPrefWidth) { lastPrefWidth = prefWidth; invalidateHierarchy(); } int align = this.align; boolean round = this.round; float space = this.space, padLeft = this.padLeft, fill = this.fill, wrapSpace = this.wrapSpace; float maxHeight = prefHeight - padTop - padBottom; float columnX = padLeft, groupHeight = getHeight(); float yStart = prefHeight - padTop + space, y = 0, columnWidth = 0; if ((align & Align.right) != 0) columnX += getWidth() - prefWidth; else if ((align & Align.left) == 0) // center columnX += (getWidth() - prefWidth) / 2; if ((align & Align.top) != 0) yStart += groupHeight - prefHeight; else if ((align & Align.bottom) == 0) // center yStart += (groupHeight - prefHeight) / 2; groupHeight -= padTop; align = columnAlign; FloatArray columnSizes = this.columnSizes; SnapshotArray<Actor> children = getChildren(); int i = 0, n = children.size, incr = 1; if (reverse) { i = n - 1; n = -1; incr = -1; } for (int r = 0; i != n; i += incr) { Actor child = children.get(i); float width, height; Layout layout = null; if (child instanceof Layout) { layout = (Layout)child; width = layout.getPrefWidth(); height = layout.getPrefHeight(); if (height > groupHeight) height = Math.max(groupHeight, layout.getMinHeight()); } else { width = child.getWidth(); height = child.getHeight(); } if (y - height - space < padBottom || r == 0) { r = Math.min(r, columnSizes.size - 2); // In case an actor changed size without invalidating this layout. y = yStart; if ((align & Align.bottom) != 0) y -= maxHeight - columnSizes.get(r); else if ((align & Align.top) == 0) // center y -= (maxHeight - columnSizes.get(r)) / 2; if (r > 0) { columnX += wrapSpace; columnX += columnWidth; } columnWidth = columnSizes.get(r + 1); r += 2; } if (fill > 0) width = columnWidth * fill; if (layout != null) { width = Math.max(width, layout.getMinWidth()); float maxWidth = layout.getMaxWidth(); if (maxWidth > 0 && width > maxWidth) width = maxWidth; } float x = columnX; if ((align & Align.right) != 0) x += columnWidth - width; else if ((align & Align.left) == 0) // center x += (columnWidth - width) / 2; y -= height + space; if (round) child.setBounds((float)Math.floor(x), (float)Math.floor(y), (float)Math.ceil(width), (float)Math.ceil(height)); else child.setBounds(x, y, width, height); if (layout != null) layout.validate(); } } public float getPrefWidth () { if (sizeInvalid) computeSize(); return prefWidth; } public float getPrefHeight () { if (wrap) return 0; if (sizeInvalid) computeSize(); return prefHeight; } /** When wrapping is enabled, the number of columns may be > 1. */ public int getColumns () { return wrap ? columnSizes.size >> 1 : 1; } /** If true (the default), positions and sizes are rounded to integers. */ public void setRound (boolean round) { this.round = round; } /** The children will be displayed last to first. */ public VerticalGroup reverse () { this.reverse = true; return this; } /** If true, the children will be displayed last to first. */ public VerticalGroup reverse (boolean reverse) { this.reverse = reverse; return this; } public boolean getReverse () { return reverse; } /** Sets the vertical space between children. */ public VerticalGroup space (float space) { this.space = space; return this; } public float getSpace () { return space; } /** Sets the horizontal space between columns when wrap is enabled. */ public VerticalGroup wrapSpace (float wrapSpace) { this.wrapSpace = wrapSpace; return this; } public float getWrapSpace () { return wrapSpace; } /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */ public VerticalGroup pad (float pad) { padTop = pad; padLeft = pad; padBottom = pad; padRight = pad; return this; } public VerticalGroup pad (float top, float left, float bottom, float right) { padTop = top; padLeft = left; padBottom = bottom; padRight = right; return this; } public VerticalGroup padTop (float padTop) { this.padTop = padTop; return this; } public VerticalGroup padLeft (float padLeft) { this.padLeft = padLeft; return this; } public VerticalGroup padBottom (float padBottom) { this.padBottom = padBottom; return this; } public VerticalGroup padRight (float padRight) { this.padRight = padRight; return this; } public float getPadTop () { return padTop; } public float getPadLeft () { return padLeft; } public float getPadBottom () { return padBottom; } public float getPadRight () { return padRight; } /** Sets the alignment of all widgets within the vertical group. Set to {@link Align#center}, {@link Align#top}, * {@link Align#bottom}, {@link Align#left}, {@link Align#right}, or any combination of those. */ public VerticalGroup align (int align) { this.align = align; return this; } /** Sets the alignment of all widgets within the vertical group to {@link Align#center}. This clears any other alignment. */ public VerticalGroup center () { align = Align.center; return this; } /** Sets {@link Align#top} and clears {@link Align#bottom} for the alignment of all widgets within the vertical group. */ public VerticalGroup top () { align |= Align.top; align &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of all widgets within the vertical group. */ public VerticalGroup left () { align |= Align.left; align &= ~Align.right; return this; } /** Sets {@link Align#bottom} and clears {@link Align#top} for the alignment of all widgets within the vertical group. */ public VerticalGroup bottom () { align |= Align.bottom; align &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of all widgets within the vertical group. */ public VerticalGroup right () { align |= Align.right; align &= ~Align.left; return this; } public int getAlign () { return align; } public VerticalGroup fill () { fill = 1f; return this; } /** @param fill 0 will use preferred height. */ public VerticalGroup fill (float fill) { this.fill = fill; return this; } public float getFill () { return fill; } public VerticalGroup expand () { expand = true; return this; } /** When true and wrap is false, the columns will take up the entire vertical group width. */ public VerticalGroup expand (boolean expand) { this.expand = expand; return this; } public boolean getExpand () { return expand; } /** Sets fill to 1 and expand to true. */ public VerticalGroup grow () { expand = true; fill = 1; return this; } /** If false, the widgets are arranged in a single column and the preferred height is the widget heights plus spacing. * <p> * If true, the widgets will wrap using the height of the vertical group. The preferred height of the group will be 0 as it is * expected that something external will set the height of the group. Widgets are sized to their preferred height unless it is * larger than the group's height, in which case they are sized to the group's height but not less than their minimum height. * Default is false. * <p> * When wrap is enabled, the group's preferred width depends on the height of the group. In some cases the parent of the group * will need to layout twice: once to set the height of the group and a second time to adjust to the group's new preferred * width. */ public VerticalGroup wrap () { wrap = true; return this; } public VerticalGroup wrap (boolean wrap) { this.wrap = wrap; return this; } public boolean getWrap () { return wrap; } /** Sets the vertical alignment of each column of widgets when {@link #wrap() wrapping} is enabled and sets the horizontal * alignment of widgets within each column. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom}, * {@link Align#left}, {@link Align#right}, or any combination of those. */ public VerticalGroup columnAlign (int columnAlign) { this.columnAlign = columnAlign; return this; } /** Sets the alignment of widgets within each column to {@link Align#center}. This clears any other alignment. */ public VerticalGroup columnCenter () { columnAlign = Align.center; return this; } /** Adds {@link Align#top} and clears {@link Align#bottom} for the alignment of each column of widgets when {@link #wrap() * wrapping} is enabled. */ public VerticalGroup columnTop () { columnAlign |= Align.top; columnAlign &= ~Align.bottom; return this; } /** Adds {@link Align#left} and clears {@link Align#right} for the alignment of widgets within each column. */ public VerticalGroup columnLeft () { columnAlign |= Align.left; columnAlign &= ~Align.right; return this; } /** Adds {@link Align#bottom} and clears {@link Align#top} for the alignment of each column of widgets when {@link #wrap() * wrapping} is enabled. */ public VerticalGroup columnBottom () { columnAlign |= Align.bottom; columnAlign &= ~Align.top; return this; } /** Adds {@link Align#right} and clears {@link Align#left} for the alignment of widgets within each column. */ public VerticalGroup columnRight () { columnAlign |= Align.right; columnAlign &= ~Align.left; return this; } protected void drawDebugBounds (ShapeRenderer shapes) { super.drawDebugBounds(shapes); if (!getDebug()) return; shapes.set(ShapeType.Line); if (getStage() != null) shapes.setColor(getStage().getDebugColor()); shapes.rect(getX() + padLeft, getY() + padBottom, getOriginX(), getOriginY(), getWidth() - padLeft - padRight, getHeight() - padBottom - padTop, getScaleX(), getScaleY(), getRotation()); } }
1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/ContactCallbackEvent.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; public final class ContactCallbackEvent { public final static int TYPE_MASK = 0x0F; public final static int BY_MASK = 12; public final static int FILTERED = 1; public final static int INCLUDE_POINT = 2; public final static int BY_WRAPPER = 4; public final static int BY_MANIFOLD = 4; public final static int BY_OBJECT = 8; public final static int BY_VALUE = 12; public final static int SHIFT_ON_ADDED = 0; public final static int SHIFT_ON_PROCESSED = 4; public final static int SHIFT_ON_DESTROYED = 8; public final static int SHIFT_ON_STARTED = 12; public final static int SHIFT_ON_ENDED = 16; public final static int ON_ADDED_UNFILTERED_WRAPPER = (BY_WRAPPER) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_OBJECT = (BY_OBJECT) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_VALUE = (BY_VALUE) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_WRAPPER_INCLUDEPOINT = (BY_WRAPPER | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_OBJECT_INCLUDEPOINT = (BY_OBJECT | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_VALUE_INCLUDEPOINT = (BY_VALUE | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_WRAPPER = (FILTERED | BY_WRAPPER) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_OBJECT = (FILTERED | BY_OBJECT) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_VALUE = (FILTERED | BY_VALUE) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_WRAPPER_INCLUDEPOINT = (FILTERED | BY_WRAPPER | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_OBJECT_INCLUDEPOINT = (FILTERED | BY_OBJECT | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_VALUE_INCLUDEPOINT = (FILTERED | BY_VALUE | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_PROCESSED_UNFILTERED_OBJECT = (BY_OBJECT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_UNFILTERED_VALUE = (BY_VALUE) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_UNFILTERED_OBJECT_INCLUDEPOINT = (BY_OBJECT | INCLUDE_POINT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_UNFILTERED_VALUE_INCLUDEPOINT = (BY_VALUE | INCLUDE_POINT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_FILTERED_OBJECT = (FILTERED | BY_OBJECT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_FILTERED_VALUE = (FILTERED | BY_VALUE) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_FILTERED_OBJECT_INCLUDEPOINT = (FILTERED | BY_OBJECT | INCLUDE_POINT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_FILTERED_VALUE_INCLUDEPOINT = (FILTERED | BY_VALUE | INCLUDE_POINT) << SHIFT_ON_PROCESSED; public final static int ON_DESTROYED = BY_VALUE << SHIFT_ON_DESTROYED; public final static int ON_STARTED_UNFILTERED_MANIFOLD = (BY_MANIFOLD) << SHIFT_ON_STARTED; public final static int ON_STARTED_UNFILTERED_OBJECT = (BY_OBJECT) << SHIFT_ON_STARTED; public final static int ON_STARTED_UNFILTERED_VALUE = (BY_VALUE) << SHIFT_ON_STARTED; public final static int ON_STARTED_FILTERED_MANIFOLD = (FILTERED | BY_MANIFOLD) << SHIFT_ON_STARTED; public final static int ON_STARTED_FILTERED_OBJECT = (FILTERED | BY_OBJECT) << SHIFT_ON_STARTED; public final static int ON_STARTED_FILTERED_VALUE = (FILTERED | BY_VALUE) << SHIFT_ON_STARTED; public final static int ON_ENDED_UNFILTERED_MANIFOLD = (BY_MANIFOLD) << SHIFT_ON_ENDED; public final static int ON_ENDED_UNFILTERED_OBJECT = (BY_OBJECT) << SHIFT_ON_ENDED; public final static int ON_ENDED_UNFILTERED_VALUE = (BY_VALUE) << SHIFT_ON_ENDED; public final static int ON_ENDED_FILTERED_MANIFOLD = (FILTERED | BY_MANIFOLD) << SHIFT_ON_ENDED; public final static int ON_ENDED_FILTERED_OBJECT = (FILTERED | BY_OBJECT) << SHIFT_ON_ENDED; public final static int ON_ENDED_FILTERED_VALUE = (FILTERED | BY_VALUE) << SHIFT_ON_ENDED; }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; public final class ContactCallbackEvent { public final static int TYPE_MASK = 0x0F; public final static int BY_MASK = 12; public final static int FILTERED = 1; public final static int INCLUDE_POINT = 2; public final static int BY_WRAPPER = 4; public final static int BY_MANIFOLD = 4; public final static int BY_OBJECT = 8; public final static int BY_VALUE = 12; public final static int SHIFT_ON_ADDED = 0; public final static int SHIFT_ON_PROCESSED = 4; public final static int SHIFT_ON_DESTROYED = 8; public final static int SHIFT_ON_STARTED = 12; public final static int SHIFT_ON_ENDED = 16; public final static int ON_ADDED_UNFILTERED_WRAPPER = (BY_WRAPPER) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_OBJECT = (BY_OBJECT) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_VALUE = (BY_VALUE) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_WRAPPER_INCLUDEPOINT = (BY_WRAPPER | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_OBJECT_INCLUDEPOINT = (BY_OBJECT | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_UNFILTERED_VALUE_INCLUDEPOINT = (BY_VALUE | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_WRAPPER = (FILTERED | BY_WRAPPER) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_OBJECT = (FILTERED | BY_OBJECT) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_VALUE = (FILTERED | BY_VALUE) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_WRAPPER_INCLUDEPOINT = (FILTERED | BY_WRAPPER | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_OBJECT_INCLUDEPOINT = (FILTERED | BY_OBJECT | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_ADDED_FILTERED_VALUE_INCLUDEPOINT = (FILTERED | BY_VALUE | INCLUDE_POINT) << SHIFT_ON_ADDED; public final static int ON_PROCESSED_UNFILTERED_OBJECT = (BY_OBJECT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_UNFILTERED_VALUE = (BY_VALUE) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_UNFILTERED_OBJECT_INCLUDEPOINT = (BY_OBJECT | INCLUDE_POINT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_UNFILTERED_VALUE_INCLUDEPOINT = (BY_VALUE | INCLUDE_POINT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_FILTERED_OBJECT = (FILTERED | BY_OBJECT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_FILTERED_VALUE = (FILTERED | BY_VALUE) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_FILTERED_OBJECT_INCLUDEPOINT = (FILTERED | BY_OBJECT | INCLUDE_POINT) << SHIFT_ON_PROCESSED; public final static int ON_PROCESSED_FILTERED_VALUE_INCLUDEPOINT = (FILTERED | BY_VALUE | INCLUDE_POINT) << SHIFT_ON_PROCESSED; public final static int ON_DESTROYED = BY_VALUE << SHIFT_ON_DESTROYED; public final static int ON_STARTED_UNFILTERED_MANIFOLD = (BY_MANIFOLD) << SHIFT_ON_STARTED; public final static int ON_STARTED_UNFILTERED_OBJECT = (BY_OBJECT) << SHIFT_ON_STARTED; public final static int ON_STARTED_UNFILTERED_VALUE = (BY_VALUE) << SHIFT_ON_STARTED; public final static int ON_STARTED_FILTERED_MANIFOLD = (FILTERED | BY_MANIFOLD) << SHIFT_ON_STARTED; public final static int ON_STARTED_FILTERED_OBJECT = (FILTERED | BY_OBJECT) << SHIFT_ON_STARTED; public final static int ON_STARTED_FILTERED_VALUE = (FILTERED | BY_VALUE) << SHIFT_ON_STARTED; public final static int ON_ENDED_UNFILTERED_MANIFOLD = (BY_MANIFOLD) << SHIFT_ON_ENDED; public final static int ON_ENDED_UNFILTERED_OBJECT = (BY_OBJECT) << SHIFT_ON_ENDED; public final static int ON_ENDED_UNFILTERED_VALUE = (BY_VALUE) << SHIFT_ON_ENDED; public final static int ON_ENDED_FILTERED_MANIFOLD = (FILTERED | BY_MANIFOLD) << SHIFT_ON_ENDED; public final static int ON_ENDED_FILTERED_OBJECT = (FILTERED | BY_OBJECT) << SHIFT_ON_ENDED; public final static int ON_ENDED_FILTERED_VALUE = (FILTERED | BY_VALUE) << SHIFT_ON_ENDED; }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btBox2dShape.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.math.Vector3; public class btBox2dShape extends btPolyhedralConvexShape { private long swigCPtr; protected btBox2dShape (final String className, long cPtr, boolean cMemoryOwn) { super(className, CollisionJNI.btBox2dShape_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btBox2dShape, normally you should not need this constructor it's intended for low-level usage. */ public btBox2dShape (long cPtr, boolean cMemoryOwn) { this("btBox2dShape", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(CollisionJNI.btBox2dShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btBox2dShape obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btBox2dShape(swigCPtr); } swigCPtr = 0; } super.delete(); } public long operatorNew (long sizeInBytes) { return CollisionJNI.btBox2dShape_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDelete (long ptr) { CollisionJNI.btBox2dShape_operatorDelete__SWIG_0(swigCPtr, this, ptr); } public long operatorNew (long arg0, long ptr) { return CollisionJNI.btBox2dShape_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDelete (long arg0, long arg1) { CollisionJNI.btBox2dShape_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1); } public long operatorNewArray (long sizeInBytes) { return CollisionJNI.btBox2dShape_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDeleteArray (long ptr) { CollisionJNI.btBox2dShape_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr); } public long operatorNewArray (long arg0, long ptr) { return CollisionJNI.btBox2dShape_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDeleteArray (long arg0, long arg1) { CollisionJNI.btBox2dShape_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1); } public Vector3 getHalfExtentsWithMargin () { return CollisionJNI.btBox2dShape_getHalfExtentsWithMargin(swigCPtr, this); } public Vector3 getHalfExtentsWithoutMargin () { return CollisionJNI.btBox2dShape_getHalfExtentsWithoutMargin(swigCPtr, this); } public btBox2dShape (Vector3 boxHalfExtents) { this(CollisionJNI.new_btBox2dShape(boxHalfExtents), true); } public int getVertexCount () { return CollisionJNI.btBox2dShape_getVertexCount(swigCPtr, this); } public btVector3 getVertices () { long cPtr = CollisionJNI.btBox2dShape_getVertices(swigCPtr, this); return (cPtr == 0) ? null : new btVector3(cPtr, false); } public btVector3 getNormals () { long cPtr = CollisionJNI.btBox2dShape_getNormals(swigCPtr, this); return (cPtr == 0) ? null : new btVector3(cPtr, false); } public Vector3 getCentroid () { return CollisionJNI.btBox2dShape_getCentroid(swigCPtr, this); } public void getPlaneEquation (btVector4 plane, int i) { CollisionJNI.btBox2dShape_getPlaneEquation(swigCPtr, this, btVector4.getCPtr(plane), plane, i); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.math.Vector3; public class btBox2dShape extends btPolyhedralConvexShape { private long swigCPtr; protected btBox2dShape (final String className, long cPtr, boolean cMemoryOwn) { super(className, CollisionJNI.btBox2dShape_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btBox2dShape, normally you should not need this constructor it's intended for low-level usage. */ public btBox2dShape (long cPtr, boolean cMemoryOwn) { this("btBox2dShape", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(CollisionJNI.btBox2dShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btBox2dShape obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btBox2dShape(swigCPtr); } swigCPtr = 0; } super.delete(); } public long operatorNew (long sizeInBytes) { return CollisionJNI.btBox2dShape_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDelete (long ptr) { CollisionJNI.btBox2dShape_operatorDelete__SWIG_0(swigCPtr, this, ptr); } public long operatorNew (long arg0, long ptr) { return CollisionJNI.btBox2dShape_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDelete (long arg0, long arg1) { CollisionJNI.btBox2dShape_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1); } public long operatorNewArray (long sizeInBytes) { return CollisionJNI.btBox2dShape_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDeleteArray (long ptr) { CollisionJNI.btBox2dShape_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr); } public long operatorNewArray (long arg0, long ptr) { return CollisionJNI.btBox2dShape_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDeleteArray (long arg0, long arg1) { CollisionJNI.btBox2dShape_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1); } public Vector3 getHalfExtentsWithMargin () { return CollisionJNI.btBox2dShape_getHalfExtentsWithMargin(swigCPtr, this); } public Vector3 getHalfExtentsWithoutMargin () { return CollisionJNI.btBox2dShape_getHalfExtentsWithoutMargin(swigCPtr, this); } public btBox2dShape (Vector3 boxHalfExtents) { this(CollisionJNI.new_btBox2dShape(boxHalfExtents), true); } public int getVertexCount () { return CollisionJNI.btBox2dShape_getVertexCount(swigCPtr, this); } public btVector3 getVertices () { long cPtr = CollisionJNI.btBox2dShape_getVertices(swigCPtr, this); return (cPtr == 0) ? null : new btVector3(cPtr, false); } public btVector3 getNormals () { long cPtr = CollisionJNI.btBox2dShape_getNormals(swigCPtr, this); return (cPtr == 0) ? null : new btVector3(cPtr, false); } public Vector3 getCentroid () { return CollisionJNI.btBox2dShape_getCentroid(swigCPtr, this); } public void getPlaneEquation (btVector4 plane, int i) { CollisionJNI.btBox2dShape_getPlaneEquation(swigCPtr, this, btVector4.getCPtr(plane), plane, i); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/joints/FrictionJoint.java
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ /** * Created at 7:27:32 AM Jan 20, 2011 */ package org.jbox2d.dynamics.joints; import org.jbox2d.common.Mat22; import org.jbox2d.common.MathUtils; import org.jbox2d.common.Rot; import org.jbox2d.common.Vec2; import org.jbox2d.dynamics.SolverData; import org.jbox2d.pooling.IWorldPool; /** @author Daniel Murphy */ public class FrictionJoint extends Joint { private final Vec2 m_localAnchorA; private final Vec2 m_localAnchorB; // Solver shared private final Vec2 m_linearImpulse; private float m_angularImpulse; private float m_maxForce; private float m_maxTorque; // Solver temp private int m_indexA; private int m_indexB; private final Vec2 m_rA = new Vec2(); private final Vec2 m_rB = new Vec2(); private final Vec2 m_localCenterA = new Vec2(); private final Vec2 m_localCenterB = new Vec2(); private float m_invMassA; private float m_invMassB; private float m_invIA; private float m_invIB; private final Mat22 m_linearMass = new Mat22(); private float m_angularMass; protected FrictionJoint (IWorldPool argWorldPool, FrictionJointDef def) { super(argWorldPool, def); m_localAnchorA = new Vec2(def.localAnchorA); m_localAnchorB = new Vec2(def.localAnchorB); m_linearImpulse = new Vec2(); m_angularImpulse = 0.0f; m_maxForce = def.maxForce; m_maxTorque = def.maxTorque; } public Vec2 getLocalAnchorA () { return m_localAnchorA; } public Vec2 getLocalAnchorB () { return m_localAnchorB; } @Override public void getAnchorA (Vec2 argOut) { m_bodyA.getWorldPointToOut(m_localAnchorA, argOut); } @Override public void getAnchorB (Vec2 argOut) { m_bodyB.getWorldPointToOut(m_localAnchorB, argOut); } @Override public void getReactionForce (float inv_dt, Vec2 argOut) { argOut.set(m_linearImpulse).mulLocal(inv_dt); } @Override public float getReactionTorque (float inv_dt) { return inv_dt * m_angularImpulse; } public void setMaxForce (float force) { assert (force >= 0.0f); m_maxForce = force; } public float getMaxForce () { return m_maxForce; } public void setMaxTorque (float torque) { assert (torque >= 0.0f); m_maxTorque = torque; } public float getMaxTorque () { return m_maxTorque; } /** @see org.jbox2d.dynamics.joints.Joint#initVelocityConstraints(org.jbox2d.dynamics.TimeStep) */ @Override public void initVelocityConstraints (final SolverData data) { m_indexA = m_bodyA.m_islandIndex; m_indexB = m_bodyB.m_islandIndex; m_localCenterA.set(m_bodyA.m_sweep.localCenter); m_localCenterB.set(m_bodyB.m_sweep.localCenter); m_invMassA = m_bodyA.m_invMass; m_invMassB = m_bodyB.m_invMass; m_invIA = m_bodyA.m_invI; m_invIB = m_bodyB.m_invI; float aA = data.positions[m_indexA].a; Vec2 vA = data.velocities[m_indexA].v; float wA = data.velocities[m_indexA].w; float aB = data.positions[m_indexB].a; Vec2 vB = data.velocities[m_indexB].v; float wB = data.velocities[m_indexB].w; final Vec2 temp = pool.popVec2(); final Rot qA = pool.popRot(); final Rot qB = pool.popRot(); qA.set(aA); qB.set(aB); // Compute the effective mass matrix. Rot.mulToOutUnsafe(qA, temp.set(m_localAnchorA).subLocal(m_localCenterA), m_rA); Rot.mulToOutUnsafe(qB, temp.set(m_localAnchorB).subLocal(m_localCenterB), m_rB); // J = [-I -r1_skew I r2_skew] // [ 0 -1 0 1] // r_skew = [-ry; rx] // Matlab // K = [ mA+r1y^2*iA+mB+r2y^2*iB, -r1y*iA*r1x-r2y*iB*r2x, -r1y*iA-r2y*iB] // [ -r1y*iA*r1x-r2y*iB*r2x, mA+r1x^2*iA+mB+r2x^2*iB, r1x*iA+r2x*iB] // [ -r1y*iA-r2y*iB, r1x*iA+r2x*iB, iA+iB] float mA = m_invMassA, mB = m_invMassB; float iA = m_invIA, iB = m_invIB; final Mat22 K = pool.popMat22(); K.ex.x = mA + mB + iA * m_rA.y * m_rA.y + iB * m_rB.y * m_rB.y; K.ex.y = -iA * m_rA.x * m_rA.y - iB * m_rB.x * m_rB.y; K.ey.x = K.ex.y; K.ey.y = mA + mB + iA * m_rA.x * m_rA.x + iB * m_rB.x * m_rB.x; K.invertToOut(m_linearMass); m_angularMass = iA + iB; if (m_angularMass > 0.0f) { m_angularMass = 1.0f / m_angularMass; } if (data.step.warmStarting) { // Scale impulses to support a variable time step. m_linearImpulse.mulLocal(data.step.dtRatio); m_angularImpulse *= data.step.dtRatio; final Vec2 P = pool.popVec2(); P.set(m_linearImpulse); temp.set(P).mulLocal(mA); vA.subLocal(temp); wA -= iA * (Vec2.cross(m_rA, P) + m_angularImpulse); temp.set(P).mulLocal(mB); vB.addLocal(temp); wB += iB * (Vec2.cross(m_rB, P) + m_angularImpulse); pool.pushVec2(1); } else { m_linearImpulse.setZero(); m_angularImpulse = 0.0f; } // data.velocities[m_indexA].v.set(vA); if (data.velocities[m_indexA].w != wA) { assert (data.velocities[m_indexA].w != wA); } data.velocities[m_indexA].w = wA; // data.velocities[m_indexB].v.set(vB); data.velocities[m_indexB].w = wB; pool.pushRot(2); pool.pushVec2(1); pool.pushMat22(1); } @Override public void solveVelocityConstraints (final SolverData data) { Vec2 vA = data.velocities[m_indexA].v; float wA = data.velocities[m_indexA].w; Vec2 vB = data.velocities[m_indexB].v; float wB = data.velocities[m_indexB].w; float mA = m_invMassA, mB = m_invMassB; float iA = m_invIA, iB = m_invIB; float h = data.step.dt; // Solve angular friction { float Cdot = wB - wA; float impulse = -m_angularMass * Cdot; float oldImpulse = m_angularImpulse; float maxImpulse = h * m_maxTorque; m_angularImpulse = MathUtils.clamp(m_angularImpulse + impulse, -maxImpulse, maxImpulse); impulse = m_angularImpulse - oldImpulse; wA -= iA * impulse; wB += iB * impulse; } // Solve linear friction { final Vec2 Cdot = pool.popVec2(); final Vec2 temp = pool.popVec2(); Vec2.crossToOutUnsafe(wA, m_rA, temp); Vec2.crossToOutUnsafe(wB, m_rB, Cdot); Cdot.addLocal(vB).subLocal(vA).subLocal(temp); final Vec2 impulse = pool.popVec2(); Mat22.mulToOutUnsafe(m_linearMass, Cdot, impulse); impulse.negateLocal(); final Vec2 oldImpulse = pool.popVec2(); oldImpulse.set(m_linearImpulse); m_linearImpulse.addLocal(impulse); float maxImpulse = h * m_maxForce; if (m_linearImpulse.lengthSquared() > maxImpulse * maxImpulse) { m_linearImpulse.normalize(); m_linearImpulse.mulLocal(maxImpulse); } impulse.set(m_linearImpulse).subLocal(oldImpulse); temp.set(impulse).mulLocal(mA); vA.subLocal(temp); wA -= iA * Vec2.cross(m_rA, impulse); temp.set(impulse).mulLocal(mB); vB.addLocal(temp); wB += iB * Vec2.cross(m_rB, impulse); } // data.velocities[m_indexA].v.set(vA); if (data.velocities[m_indexA].w != wA) { assert (data.velocities[m_indexA].w != wA); } data.velocities[m_indexA].w = wA; // data.velocities[m_indexB].v.set(vB); data.velocities[m_indexB].w = wB; pool.pushVec2(4); } @Override public boolean solvePositionConstraints (final SolverData data) { return true; } }
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ /** * Created at 7:27:32 AM Jan 20, 2011 */ package org.jbox2d.dynamics.joints; import org.jbox2d.common.Mat22; import org.jbox2d.common.MathUtils; import org.jbox2d.common.Rot; import org.jbox2d.common.Vec2; import org.jbox2d.dynamics.SolverData; import org.jbox2d.pooling.IWorldPool; /** @author Daniel Murphy */ public class FrictionJoint extends Joint { private final Vec2 m_localAnchorA; private final Vec2 m_localAnchorB; // Solver shared private final Vec2 m_linearImpulse; private float m_angularImpulse; private float m_maxForce; private float m_maxTorque; // Solver temp private int m_indexA; private int m_indexB; private final Vec2 m_rA = new Vec2(); private final Vec2 m_rB = new Vec2(); private final Vec2 m_localCenterA = new Vec2(); private final Vec2 m_localCenterB = new Vec2(); private float m_invMassA; private float m_invMassB; private float m_invIA; private float m_invIB; private final Mat22 m_linearMass = new Mat22(); private float m_angularMass; protected FrictionJoint (IWorldPool argWorldPool, FrictionJointDef def) { super(argWorldPool, def); m_localAnchorA = new Vec2(def.localAnchorA); m_localAnchorB = new Vec2(def.localAnchorB); m_linearImpulse = new Vec2(); m_angularImpulse = 0.0f; m_maxForce = def.maxForce; m_maxTorque = def.maxTorque; } public Vec2 getLocalAnchorA () { return m_localAnchorA; } public Vec2 getLocalAnchorB () { return m_localAnchorB; } @Override public void getAnchorA (Vec2 argOut) { m_bodyA.getWorldPointToOut(m_localAnchorA, argOut); } @Override public void getAnchorB (Vec2 argOut) { m_bodyB.getWorldPointToOut(m_localAnchorB, argOut); } @Override public void getReactionForce (float inv_dt, Vec2 argOut) { argOut.set(m_linearImpulse).mulLocal(inv_dt); } @Override public float getReactionTorque (float inv_dt) { return inv_dt * m_angularImpulse; } public void setMaxForce (float force) { assert (force >= 0.0f); m_maxForce = force; } public float getMaxForce () { return m_maxForce; } public void setMaxTorque (float torque) { assert (torque >= 0.0f); m_maxTorque = torque; } public float getMaxTorque () { return m_maxTorque; } /** @see org.jbox2d.dynamics.joints.Joint#initVelocityConstraints(org.jbox2d.dynamics.TimeStep) */ @Override public void initVelocityConstraints (final SolverData data) { m_indexA = m_bodyA.m_islandIndex; m_indexB = m_bodyB.m_islandIndex; m_localCenterA.set(m_bodyA.m_sweep.localCenter); m_localCenterB.set(m_bodyB.m_sweep.localCenter); m_invMassA = m_bodyA.m_invMass; m_invMassB = m_bodyB.m_invMass; m_invIA = m_bodyA.m_invI; m_invIB = m_bodyB.m_invI; float aA = data.positions[m_indexA].a; Vec2 vA = data.velocities[m_indexA].v; float wA = data.velocities[m_indexA].w; float aB = data.positions[m_indexB].a; Vec2 vB = data.velocities[m_indexB].v; float wB = data.velocities[m_indexB].w; final Vec2 temp = pool.popVec2(); final Rot qA = pool.popRot(); final Rot qB = pool.popRot(); qA.set(aA); qB.set(aB); // Compute the effective mass matrix. Rot.mulToOutUnsafe(qA, temp.set(m_localAnchorA).subLocal(m_localCenterA), m_rA); Rot.mulToOutUnsafe(qB, temp.set(m_localAnchorB).subLocal(m_localCenterB), m_rB); // J = [-I -r1_skew I r2_skew] // [ 0 -1 0 1] // r_skew = [-ry; rx] // Matlab // K = [ mA+r1y^2*iA+mB+r2y^2*iB, -r1y*iA*r1x-r2y*iB*r2x, -r1y*iA-r2y*iB] // [ -r1y*iA*r1x-r2y*iB*r2x, mA+r1x^2*iA+mB+r2x^2*iB, r1x*iA+r2x*iB] // [ -r1y*iA-r2y*iB, r1x*iA+r2x*iB, iA+iB] float mA = m_invMassA, mB = m_invMassB; float iA = m_invIA, iB = m_invIB; final Mat22 K = pool.popMat22(); K.ex.x = mA + mB + iA * m_rA.y * m_rA.y + iB * m_rB.y * m_rB.y; K.ex.y = -iA * m_rA.x * m_rA.y - iB * m_rB.x * m_rB.y; K.ey.x = K.ex.y; K.ey.y = mA + mB + iA * m_rA.x * m_rA.x + iB * m_rB.x * m_rB.x; K.invertToOut(m_linearMass); m_angularMass = iA + iB; if (m_angularMass > 0.0f) { m_angularMass = 1.0f / m_angularMass; } if (data.step.warmStarting) { // Scale impulses to support a variable time step. m_linearImpulse.mulLocal(data.step.dtRatio); m_angularImpulse *= data.step.dtRatio; final Vec2 P = pool.popVec2(); P.set(m_linearImpulse); temp.set(P).mulLocal(mA); vA.subLocal(temp); wA -= iA * (Vec2.cross(m_rA, P) + m_angularImpulse); temp.set(P).mulLocal(mB); vB.addLocal(temp); wB += iB * (Vec2.cross(m_rB, P) + m_angularImpulse); pool.pushVec2(1); } else { m_linearImpulse.setZero(); m_angularImpulse = 0.0f; } // data.velocities[m_indexA].v.set(vA); if (data.velocities[m_indexA].w != wA) { assert (data.velocities[m_indexA].w != wA); } data.velocities[m_indexA].w = wA; // data.velocities[m_indexB].v.set(vB); data.velocities[m_indexB].w = wB; pool.pushRot(2); pool.pushVec2(1); pool.pushMat22(1); } @Override public void solveVelocityConstraints (final SolverData data) { Vec2 vA = data.velocities[m_indexA].v; float wA = data.velocities[m_indexA].w; Vec2 vB = data.velocities[m_indexB].v; float wB = data.velocities[m_indexB].w; float mA = m_invMassA, mB = m_invMassB; float iA = m_invIA, iB = m_invIB; float h = data.step.dt; // Solve angular friction { float Cdot = wB - wA; float impulse = -m_angularMass * Cdot; float oldImpulse = m_angularImpulse; float maxImpulse = h * m_maxTorque; m_angularImpulse = MathUtils.clamp(m_angularImpulse + impulse, -maxImpulse, maxImpulse); impulse = m_angularImpulse - oldImpulse; wA -= iA * impulse; wB += iB * impulse; } // Solve linear friction { final Vec2 Cdot = pool.popVec2(); final Vec2 temp = pool.popVec2(); Vec2.crossToOutUnsafe(wA, m_rA, temp); Vec2.crossToOutUnsafe(wB, m_rB, Cdot); Cdot.addLocal(vB).subLocal(vA).subLocal(temp); final Vec2 impulse = pool.popVec2(); Mat22.mulToOutUnsafe(m_linearMass, Cdot, impulse); impulse.negateLocal(); final Vec2 oldImpulse = pool.popVec2(); oldImpulse.set(m_linearImpulse); m_linearImpulse.addLocal(impulse); float maxImpulse = h * m_maxForce; if (m_linearImpulse.lengthSquared() > maxImpulse * maxImpulse) { m_linearImpulse.normalize(); m_linearImpulse.mulLocal(maxImpulse); } impulse.set(m_linearImpulse).subLocal(oldImpulse); temp.set(impulse).mulLocal(mA); vA.subLocal(temp); wA -= iA * Vec2.cross(m_rA, impulse); temp.set(impulse).mulLocal(mB); vB.addLocal(temp); wB += iB * Vec2.cross(m_rB, impulse); } // data.velocities[m_indexA].v.set(vA); if (data.velocities[m_indexA].w != wA) { assert (data.velocities[m_indexA].w != wA); } data.velocities[m_indexA].w = wA; // data.velocities[m_indexB].v.set(vB); data.velocities[m_indexB].w = wB; pool.pushVec2(4); } @Override public boolean solvePositionConstraints (final SolverData data) { return true; } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/TextureUnpacker.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tools.texturepacker; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.g2d.TextureAtlas.TextureAtlasData; import com.badlogic.gdx.graphics.g2d.TextureAtlas.TextureAtlasData.Page; import com.badlogic.gdx.graphics.g2d.TextureAtlas.TextureAtlasData.Region; import java.awt.Color; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; /** Unpacks a texture atlas into individual image files. * @author Geert Konijnendijk * @author Nathan Sweet * @author Michael Bazos */ public class TextureUnpacker { private static final String DEFAULT_OUTPUT_PATH = "output"; private static final int NINEPATCH_PADDING = 1; private static final String OUTPUT_TYPE = "png"; private static final String HELP = "Usage: atlasFile [imageDir] [outputDir]"; private static final String ATLAS_FILE_EXTENSION = ".atlas"; private boolean quiet; /** Checks the command line arguments for correctness. * @return 0 If arguments are invalid, Number of arguments otherwise. */ private int parseArguments (String[] args) { int numArgs = args.length; // check if number of args is right if (numArgs < 1) return 0; // check if the input file's extension is right boolean extension = args[0].substring(args[0].length() - ATLAS_FILE_EXTENSION.length()).equals(ATLAS_FILE_EXTENSION); // check if the directory names are valid boolean directory = true; if (numArgs >= 2) directory &= checkDirectoryValidity(args[1]); if (numArgs == 3) directory &= checkDirectoryValidity(args[2]); return extension && directory ? numArgs : 0; } private boolean checkDirectoryValidity (String directory) { File checkFile = new File(directory); boolean path = true; // try to get the canonical path, if this fails the path is not valid try { checkFile.getCanonicalPath(); } catch (Exception e) { path = false; } return path; } /** Splits an atlas into seperate image and ninepatch files. */ public void splitAtlas (TextureAtlasData atlas, String outputDir) { // create the output directory if it did not exist yet File outputDirFile = new File(outputDir); if (!outputDirFile.exists()) { outputDirFile.mkdirs(); if (!quiet) System.out.println(String.format("Creating directory: %s", outputDirFile.getPath())); } for (Page page : atlas.getPages()) { // load the image file belonging to this page as a Buffered Image File file = page.textureFile.file(); if (!file.exists()) throw new RuntimeException("Unable to find atlas image: " + file.getAbsolutePath()); BufferedImage img = null; try { img = ImageIO.read(file); } catch (IOException e) { printExceptionAndExit(e); } for (Region region : atlas.getRegions()) { if (!quiet) System.out.println(String.format("Processing image for %s: x[%s] y[%s] w[%s] h[%s], rotate[%s]", region.name, region.left, region.top, region.width, region.height, region.rotate)); // check if the page this region is in is currently loaded in a Buffered Image if (region.page == page) { BufferedImage splitImage = null; String extension = null; // check if the region is a ninepatch or a normal image and delegate accordingly if (region.findValue("split") == null) { splitImage = extractImage(img, region, outputDirFile, 0); if (region.width != region.originalWidth || region.height != region.originalHeight) { BufferedImage originalImg = new BufferedImage(region.originalWidth, region.originalHeight, img.getType()); Graphics2D g2 = originalImg.createGraphics(); g2.drawImage(splitImage, (int)region.offsetX, (int)(region.originalHeight - region.height - region.offsetY), null); g2.dispose(); splitImage = originalImg; } extension = OUTPUT_TYPE; } else { splitImage = extractNinePatch(img, region, outputDirFile); extension = String.format("9.%s", OUTPUT_TYPE); } // check if the parent directories of this image file exist and create them if not File imgOutput = new File(outputDirFile, String.format("%s.%s", region.index == -1 ? region.name : region.name + "_" + region.index, extension)); File imgDir = imgOutput.getParentFile(); if (!imgDir.exists()) { if (!quiet) System.out.println(String.format("Creating directory: %s", imgDir.getPath())); imgDir.mkdirs(); } // save the image try { ImageIO.write(splitImage, OUTPUT_TYPE, imgOutput); } catch (Exception e) { printExceptionAndExit(e); } } } } } /** Extract an image from a texture atlas. * @param page The image file related to the page the region is in * @param region The region to extract * @param outputDirFile The output directory * @param padding padding (in pixels) to apply to the image * @return The extracted image */ private BufferedImage extractImage (BufferedImage page, Region region, File outputDirFile, int padding) { BufferedImage splitImage = null; // get the needed part of the page and rotate if needed if (region.rotate) { BufferedImage srcImage = page.getSubimage(region.left, region.top, region.height, region.width); splitImage = new BufferedImage(region.width, region.height, page.getType()); AffineTransform transform = new AffineTransform(); transform.rotate(Math.toRadians(90.0)); transform.translate(0, -region.width); AffineTransformOp op = new AffineTransformOp(transform, AffineTransformOp.TYPE_BILINEAR); op.filter(srcImage, splitImage); } else { splitImage = page.getSubimage(region.left, region.top, region.width, region.height); } // draw the image to a bigger one if padding is needed if (padding > 0) { BufferedImage paddedImage = new BufferedImage(splitImage.getWidth() + padding * 2, splitImage.getHeight() + padding * 2, page.getType()); Graphics2D g2 = paddedImage.createGraphics(); g2.drawImage(splitImage, padding, padding, null); g2.dispose(); return paddedImage; } else { return splitImage; } } /** Extract a ninepatch from a texture atlas, according to the android specification. * @see <a href="http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch">ninepatch specification</a> * @param page The image file related to the page the region is in * @param region The region to extract */ private BufferedImage extractNinePatch (BufferedImage page, Region region, File outputDirFile) { BufferedImage splitImage = extractImage(page, region, outputDirFile, NINEPATCH_PADDING); Graphics2D g2 = splitImage.createGraphics(); g2.setColor(Color.BLACK); // Draw the four lines to save the ninepatch's padding and splits int[] splits = region.findValue("split"); int startX = splits[0] + NINEPATCH_PADDING; int endX = region.width - splits[1] + NINEPATCH_PADDING - 1; int startY = splits[2] + NINEPATCH_PADDING; int endY = region.height - splits[3] + NINEPATCH_PADDING - 1; if (endX >= startX) g2.drawLine(startX, 0, endX, 0); if (endY >= startY) g2.drawLine(0, startY, 0, endY); int[] pads = region.findValue("pad"); if (pads != null) { int padStartX = pads[0] + NINEPATCH_PADDING; int padEndX = region.width - pads[1] + NINEPATCH_PADDING - 1; int padStartY = pads[2] + NINEPATCH_PADDING; int padEndY = region.height - pads[3] + NINEPATCH_PADDING - 1; g2.drawLine(padStartX, splitImage.getHeight() - 1, padEndX, splitImage.getHeight() - 1); g2.drawLine(splitImage.getWidth() - 1, padStartY, splitImage.getWidth() - 1, padEndY); } g2.dispose(); return splitImage; } private void printExceptionAndExit (Exception e) { e.printStackTrace(); System.exit(1); } public void setQuiet (boolean quiet) { this.quiet = quiet; } public static void main (String[] args) { TextureUnpacker unpacker = new TextureUnpacker(); String atlasFile = null, imageDir = null, outputDir = null; // parse the arguments and display the help text if there is a problem with the command line arguments switch (unpacker.parseArguments(args)) { case 0: System.out.println(HELP); return; case 3: outputDir = args[2]; case 2: imageDir = args[1]; case 1: atlasFile = args[0]; } File atlasFileHandle = new File(atlasFile).getAbsoluteFile(); if (!atlasFileHandle.exists()) throw new RuntimeException("Atlas file not found: " + atlasFileHandle.getAbsolutePath()); String atlasParentPath = atlasFileHandle.getParentFile().getAbsolutePath(); // Set the directory variables to a default when they weren't given in the variables if (imageDir == null) imageDir = atlasParentPath; if (outputDir == null) outputDir = (new File(atlasParentPath, DEFAULT_OUTPUT_PATH)).getAbsolutePath(); // Opens the atlas file from the specified filename TextureAtlasData atlas = new TextureAtlasData(new FileHandle(atlasFile), new FileHandle(imageDir), false); unpacker.splitAtlas(atlas, outputDir); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tools.texturepacker; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.g2d.TextureAtlas.TextureAtlasData; import com.badlogic.gdx.graphics.g2d.TextureAtlas.TextureAtlasData.Page; import com.badlogic.gdx.graphics.g2d.TextureAtlas.TextureAtlasData.Region; import java.awt.Color; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; /** Unpacks a texture atlas into individual image files. * @author Geert Konijnendijk * @author Nathan Sweet * @author Michael Bazos */ public class TextureUnpacker { private static final String DEFAULT_OUTPUT_PATH = "output"; private static final int NINEPATCH_PADDING = 1; private static final String OUTPUT_TYPE = "png"; private static final String HELP = "Usage: atlasFile [imageDir] [outputDir]"; private static final String ATLAS_FILE_EXTENSION = ".atlas"; private boolean quiet; /** Checks the command line arguments for correctness. * @return 0 If arguments are invalid, Number of arguments otherwise. */ private int parseArguments (String[] args) { int numArgs = args.length; // check if number of args is right if (numArgs < 1) return 0; // check if the input file's extension is right boolean extension = args[0].substring(args[0].length() - ATLAS_FILE_EXTENSION.length()).equals(ATLAS_FILE_EXTENSION); // check if the directory names are valid boolean directory = true; if (numArgs >= 2) directory &= checkDirectoryValidity(args[1]); if (numArgs == 3) directory &= checkDirectoryValidity(args[2]); return extension && directory ? numArgs : 0; } private boolean checkDirectoryValidity (String directory) { File checkFile = new File(directory); boolean path = true; // try to get the canonical path, if this fails the path is not valid try { checkFile.getCanonicalPath(); } catch (Exception e) { path = false; } return path; } /** Splits an atlas into seperate image and ninepatch files. */ public void splitAtlas (TextureAtlasData atlas, String outputDir) { // create the output directory if it did not exist yet File outputDirFile = new File(outputDir); if (!outputDirFile.exists()) { outputDirFile.mkdirs(); if (!quiet) System.out.println(String.format("Creating directory: %s", outputDirFile.getPath())); } for (Page page : atlas.getPages()) { // load the image file belonging to this page as a Buffered Image File file = page.textureFile.file(); if (!file.exists()) throw new RuntimeException("Unable to find atlas image: " + file.getAbsolutePath()); BufferedImage img = null; try { img = ImageIO.read(file); } catch (IOException e) { printExceptionAndExit(e); } for (Region region : atlas.getRegions()) { if (!quiet) System.out.println(String.format("Processing image for %s: x[%s] y[%s] w[%s] h[%s], rotate[%s]", region.name, region.left, region.top, region.width, region.height, region.rotate)); // check if the page this region is in is currently loaded in a Buffered Image if (region.page == page) { BufferedImage splitImage = null; String extension = null; // check if the region is a ninepatch or a normal image and delegate accordingly if (region.findValue("split") == null) { splitImage = extractImage(img, region, outputDirFile, 0); if (region.width != region.originalWidth || region.height != region.originalHeight) { BufferedImage originalImg = new BufferedImage(region.originalWidth, region.originalHeight, img.getType()); Graphics2D g2 = originalImg.createGraphics(); g2.drawImage(splitImage, (int)region.offsetX, (int)(region.originalHeight - region.height - region.offsetY), null); g2.dispose(); splitImage = originalImg; } extension = OUTPUT_TYPE; } else { splitImage = extractNinePatch(img, region, outputDirFile); extension = String.format("9.%s", OUTPUT_TYPE); } // check if the parent directories of this image file exist and create them if not File imgOutput = new File(outputDirFile, String.format("%s.%s", region.index == -1 ? region.name : region.name + "_" + region.index, extension)); File imgDir = imgOutput.getParentFile(); if (!imgDir.exists()) { if (!quiet) System.out.println(String.format("Creating directory: %s", imgDir.getPath())); imgDir.mkdirs(); } // save the image try { ImageIO.write(splitImage, OUTPUT_TYPE, imgOutput); } catch (Exception e) { printExceptionAndExit(e); } } } } } /** Extract an image from a texture atlas. * @param page The image file related to the page the region is in * @param region The region to extract * @param outputDirFile The output directory * @param padding padding (in pixels) to apply to the image * @return The extracted image */ private BufferedImage extractImage (BufferedImage page, Region region, File outputDirFile, int padding) { BufferedImage splitImage = null; // get the needed part of the page and rotate if needed if (region.rotate) { BufferedImage srcImage = page.getSubimage(region.left, region.top, region.height, region.width); splitImage = new BufferedImage(region.width, region.height, page.getType()); AffineTransform transform = new AffineTransform(); transform.rotate(Math.toRadians(90.0)); transform.translate(0, -region.width); AffineTransformOp op = new AffineTransformOp(transform, AffineTransformOp.TYPE_BILINEAR); op.filter(srcImage, splitImage); } else { splitImage = page.getSubimage(region.left, region.top, region.width, region.height); } // draw the image to a bigger one if padding is needed if (padding > 0) { BufferedImage paddedImage = new BufferedImage(splitImage.getWidth() + padding * 2, splitImage.getHeight() + padding * 2, page.getType()); Graphics2D g2 = paddedImage.createGraphics(); g2.drawImage(splitImage, padding, padding, null); g2.dispose(); return paddedImage; } else { return splitImage; } } /** Extract a ninepatch from a texture atlas, according to the android specification. * @see <a href="http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch">ninepatch specification</a> * @param page The image file related to the page the region is in * @param region The region to extract */ private BufferedImage extractNinePatch (BufferedImage page, Region region, File outputDirFile) { BufferedImage splitImage = extractImage(page, region, outputDirFile, NINEPATCH_PADDING); Graphics2D g2 = splitImage.createGraphics(); g2.setColor(Color.BLACK); // Draw the four lines to save the ninepatch's padding and splits int[] splits = region.findValue("split"); int startX = splits[0] + NINEPATCH_PADDING; int endX = region.width - splits[1] + NINEPATCH_PADDING - 1; int startY = splits[2] + NINEPATCH_PADDING; int endY = region.height - splits[3] + NINEPATCH_PADDING - 1; if (endX >= startX) g2.drawLine(startX, 0, endX, 0); if (endY >= startY) g2.drawLine(0, startY, 0, endY); int[] pads = region.findValue("pad"); if (pads != null) { int padStartX = pads[0] + NINEPATCH_PADDING; int padEndX = region.width - pads[1] + NINEPATCH_PADDING - 1; int padStartY = pads[2] + NINEPATCH_PADDING; int padEndY = region.height - pads[3] + NINEPATCH_PADDING - 1; g2.drawLine(padStartX, splitImage.getHeight() - 1, padEndX, splitImage.getHeight() - 1); g2.drawLine(splitImage.getWidth() - 1, padStartY, splitImage.getWidth() - 1, padEndY); } g2.dispose(); return splitImage; } private void printExceptionAndExit (Exception e) { e.printStackTrace(); System.exit(1); } public void setQuiet (boolean quiet) { this.quiet = quiet; } public static void main (String[] args) { TextureUnpacker unpacker = new TextureUnpacker(); String atlasFile = null, imageDir = null, outputDir = null; // parse the arguments and display the help text if there is a problem with the command line arguments switch (unpacker.parseArguments(args)) { case 0: System.out.println(HELP); return; case 3: outputDir = args[2]; case 2: imageDir = args[1]; case 1: atlasFile = args[0]; } File atlasFileHandle = new File(atlasFile).getAbsoluteFile(); if (!atlasFileHandle.exists()) throw new RuntimeException("Atlas file not found: " + atlasFileHandle.getAbsolutePath()); String atlasParentPath = atlasFileHandle.getParentFile().getAbsolutePath(); // Set the directory variables to a default when they weren't given in the variables if (imageDir == null) imageDir = atlasParentPath; if (outputDir == null) outputDir = (new File(atlasParentPath, DEFAULT_OUTPUT_PATH)).getAbsolutePath(); // Opens the atlas file from the specified filename TextureAtlasData atlas = new TextureAtlasData(new FileHandle(atlasFile), new FileHandle(imageDir), false); unpacker.splitAtlas(atlas, outputDir); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/assets/loaders/AssetLoader.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.assets.loaders; import com.badlogic.gdx.assets.AssetDescriptor; import com.badlogic.gdx.assets.AssetLoaderParameters; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.utils.Array; /** Abstract base class for asset loaders. * @author mzechner * * @param <T> the class of the asset the loader supports * @param <P> the class of the loading parameters the loader supports. */ public abstract class AssetLoader<T, P extends AssetLoaderParameters<T>> { /** {@link FileHandleResolver} used to map from plain asset names to {@link FileHandle} instances **/ private FileHandleResolver resolver; /** Constructor, sets the {@link FileHandleResolver} to use to resolve the file associated with the asset name. * @param resolver */ public AssetLoader (FileHandleResolver resolver) { this.resolver = resolver; } /** @param fileName file name to resolve * @return handle to the file, as resolved by the {@link FileHandleResolver} set on the loader */ public FileHandle resolve (String fileName) { return resolver.resolve(fileName); } /** Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread. * @param fileName name of the asset to load * @param file the resolved file to load * @param parameter parameters for loading the asset * @return other assets that the asset depends on and need to be loaded first or null if there are no dependencies. */ public abstract Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, P parameter); }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.assets.loaders; import com.badlogic.gdx.assets.AssetDescriptor; import com.badlogic.gdx.assets.AssetLoaderParameters; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.utils.Array; /** Abstract base class for asset loaders. * @author mzechner * * @param <T> the class of the asset the loader supports * @param <P> the class of the loading parameters the loader supports. */ public abstract class AssetLoader<T, P extends AssetLoaderParameters<T>> { /** {@link FileHandleResolver} used to map from plain asset names to {@link FileHandle} instances **/ private FileHandleResolver resolver; /** Constructor, sets the {@link FileHandleResolver} to use to resolve the file associated with the asset name. * @param resolver */ public AssetLoader (FileHandleResolver resolver) { this.resolver = resolver; } /** @param fileName file name to resolve * @return handle to the file, as resolved by the {@link FileHandleResolver} set on the loader */ public FileHandle resolve (String fileName) { return resolver.resolve(fileName); } /** Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread. * @param fileName name of the asset to load * @param file the resolved file to load * @param parameter parameters for loading the asset * @return other assets that the asset depends on and need to be loaded first or null if there are no dependencies. */ public abstract Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, P parameter); }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/utils/Pools.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.utils; /** Stores a map of {@link Pool}s (usually {@link ReflectionPool}s) by type for convenient static access. * @author Nathan Sweet */ public class Pools { static private final ObjectMap<Class, Pool> typePools = new ObjectMap(); /** Returns a new or existing pool for the specified type, stored in a Class to {@link Pool} map. Note the max size is ignored * if this is not the first time this pool has been requested. */ static public <T> Pool<T> get (Class<T> type, int max) { Pool pool = typePools.get(type); if (pool == null) { pool = new ReflectionPool(type, 4, max); typePools.put(type, pool); } return pool; } /** Returns a new or existing pool for the specified type, stored in a Class to {@link Pool} map. The max size of the pool used * is 100. */ static public <T> Pool<T> get (Class<T> type) { return get(type, 100); } /** Sets an existing pool for the specified type, stored in a Class to {@link Pool} map. */ static public <T> void set (Class<T> type, Pool<T> pool) { typePools.put(type, pool); } /** Obtains an object from the {@link #get(Class) pool}. */ static public <T> T obtain (Class<T> type) { return get(type).obtain(); } /** Frees an object from the {@link #get(Class) pool}. */ static public void free (Object object) { if (object == null) throw new IllegalArgumentException("object cannot be null."); Pool pool = typePools.get(object.getClass()); if (pool == null) return; // Ignore freeing an object that was never retained. pool.free(object); } /** Frees the specified objects from the {@link #get(Class) pool}. Null objects within the array are silently ignored. Objects * don't need to be from the same pool. */ static public void freeAll (Array objects) { freeAll(objects, false); } /** Frees the specified objects from the {@link #get(Class) pool}. Null objects within the array are silently ignored. * @param samePool If true, objects don't need to be from the same pool but the pool must be looked up for each object. */ static public void freeAll (Array objects, boolean samePool) { if (objects == null) throw new IllegalArgumentException("objects cannot be null."); Pool pool = null; for (int i = 0, n = objects.size; i < n; i++) { Object object = objects.get(i); if (object == null) continue; if (pool == null) { pool = typePools.get(object.getClass()); if (pool == null) continue; // Ignore freeing an object that was never retained. } pool.free(object); if (!samePool) pool = null; } } private Pools () { } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.utils; /** Stores a map of {@link Pool}s (usually {@link ReflectionPool}s) by type for convenient static access. * @author Nathan Sweet */ public class Pools { static private final ObjectMap<Class, Pool> typePools = new ObjectMap(); /** Returns a new or existing pool for the specified type, stored in a Class to {@link Pool} map. Note the max size is ignored * if this is not the first time this pool has been requested. */ static public <T> Pool<T> get (Class<T> type, int max) { Pool pool = typePools.get(type); if (pool == null) { pool = new ReflectionPool(type, 4, max); typePools.put(type, pool); } return pool; } /** Returns a new or existing pool for the specified type, stored in a Class to {@link Pool} map. The max size of the pool used * is 100. */ static public <T> Pool<T> get (Class<T> type) { return get(type, 100); } /** Sets an existing pool for the specified type, stored in a Class to {@link Pool} map. */ static public <T> void set (Class<T> type, Pool<T> pool) { typePools.put(type, pool); } /** Obtains an object from the {@link #get(Class) pool}. */ static public <T> T obtain (Class<T> type) { return get(type).obtain(); } /** Frees an object from the {@link #get(Class) pool}. */ static public void free (Object object) { if (object == null) throw new IllegalArgumentException("object cannot be null."); Pool pool = typePools.get(object.getClass()); if (pool == null) return; // Ignore freeing an object that was never retained. pool.free(object); } /** Frees the specified objects from the {@link #get(Class) pool}. Null objects within the array are silently ignored. Objects * don't need to be from the same pool. */ static public void freeAll (Array objects) { freeAll(objects, false); } /** Frees the specified objects from the {@link #get(Class) pool}. Null objects within the array are silently ignored. * @param samePool If true, objects don't need to be from the same pool but the pool must be looked up for each object. */ static public void freeAll (Array objects, boolean samePool) { if (objects == null) throw new IllegalArgumentException("objects cannot be null."); Pool pool = null; for (int i = 0, n = objects.size; i < n; i++) { Object object = objects.get(i); if (object == null) continue; if (pool == null) { pool = typePools.get(object.getClass()); if (pool == null) continue; // Ignore freeing an object that was never retained. } pool.free(object); if (!samePool) pool = null; } } private Pools () { } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./tests/gdx-tests/src/com/badlogic/gdx/tests/net/OpenBrowserExample.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.net; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.tests.utils.GdxTest; /** Demonstrates how to open a browser and load a specific URL. * @author badlogic */ public class OpenBrowserExample extends GdxTest { @Override public void create () { Gdx.net.openURI("https://libgdx.com"); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.net; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.tests.utils.GdxTest; /** Demonstrates how to open a browser and load a specific URL. * @author badlogic */ public class OpenBrowserExample extends GdxTest { @Override public void create () { Gdx.net.openURI("https://libgdx.com"); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/CustomShadingPanel.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tools.particleeditor; import java.awt.FileDialog; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.GridLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import javax.swing.DefaultListModel; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.ListSelectionModel; import com.badlogic.gdx.graphics.g2d.ParticleEmitter; public class CustomShadingPanel extends EditorPanel { JPanel imagesPanel; JList imageList; DefaultListModel<String> imageListModel; String lastDir; final ParticleEditor editor; final CustomShading shading; public CustomShadingPanel (final ParticleEditor editor, String name, String description) { super(null, name, description); this.editor = editor; this.shading = editor.renderer.customShading; JPanel contentPanel = getContentPanel(); { JPanel shaderStagePanel = createShaderStagePanel(editor, contentPanel, true); contentPanel.add(shaderStagePanel, new GridBagConstraints(0, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); } { JPanel shaderStagePanel = createShaderStagePanel(editor, contentPanel, false); contentPanel.add(shaderStagePanel, new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); } { imagesPanel = new JPanel(new GridBagLayout()); contentPanel.add(imagesPanel, new GridBagConstraints(2, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); imagesPanel.add(new JLabel("Extra Texture Units")); imageListModel = new DefaultListModel<String>(); for (int i = 0; i < shading.extraTexturePaths.size; i++) { String path = shading.extraTexturePaths.get(i); imageListModel.addElement(textureDisplayName(i, path)); } imageList = new JList<String>(imageListModel); imageList.setFixedCellWidth(200); imageList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); imagesPanel.add(imageList, new GridBagConstraints(0, 1, 1, 4, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); JButton addButton = new JButton("Add"); imagesPanel.add(addButton, new GridBagConstraints(1, 1, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); addButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { FileDialog dialog = new FileDialog(editor, "Open Image", FileDialog.LOAD); if (lastDir != null) dialog.setDirectory(lastDir); dialog.setVisible(true); final String file = dialog.getFile(); final String dir = dialog.getDirectory(); if (dir == null || file == null || file.trim().length() == 0) return; lastDir = dir; addTexture(new File(dir, file).getAbsolutePath()); } }); JButton upButton = new JButton("\u2191"); imagesPanel.add(upButton, new GridBagConstraints(1, 2, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); upButton.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { int index = imageList.getSelectedIndex(); if (index <= 0) return; swapTexture(index, index - 1); imageList.setSelectedIndex(index - 1); } }); JButton downButton = new JButton("\u2193"); imagesPanel.add(downButton, new GridBagConstraints(1, 3, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); downButton.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { int index = imageList.getSelectedIndex(); if (index < 0 || index >= imageList.getModel().getSize() - 1) return; final ParticleEmitter emitter = editor.getEmitter(); swapTexture(index, index + 1); imageList.setSelectedIndex(index + 1); } }); JButton removeButton = new JButton("X"); imagesPanel.add(removeButton, new GridBagConstraints(1, 4, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); removeButton.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { int index = imageList.getSelectedIndex(); if (index < 0) return; removeTexture(index); } }); JButton reloadButton = new JButton("Reload"); imagesPanel.add(reloadButton, new GridBagConstraints(1, 5, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); reloadButton.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { int index = imageList.getSelectedIndex(); if (index < 0) return; reloadTexture(index); } }); } } private JPanel createShaderStagePanel (final ParticleEditor editor, JPanel contentPanel, final boolean isVertexShader) { JPanel buttonsPanel = new JPanel(new GridLayout(5, 1)); JLabel label = new JLabel(isVertexShader ? "Vertex Shader" : "Frag. Shader"); buttonsPanel.add(label); JButton defaultButton = new JButton("Default"); buttonsPanel.add(defaultButton); defaultButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { if (isVertexShader) { shading.setVertexShaderFile(null); } else { shading.setFragmentShaderFile(null); } displayErrors(); } }); JButton setButton = new JButton("Set"); buttonsPanel.add(setButton); setButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { FileDialog dialog = new FileDialog(editor, isVertexShader ? "Open Vertex Shader File" : "Open Fragment Shader File", FileDialog.LOAD); if (lastDir != null) dialog.setDirectory(lastDir); dialog.setVisible(true); final String file = dialog.getFile(); final String dir = dialog.getDirectory(); if (dir == null || file == null || file.trim().length() == 0) return; lastDir = dir; String path = new File(dir, file).getAbsolutePath(); if (isVertexShader) { shading.setVertexShaderFile(path); } else { shading.setFragmentShaderFile(path); } displayErrors(); } }); JButton reloadButton = new JButton("Reload"); buttonsPanel.add(reloadButton); reloadButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { if (isVertexShader) { shading.reloadVertexShader(); } else { shading.reloadFragmentShader(); } displayErrors(); } }); JButton showButton = new JButton("Show"); buttonsPanel.add(showButton); showButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { JTextArea text = new JTextArea(isVertexShader ? shading.vertexShaderCode : shading.fragmentShaderCode); text.setEditable(false); JOptionPane.showMessageDialog(editor, text, isVertexShader ? "Current vertex shader code" : "Current fragment shader code", JOptionPane.INFORMATION_MESSAGE); } }); return buttonsPanel; } protected void displayErrors () { if (shading.hasShaderErrors) { JOptionPane.showMessageDialog(editor, shading.shaderErrorMessage, "Shader Error", JOptionPane.ERROR_MESSAGE); } else if (shading.hasMissingSamplers) { JOptionPane.showMessageDialog(editor, shading.missingSamplerMessage, "Missing texture sampler", JOptionPane.WARNING_MESSAGE); } } private String textureDisplayName (int index, String path) { int unit = index + 1; return "u_texture" + unit + ": " + new File(path).getName(); } protected void removeTexture (int index) { imageListModel.remove(index); shading.removeTexture(index); revalidate(); displayErrors(); } protected void swapTexture (int indexA, int indexB) { shading.swapTexture(indexA, indexB); String pathA = shading.extraTexturePaths.get(indexA); String pathB = shading.extraTexturePaths.get(indexB); imageListModel.set(indexA, textureDisplayName(indexA, pathA)); imageListModel.set(indexB, textureDisplayName(indexB, pathB)); revalidate(); displayErrors(); } protected void addTexture (String absolutePath) { imageListModel.addElement(textureDisplayName(imageListModel.getSize(), absolutePath)); shading.addTexture(absolutePath); revalidate(); displayErrors(); } protected void reloadTexture (int index) { shading.reloadTexture(index); displayErrors(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tools.particleeditor; import java.awt.FileDialog; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.GridLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import javax.swing.DefaultListModel; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.ListSelectionModel; import com.badlogic.gdx.graphics.g2d.ParticleEmitter; public class CustomShadingPanel extends EditorPanel { JPanel imagesPanel; JList imageList; DefaultListModel<String> imageListModel; String lastDir; final ParticleEditor editor; final CustomShading shading; public CustomShadingPanel (final ParticleEditor editor, String name, String description) { super(null, name, description); this.editor = editor; this.shading = editor.renderer.customShading; JPanel contentPanel = getContentPanel(); { JPanel shaderStagePanel = createShaderStagePanel(editor, contentPanel, true); contentPanel.add(shaderStagePanel, new GridBagConstraints(0, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); } { JPanel shaderStagePanel = createShaderStagePanel(editor, contentPanel, false); contentPanel.add(shaderStagePanel, new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); } { imagesPanel = new JPanel(new GridBagLayout()); contentPanel.add(imagesPanel, new GridBagConstraints(2, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); imagesPanel.add(new JLabel("Extra Texture Units")); imageListModel = new DefaultListModel<String>(); for (int i = 0; i < shading.extraTexturePaths.size; i++) { String path = shading.extraTexturePaths.get(i); imageListModel.addElement(textureDisplayName(i, path)); } imageList = new JList<String>(imageListModel); imageList.setFixedCellWidth(200); imageList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); imagesPanel.add(imageList, new GridBagConstraints(0, 1, 1, 4, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); JButton addButton = new JButton("Add"); imagesPanel.add(addButton, new GridBagConstraints(1, 1, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); addButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { FileDialog dialog = new FileDialog(editor, "Open Image", FileDialog.LOAD); if (lastDir != null) dialog.setDirectory(lastDir); dialog.setVisible(true); final String file = dialog.getFile(); final String dir = dialog.getDirectory(); if (dir == null || file == null || file.trim().length() == 0) return; lastDir = dir; addTexture(new File(dir, file).getAbsolutePath()); } }); JButton upButton = new JButton("\u2191"); imagesPanel.add(upButton, new GridBagConstraints(1, 2, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); upButton.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { int index = imageList.getSelectedIndex(); if (index <= 0) return; swapTexture(index, index - 1); imageList.setSelectedIndex(index - 1); } }); JButton downButton = new JButton("\u2193"); imagesPanel.add(downButton, new GridBagConstraints(1, 3, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); downButton.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { int index = imageList.getSelectedIndex(); if (index < 0 || index >= imageList.getModel().getSize() - 1) return; final ParticleEmitter emitter = editor.getEmitter(); swapTexture(index, index + 1); imageList.setSelectedIndex(index + 1); } }); JButton removeButton = new JButton("X"); imagesPanel.add(removeButton, new GridBagConstraints(1, 4, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); removeButton.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { int index = imageList.getSelectedIndex(); if (index < 0) return; removeTexture(index); } }); JButton reloadButton = new JButton("Reload"); imagesPanel.add(reloadButton, new GridBagConstraints(1, 5, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); reloadButton.addActionListener(new ActionListener() { @Override public void actionPerformed (ActionEvent e) { int index = imageList.getSelectedIndex(); if (index < 0) return; reloadTexture(index); } }); } } private JPanel createShaderStagePanel (final ParticleEditor editor, JPanel contentPanel, final boolean isVertexShader) { JPanel buttonsPanel = new JPanel(new GridLayout(5, 1)); JLabel label = new JLabel(isVertexShader ? "Vertex Shader" : "Frag. Shader"); buttonsPanel.add(label); JButton defaultButton = new JButton("Default"); buttonsPanel.add(defaultButton); defaultButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { if (isVertexShader) { shading.setVertexShaderFile(null); } else { shading.setFragmentShaderFile(null); } displayErrors(); } }); JButton setButton = new JButton("Set"); buttonsPanel.add(setButton); setButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { FileDialog dialog = new FileDialog(editor, isVertexShader ? "Open Vertex Shader File" : "Open Fragment Shader File", FileDialog.LOAD); if (lastDir != null) dialog.setDirectory(lastDir); dialog.setVisible(true); final String file = dialog.getFile(); final String dir = dialog.getDirectory(); if (dir == null || file == null || file.trim().length() == 0) return; lastDir = dir; String path = new File(dir, file).getAbsolutePath(); if (isVertexShader) { shading.setVertexShaderFile(path); } else { shading.setFragmentShaderFile(path); } displayErrors(); } }); JButton reloadButton = new JButton("Reload"); buttonsPanel.add(reloadButton); reloadButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { if (isVertexShader) { shading.reloadVertexShader(); } else { shading.reloadFragmentShader(); } displayErrors(); } }); JButton showButton = new JButton("Show"); buttonsPanel.add(showButton); showButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { JTextArea text = new JTextArea(isVertexShader ? shading.vertexShaderCode : shading.fragmentShaderCode); text.setEditable(false); JOptionPane.showMessageDialog(editor, text, isVertexShader ? "Current vertex shader code" : "Current fragment shader code", JOptionPane.INFORMATION_MESSAGE); } }); return buttonsPanel; } protected void displayErrors () { if (shading.hasShaderErrors) { JOptionPane.showMessageDialog(editor, shading.shaderErrorMessage, "Shader Error", JOptionPane.ERROR_MESSAGE); } else if (shading.hasMissingSamplers) { JOptionPane.showMessageDialog(editor, shading.missingSamplerMessage, "Missing texture sampler", JOptionPane.WARNING_MESSAGE); } } private String textureDisplayName (int index, String path) { int unit = index + 1; return "u_texture" + unit + ": " + new File(path).getName(); } protected void removeTexture (int index) { imageListModel.remove(index); shading.removeTexture(index); revalidate(); displayErrors(); } protected void swapTexture (int indexA, int indexB) { shading.swapTexture(indexA, indexB); String pathA = shading.extraTexturePaths.get(indexA); String pathB = shading.extraTexturePaths.get(indexB); imageListModel.set(indexA, textureDisplayName(indexA, pathA)); imageListModel.set(indexB, textureDisplayName(indexB, pathB)); revalidate(); displayErrors(); } protected void addTexture (String absolutePath) { imageListModel.addElement(textureDisplayName(imageListModel.getSize(), absolutePath)); shading.addTexture(absolutePath); revalidate(); displayErrors(); } protected void reloadTexture (int index) { shading.reloadTexture(index); displayErrors(); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btPersistentManifoldArray.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; public class btPersistentManifoldArray extends BulletBase { private long swigCPtr; protected btPersistentManifoldArray (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btPersistentManifoldArray, normally you should not need this constructor it's intended for low-level * usage. */ public btPersistentManifoldArray (long cPtr, boolean cMemoryOwn) { this("btPersistentManifoldArray", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btPersistentManifoldArray obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btPersistentManifoldArray(swigCPtr); } swigCPtr = 0; } super.delete(); } public btPersistentManifoldArray operatorAssignment (btPersistentManifoldArray other) { return new btPersistentManifoldArray(CollisionJNI.btPersistentManifoldArray_operatorAssignment(swigCPtr, this, btPersistentManifoldArray.getCPtr(other), other), false); } public btPersistentManifoldArray () { this(CollisionJNI.new_btPersistentManifoldArray__SWIG_0(), true); } public btPersistentManifoldArray (btPersistentManifoldArray otherArray) { this(CollisionJNI.new_btPersistentManifoldArray__SWIG_1(btPersistentManifoldArray.getCPtr(otherArray), otherArray), true); } public int size () { return CollisionJNI.btPersistentManifoldArray_size(swigCPtr, this); } public btPersistentManifold atConst (int n) { long cPtr = CollisionJNI.btPersistentManifoldArray_atConst(swigCPtr, this, n); return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); } public SWIGTYPE_p_p_btPersistentManifold at (int n) { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_at(swigCPtr, this, n), false); } public btPersistentManifold operatorSubscriptConst (int n) { long cPtr = CollisionJNI.btPersistentManifoldArray_operatorSubscriptConst(swigCPtr, this, n); return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); } public SWIGTYPE_p_p_btPersistentManifold operatorSubscript (int n) { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_operatorSubscript(swigCPtr, this, n), false); } public void clear () { CollisionJNI.btPersistentManifoldArray_clear(swigCPtr, this); } public void pop_back () { CollisionJNI.btPersistentManifoldArray_pop_back(swigCPtr, this); } public void resizeNoInitialize (int newsize) { CollisionJNI.btPersistentManifoldArray_resizeNoInitialize(swigCPtr, this, newsize); } public void resize (int newsize, btPersistentManifold fillData) { CollisionJNI.btPersistentManifoldArray_resize__SWIG_0(swigCPtr, this, newsize, btPersistentManifold.getCPtr(fillData), fillData); } public void resize (int newsize) { CollisionJNI.btPersistentManifoldArray_resize__SWIG_1(swigCPtr, this, newsize); } public SWIGTYPE_p_p_btPersistentManifold expandNonInitializing () { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expandNonInitializing(swigCPtr, this), false); } public SWIGTYPE_p_p_btPersistentManifold expand (btPersistentManifold fillValue) { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expand__SWIG_0(swigCPtr, this, btPersistentManifold.getCPtr(fillValue), fillValue), false); } public SWIGTYPE_p_p_btPersistentManifold expand () { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expand__SWIG_1(swigCPtr, this), false); } public void push_back (btPersistentManifold _Val) { CollisionJNI.btPersistentManifoldArray_push_back(swigCPtr, this, btPersistentManifold.getCPtr(_Val), _Val); } public int capacity () { return CollisionJNI.btPersistentManifoldArray_capacity(swigCPtr, this); } public void reserve (int _Count) { CollisionJNI.btPersistentManifoldArray_reserve(swigCPtr, this, _Count); } static public class less extends BulletBase { private long swigCPtr; protected less (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new less, normally you should not need this constructor it's intended for low-level usage. */ public less (long cPtr, boolean cMemoryOwn) { this("less", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (less obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btPersistentManifoldArray_less(swigCPtr); } swigCPtr = 0; } super.delete(); } public boolean operatorFunctionCall (btPersistentManifold a, btPersistentManifold b) { return CollisionJNI.btPersistentManifoldArray_less_operatorFunctionCall(swigCPtr, this, btPersistentManifold.getCPtr(a), a, btPersistentManifold.getCPtr(b), b); } public less () { this(CollisionJNI.new_btPersistentManifoldArray_less(), true); } } public void swap (int index0, int index1) { CollisionJNI.btPersistentManifoldArray_swap(swigCPtr, this, index0, index1); } public int findBinarySearch (btPersistentManifold key) { return CollisionJNI.btPersistentManifoldArray_findBinarySearch(swigCPtr, this, btPersistentManifold.getCPtr(key), key); } public int findLinearSearch (btPersistentManifold key) { return CollisionJNI.btPersistentManifoldArray_findLinearSearch(swigCPtr, this, btPersistentManifold.getCPtr(key), key); } public int findLinearSearch2 (btPersistentManifold key) { return CollisionJNI.btPersistentManifoldArray_findLinearSearch2(swigCPtr, this, btPersistentManifold.getCPtr(key), key); } public void removeAtIndex (int index) { CollisionJNI.btPersistentManifoldArray_removeAtIndex(swigCPtr, this, index); } public void remove (btPersistentManifold key) { CollisionJNI.btPersistentManifoldArray_remove(swigCPtr, this, btPersistentManifold.getCPtr(key), key); } public void initializeFromBuffer (long buffer, int size, int capacity) { CollisionJNI.btPersistentManifoldArray_initializeFromBuffer(swigCPtr, this, buffer, size, capacity); } public void copyFromArray (btPersistentManifoldArray otherArray) { CollisionJNI.btPersistentManifoldArray_copyFromArray(swigCPtr, this, btPersistentManifoldArray.getCPtr(otherArray), otherArray); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.BulletBase; import com.badlogic.gdx.physics.bullet.linearmath.*; public class btPersistentManifoldArray extends BulletBase { private long swigCPtr; protected btPersistentManifoldArray (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btPersistentManifoldArray, normally you should not need this constructor it's intended for low-level * usage. */ public btPersistentManifoldArray (long cPtr, boolean cMemoryOwn) { this("btPersistentManifoldArray", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btPersistentManifoldArray obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btPersistentManifoldArray(swigCPtr); } swigCPtr = 0; } super.delete(); } public btPersistentManifoldArray operatorAssignment (btPersistentManifoldArray other) { return new btPersistentManifoldArray(CollisionJNI.btPersistentManifoldArray_operatorAssignment(swigCPtr, this, btPersistentManifoldArray.getCPtr(other), other), false); } public btPersistentManifoldArray () { this(CollisionJNI.new_btPersistentManifoldArray__SWIG_0(), true); } public btPersistentManifoldArray (btPersistentManifoldArray otherArray) { this(CollisionJNI.new_btPersistentManifoldArray__SWIG_1(btPersistentManifoldArray.getCPtr(otherArray), otherArray), true); } public int size () { return CollisionJNI.btPersistentManifoldArray_size(swigCPtr, this); } public btPersistentManifold atConst (int n) { long cPtr = CollisionJNI.btPersistentManifoldArray_atConst(swigCPtr, this, n); return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); } public SWIGTYPE_p_p_btPersistentManifold at (int n) { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_at(swigCPtr, this, n), false); } public btPersistentManifold operatorSubscriptConst (int n) { long cPtr = CollisionJNI.btPersistentManifoldArray_operatorSubscriptConst(swigCPtr, this, n); return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); } public SWIGTYPE_p_p_btPersistentManifold operatorSubscript (int n) { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_operatorSubscript(swigCPtr, this, n), false); } public void clear () { CollisionJNI.btPersistentManifoldArray_clear(swigCPtr, this); } public void pop_back () { CollisionJNI.btPersistentManifoldArray_pop_back(swigCPtr, this); } public void resizeNoInitialize (int newsize) { CollisionJNI.btPersistentManifoldArray_resizeNoInitialize(swigCPtr, this, newsize); } public void resize (int newsize, btPersistentManifold fillData) { CollisionJNI.btPersistentManifoldArray_resize__SWIG_0(swigCPtr, this, newsize, btPersistentManifold.getCPtr(fillData), fillData); } public void resize (int newsize) { CollisionJNI.btPersistentManifoldArray_resize__SWIG_1(swigCPtr, this, newsize); } public SWIGTYPE_p_p_btPersistentManifold expandNonInitializing () { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expandNonInitializing(swigCPtr, this), false); } public SWIGTYPE_p_p_btPersistentManifold expand (btPersistentManifold fillValue) { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expand__SWIG_0(swigCPtr, this, btPersistentManifold.getCPtr(fillValue), fillValue), false); } public SWIGTYPE_p_p_btPersistentManifold expand () { return new SWIGTYPE_p_p_btPersistentManifold(CollisionJNI.btPersistentManifoldArray_expand__SWIG_1(swigCPtr, this), false); } public void push_back (btPersistentManifold _Val) { CollisionJNI.btPersistentManifoldArray_push_back(swigCPtr, this, btPersistentManifold.getCPtr(_Val), _Val); } public int capacity () { return CollisionJNI.btPersistentManifoldArray_capacity(swigCPtr, this); } public void reserve (int _Count) { CollisionJNI.btPersistentManifoldArray_reserve(swigCPtr, this, _Count); } static public class less extends BulletBase { private long swigCPtr; protected less (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new less, normally you should not need this constructor it's intended for low-level usage. */ public less (long cPtr, boolean cMemoryOwn) { this("less", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (less obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btPersistentManifoldArray_less(swigCPtr); } swigCPtr = 0; } super.delete(); } public boolean operatorFunctionCall (btPersistentManifold a, btPersistentManifold b) { return CollisionJNI.btPersistentManifoldArray_less_operatorFunctionCall(swigCPtr, this, btPersistentManifold.getCPtr(a), a, btPersistentManifold.getCPtr(b), b); } public less () { this(CollisionJNI.new_btPersistentManifoldArray_less(), true); } } public void swap (int index0, int index1) { CollisionJNI.btPersistentManifoldArray_swap(swigCPtr, this, index0, index1); } public int findBinarySearch (btPersistentManifold key) { return CollisionJNI.btPersistentManifoldArray_findBinarySearch(swigCPtr, this, btPersistentManifold.getCPtr(key), key); } public int findLinearSearch (btPersistentManifold key) { return CollisionJNI.btPersistentManifoldArray_findLinearSearch(swigCPtr, this, btPersistentManifold.getCPtr(key), key); } public int findLinearSearch2 (btPersistentManifold key) { return CollisionJNI.btPersistentManifoldArray_findLinearSearch2(swigCPtr, this, btPersistentManifold.getCPtr(key), key); } public void removeAtIndex (int index) { CollisionJNI.btPersistentManifoldArray_removeAtIndex(swigCPtr, this, index); } public void remove (btPersistentManifold key) { CollisionJNI.btPersistentManifoldArray_remove(swigCPtr, this, btPersistentManifold.getCPtr(key), key); } public void initializeFromBuffer (long buffer, int size, int capacity) { CollisionJNI.btPersistentManifoldArray_initializeFromBuffer(swigCPtr, this, buffer, size, capacity); } public void copyFromArray (btPersistentManifoldArray otherArray) { CollisionJNI.btPersistentManifoldArray_copyFromArray(swigCPtr, this, btPersistentManifoldArray.getCPtr(otherArray), otherArray); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/InfluencerPanel.java
package com.badlogic.gdx.tools.flame; import com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer; /** @author Inferno */ public abstract class InfluencerPanel<T extends Influencer> extends EditorPanel<T> { public InfluencerPanel (FlameMain editor, T influencer, String name, String description) { super(editor, name, description, true, true); setValue(influencer); } public InfluencerPanel (FlameMain editor, T influencer, String name, String description, boolean isAlwaysActive, boolean isRemovable) { super(editor, name, description, isAlwaysActive, isRemovable); setValue(influencer); } @Override protected void removePanel () { super.removePanel(); editor.getEmitter().influencers.removeValue(value, true); editor.getEmitter().init(); editor.getEmitter().start(); editor.reloadRows(); } }
package com.badlogic.gdx.tools.flame; import com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer; /** @author Inferno */ public abstract class InfluencerPanel<T extends Influencer> extends EditorPanel<T> { public InfluencerPanel (FlameMain editor, T influencer, String name, String description) { super(editor, name, description, true, true); setValue(influencer); } public InfluencerPanel (FlameMain editor, T influencer, String name, String description, boolean isAlwaysActive, boolean isRemovable) { super(editor, name, description, isAlwaysActive, isRemovable); setValue(influencer); } @Override protected void removePanel () { super.removePanel(); editor.getEmitter().influencers.removeValue(value, true); editor.getEmitter().init(); editor.getEmitter().start(); editor.reloadRows(); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-bullet/jni/swig-src/softbody/com/badlogic/gdx/physics/bullet/softbody/btCPUVertexBufferDescriptor.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.softbody; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.physics.bullet.collision.*; import com.badlogic.gdx.physics.bullet.dynamics.*; public class btCPUVertexBufferDescriptor extends btVertexBufferDescriptor { private long swigCPtr; protected btCPUVertexBufferDescriptor (final String className, long cPtr, boolean cMemoryOwn) { super(className, SoftbodyJNI.btCPUVertexBufferDescriptor_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btCPUVertexBufferDescriptor, normally you should not need this constructor it's intended for low-level * usage. */ public btCPUVertexBufferDescriptor (long cPtr, boolean cMemoryOwn) { this("btCPUVertexBufferDescriptor", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(SoftbodyJNI.btCPUVertexBufferDescriptor_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btCPUVertexBufferDescriptor obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; SoftbodyJNI.delete_btCPUVertexBufferDescriptor(swigCPtr); } swigCPtr = 0; } super.delete(); } static private long SwigConstructbtCPUVertexBufferDescriptor (java.nio.FloatBuffer basePointer, int vertexOffset, int vertexStride) { assert basePointer.isDirect() : "Buffer must be allocated direct."; return SoftbodyJNI.new_btCPUVertexBufferDescriptor__SWIG_0(basePointer, vertexOffset, vertexStride); } public btCPUVertexBufferDescriptor (java.nio.FloatBuffer basePointer, int vertexOffset, int vertexStride) { this(btCPUVertexBufferDescriptor.SwigConstructbtCPUVertexBufferDescriptor(basePointer, vertexOffset, vertexStride), true); } static private long SwigConstructbtCPUVertexBufferDescriptor (java.nio.FloatBuffer basePointer, int vertexOffset, int vertexStride, int normalOffset, int normalStride) { assert basePointer.isDirect() : "Buffer must be allocated direct."; return SoftbodyJNI.new_btCPUVertexBufferDescriptor__SWIG_1(basePointer, vertexOffset, vertexStride, normalOffset, normalStride); } public btCPUVertexBufferDescriptor (java.nio.FloatBuffer basePointer, int vertexOffset, int vertexStride, int normalOffset, int normalStride) { this(btCPUVertexBufferDescriptor.SwigConstructbtCPUVertexBufferDescriptor(basePointer, vertexOffset, vertexStride, normalOffset, normalStride), true); } public java.nio.FloatBuffer getBasePointer () { return SoftbodyJNI.btCPUVertexBufferDescriptor_getBasePointer(swigCPtr, this); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.softbody; import com.badlogic.gdx.physics.bullet.linearmath.*; import com.badlogic.gdx.physics.bullet.collision.*; import com.badlogic.gdx.physics.bullet.dynamics.*; public class btCPUVertexBufferDescriptor extends btVertexBufferDescriptor { private long swigCPtr; protected btCPUVertexBufferDescriptor (final String className, long cPtr, boolean cMemoryOwn) { super(className, SoftbodyJNI.btCPUVertexBufferDescriptor_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btCPUVertexBufferDescriptor, normally you should not need this constructor it's intended for low-level * usage. */ public btCPUVertexBufferDescriptor (long cPtr, boolean cMemoryOwn) { this("btCPUVertexBufferDescriptor", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(SoftbodyJNI.btCPUVertexBufferDescriptor_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btCPUVertexBufferDescriptor obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; SoftbodyJNI.delete_btCPUVertexBufferDescriptor(swigCPtr); } swigCPtr = 0; } super.delete(); } static private long SwigConstructbtCPUVertexBufferDescriptor (java.nio.FloatBuffer basePointer, int vertexOffset, int vertexStride) { assert basePointer.isDirect() : "Buffer must be allocated direct."; return SoftbodyJNI.new_btCPUVertexBufferDescriptor__SWIG_0(basePointer, vertexOffset, vertexStride); } public btCPUVertexBufferDescriptor (java.nio.FloatBuffer basePointer, int vertexOffset, int vertexStride) { this(btCPUVertexBufferDescriptor.SwigConstructbtCPUVertexBufferDescriptor(basePointer, vertexOffset, vertexStride), true); } static private long SwigConstructbtCPUVertexBufferDescriptor (java.nio.FloatBuffer basePointer, int vertexOffset, int vertexStride, int normalOffset, int normalStride) { assert basePointer.isDirect() : "Buffer must be allocated direct."; return SoftbodyJNI.new_btCPUVertexBufferDescriptor__SWIG_1(basePointer, vertexOffset, vertexStride, normalOffset, normalStride); } public btCPUVertexBufferDescriptor (java.nio.FloatBuffer basePointer, int vertexOffset, int vertexStride, int normalOffset, int normalStride) { this(btCPUVertexBufferDescriptor.SwigConstructbtCPUVertexBufferDescriptor(basePointer, vertexOffset, vertexStride, normalOffset, normalStride), true); } public java.nio.FloatBuffer getBasePointer () { return SoftbodyJNI.btCPUVertexBufferDescriptor_getBasePointer(swigCPtr, this); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./tests/gdx-tests/src/com/badlogic/gdx/tests/YDownTest.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureAtlas; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.InputListener; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.tests.utils.GdxTest; /** A simple example of how to use a y-down coordinate system. * @author mzechner */ public class YDownTest extends GdxTest { SpriteBatch batch; BitmapFont font; TextureRegion region; Sprite sprite; TextureAtlas atlas; Stage stage; MyActor image; OrthographicCamera camera; @Override public void create () { // a bitmap font to draw some text, note that we // pass true to the constructor, which flips glyphs on y font = new BitmapFont(Gdx.files.internal("data/lsans-15.fnt"), true); // a texture region, note the flipping on y again region = new TextureRegion(new Texture("data/badlogic.jpg")); region.flip(false, true); // a texture atlas, note the boolean atlas = new TextureAtlas(Gdx.files.internal("data/pack.atlas"), true); // a sprite, created from a region in the atlas sprite = atlas.createSprite("badlogicsmall"); sprite.setPosition(0, 0); // a sprite batch with which we want to render batch = new SpriteBatch(); // a camera, note the setToOrtho call, which will set the y-axis // to point downwards camera = new OrthographicCamera(); camera.setToOrtho(true); // a stage which uses our y-down camera and a simple actor (see MyActor below), // which uses the flipped region. The key here is to // set our y-down camera on the stage, the rest is just for demo purposes. stage = new Stage(); stage.getViewport().setCamera(camera); image = new MyActor(region); image.setPosition(100, 100); stage.addActor(image); // finally we write up the stage as the input process and call it a day. Gdx.input.setInputProcessor(stage); } @Override public void resize (int width, int height) { // handling resizing is simple, just set the camera to ortho again camera.setToOrtho(true, width, height); } @Override public void render () { // clear the screen, update the camera and make the sprite batch // use its matrices. Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); camera.update(); batch.setProjectionMatrix(camera.combined); // render all the things, we render in a y-down // cartesian coordinate system batch.begin(); // drawing a region, x and y will be the top left corner of the region, would be bottom left // with y-up. batch.draw(region, 20, 100); // drawing text, x and y will be the top left corner for text, same as with y-up font.draw(batch, "This is a test", 270, 100); // drawing regions from an atlas, x and y will be the top left corner. // you shouldn't call findRegion every frame, cache the result. batch.draw(atlas.findRegion("badlogicsmall"), 360, 100); // drawing a sprite created from an atlas, FIXME wut?! AtlasSprite#setPosition seems to be wrong sprite.setColor(Color.RED); sprite.draw(batch); // finally we draw our current touch/mouse coordinates font.draw(batch, Gdx.input.getX() + ", " + Gdx.input.getY(), 0, 0); batch.end(); // tell the stage to act and draw itself stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); } /** A very simple actor implementation that does not obey rotation/scale/origin set on the actor. Allows dragging of the actor. * @author mzechner */ public class MyActor extends Actor { TextureRegion region; float lastX; float lastY; public MyActor (TextureRegion region) { this.region = region; setWidth(region.getRegionWidth()); setHeight(region.getRegionHeight()); addListener(new InputListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { // we only care for the first finger to make things easier if (pointer != 0) return false; // record the coordinates the finger went down on. they // are given relative to the actor's upper left corner (0, 0) lastX = x; lastY = y; return true; } public void touchDragged (InputEvent event, float x, float y, int pointer) { // we only care for the first finger to make things easier if (pointer != 0) return; // adjust the actor's position by (current mouse position - last mouse position) // in the actor's coordinate system. moveBy(x - lastX, y - lastY); // save the current mouse position as the basis for the next drag event. // we adjust by the same delta so next time drag is called, lastX/lastY // are in the actor's local coordinate system automatically. lastX = x - (x - lastX); lastY = y - (y - lastY); } }); } @Override public void draw (Batch batch, float parentAlpha) { batch.draw(region, getX(), getY()); } } @Override public void dispose () { batch.dispose(); font.dispose(); atlas.dispose(); region.getTexture().dispose(); stage.dispose(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureAtlas; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.InputListener; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.tests.utils.GdxTest; /** A simple example of how to use a y-down coordinate system. * @author mzechner */ public class YDownTest extends GdxTest { SpriteBatch batch; BitmapFont font; TextureRegion region; Sprite sprite; TextureAtlas atlas; Stage stage; MyActor image; OrthographicCamera camera; @Override public void create () { // a bitmap font to draw some text, note that we // pass true to the constructor, which flips glyphs on y font = new BitmapFont(Gdx.files.internal("data/lsans-15.fnt"), true); // a texture region, note the flipping on y again region = new TextureRegion(new Texture("data/badlogic.jpg")); region.flip(false, true); // a texture atlas, note the boolean atlas = new TextureAtlas(Gdx.files.internal("data/pack.atlas"), true); // a sprite, created from a region in the atlas sprite = atlas.createSprite("badlogicsmall"); sprite.setPosition(0, 0); // a sprite batch with which we want to render batch = new SpriteBatch(); // a camera, note the setToOrtho call, which will set the y-axis // to point downwards camera = new OrthographicCamera(); camera.setToOrtho(true); // a stage which uses our y-down camera and a simple actor (see MyActor below), // which uses the flipped region. The key here is to // set our y-down camera on the stage, the rest is just for demo purposes. stage = new Stage(); stage.getViewport().setCamera(camera); image = new MyActor(region); image.setPosition(100, 100); stage.addActor(image); // finally we write up the stage as the input process and call it a day. Gdx.input.setInputProcessor(stage); } @Override public void resize (int width, int height) { // handling resizing is simple, just set the camera to ortho again camera.setToOrtho(true, width, height); } @Override public void render () { // clear the screen, update the camera and make the sprite batch // use its matrices. Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); camera.update(); batch.setProjectionMatrix(camera.combined); // render all the things, we render in a y-down // cartesian coordinate system batch.begin(); // drawing a region, x and y will be the top left corner of the region, would be bottom left // with y-up. batch.draw(region, 20, 100); // drawing text, x and y will be the top left corner for text, same as with y-up font.draw(batch, "This is a test", 270, 100); // drawing regions from an atlas, x and y will be the top left corner. // you shouldn't call findRegion every frame, cache the result. batch.draw(atlas.findRegion("badlogicsmall"), 360, 100); // drawing a sprite created from an atlas, FIXME wut?! AtlasSprite#setPosition seems to be wrong sprite.setColor(Color.RED); sprite.draw(batch); // finally we draw our current touch/mouse coordinates font.draw(batch, Gdx.input.getX() + ", " + Gdx.input.getY(), 0, 0); batch.end(); // tell the stage to act and draw itself stage.act(Gdx.graphics.getDeltaTime()); stage.draw(); } /** A very simple actor implementation that does not obey rotation/scale/origin set on the actor. Allows dragging of the actor. * @author mzechner */ public class MyActor extends Actor { TextureRegion region; float lastX; float lastY; public MyActor (TextureRegion region) { this.region = region; setWidth(region.getRegionWidth()); setHeight(region.getRegionHeight()); addListener(new InputListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { // we only care for the first finger to make things easier if (pointer != 0) return false; // record the coordinates the finger went down on. they // are given relative to the actor's upper left corner (0, 0) lastX = x; lastY = y; return true; } public void touchDragged (InputEvent event, float x, float y, int pointer) { // we only care for the first finger to make things easier if (pointer != 0) return; // adjust the actor's position by (current mouse position - last mouse position) // in the actor's coordinate system. moveBy(x - lastX, y - lastY); // save the current mouse position as the basis for the next drag event. // we adjust by the same delta so next time drag is called, lastX/lastY // are in the actor's local coordinate system automatically. lastX = x - (x - lastX); lastY = y - (y - lastY); } }); } @Override public void draw (Batch batch, float parentAlpha) { batch.draw(region, getX(), getY()); } } @Override public void dispose () { batch.dispose(); font.dispose(); atlas.dispose(); region.getTexture().dispose(); stage.dispose(); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/DirectByteBuffer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package java.nio; import com.google.gwt.corp.compatibility.Endianness; import com.google.gwt.corp.compatibility.Numbers; import com.google.gwt.typedarrays.client.ArrayBufferNative; import com.google.gwt.typedarrays.client.Int8ArrayNative; import com.google.gwt.typedarrays.shared.ArrayBuffer; import com.google.gwt.typedarrays.shared.ArrayBufferView; import com.google.gwt.typedarrays.shared.Int8Array; /** DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyHeapByteBuffer compose the implementation of direct byte * buffers. * <p> * DirectByteBuffer implements all the shared readonly methods and is extended by the other two classes. * </p> * <p> * All methods are marked final for runtime performance. * </p> */ abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBufferView { Int8Array byteArray; DirectByteBuffer (int capacity) { this(ArrayBufferNative.create(capacity), capacity, 0); } DirectByteBuffer (ArrayBuffer buf) { this(buf, buf.byteLength(), 0); } DirectByteBuffer (ArrayBuffer buffer, int capacity, int offset) { super(capacity); byteArray = Int8ArrayNative.create(buffer, offset, capacity); } public ArrayBufferView getTypedArray () { return byteArray; } public int getElementSize () { return 1; } /* * Override ByteBuffer.get(byte[], int, int) to improve performance. * * (non-Javadoc) * * @see java.nio.ByteBuffer#get(byte[], int, int) */ public final ByteBuffer get (byte[] dest, int off, int len) { int length = dest.length; if (off < 0 || len < 0 || (long)off + (long)len > length) { throw new IndexOutOfBoundsException(); } if (len > remaining()) { throw new BufferUnderflowException(); } for (int i = 0; i < len; i++) { dest[i + off] = get(position + i); } position += len; return this; } public final byte get () { // if (position == limit) { // throw new BufferUnderflowException(); // } return (byte)byteArray.get(position++); } public final byte get (int index) { // if (index < 0 || index >= limit) { // throw new IndexOutOfBoundsException(); // } return (byte)byteArray.get(index); } public final double getDouble () { return Numbers.longBitsToDouble(getLong()); } public final double getDouble (int index) { return Numbers.longBitsToDouble(getLong(index)); } public final float getFloat () { return Numbers.intBitsToFloat(getInt()); } public final float getFloat (int index) { return Numbers.intBitsToFloat(getInt(index)); } public final int getInt () { int newPosition = position + 4; // if (newPosition > limit) { // throw new BufferUnderflowException(); // } int result = loadInt(position); position = newPosition; return result; } public final int getInt (int index) { // if (index < 0 || index + 4 > limit) { // throw new IndexOutOfBoundsException(); // } return loadInt(index); } public final long getLong () { int newPosition = position + 8; // if (newPosition > limit) { // throw new BufferUnderflowException(); // } long result = loadLong(position); position = newPosition; return result; } public final long getLong (int index) { // if (index < 0 || index + 8 > limit) { // throw new IndexOutOfBoundsException(); // } return loadLong(index); } public final short getShort () { int newPosition = position + 2; // if (newPosition > limit) { // throw new BufferUnderflowException(); // } short result = loadShort(position); position = newPosition; return result; } public final short getShort (int index) { // if (index < 0 || index + 2 > limit) { // throw new IndexOutOfBoundsException(); // } return loadShort(index); } public final boolean isDirect () { return false; } protected final int loadInt (int baseOffset) { int bytes = 0; if (order == Endianness.BIG_ENDIAN) { for (int i = 0; i < 4; i++) { bytes = bytes << 8; bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); } } else { for (int i = 3; i >= 0; i--) { bytes = bytes << 8; bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); } } return bytes; } protected final long loadLong (int baseOffset) { long bytes = 0; if (order == Endianness.BIG_ENDIAN) { for (int i = 0; i < 8; i++) { bytes = bytes << 8; bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); } } else { for (int i = 7; i >= 0; i--) { bytes = bytes << 8; bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); } } return bytes; } protected final short loadShort (int baseOffset) { short bytes = 0; if (order == Endianness.BIG_ENDIAN) { bytes = (short)(byteArray.get(baseOffset) << 8); bytes |= (byteArray.get(baseOffset + 1) & 0xFF); } else { bytes = (short)(byteArray.get(baseOffset + 1) << 8); bytes |= (byteArray.get(baseOffset) & 0xFF); } return bytes; } protected final void store (int baseOffset, int value) { if (order == Endianness.BIG_ENDIAN) { for (int i = 3; i >= 0; i--) { byteArray.set(baseOffset + i, (byte)(value & 0xFF)); value = value >> 8; } } else { for (int i = 0; i <= 3; i++) { byteArray.set(baseOffset + i, (byte)(value & 0xFF)); value = value >> 8; } } } protected final void store (int baseOffset, long value) { if (order == Endianness.BIG_ENDIAN) { for (int i = 7; i >= 0; i--) { byteArray.set(baseOffset + i, (byte)(value & 0xFF)); value = value >> 8; } } else { for (int i = 0; i <= 7; i++) { byteArray.set(baseOffset + i, (byte)(value & 0xFF)); value = value >> 8; } } } protected final void store (int baseOffset, short value) { if (order == Endianness.BIG_ENDIAN) { byteArray.set(baseOffset, (byte)((value >> 8) & 0xFF)); byteArray.set(baseOffset + 1, (byte)(value & 0xFF)); } else { byteArray.set(baseOffset + 1, (byte)((value >> 8) & 0xFF)); byteArray.set(baseOffset, (byte)(value & 0xFF)); } } }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package java.nio; import com.google.gwt.corp.compatibility.Endianness; import com.google.gwt.corp.compatibility.Numbers; import com.google.gwt.typedarrays.client.ArrayBufferNative; import com.google.gwt.typedarrays.client.Int8ArrayNative; import com.google.gwt.typedarrays.shared.ArrayBuffer; import com.google.gwt.typedarrays.shared.ArrayBufferView; import com.google.gwt.typedarrays.shared.Int8Array; /** DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyHeapByteBuffer compose the implementation of direct byte * buffers. * <p> * DirectByteBuffer implements all the shared readonly methods and is extended by the other two classes. * </p> * <p> * All methods are marked final for runtime performance. * </p> */ abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBufferView { Int8Array byteArray; DirectByteBuffer (int capacity) { this(ArrayBufferNative.create(capacity), capacity, 0); } DirectByteBuffer (ArrayBuffer buf) { this(buf, buf.byteLength(), 0); } DirectByteBuffer (ArrayBuffer buffer, int capacity, int offset) { super(capacity); byteArray = Int8ArrayNative.create(buffer, offset, capacity); } public ArrayBufferView getTypedArray () { return byteArray; } public int getElementSize () { return 1; } /* * Override ByteBuffer.get(byte[], int, int) to improve performance. * * (non-Javadoc) * * @see java.nio.ByteBuffer#get(byte[], int, int) */ public final ByteBuffer get (byte[] dest, int off, int len) { int length = dest.length; if (off < 0 || len < 0 || (long)off + (long)len > length) { throw new IndexOutOfBoundsException(); } if (len > remaining()) { throw new BufferUnderflowException(); } for (int i = 0; i < len; i++) { dest[i + off] = get(position + i); } position += len; return this; } public final byte get () { // if (position == limit) { // throw new BufferUnderflowException(); // } return (byte)byteArray.get(position++); } public final byte get (int index) { // if (index < 0 || index >= limit) { // throw new IndexOutOfBoundsException(); // } return (byte)byteArray.get(index); } public final double getDouble () { return Numbers.longBitsToDouble(getLong()); } public final double getDouble (int index) { return Numbers.longBitsToDouble(getLong(index)); } public final float getFloat () { return Numbers.intBitsToFloat(getInt()); } public final float getFloat (int index) { return Numbers.intBitsToFloat(getInt(index)); } public final int getInt () { int newPosition = position + 4; // if (newPosition > limit) { // throw new BufferUnderflowException(); // } int result = loadInt(position); position = newPosition; return result; } public final int getInt (int index) { // if (index < 0 || index + 4 > limit) { // throw new IndexOutOfBoundsException(); // } return loadInt(index); } public final long getLong () { int newPosition = position + 8; // if (newPosition > limit) { // throw new BufferUnderflowException(); // } long result = loadLong(position); position = newPosition; return result; } public final long getLong (int index) { // if (index < 0 || index + 8 > limit) { // throw new IndexOutOfBoundsException(); // } return loadLong(index); } public final short getShort () { int newPosition = position + 2; // if (newPosition > limit) { // throw new BufferUnderflowException(); // } short result = loadShort(position); position = newPosition; return result; } public final short getShort (int index) { // if (index < 0 || index + 2 > limit) { // throw new IndexOutOfBoundsException(); // } return loadShort(index); } public final boolean isDirect () { return false; } protected final int loadInt (int baseOffset) { int bytes = 0; if (order == Endianness.BIG_ENDIAN) { for (int i = 0; i < 4; i++) { bytes = bytes << 8; bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); } } else { for (int i = 3; i >= 0; i--) { bytes = bytes << 8; bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); } } return bytes; } protected final long loadLong (int baseOffset) { long bytes = 0; if (order == Endianness.BIG_ENDIAN) { for (int i = 0; i < 8; i++) { bytes = bytes << 8; bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); } } else { for (int i = 7; i >= 0; i--) { bytes = bytes << 8; bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); } } return bytes; } protected final short loadShort (int baseOffset) { short bytes = 0; if (order == Endianness.BIG_ENDIAN) { bytes = (short)(byteArray.get(baseOffset) << 8); bytes |= (byteArray.get(baseOffset + 1) & 0xFF); } else { bytes = (short)(byteArray.get(baseOffset + 1) << 8); bytes |= (byteArray.get(baseOffset) & 0xFF); } return bytes; } protected final void store (int baseOffset, int value) { if (order == Endianness.BIG_ENDIAN) { for (int i = 3; i >= 0; i--) { byteArray.set(baseOffset + i, (byte)(value & 0xFF)); value = value >> 8; } } else { for (int i = 0; i <= 3; i++) { byteArray.set(baseOffset + i, (byte)(value & 0xFF)); value = value >> 8; } } } protected final void store (int baseOffset, long value) { if (order == Endianness.BIG_ENDIAN) { for (int i = 7; i >= 0; i--) { byteArray.set(baseOffset + i, (byte)(value & 0xFF)); value = value >> 8; } } else { for (int i = 0; i <= 7; i++) { byteArray.set(baseOffset + i, (byte)(value & 0xFF)); value = value >> 8; } } } protected final void store (int baseOffset, short value) { if (order == Endianness.BIG_ENDIAN) { byteArray.set(baseOffset, (byte)((value >> 8) & 0xFF)); byteArray.set(baseOffset + 1, (byte)(value & 0xFF)); } else { byteArray.set(baseOffset + 1, (byte)((value >> 8) & 0xFF)); byteArray.set(baseOffset, (byte)(value & 0xFF)); } } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/BillboardBatchPanel.java
package com.badlogic.gdx.tools.flame; import java.awt.GridBagConstraints; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.DefaultComboBoxModel; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import com.badlogic.gdx.graphics.g3d.particles.batches.BillboardParticleBatch; /** @author Inferno */ public class BillboardBatchPanel extends EditorPanel<BillboardParticleBatch> { JComboBox alignCombo; JCheckBox useGPUBox; JComboBox sortCombo; JComboBox srcBlendFunction, destBlendFunction; public BillboardBatchPanel (FlameMain particleEditor3D, BillboardParticleBatch renderer) { super(particleEditor3D, "Billboard Batch", "Renderer used to draw billboards particles."); initializeComponents(renderer); setValue(renderer); } private void initializeComponents (BillboardParticleBatch renderer) { // Align alignCombo = new JComboBox(); alignCombo.setModel(new DefaultComboBoxModel(AlignModeWrapper.values())); alignCombo.setSelectedItem(AlignModeWrapper.find(renderer.getAlignMode())); alignCombo.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { AlignModeWrapper align = (AlignModeWrapper)alignCombo.getSelectedItem(); editor.getBillboardBatch().setAlignMode(align.mode); } }); // Cpu/Gpu useGPUBox = new JCheckBox(); useGPUBox.setSelected(renderer.isUseGPU()); useGPUBox.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { editor.getBillboardBatch().setUseGpu(useGPUBox.isSelected()); } }); // Sort sortCombo = new JComboBox(); sortCombo.setModel(new DefaultComboBoxModel(SortMode.values())); sortCombo.setSelectedItem(SortMode.find(renderer.getSorter())); sortCombo.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { SortMode mode = (SortMode)sortCombo.getSelectedItem(); editor.getBillboardBatch().setSorter(mode.sorter); } }); // Blending source srcBlendFunction = new JComboBox(); srcBlendFunction.setModel(new DefaultComboBoxModel(BlendFunction.values())); srcBlendFunction.setSelectedItem(BlendFunction.find(renderer.getBlendingAttribute().sourceFunction)); srcBlendFunction.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { BlendFunction blend = (BlendFunction)srcBlendFunction.getSelectedItem(); editor.getBillboardBatch().getBlendingAttribute().sourceFunction = blend.blend; } }); // Blending destination destBlendFunction = new JComboBox(); destBlendFunction.setModel(new DefaultComboBoxModel(BlendFunction.values())); destBlendFunction.setSelectedItem(BlendFunction.find(renderer.getBlendingAttribute().destFunction)); destBlendFunction.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { BlendFunction blend = (BlendFunction)destBlendFunction.getSelectedItem(); editor.getBillboardBatch().getBlendingAttribute().destFunction = blend.blend; } }); int i = 0; Insets insets = new Insets(6, 0, 0, 0); contentPanel.add(new JLabel("Align"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(alignCombo, new GridBagConstraints(1, i++, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(new JLabel("Use GPU"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(useGPUBox, new GridBagConstraints(1, i++, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(new JLabel("Sort"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(sortCombo, new GridBagConstraints(1, i++, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(new JLabel("Blending Src"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(srcBlendFunction, new GridBagConstraints(1, i++, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(new JLabel("Blending Dest"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(destBlendFunction, new GridBagConstraints(1, i++, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); } }
package com.badlogic.gdx.tools.flame; import java.awt.GridBagConstraints; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.DefaultComboBoxModel; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import com.badlogic.gdx.graphics.g3d.particles.batches.BillboardParticleBatch; /** @author Inferno */ public class BillboardBatchPanel extends EditorPanel<BillboardParticleBatch> { JComboBox alignCombo; JCheckBox useGPUBox; JComboBox sortCombo; JComboBox srcBlendFunction, destBlendFunction; public BillboardBatchPanel (FlameMain particleEditor3D, BillboardParticleBatch renderer) { super(particleEditor3D, "Billboard Batch", "Renderer used to draw billboards particles."); initializeComponents(renderer); setValue(renderer); } private void initializeComponents (BillboardParticleBatch renderer) { // Align alignCombo = new JComboBox(); alignCombo.setModel(new DefaultComboBoxModel(AlignModeWrapper.values())); alignCombo.setSelectedItem(AlignModeWrapper.find(renderer.getAlignMode())); alignCombo.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { AlignModeWrapper align = (AlignModeWrapper)alignCombo.getSelectedItem(); editor.getBillboardBatch().setAlignMode(align.mode); } }); // Cpu/Gpu useGPUBox = new JCheckBox(); useGPUBox.setSelected(renderer.isUseGPU()); useGPUBox.addChangeListener(new ChangeListener() { public void stateChanged (ChangeEvent event) { editor.getBillboardBatch().setUseGpu(useGPUBox.isSelected()); } }); // Sort sortCombo = new JComboBox(); sortCombo.setModel(new DefaultComboBoxModel(SortMode.values())); sortCombo.setSelectedItem(SortMode.find(renderer.getSorter())); sortCombo.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { SortMode mode = (SortMode)sortCombo.getSelectedItem(); editor.getBillboardBatch().setSorter(mode.sorter); } }); // Blending source srcBlendFunction = new JComboBox(); srcBlendFunction.setModel(new DefaultComboBoxModel(BlendFunction.values())); srcBlendFunction.setSelectedItem(BlendFunction.find(renderer.getBlendingAttribute().sourceFunction)); srcBlendFunction.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { BlendFunction blend = (BlendFunction)srcBlendFunction.getSelectedItem(); editor.getBillboardBatch().getBlendingAttribute().sourceFunction = blend.blend; } }); // Blending destination destBlendFunction = new JComboBox(); destBlendFunction.setModel(new DefaultComboBoxModel(BlendFunction.values())); destBlendFunction.setSelectedItem(BlendFunction.find(renderer.getBlendingAttribute().destFunction)); destBlendFunction.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { BlendFunction blend = (BlendFunction)destBlendFunction.getSelectedItem(); editor.getBillboardBatch().getBlendingAttribute().destFunction = blend.blend; } }); int i = 0; Insets insets = new Insets(6, 0, 0, 0); contentPanel.add(new JLabel("Align"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(alignCombo, new GridBagConstraints(1, i++, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(new JLabel("Use GPU"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(useGPUBox, new GridBagConstraints(1, i++, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(new JLabel("Sort"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(sortCombo, new GridBagConstraints(1, i++, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(new JLabel("Blending Src"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(srcBlendFunction, new GridBagConstraints(1, i++, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(new JLabel("Blending Dest"), new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); contentPanel.add(destBlendFunction, new GridBagConstraints(1, i++, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insets, 0, 0)); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./tests/gdx-tests/src/com/badlogic/gdx/tests/bench/TiledMapBench.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.bench; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.maps.MapLayers; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.maps.tiled.TiledMapRenderer; import com.badlogic.gdx.maps.tiled.TiledMapTileLayer; import com.badlogic.gdx.maps.tiled.TiledMapTileLayer.Cell; import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer; import com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.tests.utils.OrthoCamController; import com.badlogic.gdx.utils.ScreenUtils; public class TiledMapBench extends GdxTest { private TiledMap map; private TiledMapRenderer renderer; private OrthographicCamera camera; private OrthoCamController cameraController; private AssetManager assetManager; private Texture tiles; private Texture texture; private BitmapFont font; private SpriteBatch batch; @Override public void create () { float w = Gdx.graphics.getWidth(); float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(); camera.setToOrtho(false, (w / h) * 320, 320); camera.update(); cameraController = new OrthoCamController(camera); Gdx.input.setInputProcessor(cameraController); font = new BitmapFont(); batch = new SpriteBatch(); { tiles = new Texture(Gdx.files.internal("data/maps/tiled/tiles.png")); TextureRegion[][] splitTiles = TextureRegion.split(tiles, 32, 32); map = new TiledMap(); MapLayers layers = map.getLayers(); for (int l = 0; l < 20; l++) { TiledMapTileLayer layer = new TiledMapTileLayer(150, 100, 32, 32); for (int x = 0; x < 150; x++) { for (int y = 0; y < 100; y++) { int ty = (int)(Math.random() * splitTiles.length); int tx = (int)(Math.random() * splitTiles[ty].length); Cell cell = new Cell(); cell.setTile(new StaticTiledMapTile(splitTiles[ty][tx])); layer.setCell(x, y, cell); } } layers.add(layer); } } renderer = new OrthogonalTiledMapRenderer(map); } @Override public void render () { ScreenUtils.clear(100f / 255f, 100f / 255f, 250f / 255f, 1f); camera.update(); renderer.setView(camera); renderer.render(); batch.begin(); font.draw(batch, "FPS: " + Gdx.graphics.getFramesPerSecond(), 10, 20); batch.end(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.bench; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.maps.MapLayers; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.maps.tiled.TiledMapRenderer; import com.badlogic.gdx.maps.tiled.TiledMapTileLayer; import com.badlogic.gdx.maps.tiled.TiledMapTileLayer.Cell; import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer; import com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile; import com.badlogic.gdx.tests.utils.GdxTest; import com.badlogic.gdx.tests.utils.OrthoCamController; import com.badlogic.gdx.utils.ScreenUtils; public class TiledMapBench extends GdxTest { private TiledMap map; private TiledMapRenderer renderer; private OrthographicCamera camera; private OrthoCamController cameraController; private AssetManager assetManager; private Texture tiles; private Texture texture; private BitmapFont font; private SpriteBatch batch; @Override public void create () { float w = Gdx.graphics.getWidth(); float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(); camera.setToOrtho(false, (w / h) * 320, 320); camera.update(); cameraController = new OrthoCamController(camera); Gdx.input.setInputProcessor(cameraController); font = new BitmapFont(); batch = new SpriteBatch(); { tiles = new Texture(Gdx.files.internal("data/maps/tiled/tiles.png")); TextureRegion[][] splitTiles = TextureRegion.split(tiles, 32, 32); map = new TiledMap(); MapLayers layers = map.getLayers(); for (int l = 0; l < 20; l++) { TiledMapTileLayer layer = new TiledMapTileLayer(150, 100, 32, 32); for (int x = 0; x < 150; x++) { for (int y = 0; y < 100; y++) { int ty = (int)(Math.random() * splitTiles.length); int tx = (int)(Math.random() * splitTiles[ty].length); Cell cell = new Cell(); cell.setTile(new StaticTiledMapTile(splitTiles[ty][tx])); layer.setCell(x, y, cell); } } layers.add(layer); } } renderer = new OrthogonalTiledMapRenderer(map); } @Override public void render () { ScreenUtils.clear(100f / 255f, 100f / 255f, 250f / 255f, 1f); camera.update(); renderer.setView(camera); renderer.render(); batch.begin(); font.draw(batch, "FPS: " + Gdx.graphics.getFramesPerSecond(), 10, 20); batch.end(); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/joints/ConstantVolumeJointDef.java
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ package org.jbox2d.dynamics.joints; import java.util.ArrayList; import org.jbox2d.dynamics.Body; /** Definition for a {@link ConstantVolumeJoint}, which connects a group a bodies together so they maintain a constant volume * within them. */ public class ConstantVolumeJointDef extends JointDef { public float frequencyHz; public float dampingRatio; ArrayList<Body> bodies; ArrayList<DistanceJoint> joints; public ConstantVolumeJointDef () { super(JointType.CONSTANT_VOLUME); bodies = new ArrayList<Body>(); joints = null; collideConnected = false; frequencyHz = 0.0f; dampingRatio = 0.0f; } /** Adds a body to the group * * @param argBody */ public void addBody (Body argBody) { bodies.add(argBody); if (bodies.size() == 1) { bodyA = argBody; } if (bodies.size() == 2) { bodyB = argBody; } } /** Adds a body and the pre-made distance joint. Should only be used for deserialization. */ public void addBodyAndJoint (Body argBody, DistanceJoint argJoint) { addBody(argBody); if (joints == null) { joints = new ArrayList<DistanceJoint>(); } joints.add(argJoint); } }
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ package org.jbox2d.dynamics.joints; import java.util.ArrayList; import org.jbox2d.dynamics.Body; /** Definition for a {@link ConstantVolumeJoint}, which connects a group a bodies together so they maintain a constant volume * within them. */ public class ConstantVolumeJointDef extends JointDef { public float frequencyHz; public float dampingRatio; ArrayList<Body> bodies; ArrayList<DistanceJoint> joints; public ConstantVolumeJointDef () { super(JointType.CONSTANT_VOLUME); bodies = new ArrayList<Body>(); joints = null; collideConnected = false; frequencyHz = 0.0f; dampingRatio = 0.0f; } /** Adds a body to the group * * @param argBody */ public void addBody (Body argBody) { bodies.add(argBody); if (bodies.size() == 1) { bodyA = argBody; } if (bodies.size() == 2) { bodyB = argBody; } } /** Adds a body and the pre-made distance joint. Should only be used for deserialization. */ public void addBodyAndJoint (Body argBody, DistanceJoint argJoint) { addBody(argBody); if (joints == null) { joints = new ArrayList<DistanceJoint>(); } joints.add(argJoint); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-tools/src/com/badlogic/gdx/tools/bmfont/BitmapFontWriterTest.java
package com.badlogic.gdx.tools.bmfont; import com.badlogic.gdx.ApplicationAdapter; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.GlyphLayout; import com.badlogic.gdx.graphics.g2d.PixmapPacker; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.tools.hiero.Hiero; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ScreenUtils; public class BitmapFontWriterTest extends ApplicationAdapter { SpriteBatch spriteBatch; ShapeRenderer renderer; BitmapFont generatedFont; BitmapFont loadedFont; BitmapFont font; @Override public void create () { BitmapFontWriter.FontInfo info = new BitmapFontWriter.FontInfo(); info.padding = new BitmapFontWriter.Padding(0, 0, 0, 0); FreeTypeFontGenerator.FreeTypeFontParameter param = new FreeTypeFontGenerator.FreeTypeFontParameter(); param.size = 13; param.shadowOffsetY = 3; param.renderCount = 3; param.shadowColor = new Color(0, 0, 0, 1); param.characters = Hiero.EXTENDED_CHARS; param.packer = new PixmapPacker(1024, 1024, Pixmap.Format.RGBA8888, 2, false, new PixmapPacker.SkylineStrategy()); FreeTypeFontGenerator generator = new FreeTypeFontGenerator( Gdx.files.absolute("../../tests/gdx-tests-android/assets/data/unbom.ttf")); generatedFont = generator.generateFont(param); info.overrideMetrics(generatedFont.getData()); BitmapFontWriter.writeFont(generatedFont.getData(), new String[] {"bitmapWrittenFont.png"}, Gdx.files.local("bitmapWrittenFont.fnt"), info, 512, 512); BitmapFontWriter.writePixmaps(param.packer.getPages(), Gdx.files.local(""), "bitmapWrittenFont"); final float ascent = generatedFont.getAscent(); final float descent = generatedFont.getDescent(); final float capHeight = generatedFont.getCapHeight(); final float lineHeight = generatedFont.getLineHeight(); final float spaceXadvance = generatedFont.getSpaceXadvance(); final float xHeight = generatedFont.getXHeight(); loadedFont = new BitmapFont(Gdx.files.local("bitmapWrittenFont.fnt")); final float loadedFontascent = loadedFont.getAscent(); final float loadedFontdescent = loadedFont.getDescent(); final float loadedFontcapHeight = loadedFont.getCapHeight(); final float loadedFontlineHeight = loadedFont.getLineHeight(); final float loadedFontspaceXadvance = loadedFont.getSpaceXadvance(); final float loadedFontxHeight = loadedFont.getXHeight(); System.out.println("Ascent: " + ascent + " : " + loadedFontascent); System.out.println("Descent: " + descent + " : " + loadedFontdescent); System.out.println("Cap Height: " + capHeight + " : " + loadedFontcapHeight); System.out.println("Line height: " + lineHeight + " : " + loadedFontlineHeight); System.out.println("Space X advance: " + spaceXadvance + " : " + loadedFontspaceXadvance); System.out.println("xHeight: " + xHeight + " : " + loadedFontxHeight); if (!MathUtils.isEqual(ascent, loadedFontascent)) throw new GdxRuntimeException("Ascent is not equal"); if (!MathUtils.isEqual(descent, loadedFontdescent)) throw new GdxRuntimeException("Descent is not equal"); if (!MathUtils.isEqual(capHeight, loadedFontcapHeight)) throw new GdxRuntimeException("Cap height is not equal"); if (!MathUtils.isEqual(lineHeight, loadedFontlineHeight)) throw new GdxRuntimeException("Line Height is not equal"); if (!MathUtils.isEqual(spaceXadvance, loadedFontspaceXadvance)) throw new GdxRuntimeException("spaceXAdvance is not equal"); if (!MathUtils.isEqual(xHeight, loadedFontxHeight)) throw new GdxRuntimeException("xHeight is not equal"); spriteBatch = new SpriteBatch(); renderer = new ShapeRenderer(); renderer.setProjectionMatrix(spriteBatch.getProjectionMatrix()); font = new BitmapFont(); } @Override public void render () { ScreenUtils.clear(1f, 0.5f, 0.5f, 1f); renderer.setProjectionMatrix( renderer.getProjectionMatrix().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight())); spriteBatch.setProjectionMatrix( spriteBatch.getProjectionMatrix().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight())); spriteBatch.begin(); String text = "Sphinx of black quartz."; generatedFont.setColor(Color.RED); int viewHeight = Gdx.graphics.getHeight(); font.setColor(Color.BLACK); font.draw(spriteBatch, "draw position", 20, viewHeight - 0); font.setColor(Color.BLUE); font.draw(spriteBatch, "bounds", 20, viewHeight - 20); font.setColor(Color.MAGENTA); font.draw(spriteBatch, "baseline", 20, viewHeight - 40); font.setColor(Color.GREEN); font.draw(spriteBatch, "x height", 20, viewHeight - 60); font.setColor(Color.CYAN); font.draw(spriteBatch, "ascent", 20, viewHeight - 80); font.setColor(Color.RED); font.draw(spriteBatch, "descent", 20, viewHeight - 100); font.setColor(Color.ORANGE); font.draw(spriteBatch, "line height", 20, viewHeight - 120); font.setColor(Color.LIGHT_GRAY); font.draw(spriteBatch, "cap height", 20, viewHeight - 140); generatedFont.setColor(Color.WHITE); spriteBatch.end(); renderFontWithMetrics(generatedFont, text, 100, 300); renderFontWithMetrics(loadedFont, text, 100, 200); } private void renderFontWithMetrics (BitmapFont font, String text, float x, float y) { float alignmentWidth; spriteBatch.begin(); GlyphLayout layout = font.draw(spriteBatch, text, x, y); spriteBatch.end(); renderer.begin(ShapeRenderer.ShapeType.Filled); renderer.setColor(Color.BLACK); renderer.rect(x - 3, y - 3, 6, 6); renderer.end(); float baseline = y - font.getCapHeight(); renderer.begin(ShapeRenderer.ShapeType.Line); renderer.setColor(Color.LIGHT_GRAY); renderer.line(0, y, 9999, y); renderer.setColor(Color.MAGENTA); renderer.line(0, baseline, 9999, baseline); renderer.setColor(Color.GREEN); renderer.line(0, baseline + font.getXHeight(), 9999, baseline + font.getXHeight()); renderer.setColor(Color.CYAN); renderer.line(0, y + font.getAscent(), 9999, y + font.getAscent()); renderer.setColor(Color.RED); renderer.line(0, baseline + font.getDescent(), 9999, baseline + font.getDescent()); renderer.setColor(Color.ORANGE); renderer.line(0, y - font.getLineHeight(), 9999, y - font.getLineHeight()); renderer.end(); renderer.begin(ShapeRenderer.ShapeType.Line); renderer.setColor(Color.BLUE); renderer.rect(x, y, layout.width, -layout.height); renderer.end(); } static public void main (String[] args) throws Exception { new LwjglApplication(new BitmapFontWriterTest()); } }
package com.badlogic.gdx.tools.bmfont; import com.badlogic.gdx.ApplicationAdapter; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.GlyphLayout; import com.badlogic.gdx.graphics.g2d.PixmapPacker; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.tools.hiero.Hiero; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ScreenUtils; public class BitmapFontWriterTest extends ApplicationAdapter { SpriteBatch spriteBatch; ShapeRenderer renderer; BitmapFont generatedFont; BitmapFont loadedFont; BitmapFont font; @Override public void create () { BitmapFontWriter.FontInfo info = new BitmapFontWriter.FontInfo(); info.padding = new BitmapFontWriter.Padding(0, 0, 0, 0); FreeTypeFontGenerator.FreeTypeFontParameter param = new FreeTypeFontGenerator.FreeTypeFontParameter(); param.size = 13; param.shadowOffsetY = 3; param.renderCount = 3; param.shadowColor = new Color(0, 0, 0, 1); param.characters = Hiero.EXTENDED_CHARS; param.packer = new PixmapPacker(1024, 1024, Pixmap.Format.RGBA8888, 2, false, new PixmapPacker.SkylineStrategy()); FreeTypeFontGenerator generator = new FreeTypeFontGenerator( Gdx.files.absolute("../../tests/gdx-tests-android/assets/data/unbom.ttf")); generatedFont = generator.generateFont(param); info.overrideMetrics(generatedFont.getData()); BitmapFontWriter.writeFont(generatedFont.getData(), new String[] {"bitmapWrittenFont.png"}, Gdx.files.local("bitmapWrittenFont.fnt"), info, 512, 512); BitmapFontWriter.writePixmaps(param.packer.getPages(), Gdx.files.local(""), "bitmapWrittenFont"); final float ascent = generatedFont.getAscent(); final float descent = generatedFont.getDescent(); final float capHeight = generatedFont.getCapHeight(); final float lineHeight = generatedFont.getLineHeight(); final float spaceXadvance = generatedFont.getSpaceXadvance(); final float xHeight = generatedFont.getXHeight(); loadedFont = new BitmapFont(Gdx.files.local("bitmapWrittenFont.fnt")); final float loadedFontascent = loadedFont.getAscent(); final float loadedFontdescent = loadedFont.getDescent(); final float loadedFontcapHeight = loadedFont.getCapHeight(); final float loadedFontlineHeight = loadedFont.getLineHeight(); final float loadedFontspaceXadvance = loadedFont.getSpaceXadvance(); final float loadedFontxHeight = loadedFont.getXHeight(); System.out.println("Ascent: " + ascent + " : " + loadedFontascent); System.out.println("Descent: " + descent + " : " + loadedFontdescent); System.out.println("Cap Height: " + capHeight + " : " + loadedFontcapHeight); System.out.println("Line height: " + lineHeight + " : " + loadedFontlineHeight); System.out.println("Space X advance: " + spaceXadvance + " : " + loadedFontspaceXadvance); System.out.println("xHeight: " + xHeight + " : " + loadedFontxHeight); if (!MathUtils.isEqual(ascent, loadedFontascent)) throw new GdxRuntimeException("Ascent is not equal"); if (!MathUtils.isEqual(descent, loadedFontdescent)) throw new GdxRuntimeException("Descent is not equal"); if (!MathUtils.isEqual(capHeight, loadedFontcapHeight)) throw new GdxRuntimeException("Cap height is not equal"); if (!MathUtils.isEqual(lineHeight, loadedFontlineHeight)) throw new GdxRuntimeException("Line Height is not equal"); if (!MathUtils.isEqual(spaceXadvance, loadedFontspaceXadvance)) throw new GdxRuntimeException("spaceXAdvance is not equal"); if (!MathUtils.isEqual(xHeight, loadedFontxHeight)) throw new GdxRuntimeException("xHeight is not equal"); spriteBatch = new SpriteBatch(); renderer = new ShapeRenderer(); renderer.setProjectionMatrix(spriteBatch.getProjectionMatrix()); font = new BitmapFont(); } @Override public void render () { ScreenUtils.clear(1f, 0.5f, 0.5f, 1f); renderer.setProjectionMatrix( renderer.getProjectionMatrix().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight())); spriteBatch.setProjectionMatrix( spriteBatch.getProjectionMatrix().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight())); spriteBatch.begin(); String text = "Sphinx of black quartz."; generatedFont.setColor(Color.RED); int viewHeight = Gdx.graphics.getHeight(); font.setColor(Color.BLACK); font.draw(spriteBatch, "draw position", 20, viewHeight - 0); font.setColor(Color.BLUE); font.draw(spriteBatch, "bounds", 20, viewHeight - 20); font.setColor(Color.MAGENTA); font.draw(spriteBatch, "baseline", 20, viewHeight - 40); font.setColor(Color.GREEN); font.draw(spriteBatch, "x height", 20, viewHeight - 60); font.setColor(Color.CYAN); font.draw(spriteBatch, "ascent", 20, viewHeight - 80); font.setColor(Color.RED); font.draw(spriteBatch, "descent", 20, viewHeight - 100); font.setColor(Color.ORANGE); font.draw(spriteBatch, "line height", 20, viewHeight - 120); font.setColor(Color.LIGHT_GRAY); font.draw(spriteBatch, "cap height", 20, viewHeight - 140); generatedFont.setColor(Color.WHITE); spriteBatch.end(); renderFontWithMetrics(generatedFont, text, 100, 300); renderFontWithMetrics(loadedFont, text, 100, 200); } private void renderFontWithMetrics (BitmapFont font, String text, float x, float y) { float alignmentWidth; spriteBatch.begin(); GlyphLayout layout = font.draw(spriteBatch, text, x, y); spriteBatch.end(); renderer.begin(ShapeRenderer.ShapeType.Filled); renderer.setColor(Color.BLACK); renderer.rect(x - 3, y - 3, 6, 6); renderer.end(); float baseline = y - font.getCapHeight(); renderer.begin(ShapeRenderer.ShapeType.Line); renderer.setColor(Color.LIGHT_GRAY); renderer.line(0, y, 9999, y); renderer.setColor(Color.MAGENTA); renderer.line(0, baseline, 9999, baseline); renderer.setColor(Color.GREEN); renderer.line(0, baseline + font.getXHeight(), 9999, baseline + font.getXHeight()); renderer.setColor(Color.CYAN); renderer.line(0, y + font.getAscent(), 9999, y + font.getAscent()); renderer.setColor(Color.RED); renderer.line(0, baseline + font.getDescent(), 9999, baseline + font.getDescent()); renderer.setColor(Color.ORANGE); renderer.line(0, y - font.getLineHeight(), 9999, y - font.getLineHeight()); renderer.end(); renderer.begin(ShapeRenderer.ShapeType.Line); renderer.setColor(Color.BLUE); renderer.rect(x, y, layout.width, -layout.height); renderer.end(); } static public void main (String[] args) throws Exception { new LwjglApplication(new BitmapFontWriterTest()); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/BodyDef.java
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ package org.jbox2d.dynamics; import org.jbox2d.common.Vec2; /** A body definition holds all the data needed to construct a rigid body. You can safely re-use body definitions. Shapes are * added to a body after construction. * * @author daniel */ public class BodyDef { /** The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one. */ public BodyType type; /** Use this to store application specific body data. */ public Object userData; /** The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes. */ public Vec2 position; /** The world angle of the body in radians. */ public float angle; /** The linear velocity of the body in world co-ordinates. */ public Vec2 linearVelocity; /** The angular velocity of the body. */ public float angularVelocity; /** Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public float linearDamping; /** Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public float angularDamping; /** Set this flag to false if this body should never fall asleep. Note that this increases CPU usage. */ public boolean allowSleep; /** Is this body initially sleeping? */ public boolean awake; /** Should this body be prevented from rotating? Useful for characters. */ public boolean fixedRotation; /** Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are * prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies. * * @warning You should use this flag sparingly since it increases processing time. */ public boolean bullet; /** Does this body start out active? */ public boolean active; /** Experimental: scales the inertia tensor. */ public float gravityScale; public BodyDef () { userData = null; position = new Vec2(); angle = 0f; linearVelocity = new Vec2(); angularVelocity = 0f; linearDamping = 0f; angularDamping = 0f; allowSleep = true; awake = true; fixedRotation = false; bullet = false; type = BodyType.STATIC; active = true; gravityScale = 1.0f; } /** The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one. */ public BodyType getType () { return type; } /** The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one. */ public void setType (BodyType type) { this.type = type; } /** Use this to store application specific body data. */ public Object getUserData () { return userData; } /** Use this to store application specific body data. */ public void setUserData (Object userData) { this.userData = userData; } /** The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes. */ public Vec2 getPosition () { return position; } /** The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes. */ public void setPosition (Vec2 position) { this.position = position; } /** The world angle of the body in radians. */ public float getAngle () { return angle; } /** The world angle of the body in radians. */ public void setAngle (float angle) { this.angle = angle; } /** The linear velocity of the body in world co-ordinates. */ public Vec2 getLinearVelocity () { return linearVelocity; } /** The linear velocity of the body in world co-ordinates. */ public void setLinearVelocity (Vec2 linearVelocity) { this.linearVelocity = linearVelocity; } /** The angular velocity of the body. */ public float getAngularVelocity () { return angularVelocity; } /** The angular velocity of the body. */ public void setAngularVelocity (float angularVelocity) { this.angularVelocity = angularVelocity; } /** Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public float getLinearDamping () { return linearDamping; } /** Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public void setLinearDamping (float linearDamping) { this.linearDamping = linearDamping; } /** Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public float getAngularDamping () { return angularDamping; } /** Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public void setAngularDamping (float angularDamping) { this.angularDamping = angularDamping; } /** Set this flag to false if this body should never fall asleep. Note that this increases CPU usage. */ public boolean isAllowSleep () { return allowSleep; } /** Set this flag to false if this body should never fall asleep. Note that this increases CPU usage. */ public void setAllowSleep (boolean allowSleep) { this.allowSleep = allowSleep; } /** Is this body initially sleeping? */ public boolean isAwake () { return awake; } /** Is this body initially sleeping? */ public void setAwake (boolean awake) { this.awake = awake; } /** Should this body be prevented from rotating? Useful for characters. */ public boolean isFixedRotation () { return fixedRotation; } /** Should this body be prevented from rotating? Useful for characters. */ public void setFixedRotation (boolean fixedRotation) { this.fixedRotation = fixedRotation; } /** Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are * prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies. * * @warning You should use this flag sparingly since it increases processing time. */ public boolean isBullet () { return bullet; } /** Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are * prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies. * * @warning You should use this flag sparingly since it increases processing time. */ public void setBullet (boolean bullet) { this.bullet = bullet; } /** Does this body start out active? */ public boolean isActive () { return active; } /** Does this body start out active? */ public void setActive (boolean active) { this.active = active; } /** Experimental: scales the inertia tensor. */ public float getGravityScale () { return gravityScale; } /** Experimental: scales the inertia tensor. */ public void setGravityScale (float gravityScale) { this.gravityScale = gravityScale; } }
/******************************************************************************* * Copyright (c) 2013, Daniel Murphy * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ package org.jbox2d.dynamics; import org.jbox2d.common.Vec2; /** A body definition holds all the data needed to construct a rigid body. You can safely re-use body definitions. Shapes are * added to a body after construction. * * @author daniel */ public class BodyDef { /** The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one. */ public BodyType type; /** Use this to store application specific body data. */ public Object userData; /** The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes. */ public Vec2 position; /** The world angle of the body in radians. */ public float angle; /** The linear velocity of the body in world co-ordinates. */ public Vec2 linearVelocity; /** The angular velocity of the body. */ public float angularVelocity; /** Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public float linearDamping; /** Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public float angularDamping; /** Set this flag to false if this body should never fall asleep. Note that this increases CPU usage. */ public boolean allowSleep; /** Is this body initially sleeping? */ public boolean awake; /** Should this body be prevented from rotating? Useful for characters. */ public boolean fixedRotation; /** Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are * prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies. * * @warning You should use this flag sparingly since it increases processing time. */ public boolean bullet; /** Does this body start out active? */ public boolean active; /** Experimental: scales the inertia tensor. */ public float gravityScale; public BodyDef () { userData = null; position = new Vec2(); angle = 0f; linearVelocity = new Vec2(); angularVelocity = 0f; linearDamping = 0f; angularDamping = 0f; allowSleep = true; awake = true; fixedRotation = false; bullet = false; type = BodyType.STATIC; active = true; gravityScale = 1.0f; } /** The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one. */ public BodyType getType () { return type; } /** The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one. */ public void setType (BodyType type) { this.type = type; } /** Use this to store application specific body data. */ public Object getUserData () { return userData; } /** Use this to store application specific body data. */ public void setUserData (Object userData) { this.userData = userData; } /** The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes. */ public Vec2 getPosition () { return position; } /** The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes. */ public void setPosition (Vec2 position) { this.position = position; } /** The world angle of the body in radians. */ public float getAngle () { return angle; } /** The world angle of the body in radians. */ public void setAngle (float angle) { this.angle = angle; } /** The linear velocity of the body in world co-ordinates. */ public Vec2 getLinearVelocity () { return linearVelocity; } /** The linear velocity of the body in world co-ordinates. */ public void setLinearVelocity (Vec2 linearVelocity) { this.linearVelocity = linearVelocity; } /** The angular velocity of the body. */ public float getAngularVelocity () { return angularVelocity; } /** The angular velocity of the body. */ public void setAngularVelocity (float angularVelocity) { this.angularVelocity = angularVelocity; } /** Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public float getLinearDamping () { return linearDamping; } /** Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public void setLinearDamping (float linearDamping) { this.linearDamping = linearDamping; } /** Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public float getAngularDamping () { return angularDamping; } /** Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect * becomes sensitive to the time step when the damping parameter is large. */ public void setAngularDamping (float angularDamping) { this.angularDamping = angularDamping; } /** Set this flag to false if this body should never fall asleep. Note that this increases CPU usage. */ public boolean isAllowSleep () { return allowSleep; } /** Set this flag to false if this body should never fall asleep. Note that this increases CPU usage. */ public void setAllowSleep (boolean allowSleep) { this.allowSleep = allowSleep; } /** Is this body initially sleeping? */ public boolean isAwake () { return awake; } /** Is this body initially sleeping? */ public void setAwake (boolean awake) { this.awake = awake; } /** Should this body be prevented from rotating? Useful for characters. */ public boolean isFixedRotation () { return fixedRotation; } /** Should this body be prevented from rotating? Useful for characters. */ public void setFixedRotation (boolean fixedRotation) { this.fixedRotation = fixedRotation; } /** Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are * prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies. * * @warning You should use this flag sparingly since it increases processing time. */ public boolean isBullet () { return bullet; } /** Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are * prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies. * * @warning You should use this flag sparingly since it increases processing time. */ public void setBullet (boolean bullet) { this.bullet = bullet; } /** Does this body start out active? */ public boolean isActive () { return active; } /** Does this body start out active? */ public void setActive (boolean active) { this.active = active; } /** Experimental: scales the inertia tensor. */ public float getGravityScale () { return gravityScale; } /** Experimental: scales the inertia tensor. */ public void setGravityScale (float gravityScale) { this.gravityScale = gravityScale; } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./backends/gdx-backend-robovm-metalangle/src/com/badlogic/gdx/backends/iosrobovm/IOSGraphics.java
/*DO NOT EDIT THIS FILE - it is machine generated*/ package com.badlogic.gdx.backends.iosrobovm; import com.badlogic.gdx.AbstractGraphics; import com.badlogic.gdx.Application; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.LifecycleListener; import com.badlogic.gdx.backends.iosrobovm.custom.HWMachine; import com.badlogic.gdx.graphics.Cursor; import com.badlogic.gdx.graphics.Cursor.SystemCursor; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.GL30; import com.badlogic.gdx.graphics.GL31; import com.badlogic.gdx.graphics.GL32; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.glutils.GLVersion; import com.badlogic.gdx.graphics.glutils.HdpiMode; import com.badlogic.gdx.utils.Array; import org.robovm.apple.coregraphics.CGRect; import org.robovm.apple.foundation.NSObject; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLKView; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLKViewController; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLKViewControllerDelegate; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLKViewDelegate; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLDrawableColorFormat; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLDrawableDepthFormat; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLDrawableMultisample; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLDrawableStencilFormat; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLContext; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLRenderingAPI; import org.robovm.apple.uikit.UIEdgeInsets; import org.robovm.apple.uikit.UIEvent; import org.robovm.apple.uikit.UIScreen; import org.robovm.objc.annotation.Method; import org.robovm.rt.bro.annotation.Pointer; /** DO NOT EDIT THIS FILE - it is machine generated */ public class IOSGraphics extends AbstractGraphics { private static final String tag = "IOSGraphics"; IOSApplication app; IOSInput input; GL20 gl20; GL30 gl30; IOSScreenBounds screenBounds; int safeInsetLeft, safeInsetTop, safeInsetBottom, safeInsetRight; long lastFrameTime; float deltaTime; long framesStart; int frames; int fps; BufferFormat bufferFormat; String extensions; private float ppiX = 0; private float ppiY = 0; private float ppcX = 0; private float ppcY = 0; private float density = 1; volatile boolean resume = false; volatile boolean appPaused; private long frameId = -1; private boolean isContinuous = true; private boolean isFrameRequested = true; IOSApplicationConfiguration config; MGLContext context; GLVersion glVersion; MGLKView view; IOSUIViewController viewController; public IOSGraphics (IOSApplication app, IOSApplicationConfiguration config, IOSInput input, boolean useGLES30) { this.config = config; // setup view and OpenGL screenBounds = app.computeBounds(); if (useGLES30) { context = new MGLContext(MGLRenderingAPI.OpenGLES3); if (context != null) gl20 = gl30 = new IOSGLES30(); else Gdx.app.log("IOGraphics", "OpenGL ES 3.0 not supported, falling back on 2.0"); } if (context == null) { context = new MGLContext(MGLRenderingAPI.OpenGLES2); gl20 = new IOSGLES20(); gl30 = null; } IOSViewDelegate viewDelegate = new IOSViewDelegate(); view = new MGLKView(new CGRect(0, 0, screenBounds.width, screenBounds.height), context) { @Method(selector = "touchesBegan:withEvent:") public void touchesBegan (@Pointer long touches, UIEvent event) { IOSGraphics.this.input.onTouch(touches); } @Method(selector = "touchesCancelled:withEvent:") public void touchesCancelled (@Pointer long touches, UIEvent event) { IOSGraphics.this.input.onTouch(touches); } @Method(selector = "touchesEnded:withEvent:") public void touchesEnded (@Pointer long touches, UIEvent event) { IOSGraphics.this.input.onTouch(touches); } @Method(selector = "touchesMoved:withEvent:") public void touchesMoved (@Pointer long touches, UIEvent event) { IOSGraphics.this.input.onTouch(touches); } @Override public void draw (CGRect rect) { IOSGraphics.this.draw(this, rect); } }; view.setDelegate(viewDelegate); view.setDrawableColorFormat(config.colorFormat); view.setDrawableDepthFormat(config.depthFormat); view.setDrawableStencilFormat(config.stencilFormat); view.setDrawableMultisample(config.multisample); view.setMultipleTouchEnabled(true); viewController = app.createUIViewController(this); viewController.setView(view); viewController.setDelegate(viewDelegate); int preferredFps; if (config.preferredFramesPerSecond == 0) { preferredFps = (int)(UIScreen.getMainScreen().getMaximumFramesPerSecond()); } else { preferredFps = config.preferredFramesPerSecond; } viewController.setPreferredFramesPerSecond(preferredFps); this.app = app; this.input = input; int r = 0, g = 0, b = 0, a = 0, depth = 0, stencil = 0, samples = 0; if (config.colorFormat == MGLDrawableColorFormat.RGB565) { r = 5; g = 6; b = 5; a = 0; } else { r = g = b = a = 8; } if (config.depthFormat == MGLDrawableDepthFormat._16) { depth = 16; } else if (config.depthFormat == MGLDrawableDepthFormat._24) { depth = 24; } else { depth = 0; } if (config.stencilFormat == MGLDrawableStencilFormat._8) { stencil = 8; } if (config.multisample == MGLDrawableMultisample._4X) { samples = 4; } bufferFormat = new BufferFormat(r, g, b, a, depth, stencil, samples, false); String machineString = HWMachine.getMachineString(); IOSDevice device = config.knownDevices.get(machineString); if (device == null) app.error(tag, "Machine ID: " + machineString + " not found, please report to libGDX"); int ppi = device != null ? device.ppi : app.guessUnknownPpi(); density = ppi / 160f; ppiX = ppi; ppiY = ppi; ppcX = ppiX / 2.54f; ppcY = ppiY / 2.54f; app.debug(tag, "Display: ppi=" + ppi + ", density=" + density); // time + FPS lastFrameTime = System.nanoTime(); framesStart = lastFrameTime; // enable OpenGL makeCurrent(); // OpenGL glViewport() function expects backbuffer coordinates instead of logical coordinates gl20.glViewport(0, 0, screenBounds.backBufferWidth, screenBounds.backBufferHeight); String versionString = gl20.glGetString(GL20.GL_VERSION); String vendorString = gl20.glGetString(GL20.GL_VENDOR); String rendererString = gl20.glGetString(GL20.GL_RENDERER); glVersion = new GLVersion(Application.ApplicationType.iOS, versionString, vendorString, rendererString); appPaused = false; } public void resume () { if (!appPaused) return; appPaused = false; Array<LifecycleListener> listeners = app.lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.resume(); } } resume = true; app.listener.resume(); } public void pause () { if (appPaused) return; appPaused = true; Array<LifecycleListener> listeners = app.lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); } } app.listener.pause(); } public void draw (MGLKView view, CGRect rect) { makeCurrent(); // massive hack, GLKView resets the viewport on each draw call, so IOSGLES20 // stores the last known viewport and we reset it here... gl20.glViewport(IOSGLES20.x, IOSGLES20.y, IOSGLES20.width, IOSGLES20.height); if (appPaused) { return; } long time = System.nanoTime(); if (!resume) { deltaTime = (time - lastFrameTime) / 1000000000.0f; } else { resume = false; deltaTime = 0; } lastFrameTime = time; frames++; if (time - framesStart >= 1000000000l) { framesStart = time; fps = frames; frames = 0; } input.processEvents(); frameId++; app.listener.render(); } void makeCurrent () { MGLContext.setCurrentContext(context); } public void update (MGLKViewController controller) { makeCurrent(); app.processRunnables(); // pause the GLKViewController render loop if we are no longer continuous // and if we haven't requested a frame in the last loop iteration if (!isContinuous && !isFrameRequested) { viewController.setPaused(true); } isFrameRequested = false; } public void willPause (MGLKViewController controller, boolean pause) { } @Override public GL20 getGL20 () { return gl20; } @Override public void setGL20 (GL20 gl20) { this.gl20 = gl20; if (gl30 == null) { Gdx.gl = gl20; Gdx.gl20 = gl20; } } @Override public boolean isGL30Available () { return gl30 != null; } @Override public GL30 getGL30 () { return gl30; } @Override public void setGL30 (GL30 gl30) { this.gl30 = gl30; if (gl30 != null) { this.gl20 = gl30; Gdx.gl = gl20; Gdx.gl20 = gl20; Gdx.gl30 = gl30; } } @Override public boolean isGL31Available () { return false; } @Override public GL31 getGL31 () { return null; } @Override public void setGL31 (GL31 gl31) { } @Override public boolean isGL32Available () { return false; } @Override public GL32 getGL32 () { return null; } @Override public void setGL32 (GL32 gl32) { } @Override public int getWidth () { if (config.hdpiMode == HdpiMode.Pixels) { return getBackBufferWidth(); } else { return screenBounds.width; } } @Override public int getHeight () { if (config.hdpiMode == HdpiMode.Pixels) { return getBackBufferHeight(); } else { return screenBounds.height; } } @Override public int getBackBufferWidth () { return screenBounds.backBufferWidth; } @Override public int getBackBufferHeight () { return screenBounds.backBufferHeight; } @Override public float getBackBufferScale () { return app.pixelsPerPoint; } @Override public float getDeltaTime () { return deltaTime; } @Override public int getFramesPerSecond () { return fps; } @Override public GraphicsType getType () { return GraphicsType.iOSGL; } @Override public GLVersion getGLVersion () { return glVersion; } @Override public float getPpiX () { return ppiX; } @Override public float getPpiY () { return ppiY; } @Override public float getPpcX () { return ppcX; } @Override public float getPpcY () { return ppcY; } @Override public float getDensity () { return density; } @Override public boolean supportsDisplayModeChange () { return false; } @Override public DisplayMode[] getDisplayModes () { return new DisplayMode[] {getDisplayMode()}; } @Override public DisplayMode getDisplayMode () { return new IOSDisplayMode(getWidth(), getHeight(), (int)(viewController.getPreferredFramesPerSecond()), bufferFormat.r + bufferFormat.g + bufferFormat.b + bufferFormat.a); } @Override public Monitor getPrimaryMonitor () { return new IOSMonitor(0, 0, "Primary Monitor"); } @Override public Monitor getMonitor () { return getPrimaryMonitor(); } @Override public Monitor[] getMonitors () { return new Monitor[] {getPrimaryMonitor()}; } @Override public DisplayMode[] getDisplayModes (Monitor monitor) { return getDisplayModes(); } @Override public DisplayMode getDisplayMode (Monitor monitor) { return getDisplayMode(); } protected void updateSafeInsets () { safeInsetTop = 0; safeInsetLeft = 0; safeInsetRight = 0; safeInsetBottom = 0; UIEdgeInsets edgeInsets = viewController.getView().getSafeAreaInsets(); safeInsetTop = (int)edgeInsets.getTop(); safeInsetLeft = (int)edgeInsets.getLeft(); safeInsetRight = (int)edgeInsets.getRight(); safeInsetBottom = (int)edgeInsets.getBottom(); if (config.hdpiMode == HdpiMode.Pixels) { safeInsetTop *= app.pixelsPerPoint; safeInsetLeft *= app.pixelsPerPoint; safeInsetRight *= app.pixelsPerPoint; safeInsetBottom *= app.pixelsPerPoint; } } @Override public int getSafeInsetLeft () { return safeInsetLeft; } @Override public int getSafeInsetTop () { return safeInsetTop; } @Override public int getSafeInsetBottom () { return safeInsetBottom; } @Override public int getSafeInsetRight () { return safeInsetRight; } @Override public boolean setFullscreenMode (DisplayMode displayMode) { return false; } @Override public boolean setWindowedMode (int width, int height) { return false; } @Override public void setTitle (String title) { } @Override public void setUndecorated (boolean undecorated) { } @Override public void setResizable (boolean resizable) { } @Override public void setVSync (boolean vsync) { } /** Overwrites the preferred framerate for the application. Use {@link IOSApplicationConfiguration#preferredFramesPerSecond} * instead to set it at application startup. * * @param fps the preferred fps */ @Override public void setForegroundFPS (int fps) { viewController.setPreferredFramesPerSecond(fps); } @Override public BufferFormat getBufferFormat () { return bufferFormat; } @Override public boolean supportsExtension (String extension) { if (extensions == null) extensions = Gdx.gl.glGetString(GL20.GL_EXTENSIONS); return extensions.contains(extension); } @Override public void setContinuousRendering (boolean isContinuous) { if (isContinuous != this.isContinuous) { this.isContinuous = isContinuous; // start the GLKViewController if we go from non-continuous -> continuous if (isContinuous) viewController.setPaused(false); } } @Override public boolean isContinuousRendering () { return isContinuous; } @Override public void requestRendering () { isFrameRequested = true; // start the GLKViewController if we are in non-continuous mode // (we should already be started in continuous mode) if (!isContinuous) viewController.setPaused(false); } @Override public boolean isFullscreen () { return true; } @Override public long getFrameId () { return frameId; } @Override public Cursor newCursor (Pixmap pixmap, int xHotspot, int yHotspot) { return null; } @Override public void setCursor (Cursor cursor) { } @Override public void setSystemCursor (SystemCursor systemCursor) { } /** DO NOT EDIT THIS FILE - it is machine generated */ private class IOSViewDelegate extends NSObject implements MGLKViewDelegate, MGLKViewControllerDelegate { @Override public void update (MGLKViewController controller) { IOSGraphics.this.update(controller); } @Override public void draw (MGLKView view, CGRect rect) { IOSGraphics.this.draw(view, rect); } } /** DO NOT EDIT THIS FILE - it is machine generated */ private class IOSDisplayMode extends DisplayMode { protected IOSDisplayMode (int width, int height, int refreshRate, int bitsPerPixel) { super(width, height, refreshRate, bitsPerPixel); } } /** DO NOT EDIT THIS FILE - it is machine generated */ private class IOSMonitor extends Monitor { protected IOSMonitor (int virtualX, int virtualY, String name) { super(virtualX, virtualY, name); } } }
/*DO NOT EDIT THIS FILE - it is machine generated*/ package com.badlogic.gdx.backends.iosrobovm; import com.badlogic.gdx.AbstractGraphics; import com.badlogic.gdx.Application; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.LifecycleListener; import com.badlogic.gdx.backends.iosrobovm.custom.HWMachine; import com.badlogic.gdx.graphics.Cursor; import com.badlogic.gdx.graphics.Cursor.SystemCursor; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.GL30; import com.badlogic.gdx.graphics.GL31; import com.badlogic.gdx.graphics.GL32; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.glutils.GLVersion; import com.badlogic.gdx.graphics.glutils.HdpiMode; import com.badlogic.gdx.utils.Array; import org.robovm.apple.coregraphics.CGRect; import org.robovm.apple.foundation.NSObject; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLKView; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLKViewController; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLKViewControllerDelegate; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLKViewDelegate; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLDrawableColorFormat; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLDrawableDepthFormat; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLDrawableMultisample; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLDrawableStencilFormat; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLContext; import com.badlogic.gdx.backends.iosrobovm.bindings.metalangle.MGLRenderingAPI; import org.robovm.apple.uikit.UIEdgeInsets; import org.robovm.apple.uikit.UIEvent; import org.robovm.apple.uikit.UIScreen; import org.robovm.objc.annotation.Method; import org.robovm.rt.bro.annotation.Pointer; /** DO NOT EDIT THIS FILE - it is machine generated */ public class IOSGraphics extends AbstractGraphics { private static final String tag = "IOSGraphics"; IOSApplication app; IOSInput input; GL20 gl20; GL30 gl30; IOSScreenBounds screenBounds; int safeInsetLeft, safeInsetTop, safeInsetBottom, safeInsetRight; long lastFrameTime; float deltaTime; long framesStart; int frames; int fps; BufferFormat bufferFormat; String extensions; private float ppiX = 0; private float ppiY = 0; private float ppcX = 0; private float ppcY = 0; private float density = 1; volatile boolean resume = false; volatile boolean appPaused; private long frameId = -1; private boolean isContinuous = true; private boolean isFrameRequested = true; IOSApplicationConfiguration config; MGLContext context; GLVersion glVersion; MGLKView view; IOSUIViewController viewController; public IOSGraphics (IOSApplication app, IOSApplicationConfiguration config, IOSInput input, boolean useGLES30) { this.config = config; // setup view and OpenGL screenBounds = app.computeBounds(); if (useGLES30) { context = new MGLContext(MGLRenderingAPI.OpenGLES3); if (context != null) gl20 = gl30 = new IOSGLES30(); else Gdx.app.log("IOGraphics", "OpenGL ES 3.0 not supported, falling back on 2.0"); } if (context == null) { context = new MGLContext(MGLRenderingAPI.OpenGLES2); gl20 = new IOSGLES20(); gl30 = null; } IOSViewDelegate viewDelegate = new IOSViewDelegate(); view = new MGLKView(new CGRect(0, 0, screenBounds.width, screenBounds.height), context) { @Method(selector = "touchesBegan:withEvent:") public void touchesBegan (@Pointer long touches, UIEvent event) { IOSGraphics.this.input.onTouch(touches); } @Method(selector = "touchesCancelled:withEvent:") public void touchesCancelled (@Pointer long touches, UIEvent event) { IOSGraphics.this.input.onTouch(touches); } @Method(selector = "touchesEnded:withEvent:") public void touchesEnded (@Pointer long touches, UIEvent event) { IOSGraphics.this.input.onTouch(touches); } @Method(selector = "touchesMoved:withEvent:") public void touchesMoved (@Pointer long touches, UIEvent event) { IOSGraphics.this.input.onTouch(touches); } @Override public void draw (CGRect rect) { IOSGraphics.this.draw(this, rect); } }; view.setDelegate(viewDelegate); view.setDrawableColorFormat(config.colorFormat); view.setDrawableDepthFormat(config.depthFormat); view.setDrawableStencilFormat(config.stencilFormat); view.setDrawableMultisample(config.multisample); view.setMultipleTouchEnabled(true); viewController = app.createUIViewController(this); viewController.setView(view); viewController.setDelegate(viewDelegate); int preferredFps; if (config.preferredFramesPerSecond == 0) { preferredFps = (int)(UIScreen.getMainScreen().getMaximumFramesPerSecond()); } else { preferredFps = config.preferredFramesPerSecond; } viewController.setPreferredFramesPerSecond(preferredFps); this.app = app; this.input = input; int r = 0, g = 0, b = 0, a = 0, depth = 0, stencil = 0, samples = 0; if (config.colorFormat == MGLDrawableColorFormat.RGB565) { r = 5; g = 6; b = 5; a = 0; } else { r = g = b = a = 8; } if (config.depthFormat == MGLDrawableDepthFormat._16) { depth = 16; } else if (config.depthFormat == MGLDrawableDepthFormat._24) { depth = 24; } else { depth = 0; } if (config.stencilFormat == MGLDrawableStencilFormat._8) { stencil = 8; } if (config.multisample == MGLDrawableMultisample._4X) { samples = 4; } bufferFormat = new BufferFormat(r, g, b, a, depth, stencil, samples, false); String machineString = HWMachine.getMachineString(); IOSDevice device = config.knownDevices.get(machineString); if (device == null) app.error(tag, "Machine ID: " + machineString + " not found, please report to libGDX"); int ppi = device != null ? device.ppi : app.guessUnknownPpi(); density = ppi / 160f; ppiX = ppi; ppiY = ppi; ppcX = ppiX / 2.54f; ppcY = ppiY / 2.54f; app.debug(tag, "Display: ppi=" + ppi + ", density=" + density); // time + FPS lastFrameTime = System.nanoTime(); framesStart = lastFrameTime; // enable OpenGL makeCurrent(); // OpenGL glViewport() function expects backbuffer coordinates instead of logical coordinates gl20.glViewport(0, 0, screenBounds.backBufferWidth, screenBounds.backBufferHeight); String versionString = gl20.glGetString(GL20.GL_VERSION); String vendorString = gl20.glGetString(GL20.GL_VENDOR); String rendererString = gl20.glGetString(GL20.GL_RENDERER); glVersion = new GLVersion(Application.ApplicationType.iOS, versionString, vendorString, rendererString); appPaused = false; } public void resume () { if (!appPaused) return; appPaused = false; Array<LifecycleListener> listeners = app.lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.resume(); } } resume = true; app.listener.resume(); } public void pause () { if (appPaused) return; appPaused = true; Array<LifecycleListener> listeners = app.lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); } } app.listener.pause(); } public void draw (MGLKView view, CGRect rect) { makeCurrent(); // massive hack, GLKView resets the viewport on each draw call, so IOSGLES20 // stores the last known viewport and we reset it here... gl20.glViewport(IOSGLES20.x, IOSGLES20.y, IOSGLES20.width, IOSGLES20.height); if (appPaused) { return; } long time = System.nanoTime(); if (!resume) { deltaTime = (time - lastFrameTime) / 1000000000.0f; } else { resume = false; deltaTime = 0; } lastFrameTime = time; frames++; if (time - framesStart >= 1000000000l) { framesStart = time; fps = frames; frames = 0; } input.processEvents(); frameId++; app.listener.render(); } void makeCurrent () { MGLContext.setCurrentContext(context); } public void update (MGLKViewController controller) { makeCurrent(); app.processRunnables(); // pause the GLKViewController render loop if we are no longer continuous // and if we haven't requested a frame in the last loop iteration if (!isContinuous && !isFrameRequested) { viewController.setPaused(true); } isFrameRequested = false; } public void willPause (MGLKViewController controller, boolean pause) { } @Override public GL20 getGL20 () { return gl20; } @Override public void setGL20 (GL20 gl20) { this.gl20 = gl20; if (gl30 == null) { Gdx.gl = gl20; Gdx.gl20 = gl20; } } @Override public boolean isGL30Available () { return gl30 != null; } @Override public GL30 getGL30 () { return gl30; } @Override public void setGL30 (GL30 gl30) { this.gl30 = gl30; if (gl30 != null) { this.gl20 = gl30; Gdx.gl = gl20; Gdx.gl20 = gl20; Gdx.gl30 = gl30; } } @Override public boolean isGL31Available () { return false; } @Override public GL31 getGL31 () { return null; } @Override public void setGL31 (GL31 gl31) { } @Override public boolean isGL32Available () { return false; } @Override public GL32 getGL32 () { return null; } @Override public void setGL32 (GL32 gl32) { } @Override public int getWidth () { if (config.hdpiMode == HdpiMode.Pixels) { return getBackBufferWidth(); } else { return screenBounds.width; } } @Override public int getHeight () { if (config.hdpiMode == HdpiMode.Pixels) { return getBackBufferHeight(); } else { return screenBounds.height; } } @Override public int getBackBufferWidth () { return screenBounds.backBufferWidth; } @Override public int getBackBufferHeight () { return screenBounds.backBufferHeight; } @Override public float getBackBufferScale () { return app.pixelsPerPoint; } @Override public float getDeltaTime () { return deltaTime; } @Override public int getFramesPerSecond () { return fps; } @Override public GraphicsType getType () { return GraphicsType.iOSGL; } @Override public GLVersion getGLVersion () { return glVersion; } @Override public float getPpiX () { return ppiX; } @Override public float getPpiY () { return ppiY; } @Override public float getPpcX () { return ppcX; } @Override public float getPpcY () { return ppcY; } @Override public float getDensity () { return density; } @Override public boolean supportsDisplayModeChange () { return false; } @Override public DisplayMode[] getDisplayModes () { return new DisplayMode[] {getDisplayMode()}; } @Override public DisplayMode getDisplayMode () { return new IOSDisplayMode(getWidth(), getHeight(), (int)(viewController.getPreferredFramesPerSecond()), bufferFormat.r + bufferFormat.g + bufferFormat.b + bufferFormat.a); } @Override public Monitor getPrimaryMonitor () { return new IOSMonitor(0, 0, "Primary Monitor"); } @Override public Monitor getMonitor () { return getPrimaryMonitor(); } @Override public Monitor[] getMonitors () { return new Monitor[] {getPrimaryMonitor()}; } @Override public DisplayMode[] getDisplayModes (Monitor monitor) { return getDisplayModes(); } @Override public DisplayMode getDisplayMode (Monitor monitor) { return getDisplayMode(); } protected void updateSafeInsets () { safeInsetTop = 0; safeInsetLeft = 0; safeInsetRight = 0; safeInsetBottom = 0; UIEdgeInsets edgeInsets = viewController.getView().getSafeAreaInsets(); safeInsetTop = (int)edgeInsets.getTop(); safeInsetLeft = (int)edgeInsets.getLeft(); safeInsetRight = (int)edgeInsets.getRight(); safeInsetBottom = (int)edgeInsets.getBottom(); if (config.hdpiMode == HdpiMode.Pixels) { safeInsetTop *= app.pixelsPerPoint; safeInsetLeft *= app.pixelsPerPoint; safeInsetRight *= app.pixelsPerPoint; safeInsetBottom *= app.pixelsPerPoint; } } @Override public int getSafeInsetLeft () { return safeInsetLeft; } @Override public int getSafeInsetTop () { return safeInsetTop; } @Override public int getSafeInsetBottom () { return safeInsetBottom; } @Override public int getSafeInsetRight () { return safeInsetRight; } @Override public boolean setFullscreenMode (DisplayMode displayMode) { return false; } @Override public boolean setWindowedMode (int width, int height) { return false; } @Override public void setTitle (String title) { } @Override public void setUndecorated (boolean undecorated) { } @Override public void setResizable (boolean resizable) { } @Override public void setVSync (boolean vsync) { } /** Overwrites the preferred framerate for the application. Use {@link IOSApplicationConfiguration#preferredFramesPerSecond} * instead to set it at application startup. * * @param fps the preferred fps */ @Override public void setForegroundFPS (int fps) { viewController.setPreferredFramesPerSecond(fps); } @Override public BufferFormat getBufferFormat () { return bufferFormat; } @Override public boolean supportsExtension (String extension) { if (extensions == null) extensions = Gdx.gl.glGetString(GL20.GL_EXTENSIONS); return extensions.contains(extension); } @Override public void setContinuousRendering (boolean isContinuous) { if (isContinuous != this.isContinuous) { this.isContinuous = isContinuous; // start the GLKViewController if we go from non-continuous -> continuous if (isContinuous) viewController.setPaused(false); } } @Override public boolean isContinuousRendering () { return isContinuous; } @Override public void requestRendering () { isFrameRequested = true; // start the GLKViewController if we are in non-continuous mode // (we should already be started in continuous mode) if (!isContinuous) viewController.setPaused(false); } @Override public boolean isFullscreen () { return true; } @Override public long getFrameId () { return frameId; } @Override public Cursor newCursor (Pixmap pixmap, int xHotspot, int yHotspot) { return null; } @Override public void setCursor (Cursor cursor) { } @Override public void setSystemCursor (SystemCursor systemCursor) { } /** DO NOT EDIT THIS FILE - it is machine generated */ private class IOSViewDelegate extends NSObject implements MGLKViewDelegate, MGLKViewControllerDelegate { @Override public void update (MGLKViewController controller) { IOSGraphics.this.update(controller); } @Override public void draw (MGLKView view, CGRect rect) { IOSGraphics.this.draw(view, rect); } } /** DO NOT EDIT THIS FILE - it is machine generated */ private class IOSDisplayMode extends DisplayMode { protected IOSDisplayMode (int width, int height, int refreshRate, int bitsPerPixel) { super(width, height, refreshRate, bitsPerPixel); } } /** DO NOT EDIT THIS FILE - it is machine generated */ private class IOSMonitor extends Monitor { protected IOSMonitor (int virtualX, int virtualY, String name) { super(virtualX, virtualY, name); } } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btCapsuleShape.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.linearmath.*; public class btCapsuleShape extends btConvexInternalShape { private long swigCPtr; protected btCapsuleShape (final String className, long cPtr, boolean cMemoryOwn) { super(className, CollisionJNI.btCapsuleShape_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btCapsuleShape, normally you should not need this constructor it's intended for low-level usage. */ public btCapsuleShape (long cPtr, boolean cMemoryOwn) { this("btCapsuleShape", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(CollisionJNI.btCapsuleShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btCapsuleShape obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btCapsuleShape(swigCPtr); } swigCPtr = 0; } super.delete(); } public long operatorNew (long sizeInBytes) { return CollisionJNI.btCapsuleShape_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDelete (long ptr) { CollisionJNI.btCapsuleShape_operatorDelete__SWIG_0(swigCPtr, this, ptr); } public long operatorNew (long arg0, long ptr) { return CollisionJNI.btCapsuleShape_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDelete (long arg0, long arg1) { CollisionJNI.btCapsuleShape_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1); } public long operatorNewArray (long sizeInBytes) { return CollisionJNI.btCapsuleShape_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDeleteArray (long ptr) { CollisionJNI.btCapsuleShape_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr); } public long operatorNewArray (long arg0, long ptr) { return CollisionJNI.btCapsuleShape_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDeleteArray (long arg0, long arg1) { CollisionJNI.btCapsuleShape_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1); } public btCapsuleShape (float radius, float height) { this(CollisionJNI.new_btCapsuleShape__SWIG_1(radius, height), true); } public int getUpAxis () { return CollisionJNI.btCapsuleShape_getUpAxis(swigCPtr, this); } public float getRadius () { return CollisionJNI.btCapsuleShape_getRadius(swigCPtr, this); } public float getHalfHeight () { return CollisionJNI.btCapsuleShape_getHalfHeight(swigCPtr, this); } public void deSerializeFloat (btCapsuleShapeData dataBuffer) { CollisionJNI.btCapsuleShape_deSerializeFloat(swigCPtr, this, btCapsuleShapeData.getCPtr(dataBuffer), dataBuffer); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.collision; import com.badlogic.gdx.physics.bullet.linearmath.*; public class btCapsuleShape extends btConvexInternalShape { private long swigCPtr; protected btCapsuleShape (final String className, long cPtr, boolean cMemoryOwn) { super(className, CollisionJNI.btCapsuleShape_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btCapsuleShape, normally you should not need this constructor it's intended for low-level usage. */ public btCapsuleShape (long cPtr, boolean cMemoryOwn) { this("btCapsuleShape", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(CollisionJNI.btCapsuleShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); } public static long getCPtr (btCapsuleShape obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; CollisionJNI.delete_btCapsuleShape(swigCPtr); } swigCPtr = 0; } super.delete(); } public long operatorNew (long sizeInBytes) { return CollisionJNI.btCapsuleShape_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDelete (long ptr) { CollisionJNI.btCapsuleShape_operatorDelete__SWIG_0(swigCPtr, this, ptr); } public long operatorNew (long arg0, long ptr) { return CollisionJNI.btCapsuleShape_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDelete (long arg0, long arg1) { CollisionJNI.btCapsuleShape_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1); } public long operatorNewArray (long sizeInBytes) { return CollisionJNI.btCapsuleShape_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes); } public void operatorDeleteArray (long ptr) { CollisionJNI.btCapsuleShape_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr); } public long operatorNewArray (long arg0, long ptr) { return CollisionJNI.btCapsuleShape_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr); } public void operatorDeleteArray (long arg0, long arg1) { CollisionJNI.btCapsuleShape_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1); } public btCapsuleShape (float radius, float height) { this(CollisionJNI.new_btCapsuleShape__SWIG_1(radius, height), true); } public int getUpAxis () { return CollisionJNI.btCapsuleShape_getUpAxis(swigCPtr, this); } public float getRadius () { return CollisionJNI.btCapsuleShape_getRadius(swigCPtr, this); } public float getHalfHeight () { return CollisionJNI.btCapsuleShape_getHalfHeight(swigCPtr, this); } public void deSerializeFloat (btCapsuleShapeData dataBuffer) { CollisionJNI.btCapsuleShape_deSerializeFloat(swigCPtr, this, btCapsuleShapeData.getCPtr(dataBuffer), dataBuffer); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-bullet/jni/swig-src/linearmath/com/badlogic/gdx/physics/bullet/linearmath/btMatrix3x3FloatData.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.linearmath; import com.badlogic.gdx.physics.bullet.BulletBase; public class btMatrix3x3FloatData extends BulletBase { private long swigCPtr; protected btMatrix3x3FloatData (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btMatrix3x3FloatData, normally you should not need this constructor it's intended for low-level usage. */ public btMatrix3x3FloatData (long cPtr, boolean cMemoryOwn) { this("btMatrix3x3FloatData", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btMatrix3x3FloatData obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; LinearMathJNI.delete_btMatrix3x3FloatData(swigCPtr); } swigCPtr = 0; } super.delete(); } public void setEl (btVector3FloatData value) { LinearMathJNI.btMatrix3x3FloatData_el_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value); } public btVector3FloatData getEl () { long cPtr = LinearMathJNI.btMatrix3x3FloatData_el_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false); } public btMatrix3x3FloatData () { this(LinearMathJNI.new_btMatrix3x3FloatData(), true); } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.linearmath; import com.badlogic.gdx.physics.bullet.BulletBase; public class btMatrix3x3FloatData extends BulletBase { private long swigCPtr; protected btMatrix3x3FloatData (final String className, long cPtr, boolean cMemoryOwn) { super(className, cPtr, cMemoryOwn); swigCPtr = cPtr; } /** Construct a new btMatrix3x3FloatData, normally you should not need this constructor it's intended for low-level usage. */ public btMatrix3x3FloatData (long cPtr, boolean cMemoryOwn) { this("btMatrix3x3FloatData", cPtr, cMemoryOwn); construct(); } @Override protected void reset (long cPtr, boolean cMemoryOwn) { if (!destroyed) destroy(); super.reset(swigCPtr = cPtr, cMemoryOwn); } public static long getCPtr (btMatrix3x3FloatData obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize () throws Throwable { if (!destroyed) destroy(); super.finalize(); } @Override protected synchronized void delete () { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; LinearMathJNI.delete_btMatrix3x3FloatData(swigCPtr); } swigCPtr = 0; } super.delete(); } public void setEl (btVector3FloatData value) { LinearMathJNI.btMatrix3x3FloatData_el_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value); } public btVector3FloatData getEl () { long cPtr = LinearMathJNI.btMatrix3x3FloatData_el_get(swigCPtr, this); return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false); } public btMatrix3x3FloatData () { this(LinearMathJNI.new_btMatrix3x3FloatData(), true); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/net/NetJavaImpl.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.net; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import com.badlogic.gdx.Net; import com.badlogic.gdx.Net.HttpMethods; import com.badlogic.gdx.Net.HttpRequest; import com.badlogic.gdx.Net.HttpResponse; import com.badlogic.gdx.Net.HttpResponseListener; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ObjectMap; import com.badlogic.gdx.utils.StreamUtils; /** Implements part of the {@link Net} API using {@link HttpURLConnection}, to be easily reused between the Android and Desktop * backends. * @author acoppes */ public class NetJavaImpl { static class HttpClientResponse implements HttpResponse { private final HttpURLConnection connection; private HttpStatus status; public HttpClientResponse (HttpURLConnection connection) throws IOException { this.connection = connection; try { this.status = new HttpStatus(connection.getResponseCode()); } catch (IOException e) { this.status = new HttpStatus(-1); } } @Override public byte[] getResult () { InputStream input = getInputStream(); // If the response does not contain any content, input will be null. if (input == null) { return StreamUtils.EMPTY_BYTES; } try { return StreamUtils.copyStreamToByteArray(input, connection.getContentLength()); } catch (IOException e) { return StreamUtils.EMPTY_BYTES; } finally { StreamUtils.closeQuietly(input); } } @Override public String getResultAsString () { InputStream input = getInputStream(); // If the response does not contain any content, input will be null. if (input == null) { return ""; } try { return StreamUtils.copyStreamToString(input, connection.getContentLength(), "UTF8"); } catch (IOException e) { return ""; } finally { StreamUtils.closeQuietly(input); } } @Override public InputStream getResultAsStream () { return getInputStream(); } @Override public HttpStatus getStatus () { return status; } @Override public String getHeader (String name) { return connection.getHeaderField(name); } @Override public Map<String, List<String>> getHeaders () { return connection.getHeaderFields(); } private InputStream getInputStream () { try { return connection.getInputStream(); } catch (IOException e) { return connection.getErrorStream(); } } } private final ThreadPoolExecutor executorService; final ObjectMap<HttpRequest, HttpURLConnection> connections; final ObjectMap<HttpRequest, HttpResponseListener> listeners; final ObjectMap<HttpRequest, Future<?>> tasks; public NetJavaImpl () { this(Integer.MAX_VALUE); } public NetJavaImpl (int maxThreads) { final boolean isCachedPool = maxThreads == Integer.MAX_VALUE; executorService = new ThreadPoolExecutor(isCachedPool ? 0 : maxThreads, maxThreads, 60L, TimeUnit.SECONDS, isCachedPool ? new SynchronousQueue<Runnable>() : new LinkedBlockingQueue<Runnable>(), new ThreadFactory() { AtomicInteger threadID = new AtomicInteger(); @Override public Thread newThread (Runnable r) { Thread thread = new Thread(r, "NetThread" + threadID.getAndIncrement()); thread.setDaemon(true); return thread; } }); executorService.allowCoreThreadTimeOut(!isCachedPool); connections = new ObjectMap<HttpRequest, HttpURLConnection>(); listeners = new ObjectMap<HttpRequest, HttpResponseListener>(); tasks = new ObjectMap<HttpRequest, Future<?>>(); } public void sendHttpRequest (final HttpRequest httpRequest, final HttpResponseListener httpResponseListener) { if (httpRequest.getUrl() == null) { httpResponseListener.failed(new GdxRuntimeException("can't process a HTTP request without URL set")); return; } try { final String method = httpRequest.getMethod(); URL url; final boolean doInput = !method.equalsIgnoreCase(HttpMethods.HEAD); // should be enabled to upload data. final boolean doingOutPut = method.equalsIgnoreCase(HttpMethods.POST) || method.equalsIgnoreCase(HttpMethods.PUT) || method.equalsIgnoreCase(HttpMethods.PATCH); if (method.equalsIgnoreCase(HttpMethods.GET) || method.equalsIgnoreCase(HttpMethods.HEAD)) { String queryString = ""; String value = httpRequest.getContent(); if (value != null && !"".equals(value)) queryString = "?" + value; url = new URL(httpRequest.getUrl() + queryString); } else { url = new URL(httpRequest.getUrl()); } final HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setDoOutput(doingOutPut); connection.setDoInput(doInput); connection.setRequestMethod(method); HttpURLConnection.setFollowRedirects(httpRequest.getFollowRedirects()); putIntoConnectionsAndListeners(httpRequest, httpResponseListener, connection); // Headers get set regardless of the method for (Map.Entry<String, String> header : httpRequest.getHeaders().entrySet()) connection.addRequestProperty(header.getKey(), header.getValue()); // Set Timeouts connection.setConnectTimeout(httpRequest.getTimeOut()); connection.setReadTimeout(httpRequest.getTimeOut()); tasks.put(httpRequest, executorService.submit(new Runnable() { @Override public void run () { try { // Set the content for POST and PUT (GET has the information embedded in the URL) if (doingOutPut) { // we probably need to use the content as stream here instead of using it as a string. String contentAsString = httpRequest.getContent(); if (contentAsString != null) { OutputStreamWriter writer = new OutputStreamWriter(connection.getOutputStream(), "UTF8"); try { writer.write(contentAsString); } finally { StreamUtils.closeQuietly(writer); } } else { InputStream contentAsStream = httpRequest.getContentStream(); if (contentAsStream != null) { OutputStream os = connection.getOutputStream(); try { StreamUtils.copyStream(contentAsStream, os); } finally { StreamUtils.closeQuietly(os); } } } } connection.connect(); final HttpClientResponse clientResponse = new HttpClientResponse(connection); try { HttpResponseListener listener = getFromListeners(httpRequest); if (listener != null) { listener.handleHttpResponse(clientResponse); } removeFromConnectionsAndListeners(httpRequest); } finally { connection.disconnect(); } } catch (final Exception e) { connection.disconnect(); try { httpResponseListener.failed(e); } finally { removeFromConnectionsAndListeners(httpRequest); } } } })); } catch (Exception e) { try { httpResponseListener.failed(e); } finally { removeFromConnectionsAndListeners(httpRequest); } return; } } public void cancelHttpRequest (HttpRequest httpRequest) { HttpResponseListener httpResponseListener = getFromListeners(httpRequest); if (httpResponseListener != null) { httpResponseListener.cancelled(); cancelTask(httpRequest); removeFromConnectionsAndListeners(httpRequest); } } private void cancelTask (HttpRequest httpRequest) { Future<?> task = tasks.get(httpRequest); if (task != null) { task.cancel(false); } } synchronized void removeFromConnectionsAndListeners (final HttpRequest httpRequest) { connections.remove(httpRequest); listeners.remove(httpRequest); tasks.remove(httpRequest); } synchronized void putIntoConnectionsAndListeners (final HttpRequest httpRequest, final HttpResponseListener httpResponseListener, final HttpURLConnection connection) { connections.put(httpRequest, connection); listeners.put(httpRequest, httpResponseListener); } synchronized HttpResponseListener getFromListeners (HttpRequest httpRequest) { HttpResponseListener httpResponseListener = listeners.get(httpRequest); return httpResponseListener; } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.net; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import com.badlogic.gdx.Net; import com.badlogic.gdx.Net.HttpMethods; import com.badlogic.gdx.Net.HttpRequest; import com.badlogic.gdx.Net.HttpResponse; import com.badlogic.gdx.Net.HttpResponseListener; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ObjectMap; import com.badlogic.gdx.utils.StreamUtils; /** Implements part of the {@link Net} API using {@link HttpURLConnection}, to be easily reused between the Android and Desktop * backends. * @author acoppes */ public class NetJavaImpl { static class HttpClientResponse implements HttpResponse { private final HttpURLConnection connection; private HttpStatus status; public HttpClientResponse (HttpURLConnection connection) throws IOException { this.connection = connection; try { this.status = new HttpStatus(connection.getResponseCode()); } catch (IOException e) { this.status = new HttpStatus(-1); } } @Override public byte[] getResult () { InputStream input = getInputStream(); // If the response does not contain any content, input will be null. if (input == null) { return StreamUtils.EMPTY_BYTES; } try { return StreamUtils.copyStreamToByteArray(input, connection.getContentLength()); } catch (IOException e) { return StreamUtils.EMPTY_BYTES; } finally { StreamUtils.closeQuietly(input); } } @Override public String getResultAsString () { InputStream input = getInputStream(); // If the response does not contain any content, input will be null. if (input == null) { return ""; } try { return StreamUtils.copyStreamToString(input, connection.getContentLength(), "UTF8"); } catch (IOException e) { return ""; } finally { StreamUtils.closeQuietly(input); } } @Override public InputStream getResultAsStream () { return getInputStream(); } @Override public HttpStatus getStatus () { return status; } @Override public String getHeader (String name) { return connection.getHeaderField(name); } @Override public Map<String, List<String>> getHeaders () { return connection.getHeaderFields(); } private InputStream getInputStream () { try { return connection.getInputStream(); } catch (IOException e) { return connection.getErrorStream(); } } } private final ThreadPoolExecutor executorService; final ObjectMap<HttpRequest, HttpURLConnection> connections; final ObjectMap<HttpRequest, HttpResponseListener> listeners; final ObjectMap<HttpRequest, Future<?>> tasks; public NetJavaImpl () { this(Integer.MAX_VALUE); } public NetJavaImpl (int maxThreads) { final boolean isCachedPool = maxThreads == Integer.MAX_VALUE; executorService = new ThreadPoolExecutor(isCachedPool ? 0 : maxThreads, maxThreads, 60L, TimeUnit.SECONDS, isCachedPool ? new SynchronousQueue<Runnable>() : new LinkedBlockingQueue<Runnable>(), new ThreadFactory() { AtomicInteger threadID = new AtomicInteger(); @Override public Thread newThread (Runnable r) { Thread thread = new Thread(r, "NetThread" + threadID.getAndIncrement()); thread.setDaemon(true); return thread; } }); executorService.allowCoreThreadTimeOut(!isCachedPool); connections = new ObjectMap<HttpRequest, HttpURLConnection>(); listeners = new ObjectMap<HttpRequest, HttpResponseListener>(); tasks = new ObjectMap<HttpRequest, Future<?>>(); } public void sendHttpRequest (final HttpRequest httpRequest, final HttpResponseListener httpResponseListener) { if (httpRequest.getUrl() == null) { httpResponseListener.failed(new GdxRuntimeException("can't process a HTTP request without URL set")); return; } try { final String method = httpRequest.getMethod(); URL url; final boolean doInput = !method.equalsIgnoreCase(HttpMethods.HEAD); // should be enabled to upload data. final boolean doingOutPut = method.equalsIgnoreCase(HttpMethods.POST) || method.equalsIgnoreCase(HttpMethods.PUT) || method.equalsIgnoreCase(HttpMethods.PATCH); if (method.equalsIgnoreCase(HttpMethods.GET) || method.equalsIgnoreCase(HttpMethods.HEAD)) { String queryString = ""; String value = httpRequest.getContent(); if (value != null && !"".equals(value)) queryString = "?" + value; url = new URL(httpRequest.getUrl() + queryString); } else { url = new URL(httpRequest.getUrl()); } final HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setDoOutput(doingOutPut); connection.setDoInput(doInput); connection.setRequestMethod(method); HttpURLConnection.setFollowRedirects(httpRequest.getFollowRedirects()); putIntoConnectionsAndListeners(httpRequest, httpResponseListener, connection); // Headers get set regardless of the method for (Map.Entry<String, String> header : httpRequest.getHeaders().entrySet()) connection.addRequestProperty(header.getKey(), header.getValue()); // Set Timeouts connection.setConnectTimeout(httpRequest.getTimeOut()); connection.setReadTimeout(httpRequest.getTimeOut()); tasks.put(httpRequest, executorService.submit(new Runnable() { @Override public void run () { try { // Set the content for POST and PUT (GET has the information embedded in the URL) if (doingOutPut) { // we probably need to use the content as stream here instead of using it as a string. String contentAsString = httpRequest.getContent(); if (contentAsString != null) { OutputStreamWriter writer = new OutputStreamWriter(connection.getOutputStream(), "UTF8"); try { writer.write(contentAsString); } finally { StreamUtils.closeQuietly(writer); } } else { InputStream contentAsStream = httpRequest.getContentStream(); if (contentAsStream != null) { OutputStream os = connection.getOutputStream(); try { StreamUtils.copyStream(contentAsStream, os); } finally { StreamUtils.closeQuietly(os); } } } } connection.connect(); final HttpClientResponse clientResponse = new HttpClientResponse(connection); try { HttpResponseListener listener = getFromListeners(httpRequest); if (listener != null) { listener.handleHttpResponse(clientResponse); } removeFromConnectionsAndListeners(httpRequest); } finally { connection.disconnect(); } } catch (final Exception e) { connection.disconnect(); try { httpResponseListener.failed(e); } finally { removeFromConnectionsAndListeners(httpRequest); } } } })); } catch (Exception e) { try { httpResponseListener.failed(e); } finally { removeFromConnectionsAndListeners(httpRequest); } return; } } public void cancelHttpRequest (HttpRequest httpRequest) { HttpResponseListener httpResponseListener = getFromListeners(httpRequest); if (httpResponseListener != null) { httpResponseListener.cancelled(); cancelTask(httpRequest); removeFromConnectionsAndListeners(httpRequest); } } private void cancelTask (HttpRequest httpRequest) { Future<?> task = tasks.get(httpRequest); if (task != null) { task.cancel(false); } } synchronized void removeFromConnectionsAndListeners (final HttpRequest httpRequest) { connections.remove(httpRequest); listeners.remove(httpRequest); tasks.remove(httpRequest); } synchronized void putIntoConnectionsAndListeners (final HttpRequest httpRequest, final HttpResponseListener httpResponseListener, final HttpURLConnection connection) { connections.put(httpRequest, connection); listeners.put(httpRequest, httpResponseListener); } synchronized HttpResponseListener getFromListeners (HttpRequest httpRequest) { HttpResponseListener httpResponseListener = listeners.get(httpRequest); return httpResponseListener; } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/maps/tiled/renderers/HexagonalTiledMapRenderer.java
/******************************************************************************* * Copyright 2013 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.maps.tiled.renderers; import static com.badlogic.gdx.graphics.g2d.Batch.*; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.maps.tiled.TiledMapTile; import com.badlogic.gdx.maps.tiled.TiledMapTileLayer; import com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile; public class HexagonalTiledMapRenderer extends BatchTiledMapRenderer { /** true for X-Axis, false for Y-Axis */ private boolean staggerAxisX = true; /** true for even StaggerIndex, false for odd */ private boolean staggerIndexEven = false; /** the parameter defining the shape of the hexagon from tiled. more specifically it represents the length of the sides that * are parallel to the stagger axis. e.g. with respect to the stagger axis a value of 0 results in a rhombus shape, while a * value equal to the tile length/height represents a square shape and a value of 0.5 represents a regular hexagon if tile * length equals tile height */ private float hexSideLength = 0f; public HexagonalTiledMapRenderer (TiledMap map) { super(map); init(map); } public HexagonalTiledMapRenderer (TiledMap map, float unitScale) { super(map, unitScale); init(map); } public HexagonalTiledMapRenderer (TiledMap map, Batch batch) { super(map, batch); init(map); } public HexagonalTiledMapRenderer (TiledMap map, float unitScale, Batch batch) { super(map, unitScale, batch); init(map); } private void init (TiledMap map) { String axis = map.getProperties().get("staggeraxis", String.class); if (axis != null) { if (axis.equals("x")) { staggerAxisX = true; } else { staggerAxisX = false; } } String index = map.getProperties().get("staggerindex", String.class); if (index != null) { if (index.equals("even")) { staggerIndexEven = true; } else { staggerIndexEven = false; } } // due to y-axis being different we need to change stagger index in even map height situations as else it would render // differently. if (!staggerAxisX && map.getProperties().get("height", Integer.class) % 2 == 0) staggerIndexEven = !staggerIndexEven; Integer length = map.getProperties().get("hexsidelength", Integer.class); if (length != null) { hexSideLength = length.intValue(); } else { if (staggerAxisX) { length = map.getProperties().get("tilewidth", Integer.class); if (length != null) { hexSideLength = 0.5f * length.intValue(); } else { TiledMapTileLayer tmtl = (TiledMapTileLayer)map.getLayers().get(0); hexSideLength = 0.5f * tmtl.getTileWidth(); } } else { length = map.getProperties().get("tileheight", Integer.class); if (length != null) { hexSideLength = 0.5f * length.intValue(); } else { TiledMapTileLayer tmtl = (TiledMapTileLayer)map.getLayers().get(0); hexSideLength = 0.5f * tmtl.getTileHeight(); } } } } @Override public void renderTileLayer (TiledMapTileLayer layer) { final Color batchColor = batch.getColor(); final float color = Color.toFloatBits(batchColor.r, batchColor.g, batchColor.b, batchColor.a * layer.getOpacity()); final int layerWidth = layer.getWidth(); final int layerHeight = layer.getHeight(); final float layerTileWidth = layer.getTileWidth() * unitScale; final float layerTileHeight = layer.getTileHeight() * unitScale; final float layerOffsetX = layer.getRenderOffsetX() * unitScale - viewBounds.x * (layer.getParallaxX() - 1); // offset in tiled is y down, so we flip it final float layerOffsetY = -layer.getRenderOffsetY() * unitScale - viewBounds.y * (layer.getParallaxY() - 1); final float layerHexLength = hexSideLength * unitScale; if (staggerAxisX) { final float tileWidthLowerCorner = (layerTileWidth - layerHexLength) / 2; final float tileWidthUpperCorner = (layerTileWidth + layerHexLength) / 2; final float layerTileHeight50 = layerTileHeight * 0.50f; final int row1 = Math.max(0, (int)((viewBounds.y - layerTileHeight50 - layerOffsetX) / layerTileHeight)); final int row2 = Math.min(layerHeight, (int)((viewBounds.y + viewBounds.height + layerTileHeight - layerOffsetX) / layerTileHeight)); final int col1 = Math.max(0, (int)(((viewBounds.x - tileWidthLowerCorner - layerOffsetY) / tileWidthUpperCorner))); final int col2 = Math.min(layerWidth, (int)((viewBounds.x + viewBounds.width + tileWidthUpperCorner - layerOffsetY) / tileWidthUpperCorner)); // depending on the stagger index either draw all even before the odd or vice versa final int colA = (staggerIndexEven == (col1 % 2 == 0)) ? col1 + 1 : col1; final int colB = (staggerIndexEven == (col1 % 2 == 0)) ? col1 : col1 + 1; for (int row = row2 - 1; row >= row1; row--) { for (int col = colA; col < col2; col += 2) { renderCell(layer.getCell(col, row), tileWidthUpperCorner * col + layerOffsetX, layerTileHeight50 + (layerTileHeight * row) + layerOffsetY, color); } for (int col = colB; col < col2; col += 2) { renderCell(layer.getCell(col, row), tileWidthUpperCorner * col + layerOffsetX, layerTileHeight * row + layerOffsetY, color); } } } else { final float tileHeightLowerCorner = (layerTileHeight - layerHexLength) / 2; final float tileHeightUpperCorner = (layerTileHeight + layerHexLength) / 2; final float layerTileWidth50 = layerTileWidth * 0.50f; final int row1 = Math.max(0, (int)(((viewBounds.y - tileHeightLowerCorner - layerOffsetX) / tileHeightUpperCorner))); final int row2 = Math.min(layerHeight, (int)((viewBounds.y + viewBounds.height + tileHeightUpperCorner - layerOffsetX) / tileHeightUpperCorner)); final int col1 = Math.max(0, (int)(((viewBounds.x - layerTileWidth50 - layerOffsetY) / layerTileWidth))); final int col2 = Math.min(layerWidth, (int)((viewBounds.x + viewBounds.width + layerTileWidth - layerOffsetY) / layerTileWidth)); float shiftX = 0; for (int row = row2 - 1; row >= row1; row--) { // depending on the stagger index either shift for even or uneven indexes if ((row % 2 == 0) == staggerIndexEven) shiftX = layerTileWidth50; else shiftX = 0; for (int col = col1; col < col2; col++) { renderCell(layer.getCell(col, row), layerTileWidth * col + shiftX + layerOffsetX, tileHeightUpperCorner * row + layerOffsetY, color); } } } } /** render a single cell */ private void renderCell (final TiledMapTileLayer.Cell cell, final float x, final float y, final float color) { if (cell != null) { final TiledMapTile tile = cell.getTile(); if (tile != null) { if (tile instanceof AnimatedTiledMapTile) return; final boolean flipX = cell.getFlipHorizontally(); final boolean flipY = cell.getFlipVertically(); final int rotations = cell.getRotation(); TextureRegion region = tile.getTextureRegion(); float x1 = x + tile.getOffsetX() * unitScale; float y1 = y + tile.getOffsetY() * unitScale; float x2 = x1 + region.getRegionWidth() * unitScale; float y2 = y1 + region.getRegionHeight() * unitScale; float u1 = region.getU(); float v1 = region.getV2(); float u2 = region.getU2(); float v2 = region.getV(); vertices[X1] = x1; vertices[Y1] = y1; vertices[C1] = color; vertices[U1] = u1; vertices[V1] = v1; vertices[X2] = x1; vertices[Y2] = y2; vertices[C2] = color; vertices[U2] = u1; vertices[V2] = v2; vertices[X3] = x2; vertices[Y3] = y2; vertices[C3] = color; vertices[U3] = u2; vertices[V3] = v2; vertices[X4] = x2; vertices[Y4] = y1; vertices[C4] = color; vertices[U4] = u2; vertices[V4] = v1; if (flipX) { float temp = vertices[U1]; vertices[U1] = vertices[U3]; vertices[U3] = temp; temp = vertices[U2]; vertices[U2] = vertices[U4]; vertices[U4] = temp; } if (flipY) { float temp = vertices[V1]; vertices[V1] = vertices[V3]; vertices[V3] = temp; temp = vertices[V2]; vertices[V2] = vertices[V4]; vertices[V4] = temp; } if (rotations == 2) { float tempU = vertices[U1]; vertices[U1] = vertices[U3]; vertices[U3] = tempU; tempU = vertices[U2]; vertices[U2] = vertices[U4]; vertices[U4] = tempU; float tempV = vertices[V1]; vertices[V1] = vertices[V3]; vertices[V3] = tempV; tempV = vertices[V2]; vertices[V2] = vertices[V4]; vertices[V4] = tempV; } batch.draw(region.getTexture(), vertices, 0, NUM_VERTICES); } } } }
/******************************************************************************* * Copyright 2013 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.maps.tiled.renderers; import static com.badlogic.gdx.graphics.g2d.Batch.*; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.maps.tiled.TiledMap; import com.badlogic.gdx.maps.tiled.TiledMapTile; import com.badlogic.gdx.maps.tiled.TiledMapTileLayer; import com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile; public class HexagonalTiledMapRenderer extends BatchTiledMapRenderer { /** true for X-Axis, false for Y-Axis */ private boolean staggerAxisX = true; /** true for even StaggerIndex, false for odd */ private boolean staggerIndexEven = false; /** the parameter defining the shape of the hexagon from tiled. more specifically it represents the length of the sides that * are parallel to the stagger axis. e.g. with respect to the stagger axis a value of 0 results in a rhombus shape, while a * value equal to the tile length/height represents a square shape and a value of 0.5 represents a regular hexagon if tile * length equals tile height */ private float hexSideLength = 0f; public HexagonalTiledMapRenderer (TiledMap map) { super(map); init(map); } public HexagonalTiledMapRenderer (TiledMap map, float unitScale) { super(map, unitScale); init(map); } public HexagonalTiledMapRenderer (TiledMap map, Batch batch) { super(map, batch); init(map); } public HexagonalTiledMapRenderer (TiledMap map, float unitScale, Batch batch) { super(map, unitScale, batch); init(map); } private void init (TiledMap map) { String axis = map.getProperties().get("staggeraxis", String.class); if (axis != null) { if (axis.equals("x")) { staggerAxisX = true; } else { staggerAxisX = false; } } String index = map.getProperties().get("staggerindex", String.class); if (index != null) { if (index.equals("even")) { staggerIndexEven = true; } else { staggerIndexEven = false; } } // due to y-axis being different we need to change stagger index in even map height situations as else it would render // differently. if (!staggerAxisX && map.getProperties().get("height", Integer.class) % 2 == 0) staggerIndexEven = !staggerIndexEven; Integer length = map.getProperties().get("hexsidelength", Integer.class); if (length != null) { hexSideLength = length.intValue(); } else { if (staggerAxisX) { length = map.getProperties().get("tilewidth", Integer.class); if (length != null) { hexSideLength = 0.5f * length.intValue(); } else { TiledMapTileLayer tmtl = (TiledMapTileLayer)map.getLayers().get(0); hexSideLength = 0.5f * tmtl.getTileWidth(); } } else { length = map.getProperties().get("tileheight", Integer.class); if (length != null) { hexSideLength = 0.5f * length.intValue(); } else { TiledMapTileLayer tmtl = (TiledMapTileLayer)map.getLayers().get(0); hexSideLength = 0.5f * tmtl.getTileHeight(); } } } } @Override public void renderTileLayer (TiledMapTileLayer layer) { final Color batchColor = batch.getColor(); final float color = Color.toFloatBits(batchColor.r, batchColor.g, batchColor.b, batchColor.a * layer.getOpacity()); final int layerWidth = layer.getWidth(); final int layerHeight = layer.getHeight(); final float layerTileWidth = layer.getTileWidth() * unitScale; final float layerTileHeight = layer.getTileHeight() * unitScale; final float layerOffsetX = layer.getRenderOffsetX() * unitScale - viewBounds.x * (layer.getParallaxX() - 1); // offset in tiled is y down, so we flip it final float layerOffsetY = -layer.getRenderOffsetY() * unitScale - viewBounds.y * (layer.getParallaxY() - 1); final float layerHexLength = hexSideLength * unitScale; if (staggerAxisX) { final float tileWidthLowerCorner = (layerTileWidth - layerHexLength) / 2; final float tileWidthUpperCorner = (layerTileWidth + layerHexLength) / 2; final float layerTileHeight50 = layerTileHeight * 0.50f; final int row1 = Math.max(0, (int)((viewBounds.y - layerTileHeight50 - layerOffsetX) / layerTileHeight)); final int row2 = Math.min(layerHeight, (int)((viewBounds.y + viewBounds.height + layerTileHeight - layerOffsetX) / layerTileHeight)); final int col1 = Math.max(0, (int)(((viewBounds.x - tileWidthLowerCorner - layerOffsetY) / tileWidthUpperCorner))); final int col2 = Math.min(layerWidth, (int)((viewBounds.x + viewBounds.width + tileWidthUpperCorner - layerOffsetY) / tileWidthUpperCorner)); // depending on the stagger index either draw all even before the odd or vice versa final int colA = (staggerIndexEven == (col1 % 2 == 0)) ? col1 + 1 : col1; final int colB = (staggerIndexEven == (col1 % 2 == 0)) ? col1 : col1 + 1; for (int row = row2 - 1; row >= row1; row--) { for (int col = colA; col < col2; col += 2) { renderCell(layer.getCell(col, row), tileWidthUpperCorner * col + layerOffsetX, layerTileHeight50 + (layerTileHeight * row) + layerOffsetY, color); } for (int col = colB; col < col2; col += 2) { renderCell(layer.getCell(col, row), tileWidthUpperCorner * col + layerOffsetX, layerTileHeight * row + layerOffsetY, color); } } } else { final float tileHeightLowerCorner = (layerTileHeight - layerHexLength) / 2; final float tileHeightUpperCorner = (layerTileHeight + layerHexLength) / 2; final float layerTileWidth50 = layerTileWidth * 0.50f; final int row1 = Math.max(0, (int)(((viewBounds.y - tileHeightLowerCorner - layerOffsetX) / tileHeightUpperCorner))); final int row2 = Math.min(layerHeight, (int)((viewBounds.y + viewBounds.height + tileHeightUpperCorner - layerOffsetX) / tileHeightUpperCorner)); final int col1 = Math.max(0, (int)(((viewBounds.x - layerTileWidth50 - layerOffsetY) / layerTileWidth))); final int col2 = Math.min(layerWidth, (int)((viewBounds.x + viewBounds.width + layerTileWidth - layerOffsetY) / layerTileWidth)); float shiftX = 0; for (int row = row2 - 1; row >= row1; row--) { // depending on the stagger index either shift for even or uneven indexes if ((row % 2 == 0) == staggerIndexEven) shiftX = layerTileWidth50; else shiftX = 0; for (int col = col1; col < col2; col++) { renderCell(layer.getCell(col, row), layerTileWidth * col + shiftX + layerOffsetX, tileHeightUpperCorner * row + layerOffsetY, color); } } } } /** render a single cell */ private void renderCell (final TiledMapTileLayer.Cell cell, final float x, final float y, final float color) { if (cell != null) { final TiledMapTile tile = cell.getTile(); if (tile != null) { if (tile instanceof AnimatedTiledMapTile) return; final boolean flipX = cell.getFlipHorizontally(); final boolean flipY = cell.getFlipVertically(); final int rotations = cell.getRotation(); TextureRegion region = tile.getTextureRegion(); float x1 = x + tile.getOffsetX() * unitScale; float y1 = y + tile.getOffsetY() * unitScale; float x2 = x1 + region.getRegionWidth() * unitScale; float y2 = y1 + region.getRegionHeight() * unitScale; float u1 = region.getU(); float v1 = region.getV2(); float u2 = region.getU2(); float v2 = region.getV(); vertices[X1] = x1; vertices[Y1] = y1; vertices[C1] = color; vertices[U1] = u1; vertices[V1] = v1; vertices[X2] = x1; vertices[Y2] = y2; vertices[C2] = color; vertices[U2] = u1; vertices[V2] = v2; vertices[X3] = x2; vertices[Y3] = y2; vertices[C3] = color; vertices[U3] = u2; vertices[V3] = v2; vertices[X4] = x2; vertices[Y4] = y1; vertices[C4] = color; vertices[U4] = u2; vertices[V4] = v1; if (flipX) { float temp = vertices[U1]; vertices[U1] = vertices[U3]; vertices[U3] = temp; temp = vertices[U2]; vertices[U2] = vertices[U4]; vertices[U4] = temp; } if (flipY) { float temp = vertices[V1]; vertices[V1] = vertices[V3]; vertices[V3] = temp; temp = vertices[V2]; vertices[V2] = vertices[V4]; vertices[V4] = temp; } if (rotations == 2) { float tempU = vertices[U1]; vertices[U1] = vertices[U3]; vertices[U3] = tempU; tempU = vertices[U2]; vertices[U2] = vertices[U4]; vertices[U4] = tempU; float tempV = vertices[V1]; vertices[V1] = vertices[V3]; vertices[V3] = tempV; tempV = vertices[V2]; vertices[V2] = vertices[V4]; vertices[V4] = tempV; } batch.draw(region.getTexture(), vertices, 0, NUM_VERTICES); } } } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-bullet/jni/swig-src/linearmath/com/badlogic/gdx/physics/bullet/linearmath/SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.linearmath; public class SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t { private transient long swigCPtr; protected SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t (long cPtr, @SuppressWarnings("unused") boolean futureUse) { swigCPtr = cPtr; } protected SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t () { swigCPtr = 0; } protected static long getCPtr (SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.badlogic.gdx.physics.bullet.linearmath; public class SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t { private transient long swigCPtr; protected SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t (long cPtr, @SuppressWarnings("unused") boolean futureUse) { swigCPtr = cPtr; } protected SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t () { swigCPtr = 0; } protected static long getCPtr (SWIGTYPE_p_btAlignedObjectArrayT_btDynamicsWorldDoubleData_p_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/graphics/g3d/model/MeshPart.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.graphics.g3d.model; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Mesh; import com.badlogic.gdx.graphics.g3d.Model; import com.badlogic.gdx.graphics.glutils.ShaderProgram; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.math.collision.BoundingBox; /** A MeshPart is composed of a subset of vertices of a {@link Mesh}, along with the primitive type. The vertices subset is * described by an offset and size. When the mesh is indexed (which is when {@link Mesh#getNumIndices()} > 0), then the * {@link #offset} represents the offset in the indices array and {@link #size} represents the number of indices. When the mesh * isn't indexed, then the {@link #offset} member represents the offset in the vertices array and the {@link #size} member * represents the number of vertices. * </p> * * In other words: Regardless whether the mesh is indexed or not, when {@link #primitiveType} is not a strip, then {@link #size} * equals the number of primitives multiplied by the number of vertices per primitive. So if the MeshPart represents 4 triangles ( * {@link #primitiveType} is GL_TRIANGLES), then the {@link #size} member is 12 (4 triangles * 3 vertices = 12 vertices total). * Likewise, if the part represents 12 lines ({@link #primitiveType} is GL_LINES), then the size is 24 (12 lines * 2 vertices = 24 * vertices total). * </p> * * Note that some classes might require the mesh (part) to be indexed. * </p> * * The {@link Mesh} referenced by the {@link #mesh} member must outlive the MeshPart. When the mesh is disposed, the MeshPart is * unusable. * @author badlogic, Xoppa */ public class MeshPart { /** Unique id within model, may be null. Will be ignored by {@link #equals(MeshPart)} **/ public String id; /** The primitive type, OpenGL constant e.g: {@link GL20#GL_TRIANGLES}, {@link GL20#GL_POINTS}, {@link GL20#GL_LINES}, * {@link GL20#GL_LINE_STRIP}, {@link GL20#GL_TRIANGLE_STRIP} **/ public int primitiveType; /** The offset in the {@link #mesh} to this part. If the mesh is indexed ({@link Mesh#getNumIndices()} > 0), this is the offset * in the indices array, otherwise it is the offset in the vertices array. **/ public int offset; /** The size (in total number of vertices) of this part in the {@link #mesh}. When the mesh is indexed ( * {@link Mesh#getNumIndices()} > 0), this is the number of indices, otherwise it is the number of vertices. **/ public int size; /** The Mesh the part references, also stored in {@link Model} **/ public Mesh mesh; /** The offset to the center of the bounding box of the shape, only valid after the call to {@link #update()}. **/ public final Vector3 center = new Vector3(); /** The location, relative to {@link #center}, of the corner of the axis aligned bounding box of the shape. Or, in other words: * half the dimensions of the bounding box of the shape, where {@link Vector3#x} is half the width, {@link Vector3#y} is half * the height and {@link Vector3#z} is half the depth. Only valid after the call to {@link #update()}. **/ public final Vector3 halfExtents = new Vector3(); /** The radius relative to {@link #center} of the bounding sphere of the shape, or negative if not calculated yet. This is the * same as the length of the {@link #halfExtents} member. See {@link #update()}. **/ public float radius = -1; /** Temporary static {@link BoundingBox} instance, used in the {@link #update()} method. **/ private final static BoundingBox bounds = new BoundingBox(); /** Construct a new MeshPart, with null values. The MeshPart is unusable until you set all members. **/ public MeshPart () { } /** Construct a new MeshPart and set all its values. * @param id The id of the new part, may be null. * @param mesh The mesh which holds all vertices and (optional) indices of this part. * @param offset The offset within the mesh to this part. * @param size The size (in total number of vertices) of the part. * @param type The primitive type of the part (e.g. GL_TRIANGLES, GL_LINE_STRIP, etc.). */ public MeshPart (final String id, final Mesh mesh, final int offset, final int size, final int type) { set(id, mesh, offset, size, type); } /** Construct a new MeshPart which is an exact copy of the provided MeshPart. * @param copyFrom The MeshPart to copy. */ public MeshPart (final MeshPart copyFrom) { set(copyFrom); } /** Set this MeshPart to be a copy of the other MeshPart * @param other The MeshPart from which to copy the values * @return this MeshPart, for chaining */ public MeshPart set (final MeshPart other) { this.id = other.id; this.mesh = other.mesh; this.offset = other.offset; this.size = other.size; this.primitiveType = other.primitiveType; this.center.set(other.center); this.halfExtents.set(other.halfExtents); this.radius = other.radius; return this; } /** Set this MeshPart to given values, does not {@link #update()} the bounding box values. * @return this MeshPart, for chaining. */ public MeshPart set (final String id, final Mesh mesh, final int offset, final int size, final int type) { this.id = id; this.mesh = mesh; this.offset = offset; this.size = size; this.primitiveType = type; this.center.set(0, 0, 0); this.halfExtents.set(0, 0, 0); this.radius = -1f; return this; } /** Calculates and updates the {@link #center}, {@link #halfExtents} and {@link #radius} values. This is considered a costly * operation and should not be called frequently. All vertices (points) of the shape are traversed to calculate the maximum and * minimum x, y and z coordinate of the shape. Note that MeshPart is not aware of any transformation that might be applied when * rendering. It calculates the untransformed (not moved, not scaled, not rotated) values. */ public void update () { mesh.calculateBoundingBox(bounds, offset, size); bounds.getCenter(center); bounds.getDimensions(halfExtents).scl(0.5f); radius = halfExtents.len(); } /** Compares this MeshPart to the specified MeshPart and returns true if they both reference the same {@link Mesh} and the * {@link #offset}, {@link #size} and {@link #primitiveType} members are equal. The {@link #id} member is ignored. * @param other The other MeshPart to compare this MeshPart to. * @return True when this MeshPart equals the other MeshPart (ignoring the {@link #id} member), false otherwise. */ public boolean equals (final MeshPart other) { return other == this || (other != null && other.mesh == mesh && other.primitiveType == primitiveType && other.offset == offset && other.size == size); } @Override public boolean equals (final Object arg0) { if (arg0 == null) return false; if (arg0 == this) return true; if (!(arg0 instanceof MeshPart)) return false; return equals((MeshPart)arg0); } /** Renders the mesh part using the specified shader, must be called after {@link ShaderProgram#bind()}. * @param shader the shader to be used * @param autoBind overrides the autoBind member of the Mesh */ public void render (ShaderProgram shader, boolean autoBind) { mesh.render(shader, primitiveType, offset, size, autoBind); } /** Renders the mesh part using the specified shader, must be called after {@link ShaderProgram#bind()}. * @param shader the shader to be used */ public void render (ShaderProgram shader) { mesh.render(shader, primitiveType, offset, size); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.graphics.g3d.model; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Mesh; import com.badlogic.gdx.graphics.g3d.Model; import com.badlogic.gdx.graphics.glutils.ShaderProgram; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.math.collision.BoundingBox; /** A MeshPart is composed of a subset of vertices of a {@link Mesh}, along with the primitive type. The vertices subset is * described by an offset and size. When the mesh is indexed (which is when {@link Mesh#getNumIndices()} > 0), then the * {@link #offset} represents the offset in the indices array and {@link #size} represents the number of indices. When the mesh * isn't indexed, then the {@link #offset} member represents the offset in the vertices array and the {@link #size} member * represents the number of vertices. * </p> * * In other words: Regardless whether the mesh is indexed or not, when {@link #primitiveType} is not a strip, then {@link #size} * equals the number of primitives multiplied by the number of vertices per primitive. So if the MeshPart represents 4 triangles ( * {@link #primitiveType} is GL_TRIANGLES), then the {@link #size} member is 12 (4 triangles * 3 vertices = 12 vertices total). * Likewise, if the part represents 12 lines ({@link #primitiveType} is GL_LINES), then the size is 24 (12 lines * 2 vertices = 24 * vertices total). * </p> * * Note that some classes might require the mesh (part) to be indexed. * </p> * * The {@link Mesh} referenced by the {@link #mesh} member must outlive the MeshPart. When the mesh is disposed, the MeshPart is * unusable. * @author badlogic, Xoppa */ public class MeshPart { /** Unique id within model, may be null. Will be ignored by {@link #equals(MeshPart)} **/ public String id; /** The primitive type, OpenGL constant e.g: {@link GL20#GL_TRIANGLES}, {@link GL20#GL_POINTS}, {@link GL20#GL_LINES}, * {@link GL20#GL_LINE_STRIP}, {@link GL20#GL_TRIANGLE_STRIP} **/ public int primitiveType; /** The offset in the {@link #mesh} to this part. If the mesh is indexed ({@link Mesh#getNumIndices()} > 0), this is the offset * in the indices array, otherwise it is the offset in the vertices array. **/ public int offset; /** The size (in total number of vertices) of this part in the {@link #mesh}. When the mesh is indexed ( * {@link Mesh#getNumIndices()} > 0), this is the number of indices, otherwise it is the number of vertices. **/ public int size; /** The Mesh the part references, also stored in {@link Model} **/ public Mesh mesh; /** The offset to the center of the bounding box of the shape, only valid after the call to {@link #update()}. **/ public final Vector3 center = new Vector3(); /** The location, relative to {@link #center}, of the corner of the axis aligned bounding box of the shape. Or, in other words: * half the dimensions of the bounding box of the shape, where {@link Vector3#x} is half the width, {@link Vector3#y} is half * the height and {@link Vector3#z} is half the depth. Only valid after the call to {@link #update()}. **/ public final Vector3 halfExtents = new Vector3(); /** The radius relative to {@link #center} of the bounding sphere of the shape, or negative if not calculated yet. This is the * same as the length of the {@link #halfExtents} member. See {@link #update()}. **/ public float radius = -1; /** Temporary static {@link BoundingBox} instance, used in the {@link #update()} method. **/ private final static BoundingBox bounds = new BoundingBox(); /** Construct a new MeshPart, with null values. The MeshPart is unusable until you set all members. **/ public MeshPart () { } /** Construct a new MeshPart and set all its values. * @param id The id of the new part, may be null. * @param mesh The mesh which holds all vertices and (optional) indices of this part. * @param offset The offset within the mesh to this part. * @param size The size (in total number of vertices) of the part. * @param type The primitive type of the part (e.g. GL_TRIANGLES, GL_LINE_STRIP, etc.). */ public MeshPart (final String id, final Mesh mesh, final int offset, final int size, final int type) { set(id, mesh, offset, size, type); } /** Construct a new MeshPart which is an exact copy of the provided MeshPart. * @param copyFrom The MeshPart to copy. */ public MeshPart (final MeshPart copyFrom) { set(copyFrom); } /** Set this MeshPart to be a copy of the other MeshPart * @param other The MeshPart from which to copy the values * @return this MeshPart, for chaining */ public MeshPart set (final MeshPart other) { this.id = other.id; this.mesh = other.mesh; this.offset = other.offset; this.size = other.size; this.primitiveType = other.primitiveType; this.center.set(other.center); this.halfExtents.set(other.halfExtents); this.radius = other.radius; return this; } /** Set this MeshPart to given values, does not {@link #update()} the bounding box values. * @return this MeshPart, for chaining. */ public MeshPart set (final String id, final Mesh mesh, final int offset, final int size, final int type) { this.id = id; this.mesh = mesh; this.offset = offset; this.size = size; this.primitiveType = type; this.center.set(0, 0, 0); this.halfExtents.set(0, 0, 0); this.radius = -1f; return this; } /** Calculates and updates the {@link #center}, {@link #halfExtents} and {@link #radius} values. This is considered a costly * operation and should not be called frequently. All vertices (points) of the shape are traversed to calculate the maximum and * minimum x, y and z coordinate of the shape. Note that MeshPart is not aware of any transformation that might be applied when * rendering. It calculates the untransformed (not moved, not scaled, not rotated) values. */ public void update () { mesh.calculateBoundingBox(bounds, offset, size); bounds.getCenter(center); bounds.getDimensions(halfExtents).scl(0.5f); radius = halfExtents.len(); } /** Compares this MeshPart to the specified MeshPart and returns true if they both reference the same {@link Mesh} and the * {@link #offset}, {@link #size} and {@link #primitiveType} members are equal. The {@link #id} member is ignored. * @param other The other MeshPart to compare this MeshPart to. * @return True when this MeshPart equals the other MeshPart (ignoring the {@link #id} member), false otherwise. */ public boolean equals (final MeshPart other) { return other == this || (other != null && other.mesh == mesh && other.primitiveType == primitiveType && other.offset == offset && other.size == size); } @Override public boolean equals (final Object arg0) { if (arg0 == null) return false; if (arg0 == this) return true; if (!(arg0 instanceof MeshPart)) return false; return equals((MeshPart)arg0); } /** Renders the mesh part using the specified shader, must be called after {@link ShaderProgram#bind()}. * @param shader the shader to be used * @param autoBind overrides the autoBind member of the Mesh */ public void render (ShaderProgram shader, boolean autoBind) { mesh.render(shader, primitiveType, offset, size, autoBind); } /** Renders the mesh part using the specified shader, must be called after {@link ShaderProgram#bind()}. * @param shader the shader to be used */ public void render (ShaderProgram shader) { mesh.render(shader, primitiveType, offset, size); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/EventManager.java
package com.badlogic.gdx.tools.flame; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.ObjectMap; /** @author Inferno */ public class EventManager { private static EventManager mInstance; public interface Listener { public void handle (int aEventType, Object aEventData); } private ObjectMap<Integer, Array<Listener>> mListeners; private EventManager () { mListeners = new ObjectMap<Integer, Array<Listener>>(); } public static EventManager get () { if (mInstance == null) mInstance = new EventManager(); return mInstance; } public void attach (int aEventType, Listener aListener) { boolean isNew = false; Array<Listener> listeners = mListeners.get(aEventType); if (listeners == null) { listeners = new Array<EventManager.Listener>(); mListeners.put(aEventType, listeners); isNew = true; } if (isNew || !listeners.contains(aListener, true)) { listeners.add(aListener); } } public void detach (int aEventType, Listener aListener) { Array<Listener> listeners = mListeners.get(aEventType); if (listeners != null) { listeners.removeValue(aListener, true); if (listeners.size == 0) mListeners.remove(aEventType); } } public void fire (int aEventType, Object aEventData) { Array<Listener> listeners = mListeners.get(aEventType); if (listeners != null) for (Listener listener : listeners) { listener.handle(aEventType, aEventData); } } public void clear () { mListeners.clear(); } }
package com.badlogic.gdx.tools.flame; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.ObjectMap; /** @author Inferno */ public class EventManager { private static EventManager mInstance; public interface Listener { public void handle (int aEventType, Object aEventData); } private ObjectMap<Integer, Array<Listener>> mListeners; private EventManager () { mListeners = new ObjectMap<Integer, Array<Listener>>(); } public static EventManager get () { if (mInstance == null) mInstance = new EventManager(); return mInstance; } public void attach (int aEventType, Listener aListener) { boolean isNew = false; Array<Listener> listeners = mListeners.get(aEventType); if (listeners == null) { listeners = new Array<EventManager.Listener>(); mListeners.put(aEventType, listeners); isNew = true; } if (isNew || !listeners.contains(aListener, true)) { listeners.add(aListener); } } public void detach (int aEventType, Listener aListener) { Array<Listener> listeners = mListeners.get(aEventType); if (listeners != null) { listeners.removeValue(aListener, true); if (listeners.size == 0) mListeners.remove(aEventType); } } public void fire (int aEventType, Object aEventData) { Array<Listener> listeners = mListeners.get(aEventType); if (listeners != null) for (Listener listener : listeners) { listener.handle(aEventType, aEventData); } } public void clear () { mListeners.clear(); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/custom/UIAcceleration.java
/* * Copyright (C) 2014 Trillian Mobile AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.badlogic.gdx.backends.iosrobovm.custom; /*<imports>*/ import org.robovm.objc.*; import org.robovm.objc.annotation.*; import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; /*</imports>*/ /*<javadoc>*/ /** @since Available in iOS 2.0 and later. * @deprecated Deprecated in iOS 5.0. */ @Deprecated /* </javadoc> */ /* <annotations> */ @Library("UIKit") @NativeClass /* </annotations> */ /* <visibility> */public/* </visibility> */ class /* <name> */ UIAcceleration/* </name> */ extends /* <extends> */NSObject/* </extends> */ /* <implements> *//* </implements> */ { /* <ptr> */public static class UIAccelerationPtr extends Ptr<UIAcceleration, UIAccelerationPtr> { } /* </ptr> */ /* <bind> */static { ObjCRuntime.bind(UIAcceleration.class); }/* </bind> */ /* <constants> *//* </constants> */ /* <constructors> */ public UIAcceleration () { } protected UIAcceleration (SkipInit skipInit) { super(skipInit); } /* </constructors> */ /* <properties> */ @Property(selector = "timestamp") public native double getTimestamp (); @Property(selector = "x") public native double getX (); @Property(selector = "y") public native double getY (); @Property(selector = "z") public native double getZ (); /* </properties> */ /* <members> *//* </members> */ /* <methods> */ /* </methods> */ }
/* * Copyright (C) 2014 Trillian Mobile AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.badlogic.gdx.backends.iosrobovm.custom; /*<imports>*/ import org.robovm.objc.*; import org.robovm.objc.annotation.*; import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; /*</imports>*/ /*<javadoc>*/ /** @since Available in iOS 2.0 and later. * @deprecated Deprecated in iOS 5.0. */ @Deprecated /* </javadoc> */ /* <annotations> */ @Library("UIKit") @NativeClass /* </annotations> */ /* <visibility> */public/* </visibility> */ class /* <name> */ UIAcceleration/* </name> */ extends /* <extends> */NSObject/* </extends> */ /* <implements> *//* </implements> */ { /* <ptr> */public static class UIAccelerationPtr extends Ptr<UIAcceleration, UIAccelerationPtr> { } /* </ptr> */ /* <bind> */static { ObjCRuntime.bind(UIAcceleration.class); }/* </bind> */ /* <constants> *//* </constants> */ /* <constructors> */ public UIAcceleration () { } protected UIAcceleration (SkipInit skipInit) { super(skipInit); } /* </constructors> */ /* <properties> */ @Property(selector = "timestamp") public native double getTimestamp (); @Property(selector = "x") public native double getX (); @Property(selector = "y") public native double getY (); @Property(selector = "z") public native double getZ (); /* </properties> */ /* <members> *//* </members> */ /* <methods> */ /* </methods> */ }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./gdx/src/com/badlogic/gdx/assets/AssetDescriptor.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.assets; import com.badlogic.gdx.files.FileHandle; /** Describes an asset to be loaded by its filename, type and {@link AssetLoaderParameters}. Instances of this are used in * {@link AssetLoadingTask} to load the actual asset. * @author mzechner */ public class AssetDescriptor<T> { public final String fileName; public final Class<T> type; public final AssetLoaderParameters params; /** The resolved file. May be null if the fileName has not been resolved yet. */ public FileHandle file; public AssetDescriptor (String fileName, Class<T> assetType) { this(fileName, assetType, null); } /** Creates an AssetDescriptor with an already resolved name. */ public AssetDescriptor (FileHandle file, Class<T> assetType) { this(file, assetType, null); } public AssetDescriptor (String fileName, Class<T> assetType, AssetLoaderParameters<T> params) { this.fileName = fileName; this.type = assetType; this.params = params; } /** Creates an AssetDescriptor with an already resolved name. */ public AssetDescriptor (FileHandle file, Class<T> assetType, AssetLoaderParameters<T> params) { this.fileName = file.path(); this.file = file; this.type = assetType; this.params = params; } @Override public String toString () { StringBuilder sb = new StringBuilder(); sb.append(fileName); sb.append(", "); sb.append(type.getName()); return sb.toString(); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.assets; import com.badlogic.gdx.files.FileHandle; /** Describes an asset to be loaded by its filename, type and {@link AssetLoaderParameters}. Instances of this are used in * {@link AssetLoadingTask} to load the actual asset. * @author mzechner */ public class AssetDescriptor<T> { public final String fileName; public final Class<T> type; public final AssetLoaderParameters params; /** The resolved file. May be null if the fileName has not been resolved yet. */ public FileHandle file; public AssetDescriptor (String fileName, Class<T> assetType) { this(fileName, assetType, null); } /** Creates an AssetDescriptor with an already resolved name. */ public AssetDescriptor (FileHandle file, Class<T> assetType) { this(file, assetType, null); } public AssetDescriptor (String fileName, Class<T> assetType, AssetLoaderParameters<T> params) { this.fileName = fileName; this.type = assetType; this.params = params; } /** Creates an AssetDescriptor with an already resolved name. */ public AssetDescriptor (FileHandle file, Class<T> assetType, AssetLoaderParameters<T> params) { this.fileName = file.path(); this.file = file; this.type = assetType; this.params = params; } @Override public String toString () { StringBuilder sb = new StringBuilder(); sb.append(fileName); sb.append(", "); sb.append(type.getName()); return sb.toString(); } }
-1
libgdx/libgdx
7,276
Fixed scene2d.ui layout for fractional positions and sizes.
When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
NathanSweet
"2023-11-10T17:05:20Z"
"2023-11-13T03:27:53Z"
5368811323eb4ac9c9167a73fc6910e42fcb425d
8e3b2ef2af2e1c1765b3441cb15cfbeddf4046fa
Fixed scene2d.ui layout for fractional positions and sizes.. When "rounding" for UI layout, floor x/y and ceil width/height. For example if a label has a fractional width like 123.4, rounding a Container's width gives 123 and the label won't fit. Table already does this, so I'm pretty sure it's the right thing to do in all other layouts. If others can please check this doesn't negatively affect their apps, that would be great!
./tests/gdx-tests-android/src/com/badlogic/gdx/tests/android/ZipFileHandleResolver.java
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.android; import com.badlogic.gdx.assets.loaders.FileHandleResolver; import com.badlogic.gdx.backends.android.AndroidZipFileHandle; import com.badlogic.gdx.files.FileHandle; /** @author sarkanyi */ public class ZipFileHandleResolver implements FileHandleResolver { @Override public FileHandle resolve (String fileName) { return new AndroidZipFileHandle(fileName); } }
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package com.badlogic.gdx.tests.android; import com.badlogic.gdx.assets.loaders.FileHandleResolver; import com.badlogic.gdx.backends.android.AndroidZipFileHandle; import com.badlogic.gdx.files.FileHandle; /** @author sarkanyi */ public class ZipFileHandleResolver implements FileHandleResolver { @Override public FileHandle resolve (String fileName) { return new AndroidZipFileHandle(fileName); } }
-1