/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
VertexAttribute.java | 28 public final class VertexAttribute {
45 /** Constructs a new VertexAttribute.
51 public VertexAttribute (int usage, int numComponents, String alias) {
55 /** Constructs a new VertexAttribute.
62 public VertexAttribute (int usage, int numComponents, String alias, int index) {
67 private VertexAttribute (int usage, int numComponents, int type, boolean normalized, String alias) {
71 private VertexAttribute (int usage, int numComponents, int type, boolean normalized, String alias, int index) {
81 public static VertexAttribute Position () {
82 return new VertexAttribute(Usage.Position, 3, ShaderProgram.POSITION_ATTRIBUTE);
85 public static VertexAttribute TexCoords (int unit) { [all...] |
VertexAttributes.java | 28 public final class VertexAttributes implements Iterable<VertexAttribute>, Comparable<VertexAttributes> {
45 private final VertexAttribute[] attributes;
53 private ReadonlyIterable<VertexAttribute> iterable;
56 public VertexAttributes (VertexAttribute... attributes) {
59 VertexAttribute[] list = new VertexAttribute[attributes.length];
67 /** Returns the offset for the first VertexAttribute with the specified usage.
68 * @param usage The usage of the VertexAttribute. */
70 VertexAttribute vertexAttribute = findByUsage(usage); [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/model/data/ |
ModelMesh.java | 19 import com.badlogic.gdx.graphics.VertexAttribute;
23 public VertexAttribute[] attributes;
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/ |
ImmediateModeRenderer20.java | 22 import com.badlogic.gdx.graphics.VertexAttribute;
65 VertexAttribute[] attribs = buildVertexAttributes(hasNormals, hasColors, numTexCoords);
82 private VertexAttribute[] buildVertexAttributes (boolean hasNormals, boolean hasColor, int numTexCoords) {
83 Array<VertexAttribute> attribs = new Array<VertexAttribute>();
84 attribs.add(new VertexAttribute(Usage.Position, 3, ShaderProgram.POSITION_ATTRIBUTE));
85 if (hasNormals) attribs.add(new VertexAttribute(Usage.Normal, 3, ShaderProgram.NORMAL_ATTRIBUTE));
86 if (hasColor) attribs.add(new VertexAttribute(Usage.ColorPacked, 4, ShaderProgram.COLOR_ATTRIBUTE));
88 attribs.add(new VertexAttribute(Usage.TextureCoordinates, 2, ShaderProgram.TEXCOORD_ATTRIBUTE + i));
90 VertexAttribute[] array = new VertexAttribute[attribs.size]; [all...] |
VertexArray.java | 23 import com.badlogic.gdx.graphics.VertexAttribute;
29 * via {@link VertexAttribute}.
46 * @param attributes the {@link VertexAttribute}s */
47 public VertexArray (int numVertices, VertexAttribute... attributes) {
108 final VertexAttribute attribute = attributes.get(i);
125 final VertexAttribute attribute = attributes.get(i);
|
VertexBufferObjectSubData.java | 24 import com.badlogic.gdx.graphics.VertexAttribute;
67 * @param attributes the {@link VertexAttribute}s. */
68 public VertexBufferObjectSubData (boolean isStatic, int numVertices, VertexAttribute... attributes) {
171 final VertexAttribute attribute = attributes.get(i);
181 final VertexAttribute attribute = attributes.get(i);
|
VertexBufferObject.java | 25 import com.badlogic.gdx.graphics.VertexAttribute;
67 * @param attributes the {@link VertexAttribute}s. */
68 public VertexBufferObject (boolean isStatic, int numVertices, VertexAttribute... attributes) {
197 final VertexAttribute attribute = attributes.get(i);
208 final VertexAttribute attribute = attributes.get(i);
|
VertexBufferObjectWithVAO.java | 10 import com.badlogic.gdx.graphics.VertexAttribute; 55 * @param attributes the {@link com.badlogic.gdx.graphics.VertexAttribute}s. 57 public VertexBufferObjectWithVAO (boolean isStatic, int numVertices, VertexAttribute... attributes) { 160 VertexAttribute attribute = attributes.get(i); 178 VertexAttribute attribute = attributes.get(i);
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
FloatTextureTest.java | 25 import com.badlogic.gdx.graphics.VertexAttribute; 142 quad = new Mesh(true, 4, 6, new VertexAttribute(Usage.Position, 3, "a_position"), new VertexAttribute(Usage.ColorUnpacked, 4, 143 "a_color"), new VertexAttribute(Usage.TextureCoordinates, 2, "a_texCoords")); 152 screenQuad = new Mesh(true, 4, 6, new VertexAttribute(Usage.Position, 3, "a_position"), new VertexAttribute(Usage.ColorUnpacked, 4, 153 "a_color"), new VertexAttribute(Usage.TextureCoordinates, 2, "a_texCoords"));
|
IndexBufferObjectShaderTest.java | 23 import com.badlogic.gdx.graphics.VertexAttribute;
75 vbo = new VertexBufferObject(true, 3, new VertexAttribute(VertexAttributes.Usage.Position, 2, "a_position"),
76 new VertexAttribute(VertexAttributes.Usage.TextureCoordinates, 2, "a_texCoords"), new VertexAttribute(
|
MeshShaderTest.java | 23 import com.badlogic.gdx.graphics.VertexAttribute;
53 mesh = new Mesh(true, 4, 6, VertexAttribute.Position(), VertexAttribute.ColorUnpacked(), VertexAttribute.TexCoords(0));
|
VertexBufferObjectShaderTest.java | 23 import com.badlogic.gdx.graphics.VertexAttribute;
91 vbo = new VertexBufferObject(true, 3, new VertexAttribute(VertexAttributes.Usage.Position, 2, "a_position"),
92 new VertexAttribute(VertexAttributes.Usage.TextureCoordinates, 2, "a_texCoords"), new VertexAttribute(
|
FrameBufferTest.java | 38 import com.badlogic.gdx.graphics.VertexAttribute;
120 mesh = new Mesh(true, 3, 0, new VertexAttribute(Usage.Position, 3, "a_Position"), new VertexAttribute(Usage.ColorPacked, 4,
121 "a_Color"), new VertexAttribute(Usage.TextureCoordinates, 2, "a_texCoords"));
128 stencilMesh = new Mesh(true, 3, 0, new VertexAttribute(Usage.Position, 3, "a_Position"), new VertexAttribute(
129 Usage.ColorPacked, 4, "a_Color"), new VertexAttribute(Usage.TextureCoordinates, 2, "a_texCoords"));
|
ShaderMultitextureTest.java | 25 import com.badlogic.gdx.graphics.VertexAttribute;
49 mesh = new Mesh(true, 4, 6, new VertexAttribute(Usage.Position, 2, "a_position"), new VertexAttribute(
|
VBOWithVAOPerformanceTest.java | 24 import com.badlogic.gdx.graphics.VertexAttribute; 88 VertexAttribute[] vertexAttributes = new VertexAttribute[] {VertexAttribute.Position(), VertexAttribute.ColorUnpacked(), VertexAttribute.TexCoords(0)}; 324 public OldVertexBufferObjectWithVAO (boolean isStatic, int numVertices, VertexAttribute... attributes) { 423 final VertexAttribute attribute = attributes.get(i); 434 final VertexAttribute attribute = attributes.get(i);
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/graphics/glutils/ |
VertexArray.java | 19 import com.badlogic.gdx.graphics.VertexAttribute;
46 public VertexArray (int numVertices, VertexAttribute... attributes) {
|
VertexBufferObject.java | 23 import com.badlogic.gdx.graphics.VertexAttribute;
64 * @param attributes the {@link VertexAttribute}s. */
65 public VertexBufferObject (boolean isStatic, int numVertices, VertexAttribute... attributes) {
155 final VertexAttribute attribute = attributes.get(i);
170 final VertexAttribute attribute = attributes.get(i);
|
VertexBufferObjectWithVAO.java | 10 import com.badlogic.gdx.graphics.VertexAttribute; 54 * @param attributes the {@link com.badlogic.gdx.graphics.VertexAttribute}s. 56 public VertexBufferObjectWithVAO (boolean isStatic, int numVertices, VertexAttribute... attributes) { 156 VertexAttribute attribute = attributes.get(i); 174 VertexAttribute attribute = attributes.get(i);
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/gles2/ |
MipMap2D.java | 26 import com.badlogic.gdx.graphics.VertexAttribute;
47 mesh = new Mesh(true, 4, 6, new VertexAttribute(Usage.Position, 4, "a_position"), new VertexAttribute(
|
HelloTriangle.java | 22 import com.badlogic.gdx.graphics.VertexAttribute;
40 mesh = new Mesh(true, 3, 0, new VertexAttribute(Usage.Position, 3, "vPosition"));
|
Shapes.java | 20 import com.badlogic.gdx.graphics.VertexAttribute;
25 Mesh mesh = new Mesh(true, 24, 36, new VertexAttribute(Usage.Position, 3, "a_position"), new VertexAttribute(Usage.Normal,
26 3, "a_normal"), new VertexAttribute(Usage.TextureCoordinates, 2, "a_texcoords"));
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/batches/ |
PointSpriteParticleBatch.java | 9 import com.badlogic.gdx.graphics.VertexAttribute; 36 new VertexAttribute(Usage.Position, 3, ShaderProgram.POSITION_ATTRIBUTE), 37 new VertexAttribute(Usage.ColorUnpacked, 4, ShaderProgram.COLOR_ATTRIBUTE), 38 new VertexAttribute(Usage.TextureCoordinates, 4, "a_region"), 39 new VertexAttribute(sizeAndRotationUsage, 3, "a_sizeAndRotation"));
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/loader/ |
G3dModelLoader.java | 24 import com.badlogic.gdx.graphics.VertexAttribute;
143 private VertexAttribute[] parseAttributes (JsonValue attributes) {
144 Array<VertexAttribute> vertexAttributes = new Array<VertexAttribute>();
151 vertexAttributes.add(VertexAttribute.Position());
153 vertexAttributes.add(VertexAttribute.Normal());
155 vertexAttributes.add(VertexAttribute.ColorUnpacked());
157 vertexAttributes.add(VertexAttribute.ColorPacked());
159 vertexAttributes.add(VertexAttribute.Tangent());
161 vertexAttributes.add(VertexAttribute.Binormal()); [all...] |
/external/deqp/framework/opengl/simplereference/ |
sglrShaderProgram.hpp | 57 struct VertexAttribute 59 VertexAttribute (const std::string& name_, rr::GenericVecType type_) : name(name_), type(type_) { } 149 ShaderProgramDeclaration& operator<< (const VertexAttribute&); 171 std::vector<VertexAttribute> m_vertexAttributes;
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/decals/ |
DecalBatch.java | 22 import com.badlogic.gdx.graphics.VertexAttribute;
95 mesh = new Mesh(vertexDataType, false, size * 4, size * 6, new VertexAttribute(
96 VertexAttributes.Usage.Position, 3, ShaderProgram.POSITION_ATTRIBUTE), new VertexAttribute(
97 VertexAttributes.Usage.ColorPacked, 4, ShaderProgram.COLOR_ATTRIBUTE), new VertexAttribute(
|