Skip to content

Commit

Permalink
Non-final mesh fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jun 5, 2024
1 parent 5f969ac commit 63e6cc4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions arc-core/src/arc/graphics/Mesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
* </p>
*
* <p>
* Meshes are automatically managed. If the OpenGL context is lost all vertex buffer objects get invalidated and must be reloaded
* when the context is recreated. This only happens on Android when a user switches to another application or receives an incoming
* call. A managed Mesh will be reloaded automagically so you don't have to do this manually.
* </p>
*
* <p>
* A Mesh consists of vertices and optionally indices which specify which vertices define a triangle. Each vertex is composed of
* attributes such as position, normal, color or texture coordinate. Note that not all of this attributes must be given, except
* for position which is non-optional. Each attribute has an alias which is used when rendering a Mesh in OpenGL ES 2.0. The alias
Expand All @@ -34,8 +28,8 @@ public class Mesh implements Disposable{
/** Do not modify. */
public final VertexAttribute[] attributes;

public final VertexData vertices;
public final IndexData indices;
public VertexData vertices;
public IndexData indices;

boolean autoBind = true;

Expand Down

0 comments on commit 63e6cc4

Please sign in to comment.