/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
SimpleDecalTest.java | 26 import com.badlogic.gdx.graphics.g3d.decals.Decal;
36 Array<Decal> decals = new Array<Decal>();
58 Decal decal = Decal.newDecal(1, 1, textures[1]);
local 59 decal.setPosition(0, 0, 0);
60 decals.add(decal);
62 decal = Decal.newDecal(1, 1, textures[0], true); 88 Decal decal = decals.get(i); local [all...] |
DecalTest.java | 28 import com.badlogic.gdx.graphics.g3d.decals.Decal;
39 LinkedList<Decal> toRender = new LinkedList<Decal>();
90 for (Decal decal : toRender) {
91 decal.rotateZ(elapsed * 45);
92 decal.setScale(scale);
93 batch.add(decal);
134 private Decal makeDecal () {
135 Decal sprite = null; [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/decals/ |
GroupStrategy.java | 48 /** Assigns a group to a decal
50 * @param decal Decal to assign group to
52 public int decideGroup (Decal decal);
58 public void beforeGroup (int group, Array<Decal> contents);
|
DecalBatch.java | 31 * Renderer for {@link Decal} objects.
34 * New objects are added using {@link DecalBatch#add(Decal)}, there is no limit on how many decals can be added.<br/>
47 * While it shouldn't be necessary to change strategies, if you have to do so, do it before calling {@link #add(Decal)}, and if
55 private final SortedIntList<Array<Decal>> groupList = new SortedIntList<Array<Decal>>();
57 private final Pool<Array<Decal>> groupPool = new Pool<Array<Decal>>(16) {
59 protected Array<Decal> newObject () {
60 return new Array<Decal>(false, 100);
63 private final Array<Array<Decal>> usedGroups = new Array<Array<Decal>>(16); [all...] |
CameraGroupStrategy.java | 32 * Opaque decals are rendered first (decal color is ignored in opacity check).<br/>
85 Pool<Array<Decal>> arrayPool = new Pool<Array<Decal>>(16) {
87 protected Array<Decal> newObject () {
91 Array<Array<Decal>> usedArrays = new Array<Array<Decal>>();
92 ObjectMap<DecalMaterial, Array<Decal>> materialGroups = new ObjectMap<DecalMaterial, Array<Decal>>();
96 private final Comparator<Decal> cameraSorter;
99 this(camera, new Comparator<Decal>() {
136 Decal decal = contents.get(i); local [all...] |
SimpleOrthoGroupStrategy.java | 75 public int decideGroup (Decal decal) {
76 return decal.getMaterial().isOpaque() ? GROUP_OPAQUE : GROUP_BLEND;
80 public void beforeGroup (int group, Array<Decal> contents) {
110 class Comparator implements java.util.Comparator<Decal> {
112 public int compare (Decal a, Decal b) {
|
Decal.java | 33 public class Decal {
35 /** Size of a decal vertex in floats */
37 /** Size of the decal in floats. It takes a float[SIZE] to hold the decal. */
54 * of the decal. */
61 public Decal () {
65 public Decal (DecalMaterial material) {
85 /** Sets the color used to tint this decal. Default is {@link Color#WHITE}. */
155 /** Sets the rotation of this decal to the given angles on all axes.
164 /** Sets the rotation of this decal based on the (normalized) direction and up vector. 669 Decal decal = new Decal(); local 689 Decal decal = new Decal(material); local [all...] |
/system/core/libpixelflinger/codeflinger/ |
GGLAssembler.h | 368 void decal( component_t& dest,
|
texturing.cpp | 303 // if we don't have alpha, decal does nothing 306 // decal always ignores At 1156 void GGLAssembler::decal( function in class:android::GGLAssembler [all...] |