A B C D F G H I K M P R S T U V X Y Z 
All Classes All Packages

A

AbstractCanvas - Class in com.nerius.game
Useful for de-coupling a game's logic from things such as applets and windows.
AbstractCanvas(CanvasAWTStub, Dimension) - Constructor for class com.nerius.game.AbstractCanvas
The parameter size is the size of the viewport that this board will be allowed to render into; it gets saved as member variable m_size.
addConsumer(ImageConsumer) - Method in class com.nerius.img.AnimBuffProducer
 
addInputListener(InputListener) - Method in interface com.nerius.game.BoardAWTStub
Adds the specified mouse/keyboard input listener.
addInputListener(InputListener) - Method in class com.nerius.game.util.BoardAWTAdapter
Registers an InputListener.
alpha() - Method in class com.nerius.grafx.FloatColor
Fully opaque colors have an alpha of 1.0.
AnimBuffProducer - Class in com.nerius.img
This ImageProducer represents an animated image.
AnimBuffProducer(int[], int, int, ColorModel) - Constructor for class com.nerius.img.AnimBuffProducer
Orientation: imagePixel(x,y) = pix[y*width + x].
AudioClipSource - Interface in com.nerius.game
Exposes the notion of an ability to get audio clips by name.

B

blue() - Method in class com.nerius.grafx.FloatColor
 
BoardAWTAdapter - Class in com.nerius.game.util
The most basic implementation of com.nerius.game.BoardAWTStub.
BoardAWTAdapter(Component, boolean, AudioClipSource) - Constructor for class com.nerius.game.util.BoardAWTAdapter
The Component input to the constructors must pass user key/mouse events to this module via the object returned by getInputListenerHook().
BoardAWTAdapter(Component, boolean, AudioClipSource, int) - Constructor for class com.nerius.game.util.BoardAWTAdapter
 
BoardAWTStub - Interface in com.nerius.game
An extension of HeadlessBoardAWTStub which adds the notion of low-level user input via mouse and keyboard.

C

CanvasAWTAdapter - Class in com.nerius.game.util
The most basic implementation of com.nerius.game.CanvasAWTStub.
CanvasAWTAdapter(Component, boolean) - Constructor for class com.nerius.game.util.CanvasAWTAdapter
The java.awt.Component that is passed to the constructors is interacted with by the code in this class with only three calls to it: (1) Component.createImage(int,int), (2) Component.createImage(java.awt.image.ImageProducer), and (3) Component.repaint().
CanvasAWTAdapter(Component, boolean, int) - Constructor for class com.nerius.game.util.CanvasAWTAdapter
 
CanvasAWTStub - Interface in com.nerius.game
This class is used in conjunction with an AbstractCanvas.
clear() - Method in interface com.nerius.grafx.d2.FloatGraphics
Paints the current clip area with the current color.
clear() - Method in class com.nerius.grafx.d2.RasterFloatGraphics
 
clear(FloatColor) - Method in interface com.nerius.grafx.d3.DepthGraphics
Paints the current clip area.
clear(FloatColor) - Method in class com.nerius.grafx.d3.RasterDepthGraphics
 
clearScanLine(int, int) - Method in interface com.nerius.grafx.d2.RasterFloatPixBuff
The difference between this method and drawScanLine() is that this method is triggered by a call to RasterFloatGraphics.clear().
clearScanLine(int, int, int) - Method in interface com.nerius.grafx.d3.RasterDepthPixBuff
The invocation of this method is triggered by a call to RasterDepthGraphics.clear().
ClipRectangle - Class in com.nerius.grafx
Area against which objects' rendering will be clipped.
ClipRectangle(double, double, double, double) - Constructor for class com.nerius.grafx.ClipRectangle
 
com.nerius.game - package com.nerius.game
Defines a contract for simplifying logic of games and animations.
com.nerius.game.util - package com.nerius.game.util
Implementation details for simplification of game/animation logic.
com.nerius.grafx - package com.nerius.grafx
Base package for 2D and 3D rendering libraries, containing common code.
com.nerius.grafx.d2 - package com.nerius.grafx.d2
2D rendering library: optimized pixelation of lines and polygons.
com.nerius.grafx.d3 - package com.nerius.grafx.d3
3D rendering library: color interpolation, pixelation of lines and polygons, depth.
com.nerius.img - package com.nerius.img
Code related to the transformation of raw pixel data to images for rendering.

D

DEFAULT_MAX_FPS - Static variable in class com.nerius.game.util.CanvasAWTAdapter
Default maximum frames per second.
DEFAULT_ZBITS - Static variable in class com.nerius.grafx.d3.RasterDepthGraphics
This value is currently set to ZBITS_16.
DepthGraphics - Interface in com.nerius.grafx.d3
This is a simple 3D graphics library, without texture mapping, which used to run on Java version 1.0.
destroy() - Method in class com.nerius.game.AbstractCanvas
destroy() is called externally, usually not by subclasses.
destroy() - Method in interface com.nerius.game.Destroyable
 
destroy() - Method in class com.nerius.game.util.CanvasAWTAdapter
The component using this adapter should call destroy() when the adapter is no longer needed.
Destroyable - Interface in com.nerius.game
Exposes the destroy() method.
dispose() - Method in class com.nerius.game.util.FrameAWTStub
Disposes of this frame and the intricate logic used within.
drawLine(double, double, double, double) - Method in interface com.nerius.grafx.d2.FloatGraphics
Draws a line segment between two endpoints, namely (x0,y0) and (x1,y1).
drawLine(double, double, double, double) - Method in class com.nerius.grafx.d2.RasterFloatGraphics
 
drawLine(double, double, double, double, double, double, FloatColor) - Method in interface com.nerius.grafx.d3.DepthGraphics
Draws a line of constant color.
drawLine(double, double, double, double, double, double, FloatColor) - Method in class com.nerius.grafx.d3.RasterDepthGraphics
 
drawLine(double, double, double, FloatColor, double, double, double, FloatColor) - Method in interface com.nerius.grafx.d3.DepthGraphics
Draws a line of varying color.
drawLine(double, double, double, FloatColor, double, double, double, FloatColor) - Method in class com.nerius.grafx.d3.RasterDepthGraphics
 
drawPixel(int) - Method in interface com.nerius.grafx.d2.RasterFloatPixBuff
This method is triggered by calls to RasterFloatGraphics.drawPoint() and RasterFloatGraphics.drawLine().
drawPixel(int, int, int) - Method in interface com.nerius.grafx.d3.RasterDepthPixBuff
Is told to "paint" the specified pixel location with the specified color (which is in ARGB, or 0xaarrggbb format), where the pixel's sampling point has the specified z depth.
drawPoint(double, double) - Method in interface com.nerius.grafx.d2.FloatGraphics
Draws a point, which can be thought of as a specific case of a line, where both end points of line [segment] are the same.
drawPoint(double, double) - Method in class com.nerius.grafx.d2.RasterFloatGraphics
Affects exactly one pixel, assuming that it's not outside of the clip area.
drawPoint(double, double, double, FloatColor, double[]) - Method in interface com.nerius.grafx.d3.DepthGraphics
The normal, which is a vector in 3-space, defines the surface on which the point is located, for purposes of computing the correct z value at exactly the sampling point, so that drawing a point after a polygon (for example) would cause the point to appear.
drawPoint(double, double, double, FloatColor, double[]) - Method in class com.nerius.grafx.d3.RasterDepthGraphics
Callers of this function may choose to implement "back face culling" by dropping calls where normal has a negative z component, or where this z component is within an epsilon value of zero, which would otherwise cause inaccurate computations.
drawScanLine(int, int) - Method in interface com.nerius.grafx.d2.RasterFloatPixBuff
This method is triggered by a call to RasterFloatGraphics.fillPolygon().

F

fillPolygon(double[], double[], double[], int, int, FloatColor) - Method in interface com.nerius.grafx.d3.DepthGraphics
Fills a polygon of constant color.
fillPolygon(double[], double[], double[], int, int, FloatColor) - Method in class com.nerius.grafx.d3.RasterDepthGraphics
 
fillPolygon(double[], double[], double[], FloatColor[], int, int) - Method in interface com.nerius.grafx.d3.DepthGraphics
Fills a polygon of varying color.
fillPolygon(double[], double[], double[], FloatColor[], int, int) - Method in class com.nerius.grafx.d3.RasterDepthGraphics
 
fillPolygon(double[], double[], int, int) - Method in interface com.nerius.grafx.d2.FloatGraphics
Fills in the interior of the polygon defined by the vertices given.
fillPolygon(double[], double[], int, int) - Method in class com.nerius.grafx.d2.RasterFloatGraphics
Uses the even-odd fill rule for self-intersecting polygons.
FloatColor - Class in com.nerius.grafx
Each of alpha, red, green, and blue shall be in the range [0.0,1.0].
FloatColor() - Constructor for class com.nerius.grafx.FloatColor
Creates a completely opaque, completely black color.
FloatColor(double, double, double) - Constructor for class com.nerius.grafx.FloatColor
Creates a fully opaque color with specified RGB components, which are each in the range [0.0,1.0].
FloatColor(double, double, double, double) - Constructor for class com.nerius.grafx.FloatColor
 
FloatGraphics - Interface in com.nerius.grafx.d2
Represents a simple 2D floating point graphics API, for drawing lines and filling polygons of a constant color.
FrameAWTStub - Class in com.nerius.game.util
Code for getting a java.awt.Frame to work with the com.nerius.game framework.
FrameAWTStub() - Constructor for class com.nerius.game.util.FrameAWTStub
This constructor is for applications without audio clips.
FrameAWTStub(boolean, AudioClipSource, int) - Constructor for class com.nerius.game.util.FrameAWTStub
 
FrameAWTStub(AudioClipSource) - Constructor for class com.nerius.game.util.FrameAWTStub
This constructor is for applications that use audio clips.
FrameAWTStub(AudioClipSource, int) - Constructor for class com.nerius.game.util.FrameAWTStub
 

G

getAccurateZ() - Method in interface com.nerius.grafx.d3.RasterDepthPixBuff
Tells the 3D rendering context whether to employ a more accurate z computation strategy, the added expense being a slightly more significant CPU utilization.
getAudioClip(String) - Method in interface com.nerius.game.AudioClipSource
The idea behind this interface is to hide the implementation of getting an audio clip.
getAudioClip(String) - Method in class com.nerius.game.util.BoardAWTAdapter
Implements the required audio clip getting ability.
getAWTStub() - Method in class com.nerius.game.util.FrameAWTStub
Returns the item that is necessary to construct a com.nerius.game.AbstractCanvas.
getClip() - Method in interface com.nerius.grafx.d2.FloatGraphics
The return value of this method is not necessarily equal to the clip previously set by setClip(); the clip returned here is no larger than the entire area that is visible by this graphics context.
getClip() - Method in class com.nerius.grafx.d2.RasterFloatGraphics
 
getClip() - Method in interface com.nerius.grafx.d3.DepthGraphics
The return value is intended to convey information and should not be modified as part of an attempt to adjust the clipping area.
getClip() - Method in class com.nerius.grafx.d3.RasterDepthGraphics
Modifying the returned value will have no impact on the actual clip area.
getColor() - Method in interface com.nerius.grafx.d2.FloatGraphics
Returns the color that was previously set via setColor().
getColor() - Method in class com.nerius.grafx.d2.RasterFloatGraphics
 
getColorModel() - Method in class com.nerius.img.AnimBuffProducer
 
getHeight() - Method in interface com.nerius.grafx.d2.RasterFloatPixBuff
Reports back the pixel height.
getHeight() - Method in interface com.nerius.grafx.d3.RasterDepthPixBuff
Reports back the height in pixels.
getHeight() - Method in class com.nerius.img.AnimBuffProducer
 
getInputListenerHook() - Method in class com.nerius.game.util.BoardAWTAdapter
The java.awt.Componenet that is coupled with this BoardAWTAdapter must call the InputListener methods on the object returned by getInputListenerHook() directly, in order to pass user key/mouse events on to the registered InputListener objects.
getIntColor() - Method in class com.nerius.grafx.d2.RasterFloatGraphics
Returns the color previously set via setIntColor(int).
getModifiedArea() - Method in class com.nerius.grafx.d2.RasterFloatGraphics
Returns a Rectangle iRect which is as small as possible and which, for every pixel (n,m) modified since the last call to startModifiedAreaCalculation(iRect), returns true in the call to iRect.contains(n,m).
getPointAlias(double, double, double[]) - Static method in class com.nerius.grafx.d3.RasterDepthGraphics
Gives information regarding choice of aliased sample point when drawing with drawPoint().
getSize() - Method in class com.nerius.game.AbstractCanvas
Required for implementation of VisiblyUpdatable.
getSize() - Method in interface com.nerius.game.VisiblyUpdatable
 
getWidth() - Method in interface com.nerius.grafx.d2.RasterFloatPixBuff
Reports back the pixel width.
getWidth() - Method in interface com.nerius.grafx.d3.RasterDepthPixBuff
Reports back the width in pixels.
getWidth() - Method in class com.nerius.img.AnimBuffProducer
 
getZBack() - Method in interface com.nerius.grafx.d3.RasterDepthPixBuff
Returns the quantity zBack which is described in the plain vanilla constructor for RasterDepthGraphics.
getZBits() - Method in interface com.nerius.grafx.d3.RasterDepthPixBuff
This needs to return a value between RasterDepthGraphics.ZBITS_0 and RasterDepthGraphics.ZBITS_24, inclusive.
getZFront() - Method in interface com.nerius.grafx.d3.RasterDepthPixBuff
Returns the quantity zFront which is described in the plain vanilla constructor for RasterDepthGraphics.
green() - Method in class com.nerius.grafx.FloatColor
 

H

HeadlessBoardAWTStub - Interface in com.nerius.game
HeadlessBoardAWTStub is a CanvasAWTStub which has a notion of providing audio clips.
hide() - Method in class com.nerius.game.util.FrameAWTStub
Hides this frame.

I

InputListener - Interface in com.nerius.game
Encapsulates all low-level user input, via mouse and keyboard.
isConsumer(ImageConsumer) - Method in class com.nerius.img.AnimBuffProducer
 

K

keyDown(Event, int) - Method in interface com.nerius.game.InputListener
 
keyUp(Event, int) - Method in interface com.nerius.game.InputListener
 

M

m_pix - Variable in class com.nerius.img.AnimBuffProducer
The pixel buffer which is passed into constructor is made accessible to subclasses which extend AnimBuffProducer.
m_size - Variable in class com.nerius.game.AbstractCanvas
 
m_stub - Variable in class com.nerius.game.AbstractCanvas
 
mouseDown(Event, int, int) - Method in interface com.nerius.game.InputListener
 
mouseDrag(Event, int, int) - Method in interface com.nerius.game.InputListener
 
mouseEnter(Event, int, int) - Method in interface com.nerius.game.InputListener
 
mouseExit(Event, int, int) - Method in interface com.nerius.game.InputListener
 
mouseMove(Event, int, int) - Method in interface com.nerius.game.InputListener
 
mouseUp(Event, int, int) - Method in interface com.nerius.game.InputListener
 

P

produceImage(int, int) - Method in interface com.nerius.game.CanvasAWTStub
Images are useful for doing double buffering.
produceImage(int, int) - Method in class com.nerius.game.util.CanvasAWTAdapter
 
produceImage(ImageProducer) - Method in interface com.nerius.game.CanvasAWTStub
getGraphics() on the returned image will fail; in other words the returned image is good for rendering and not so good for drawing onto.
produceImage(ImageProducer) - Method in class com.nerius.game.util.CanvasAWTAdapter
 

R

RasterDepthGraphics - Class in com.nerius.grafx.d3
Implementation of a 3D graphics rendering library, with hooks to do custom pixel and z buffer manipulations.
RasterDepthGraphics(int[], int, int, double, double) - Constructor for class com.nerius.grafx.d3.RasterDepthGraphics
Array pix will be used to store pixel information; the array's length must therefore be at least width*height.
RasterDepthGraphics(int[], int, int, int, double, double) - Constructor for class com.nerius.grafx.d3.RasterDepthGraphics
 
RasterDepthGraphics(RasterDepthPixBuff) - Constructor for class com.nerius.grafx.d3.RasterDepthGraphics
Allows for custom pixel and z buffer manipulation, including the proper handling of translucent or transparent pixels.
RasterDepthPixBuff - Interface in com.nerius.grafx.d3
This is a hook to do custom pixel computation with RasterDepthGraphics.
RasterFloatGraphics - Class in com.nerius.grafx.d2
An implementation of FloatGraphics that converts operations into pixel data.
RasterFloatGraphics(int[], int, int) - Constructor for class com.nerius.grafx.d2.RasterFloatGraphics
Array pix will be used to store pixel information; the array's length must therefore be at least width*height.
RasterFloatGraphics(RasterFloatPixBuff) - Constructor for class com.nerius.grafx.d2.RasterFloatGraphics
Exposes a level of abstraction for deciding on how to handle turning on of pixels; in particular this way of constructing the graphics context potentially gives it the capability for handling translucent colors.
RasterFloatPixBuff - Interface in com.nerius.grafx.d2
This is a hook to do custom pixel computation with RasterFloatGraphics.
reassign(double, double, double) - Method in class com.nerius.grafx.FloatColor
Makes this color fully opaque and reassigns RGB values.
reassign(double, double, double, double) - Method in class com.nerius.grafx.FloatColor
Reassigns this color's ARGB values.
red() - Method in class com.nerius.grafx.FloatColor
 
removeConsumer(ImageConsumer) - Method in class com.nerius.img.AnimBuffProducer
 
removeInputListener(InputListener) - Method in interface com.nerius.game.BoardAWTStub
Removes the specified mouse/keyboard input listener.
removeInputListener(InputListener) - Method in class com.nerius.game.util.BoardAWTAdapter
Unregisters an InputListener.
requestTopDownLeftRightResend(ImageConsumer) - Method in class com.nerius.img.AnimBuffProducer
 
requestUpdate() - Method in interface com.nerius.game.CanvasAWTStub
This method triggers a call to update(Graphics) on a corresponding AbstractCanvas.
requestUpdate() - Method in class com.nerius.game.util.CanvasAWTAdapter
 
run() - Method in class com.nerius.game.AbstractCanvas
run() is usually called externally, not by subclasses.
RunnableDestroyable - Interface in com.nerius.game
Combines Runnable and Destroyable.

S

setClip(ClipRectangle) - Method in interface com.nerius.grafx.d2.FloatGraphics
The clip determines how much of an object [to be rendered] is visible.
setClip(ClipRectangle) - Method in class com.nerius.grafx.d2.RasterFloatGraphics
 
setClip(ClipRectangle) - Method in interface com.nerius.grafx.d3.DepthGraphics
The clip determines how much of an object [to be rendered] is visible.
setClip(ClipRectangle) - Method in class com.nerius.grafx.d3.RasterDepthGraphics
 
setColor(int) - Method in interface com.nerius.grafx.d2.RasterFloatPixBuff
ARGB format: 0xaarrggbb.
setColor(FloatColor) - Method in interface com.nerius.grafx.d2.FloatGraphics
For drawing points, drawing lines, and filling polygons, how non-opaque colors are handled is up to the implementation of this interface.
setColor(FloatColor) - Method in class com.nerius.grafx.d2.RasterFloatGraphics
 
setIntColor(int) - Method in class com.nerius.grafx.d2.RasterFloatGraphics
Sets the ARGB color directly, for more control in native representation.
setLocation(int, int) - Method in class com.nerius.game.util.FrameAWTStub
Sets the location of the upper left corner of this frame; please note the presence of title bar, insets, etc.
setRectClip(Rectangle) - Method in class com.nerius.grafx.d2.RasterFloatGraphics
Sets the clip area to be such that only pixels (n,m) for which rect.contains(n,m) == true are allowed to be modified.
setUpdatable(VisiblyUpdatable) - Method in class com.nerius.game.util.CanvasAWTAdapter
Should be regarded as part of the construction of an instance.
setUpdatable(VisiblyUpdatable, Destroyable) - Method in class com.nerius.game.util.FrameAWTStub
This method should be called only once; it should be regarded as part of the construction of this frame, to be called before this frame is made visible.
show() - Method in class com.nerius.game.util.FrameAWTStub
Makes this frame visible.
size() - Method in class com.nerius.game.util.FrameAWTStub
Includes size of insets: left, right, top, and bottom.
startModifiedAreaCalculation(Rectangle) - Method in class com.nerius.grafx.d2.RasterFloatGraphics
Starts a modified area calculation if rect is not null, or stops such a calculation if rect is null.
startProduction(ImageConsumer) - Method in class com.nerius.img.AnimBuffProducer
 

T

triggerFrame(Rectangle) - Method in class com.nerius.img.AnimBuffProducer
The current state of the image will be pushed through to all registered ImageConsumer objects as the next frame in a multi-frame image when this method is called.

U

update(Graphics) - Method in class com.nerius.game.AbstractCanvas
This will automatically be called [usually by an asynchronous thread] whenever m_stub's requestUpdate() method is called.
update(Graphics) - Method in class com.nerius.game.util.CanvasAWTAdapter
This should be called directly from update(Graphics) of the java.awt.Component using this adapter.
update(Graphics) - Method in interface com.nerius.game.VisiblyUpdatable
Returns the area that was drawn into.

V

VisiblyUpdatable - Interface in com.nerius.game
Exposes the update(Graphics) call.

X

xMax - Variable in class com.nerius.grafx.ClipRectangle
 
xMin - Variable in class com.nerius.grafx.ClipRectangle
 

Y

yMax - Variable in class com.nerius.grafx.ClipRectangle
 
yMin - Variable in class com.nerius.grafx.ClipRectangle
 

Z

ZBITS_0 - Static variable in class com.nerius.grafx.d3.RasterDepthGraphics
Values of zBits which are less than eight may be useful for debugging, for demonstrational, and for educational purposes.
ZBITS_16 - Static variable in class com.nerius.grafx.d3.RasterDepthGraphics
Allowable number of bits to use for z buffering, medium resolution.
ZBITS_24 - Static variable in class com.nerius.grafx.d3.RasterDepthGraphics
Allowable number of bits to use for z buffering, high resolution.
ZBITS_8 - Static variable in class com.nerius.grafx.d3.RasterDepthGraphics
Allowable number of bits to use for z buffering, low resolution.
A B C D F G H I K M P R S T U V X Y Z 
All Classes All Packages