You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TinyRenderer.java
+20-8Lines changed: 20 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,10 @@ public class TinyRenderer extends JPanel {
15
15
publicstaticfinalintwidth = 800;
16
16
publicstaticfinalintheight = 800;
17
17
18
-
publicstaticdoublevertices[] = null; // Point cloud. The size equals to the number of vertices*3. E.g: in order to access to the y component of vertex index i, you should write vertices[i*3+1]
19
-
publicstaticinttriangles[] = null; // Collection of triangles. The size equals to the number of triangles*3. Each triplet references indices in the vertices[] array.
18
+
publicstaticdouble[] vertices = null; // Point cloud. The size equals to the number of vertices*3. E.g: in order to access to the y component of vertex index i, you should write vertices[i*3+1]
19
+
publicstaticint[] triangles = null; // Collection of triangles. The size equals to the number of triangles*3. Each triplet references indices in the vertices[] array.
20
20
publicstaticBufferedImageframebuffer = null; // this image contains the rendered scene
0 commit comments