Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
/**
* A triangulator implementation that splits the triangules of another, subdividing
* to give a higher tesselation - and hence smoother transitions.
*
* @author kevin
*/
public class OverTriangulator implements Triangulator {
/** The triangles data */
private float[... | 977 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import java.util.ArrayList;
/**
* A shape that morphs between a set of other shapes
*
* @author kevin
*/
public class MorphShape extends Shape {
/** The shapes to morph between */
private ArrayList shapes = new ArrayList();
/** The offset between the shapes */
pr... | 1,180 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import java.io.Serializable;
/**
* The description of any 2D shape that can be transformed. The points provided approximate the intent
* of the shape.
*
* @author Mark
*/
public abstract class Shape implements Serializable {
/** The points representing this polygo... | 5,312 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
/**
* Implemenation of a bunch of maths functions to do with lines. Note
* that lines can't be used as dynamic shapes right now - also collision
* with the end of a line is undefined.
*
* @author Kevin Glass
*/
public class Line extends Shape {
/** The start point of ... | 2,728 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
/**
* An axis oriented used for shape bounds
*
* @author Kevin Glass
*/
public class Rectangle extends Shape {
/** The width of the box */
protected float width;
/** The height of the box */
protected float height;
/**
* Create a new bounding box
*
* @... | 1,721 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
/**
* A second triangulator that seems slightly more robust
*
* @author Online examples
*/
public class NeatTriangulator implements Triangulator
{
/** The error factor */
static final float EPSILON = 1E-006F;
/** The x coordinates */
private float p... | 4,280 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import java.util.ArrayList;
/**
* A set of utilities to play with geometry
*
* @author kevin
*/
public class GeomUtil {
/** The tolerance for determining changes and steps */
public float EPSILON = 0.0001f;
/** The tolerance for determining direction change */
pub... | 3,338 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
/**
* A beizer curve implementation. The curve is defined by a start point, an end point
* and two control points that it will tend towards. This is implementation is fixed
* segmenting meaning it doesn't scale too well.
*
* @author kevin
*/
public class Curve extends Sha... | 1,011 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import org.newdawn.slick.util.FastTrig;
/**
* A 2 dimensional transformation that can be applied to <code>Shape</code> implemenations.
*
* @author Mark
*/
public class Transform {
/**
* Value for each position in the matrix
*
... | 2,406 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
/**
* A class capable of generating texture coordiantes based on
* rendering positions of verticies. This allows custom texturing
* of geometric shapes
*
* @author kevin
*/
public interface TexCoordGenerator {
/**
* Get the texture coordinate for a given render posi... | 127 |
github-java-corpus | 2,012 | /*
* Triangulator0.java
*
* (BSD license)
*
* Copyright (c) 2005, Matthias Mann (www.matthiasmann.de)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* * Redistributions of ... | 4,227 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import java.util.ArrayList;
import java.util.Arrays;
/**
* A polygon implementation meeting the <code>Shape</code> contract.
*
* @author Mark
*/
public class Polygon extends Shape {
/** Allow duplicated points */
private boolean allowDups = false;
/** True if the ... | 1,152 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import java.util.ArrayList;
import org.newdawn.slick.util.FastTrig;
/**
* An ellipse meeting the <code>Shape</code> contract. The ellipse is actually an approximation using
* a series of points generated around the contour of the ellipse.
*
* @author Mark
*/
public ... | 1,240 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import org.newdawn.slick.Image;
import org.newdawn.slick.ShapeFill;
import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureImpl;
import org.newdawn.slick.opengl.renderer.LineStripRenderer;
import org.newdawn.slick.opengl.renderer.Renderer;
import org.new... | 2,962 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import java.util.ArrayList;
/**
* A shape built from lines and curves. Hole support is present but
* restricted.
*
* @author kevin
*/
public class Path extends Shape {
/** The local list of points */
private ArrayList localPoints = new ArrayList();
/** The current... | 1,935 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import java.util.ArrayList;
/**
* Triangulates a polygon into triangles - duh. Doesn't handle
* holes in polys
*
* @author Based on Public Source from FlipCode
*/
public class BasicTriangulator implements Triangulator {
/** The accepted error value */
private static... | 2,928 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
/**
* Debug listener for notifications assocaited with geometry utilities
*
* @author kevin
*/
public interface GeomUtilListener {
/**
* Notification that a point was excluded from geometry
*
* @param x The x coordinate of the point
* @param y The y coordinat... | 204 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
/**
* A collection of triangles
*
* @author kevin
*/
public interface Triangulator {
/**
* Get a count of the number of triangles produced
*
* @return The number of triangles produced
*/
public int getTriangleCount();
/**
* Get a point on a specifie... | 255 |
github-java-corpus | 2,012 | package org.newdawn.slick.geom;
import org.newdawn.slick.util.FastTrig;
/**
* A two dimensional vector
*
* @author Kevin Glass
*/
public strictfp class Vector2f {
/** The x component of this vector */
public float x;
/** The y component of this vector */
public float y;
/**
* Create an e... | 2,295 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.nio.ByteBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.ArrayList;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
import org.newdawn.slick.ge... | 13,193 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.newdawn.slick.Input;
import org.newdawn.slick.util.InputAdapter;
/**
* The central provider that maps real device input into abstract commands
... | 2,860 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* A control relating to a command indicate that it should be fired when a specific key is pressed
* or released.
*
* @author joverton
*/
public class KeyControl implements Control {
/** The key code that needs to be pressed */
private int keycode;
/**
* Create... | 205 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* A control indicating that a mouse button must be pressed or released to cause an command
*
* @author joverton
*/
public class MouseButtonControl implements Control {
/** The button to be pressed */
private int button;
/**
* Create a new control that indicates... | 193 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* Marker class for abstract input controls
*
* @author joverton
*/
public interface Control {
}
| 32 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* A control indicating that a gamepad/joystick button must be pressed
* or released to invoke an command.
*
* @author kevin
*/
public class ControllerButtonControl extends ControllerControl {
/**
* Create a new control based on a controller input
*
* @p... | 124 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* Description of any class wishing to recieve notifications of command invocations. Implementations
* should be added to an appropriate input provider to recieve input notification
*
* @author joverton
*/
public interface InputProviderListener {
/**
* A control rep... | 143 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* The description of a action feedback from the abstract input system. This marker allows the
* creation of action objects that can contain useful state. If you don't need state and just
* a name use <code>BasicCommand</code.
*
* @author kevin
*/
public interface C... | 73 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* A control describing input provided from a controller. This allows controls to be
* mapped to game pad inputs.
*
* @author joverton
*/
abstract class ControllerControl implements Control {
/** Indicates a button was pressed */
protected static final int BUTTON_EVENT =... | 393 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* A control indicating that a particular direction must be pressed or released
* on a controller to cause the command to fire
*
* @author kevin
*/
public class ControllerDirectionControl extends ControllerControl {
/** The direction indicating we're waiting for the... | 333 |
github-java-corpus | 2,012 | package org.newdawn.slick.command;
/**
* A simple named command
*
* @author kevin
*/
public class BasicCommand implements Command {
/** The name of the command */
private String name;
/**
* Create a new basic command
*
* @param name The name to give this command
*/
public BasicComm... | 244 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.util.ArrayList;
import org.lwjgl.Sys;
import org.newdawn.slick.util.Log;
/**
* A utility to hold and render animations
*
* @author kevin
* @author DeX (speed updates)
*/
public class Animation implements Renderable {
/** The list of frames to render in this ... | 4,885 |
github-java-corpus | 2,012 | package org.newdawn.slick;
/**
* The proprites of any font implementation
*
* @author Kevin Glass
*/
public interface Font {
/**
* Get the width of the given string
*
* @param str The string to obtain the rendered with of
* @return The width of the given string
*/
public abstract int ... | 477 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Composite;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.HashMap;
import java.util.Ma... | 3,054 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.io.UnsupportedEncodingException;
import org.newdawn.slick.util.Log;
/**
* A font implementation that will use the graphics inside a SpriteSheet for its data.
* This is useful when your font has a fixed width and height for each character as
* opposed to the more com... | 862 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import org.lwjgl.BufferUtils;
import org.newdawn.slick.opengl.ImageData;
/**
* A utility for creating images from pixel operations
*
* Expected usage is:
* <code>
* ImageBuffer buffer = new ImageBuffer(320,200);
* b... | 1,063 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.io.Serializable;
import java.nio.FloatBuffer;
import org.newdawn.slick.opengl.renderer.Renderer;
import org.newdawn.slick.opengl.renderer.SGL;
/**
* A simple wrapper round the values required for a colour
*
* @author Kevin Glass
*/
public class Color implement... | 2,841 |
github-java-corpus | 2,012 |
package org.newdawn.slick;
import java.awt.Font;
import java.awt.FontFormatException;
import java.awt.FontMetrics;
import java.awt.Rectangle;
import java.awt.font.GlyphVector;
import java.awt.font.TextAttribute;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.ArrayList;
import... | 8,408 |
github-java-corpus | 2,012 | package org.newdawn.slick;
/**
* A generic exception thrown by everything in the library
*
* @author kevin
*/
public class SlickException extends Exception {
/**
* Create a new exception with a detail message
*
* @param message The message describing the cause of this exception
*/
public Sl... | 148 |
github-java-corpus | 2,012 | package org.newdawn.slick.imageout;
import java.io.IOException;
import java.io.OutputStream;
import org.newdawn.slick.Image;
/**
* The description of any class that can produce data to an output stream reprsenting
* some image in memory.
*
* @author Jon
*/
public interface ImageWriter {
/**
*... | 184 |
github-java-corpus | 2,012 | package org.newdawn.slick.imageout;
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.newdawn.slick.Color;
import org.newdawn.slick.Image;
/**
* A utility to save TGA's given a Slick image.
*
* @author Jon
*/
... | 685 |
github-java-corpus | 2,012 | package org.newdawn.slick.imageout;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
/**
* A static hook to access all the Image output utilities. The list of format strings
* provided is n... | 1,176 |
github-java-corpus | 2,012 | package org.newdawn.slick.imageout;
import java.util.HashMap;
import javax.imageio.ImageIO;
import org.newdawn.slick.SlickException;
/**
* A factory to produce image writers based on format names
*
* @author kevin
*/
public class ImageWriterFactory {
/** The map from format names to image writer ... | 503 |
github-java-corpus | 2,012 | package org.newdawn.slick.imageout;
import java.awt.Point;
import java.awt.color.ColorSpace;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.awt.image.ComponentColorModel;
import java.awt.image.DataBuffer;
import java.awt.image.DataBufferByte;
import java.awt.image.PixelInte... | 774 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.net.URL;
import java.util.ArrayList;
import org.newdawn.slick.openal.Audio;
import org.newdawn.slick.openal.AudioImpl;
import org.newdawn.slick.openal.SoundStore;
import org.newdawn.slick.util.Log;
/**
* A piece of music loaded and playable within the game. Only one... | 2,689 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Controller;
import org.lwjgl.input.Controllers;
import org.l... | 11,000 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Cursor;
import org.newdawn.slick.util.Log;
import org.newdawn.slick.util.ResourceLoader;
/**
* A utilit... | 1,610 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import org.lwjgl.opengl.GL11;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.opengl.renderer.Renderer;
/**
* A utility to allow performing GL operations without contaminating the
* Slick OpenGL state. Note this will not protect you from OpenGL programming... | 763 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.color.ColorSpace;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.awt.image.ComponentColorModel;
import java.awt.image.DataBuffer;
import java.awt.image.DataBufferByte;
impo... | 1,811 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.pbuffer;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.Pbuffer;
import org.lwjgl.opengl.PixelFormat;
import org.lwjgl.opengl.RenderTexture;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Ima... | 1,235 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.pbuffer;
import java.util.HashMap;
import org.lwjgl.opengl.GLContext;
import org.lwjgl.opengl.Pbuffer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.util.Log;
/**
* A factory to produc... | 978 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.pbuffer;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.Pbuffer;
import org.lwjgl.opengl.PixelFormat;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickExcep... | 1,203 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.pbuffer;
import java.nio.IntBuffer;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.EXTFramebufferObject;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GLContext;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickE... | 1,737 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.IOException;
import java.io.InputStream;
import org.newdawn.slick.loading.DeferredResource;
import org.newdawn.slick.loading.LoadingList;
/**
* A texture proxy that can be used to load a texture at a later date while still
* allowing elements to reference ... | 1,250 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import org.lwjgl.BufferUtils;
import org.newdawn.slick.opengl.renderer.SGL;
import org.newdawn.slick.opengl.renderer.Renderer;
/**
* A texture to be bound within JOGL. This object is respon... | 1,803 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import org.newdawn.slick.util.Log;
/**
* A composite data source that checks multiple loaders in order of
* preference
... | 895 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import org.lwjgl.BufferUtils;
/**
* A utility to load TGAs. Note: NOT THREAD SAFE
*
* ... | 2,388 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.IOException;
import java.io.InputStream;
import org.lwjgl.opengl.GL11;
/**
* A utility class to wrap the Slick internal texture loader and present a
* rational interface.
*
* @author kevin
*/
public class TextureLoader {
/**
* Load a texture wi... | 612 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.IOException;
import java.util.ArrayList;
/**
* A collection of IOException that failed image data loading
*
* @author kevin
*/
public class CompositeIOException extends IOException {
/** The list of exceptions causing this one */
private ArrayList ex... | 207 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
/**
* An image data source that can load images from a stream
*
* @author kevin
*/
public interface LoadableImageData extends ImageData {
/**
* Configure the edging that can be use... | 412 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.security.AccessController;
import java.security.PrivilegedAction;
import org.newdawn.slick.util.Log;
/**
* A static utility to create the appropriate image data for a particular reference.
*
* @author kevin
*/
public class ImageDataFactory {
/** True if... | 487 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import org.lwjgl.opengl.GL11;
/**
* A collection of utilities to allow aid interaction with the GL provider
*
* @author kevin
*/
public final class GLUtils {
/**
* Check that we're in the right place to be doing GL operations
*/
public static void checkGLCon... | 134 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.SoftReference;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import java... | 3,234 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.renderer;
import java.nio.ByteBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import org.lwjgl.opengl.GL11;
/**
* The description of the OpenGL functions used Slick. Any other rendering method will
* need to emulate these.
... | 3,173 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.renderer;
/**
* The default version of the renderer relies of GL calls to do everything.
* Unfortunately this is driver dependent and often implemented inconsistantly
*
* @author kevin
*/
public class DefaultLineStripRenderer implements LineStripRenderer {
/** The acce... | 448 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.renderer;
import java.nio.ByteBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import org.lwjgl.opengl.GL11;
/**
* The default OpenGL renderer, uses immediate mode for everything
*
* @author kevin
*/
public class Immedia... | 2,653 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.renderer;
/**
* The static holder for the current GL implementation. Note that this
* renderer can only be set before the game has been started.
*
* @author kevin
*/
public class Renderer {
/** The indicator for immediate mode renderering (the default) */
public ... | 614 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.renderer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
/**
* A renderer that caches all operations into an array, creates an opengl vertex array when
* required and spits the data down to the card i... | 3,061 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.renderer;
/**
* The description of a class able to render line strips through
* OpenGL
*
* @author kevin
*/
public interface LineStripRenderer {
/**
* Check if we should apply default line fixes
*
* @return True if we should apply GL fixes
*/
public abst... | 371 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl.renderer;
import org.lwjgl.opengl.GL11;
/**
* A line strip renderer that uses quads to generate lines
*
* @author kevin
*/
public class QuadBasedLineStripRenderer implements LineStripRenderer {
/** The renderer used to interact with GL */
private static SGL GL = Rend... | 2,235 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.nio.ByteBuffer;
/**
* A description of any class providing ImageData in a form suitable for OpenGL texture
* creation.
*
* @author kevin
*/
public interface ImageData {
/**
* Get the last bit depth read from a TGA
*
* @return The last bit dep... | 274 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.nio.ByteBuffer;
import org.lwjgl.BufferUtils;
/**
* An image data implementation which represents an empty texture
*
* @author kevin
*/
public class EmptyImageData implements ImageData {
/** The width of the data */
private int width;
/** The height... | 362 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.zip.CRC32;
import java.util.zip.DataFormatException;
import java.util.zip.Inflater;
import org.lwjgl.BufferUtils;
/**
* The PNG imge data s... | 5,757 |
github-java-corpus | 2,012 | package org.newdawn.slick.opengl;
/**
* The description of a texture loaded by the TextureLoader utility
*
* @author kevin
*/
public interface Texture {
/**
* Check if the texture has alpha
*
* @return True if the texture has alpha
*/
public boolean hasAlpha();
/**
* Get the refer... | 408 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.util.HashMap;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.newdawn.slick.util.ResourceLoader;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
/**
* A sprite sheet based... | 469 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.io.InputStream;
import org.newdawn.slick.opengl.Texture;
/**
* A sheet of sprites that can be drawn individually
*
* @author Kevin Glass
*/
public class SpriteSheet extends Image {
/** The width of a single element in pixels */
private int tw;
/** The heig... | 2,120 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import org.lwjgl.BufferUtils;
import org.newdawn.slick.opengl.ImageData;
import org.newdawn.slick.opengl.ImageDataFactory;
import org.newdawn.slick.opengl.LoadableImageData;
import org.newdawn.slick... | 5,753 |
github-java-corpus | 2,012 | package org.newdawn.slick.loading;
import java.io.IOException;
/**
* A description of any class providing a resource handle that be loaded
* at a later date (i.e. deferrred)
*
* @author kevin
*/
public interface DeferredResource {
/**
* Load the actual resource
*
* @throws IOException I... | 127 |
github-java-corpus | 2,012 | package org.newdawn.slick.loading;
import java.util.ArrayList;
import org.newdawn.slick.openal.SoundStore;
import org.newdawn.slick.opengl.InternalTextureLoader;
import org.newdawn.slick.util.Log;
/**
* A central list where all deferred loading resoures end up when deferred loading is in use. Each
* text... | 663 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import org.newdawn.slick.opengl.SlickCallable;
import org.newdawn.slick.opengl.renderer.Renderer;
import org.newdawn.slick.opengl.renderer.SGL;
/**
* A set of rendering that is cached onto the graphics card and hopefully
* is quicker to render. Note that there are some things that... | 490 |
github-java-corpus | 2,012 | package org.newdawn.slick.muffin;
import java.io.IOException;
import java.util.HashMap;
/**
* A description of any class with the ability to store state locally
*
* @author kappaOne
*/
public interface Muffin {
/**
* Save a file of data
*
* @param data The data to store
* @param fileName... | 183 |
github-java-corpus | 2,012 | package org.newdawn.slick.muffin;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashMap;
import org.newdawn.slick.util.Log;
... | 443 |
github-java-corpus | 2,012 | package org.newdawn.slick.muffin;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.net.URL;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import javax.jnlp.BasicService;
import javax.jnlp.File... | 952 |
github-java-corpus | 2,012 | package org.newdawn.slick;
import java.awt.Canvas;
import javax.swing.SwingUtilities;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.newdawn.slick.util.Log;
/**
* A game container that displays the game on an AWT Canvas.
*
* @author kevin
*/
public class CanvasGameC... | 1,021 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font;
import java.awt.AlphaComposite;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.font.FontRenderContext;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.n... | 2,147 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font.effects;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.... | 1,378 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font.effects;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Stroke;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.newdawn.slick.UnicodeFont;
import ... | 1,209 |
github-java-corpus | 2,012 | /*
* Copyright 2006 Jerry Huxtable
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 1,453 |
github-java-corpus | 2,012 | /*
* Copyright 2006 Jerry Huxtable
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 1,445 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font.effects;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.Glyph;
/**
* Applys a {@link BufferedImageOp} filter to glyphs. Many filters can be found
... | 399 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font.effects;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.Glyph;
/**
* A graphical effect that is applied to glyphs in a {@link UnicodeFont}.
*
* @author Nathan Sweet <misc@n4te.com>
... | 169 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font.effects;
import java.util.List;
/**
* An effect that has a number of configuration values. This allows the effect to be configured in the Hiero GUI and to be saved
* and loaded to and from a file.
*
* @author Nathan Sweet <misc@n4te.com>
*/
public interface Configurabl... | 290 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font.effects;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Graphics2D;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
im... | 2,855 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font.effects;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
import java.awt.image.ConvolveOp;
import java.awt.image.Kernel;
import java.util.ArrayLi... | 2,736 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font.effects;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.newdawn.slick.UnicodeFont;
import org.newdawn.slick.font.Glyph;
/**
* Makes glyphs a... | 537 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.font.GlyphMetrics;
import java.awt.font.GlyphVector;
import org.newdawn.slick.Image;
import org.newdawn.slick.UnicodeFont;
/**
* Represents the glyph in a font for a unicode codepoint.
*
* @author Nat... | 1,042 |
github-java-corpus | 2,012 |
package org.newdawn.slick.font;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.newdawn.... | 2,625 |
github-java-corpus | 2,012 | package org.newdawn.slick;
/**
* A basic implementation of a game to take out the boring bits
*
* @author kevin
*/
public abstract class BasicGame implements Game, InputListener {
/** The maximum number of controllers supported by the basic game */
private static final int MAX_CONTROLLERS = 20;
/** ... | 1,316 |
github-java-corpus | 2,012 | package org.newdawn.slick;
/**
* Describes classes capable of responding to key presses
*
* @author kevin
*/
public interface KeyListener extends ControlledInputReciever {
/**
* Notification that a key was pressed
*
* @param key The key code that was pressed (@see org.newdawn.slick.Input)
* ... | 163 |
github-java-corpus | 2,012 | package org.newdawn.slick;
/**
* The description of any class needing to recieve notification of changes
* to music state.
*
* @author kevin
*/
public interface MusicListener {
/**
* Notification that a piece of music finished playing
*
* @param music The music that finished playing
*/
... | 143 |
github-java-corpus | 2,012 | package org.newdawn.slick.gui;
import org.lwjgl.input.Cursor;
import org.newdawn.slick.Font;
import org.newdawn.slick.Input;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.opengl.ImageData;
/**
* The context in which GUI components are created and rendered
*
* @author kevin
*/
publ... | 738 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.