/**
* The avatar is a user-controlled object in the 3D world.
+ *
+ * It is a point in space that can be moved around by the user.
+ * It has orientation in space, and it can also be rotated around.
*/
public class Avatar implements ViewRenderListener {
import java.awt.image.DataBufferByte;
import java.awt.image.WritableRaster;
+/**
+ * Rendering context that contains all the information that is needed to render the scene.
+ */
+
public class RenderingContext {
public static final int bufferedImageType = BufferedImage.TYPE_4BYTE_ABGR;
+
public final Graphics2D graphics;
+
+ /**
+ * Pixels of the rendering area.
+ * Each pixel is represented by 4 bytes: alpha, blue, green, red.
+ */
public final byte[] pixels;
+
+ /**
+ * Width of the rendering area in pixels.
+ */
public final int width;
+
+ /**
+ * Height of the rendering area in pixels.
+ */
public final int height;
+
/**
* Center of the screen in screen space (pixels).
* This is the point where (0,0) coordinate of the world space is rendered.
import java.awt.event.WindowListener;
/**
- * Java Swing GUI frame that contains canvas for 3D rendering.
+ * Java Swing GUI frame that contains {@link ViewPanel} with canvas for 3D rendering.
*/
public class ViewFrame extends JFrame implements WindowListener {
package eu.svjatoslav.sixth.e3d.gui.textEditorComponent;
/**
- * This package contains a text editor component.
- *
- * It is a simple text editor.
+ * This package contains a simple text editor component.
*/
\ No newline at end of file