Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3df4171
coding style improvements
stephengold Nov 10, 2021
a4aa67b
coding style improvements: no wildcard imports (3.3.1)
stephengold Nov 10, 2021
4e94723
RenderContext: import ordering and spacing (3.3.3)
stephengold Nov 10, 2021
d4ef8e8
wrap lines that exceed 110 characters
stephengold Nov 10, 2021
5501c22
single variable per declaration (4.8.2.1)
stephengold Nov 10, 2021
c5b51f8
Caps: mark fallthrough with comments (4.8.4.2)
stephengold Nov 10, 2021
ec70932
RenderContext: "static" before "final" (4.8.7)
stephengold Nov 10, 2021
c09a9df
constant names use CONSTANT_CASE (5.2.4) Note: **API change**
stephengold Nov 10, 2021
fe42773
ignore acronyms in camel case (5.3) Note: **API change**
stephengold Nov 10, 2021
e763ecb
improve the javadoc style:
stephengold Nov 11, 2021
c38faf2
Renderer: re-order block tags (7.1.3)
stephengold Nov 11, 2021
b014ae8
indent block-tag continuations by at least +4 (7.1.3)
stephengold Nov 11, 2021
c4c4242
one blank line before the first block tag (7.1.3)
stephengold Nov 11, 2021
6a13fc3
correct indentation of javadoc in 2 places (7.1.1)
stephengold Nov 11, 2021
8e89c98
TestIDList: ignore acronyms in camel case (5.3)
stephengold Nov 12, 2021
3aa5a20
revisit the javadoc style, reverting portions of e763ecb6
stephengold Nov 12, 2021
a0fc376
one annotation per line (4.8.5)
stephengold Nov 13, 2021
c8ee3ee
add required javadoc (7.3)
stephengold Nov 13, 2021
cc2ac25
Camera: blank line before the first block tag (7.1.2)
stephengold Nov 13, 2021
ffb748b
Camera: revert an unintented change
stephengold Nov 13, 2021
ac034ef
Merge branch 'master' into sgold-style
stephengold Nov 13, 2021
509232e
Camera: change "Determines" to "Returns" in 2 places
stephengold Nov 14, 2021
d2e3397
no trailing spaces
stephengold Nov 15, 2021
d5aafdc
revert API changes
stephengold Nov 19, 2021
911806e
convert comment to javadoc and add missing javadoc
stephengold Nov 20, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 79 additions & 66 deletions jme3-core/src/main/java/com/jme3/renderer/Camera.java

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions jme3-core/src/main/java/com/jme3/renderer/Caps.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import java.util.Collection;

/**
* <code>Caps</code> is an enum specifying a capability that the {@link Renderer}
* Specifies a capability that the {@link Renderer}
* supports.
*
* @author Kirill Vainer
Expand All @@ -50,32 +50,32 @@ public enum Caps {

/**
* Supports {@link FrameBuffer FrameBuffers}.
* <p>
* OpenGL: Renderer exposes the GL_EXT_framebuffer_object extension.<br>
*
* <p>OpenGL: Renderer exposes the GL_EXT_framebuffer_object extension.<br>
* OpenGL ES: Renderer supports OpenGL ES 2.0.
*/
FrameBuffer,

/**
* Supports framebuffer Multiple Render Targets (MRT)
* <p>
* OpenGL: Renderer exposes the GL_ARB_draw_buffers extension
*
* <p>OpenGL: Renderer exposes the GL_ARB_draw_buffers extension
*/
FrameBufferMRT,

/**
* Supports framebuffer multi-sampling
* <p>
* OpenGL: Renderer exposes the GL EXT framebuffer multisample extension<br>
*
* <p>OpenGL: Renderer exposes the GL EXT framebuffer multisample extension<br>
* OpenGL ES: Renderer exposes GL_APPLE_framebuffer_multisample or
* GL_ANGLE_framebuffer_multisample.
*/
FrameBufferMultisample,

/**
* Supports texture multi-sampling
* <p>
* OpenGL: Renderer exposes the GL_ARB_texture_multisample extension<br>
*
* <p>OpenGL: Renderer exposes the GL_ARB_texture_multisample extension<br>
* OpenGL ES: Renderer exposes the GL_IMG_multisampled_render_to_texture
* extension.
*/
Expand Down Expand Up @@ -359,8 +359,8 @@ public enum Caps {
/**
* Partial support for non-power-of-2 textures, typically found
* on OpenGL ES 2 devices.
* <p>
* Use of NPOT textures is allowed iff:
*
* <p>Use of NPOT textures is allowed iff:
* <ul>
* <li>The {@link com.jme3.texture.Texture.WrapMode} is set to
* {@link com.jme3.texture.Texture.WrapMode#EdgeClamp}.</li>
Expand All @@ -375,8 +375,8 @@ public enum Caps {
/**
* When sampling cubemap edges, interpolate between the adjacent faces
* instead of just sampling one face.
* <p>
* Improves the quality of environment mapping.
*
* <p>Improves the quality of environment mapping.
*/
SeamlessCubemap,

Expand Down Expand Up @@ -442,8 +442,8 @@ public enum Caps {
/**
* Returns true if given the renderer capabilities, the texture
* can be supported by the renderer.
* <p>
* This only checks the format of the texture, non-power-of-2
*
* <p>This only checks the format of the texture, non-power-of-2
* textures are scaled automatically inside the renderer
* if are not supported natively.
*
Expand Down
7 changes: 3 additions & 4 deletions jme3-core/src/main/java/com/jme3/renderer/IdList.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
import java.util.Arrays;

/**
* A specialized data-structure used to optimize state changes of "slot"
* based state.
* Represents a list of indices, such as the texture units and vertex attributes in a RenderContext.
*/
public class IdList {

Expand All @@ -45,7 +44,7 @@ public class IdList {
public int oldLen = 0;

/**
* Reset all states to zero
* Resets all states to zero.
*/
public void reset() {
newLen = 0;
Expand Down Expand Up @@ -95,7 +94,7 @@ public void copyNewToOld() {
}

/**
* Prints the contents of the lists
* Prints the contents of the lists.
*/
public void print() {
if (newLen > 0) {
Expand Down
6 changes: 3 additions & 3 deletions jme3-core/src/main/java/com/jme3/renderer/Limits.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
package com.jme3.renderer;

/**
* <code>Limits</code> allows querying the limits of certain features in
* Represents the limits of certain features in
* {@link Renderer}.
* <p>
* For example, maximum texture sizes or number of samples.
*
* <p>For example, maximum texture sizes or number of samples.
*
* @author Kirill Vainer
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private void init() {
}

/**
* Reset the RenderContext to default GL state
* Resets the RenderContext to default GL state.
*/
public void reset() {
init();
Expand Down
Loading