2562 lines
84 KiB
HTML
2562 lines
84 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.6.0_34) on Mon Jun 03 22:20:31 BST 2013 -->
|
|
<TITLE>
|
|
GameContainer (Slick - The 2D Library)
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2013-06-03">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="GameContainer (Slick - The 2D Library)";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GameContainer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../org/newdawn/slick/Game.html" title="interface in org.newdawn.slick"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../org/newdawn/slick/Graphics.html" title="class in org.newdawn.slick"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?org/newdawn/slick/GameContainer.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="GameContainer.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
org.newdawn.slick</FONT>
|
|
<BR>
|
|
Class GameContainer</H2>
|
|
<PRE>
|
|
java.lang.Object
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.newdawn.slick.GameContainer</B>
|
|
</PRE>
|
|
<DL>
|
|
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></DD>
|
|
</DL>
|
|
<DL>
|
|
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/newdawn/slick/AppGameContainer.html" title="class in org.newdawn.slick">AppGameContainer</A>, <A HREF="../../../org/newdawn/slick/AppletGameContainer.Container.html" title="class in org.newdawn.slick">AppletGameContainer.Container</A></DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public abstract class <B>GameContainer</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
A generic game container that handles the game loop, fps recording and
|
|
managing the input system
|
|
<P>
|
|
|
|
<P>
|
|
<DL>
|
|
<DT><B>Author:</B></DT>
|
|
<DD>kevin</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#alwaysRender">alwaysRender</A></B></CODE>
|
|
|
|
<BR>
|
|
True if we should render when not focused</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#clearEachFrame">clearEachFrame</A></B></CODE>
|
|
|
|
<BR>
|
|
True if we should clear the screen each frame</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#forceExit">forceExit</A></B></CODE>
|
|
|
|
<BR>
|
|
True if we should force exit</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#fps">fps</A></B></CODE>
|
|
|
|
<BR>
|
|
The current count of FPS</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/newdawn/slick/Game.html" title="interface in org.newdawn.slick">Game</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#game">game</A></B></CODE>
|
|
|
|
<BR>
|
|
The game being managed</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected static <A HREF="../../../org/newdawn/slick/opengl/renderer/SGL.html" title="interface in org.newdawn.slick.opengl.renderer">SGL</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#GL">GL</A></B></CODE>
|
|
|
|
<BR>
|
|
The renderer to use for all GL operations</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#height">height</A></B></CODE>
|
|
|
|
<BR>
|
|
The height of the display</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/newdawn/slick/Input.html" title="class in org.newdawn.slick">Input</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#input">input</A></B></CODE>
|
|
|
|
<BR>
|
|
The input system to pass to the game</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#lastFPS">lastFPS</A></B></CODE>
|
|
|
|
<BR>
|
|
The last time the FPS recorded</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#lastFrame">lastFrame</A></B></CODE>
|
|
|
|
<BR>
|
|
The time the last frame was rendered</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../org/newdawn/slick/Game.html" title="interface in org.newdawn.slick">Game</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#lastGame">lastGame</A></B></CODE>
|
|
|
|
<BR>
|
|
The last game started</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#maximumLogicInterval">maximumLogicInterval</A></B></CODE>
|
|
|
|
<BR>
|
|
The maximum logic update interval</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#minimumLogicInterval">minimumLogicInterval</A></B></CODE>
|
|
|
|
<BR>
|
|
The minimum logic update interval</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#paused">paused</A></B></CODE>
|
|
|
|
<BR>
|
|
True if the game is paused</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#recordedFPS">recordedFPS</A></B></CODE>
|
|
|
|
<BR>
|
|
The last recorded FPS</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#running">running</A></B></CODE>
|
|
|
|
<BR>
|
|
True if we're currently running the game loop</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#samples">samples</A></B></CODE>
|
|
|
|
<BR>
|
|
The number of samples we'll attempt through hardware</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected static org.lwjgl.opengl.Drawable</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#SHARED_DRAWABLE">SHARED_DRAWABLE</A></B></CODE>
|
|
|
|
<BR>
|
|
The shared drawable if any</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#smoothDeltas">smoothDeltas</A></B></CODE>
|
|
|
|
<BR>
|
|
Smoothed deltas requested</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected static boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#stencil">stencil</A></B></CODE>
|
|
|
|
<BR>
|
|
True if we require stencil bits</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#storedDelta">storedDelta</A></B></CODE>
|
|
|
|
<BR>
|
|
The stored delta</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#supportsMultiSample">supportsMultiSample</A></B></CODE>
|
|
|
|
<BR>
|
|
True if this context supports multisample</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#targetFPS">targetFPS</A></B></CODE>
|
|
|
|
<BR>
|
|
The FPS we want to lock to</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#vsync">vsync</A></B></CODE>
|
|
|
|
<BR>
|
|
True if vsync has been requested</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#width">width</A></B></CODE>
|
|
|
|
<BR>
|
|
The width of the display</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected </CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#GameContainer(org.newdawn.slick.Game)">GameContainer</A></B>(<A HREF="../../../org/newdawn/slick/Game.html" title="interface in org.newdawn.slick">Game</A> game)</CODE>
|
|
|
|
<BR>
|
|
Create a new game container wrapping a given game</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#enableSharedContext()">enableSharedContext</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Enable shared OpenGL context.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#enableStencil()">enableStencil</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#enterOrtho()">enterOrtho</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Enter the orthographic mode</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#enterOrtho(int, int)">enterOrtho</A></B>(int xsize,
|
|
int ysize)</CODE>
|
|
|
|
<BR>
|
|
Enter the orthographic mode</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#exit()">exit</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Cause the game to exit and shutdown cleanly</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getAlwaysRender()">getAlwaysRender</A></B>()</CODE>
|
|
|
|
<BR>
|
|
True if this container should render when it has focus</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> float</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getAspectRatio()">getAspectRatio</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the aspect ratio of the screen</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getBuildVersion()">getBuildVersion</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the build number of slick</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/newdawn/slick/Font.html" title="interface in org.newdawn.slick">Font</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getDefaultFont()">getDefaultFont</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the default system font</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getDelta()">getDelta</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Retrieve the time taken to render the last frame, i.e.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getFPS()">getFPS</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the current recorded FPS (frames per second)</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/newdawn/slick/Graphics.html" title="class in org.newdawn.slick">Graphics</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getGraphics()">getGraphics</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the graphics context used by this container.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getHeight()">getHeight</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the height of the game canvas</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../org/newdawn/slick/Input.html" title="class in org.newdawn.slick">Input</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getInput()">getInput</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the input system</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> float</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getMusicVolume()">getMusicVolume</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Retrieve the current default volume for music</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getSamples()">getSamples</A></B>()</CODE>
|
|
|
|
<BR>
|
|
The number of samples we're attempting to performing using
|
|
hardware multisampling</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getScreenHeight()">getScreenHeight</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the height of the standard screen resolution</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getScreenWidth()">getScreenWidth</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the width of the standard screen resolution</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static org.lwjgl.opengl.Drawable</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getSharedContext()">getSharedContext</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the context shared by all containers</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> float</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getSoundVolume()">getSoundVolume</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Retrieve the current default volume for sound fx</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getTime()">getTime</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the accurate system time</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#getWidth()">getWidth</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the width of the game canvas</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#hasFocus()">hasFocus</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if the game currently has focus</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#initGL()">initGL</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Initialise the GL context</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#initSystem()">initSystem</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Initialise the system components, OpenGL and OpenAL.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#isFullscreen()">isFullscreen</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if the display is in fullscreen mode</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#isMouseGrabbed()">isMouseGrabbed</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if the mouse cursor is current grabbed.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#isMusicOn()">isMusicOn</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if music is enabled</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#isPaused()">isPaused</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if the container is currently paused.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#isShowingFPS()">isShowingFPS</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if the FPS is currently showing</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#isSoundOn()">isSoundOn</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if sound effects are enabled</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#isUpdatingOnlyWhenVisible()">isUpdatingOnlyWhenVisible</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if this game is only updating when visible to the user (default = true)</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#isVSyncRequested()">isVSyncRequested</A></B>()</CODE>
|
|
|
|
<BR>
|
|
True if vsync is requested</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#pause()">pause</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Pause the game - i.e.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#reinit()">reinit</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Renitialise the game and the context in which it's being rendered</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#resume()">resume</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Resumt the game - i.e.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#running()">running</A></B>()</CODE>
|
|
|
|
<BR>
|
|
True if the game is running</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setAlwaysRender(boolean)">setAlwaysRender</A></B>(boolean alwaysRender)</CODE>
|
|
|
|
<BR>
|
|
Indicate whether we want this container to render when it has focus</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setAnimatedMouseCursor(java.lang.String, int, int, int, int, int[])">setAnimatedMouseCursor</A></B>(java.lang.String ref,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height,
|
|
int[] cursorDelays)</CODE>
|
|
|
|
<BR>
|
|
Get a cursor based on a image reference on the classpath.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setClearEachFrame(boolean)">setClearEachFrame</A></B>(boolean clear)</CODE>
|
|
|
|
<BR>
|
|
Indicate if we should clear the screen at the beginning of each frame.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setDefaultFont(org.newdawn.slick.Font)">setDefaultFont</A></B>(<A HREF="../../../org/newdawn/slick/Font.html" title="interface in org.newdawn.slick">Font</A> font)</CODE>
|
|
|
|
<BR>
|
|
Set the default font that will be intialised in the graphics held in this container</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setDefaultMouseCursor()">setDefaultMouseCursor</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Set the default mouse cursor - i.e.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setForceExit(boolean)">setForceExit</A></B>(boolean forceExit)</CODE>
|
|
|
|
<BR>
|
|
Indicate if we should force exitting the VM at the end
|
|
of the game (default = true)</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setFullscreen(boolean)">setFullscreen</A></B>(boolean fullscreen)</CODE>
|
|
|
|
<BR>
|
|
Indicate whether we want to be in fullscreen mode.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setIcon(java.lang.String)">setIcon</A></B>(java.lang.String ref)</CODE>
|
|
|
|
<BR>
|
|
Set the icon to be displayed if possible in this type of
|
|
container</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setIcons(java.lang.String[])">setIcons</A></B>(java.lang.String[] refs)</CODE>
|
|
|
|
<BR>
|
|
Set the icons to be used for this application.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMaximumLogicUpdateInterval(int)">setMaximumLogicUpdateInterval</A></B>(int interval)</CODE>
|
|
|
|
<BR>
|
|
Set the maximum amount of time in milliseconds that can passed
|
|
into the update method.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMinimumLogicUpdateInterval(int)">setMinimumLogicUpdateInterval</A></B>(int interval)</CODE>
|
|
|
|
<BR>
|
|
Set the minimum amount of time in milliseonds that has to
|
|
pass before update() is called on the container game.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMouseCursor(org.lwjgl.input.Cursor, int, int)">setMouseCursor</A></B>(org.lwjgl.input.Cursor cursor,
|
|
int hotSpotX,
|
|
int hotSpotY)</CODE>
|
|
|
|
<BR>
|
|
Set the mouse cursor to be displayed - this is a hardware cursor and hence
|
|
shouldn't have any impact on FPS.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMouseCursor(org.newdawn.slick.opengl.ImageData, int, int)">setMouseCursor</A></B>(<A HREF="../../../org/newdawn/slick/opengl/ImageData.html" title="interface in org.newdawn.slick.opengl">ImageData</A> data,
|
|
int hotSpotX,
|
|
int hotSpotY)</CODE>
|
|
|
|
<BR>
|
|
Set the mouse cursor to be displayed - this is a hardware cursor and hence
|
|
shouldn't have any impact on FPS.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMouseCursor(org.newdawn.slick.Image, int, int)">setMouseCursor</A></B>(<A HREF="../../../org/newdawn/slick/Image.html" title="class in org.newdawn.slick">Image</A> image,
|
|
int hotSpotX,
|
|
int hotSpotY)</CODE>
|
|
|
|
<BR>
|
|
Set the mouse cursor based on the contents of the image.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMouseCursor(java.lang.String, int, int)">setMouseCursor</A></B>(java.lang.String ref,
|
|
int hotSpotX,
|
|
int hotSpotY)</CODE>
|
|
|
|
<BR>
|
|
Set the mouse cursor to be displayed - this is a hardware cursor and hence
|
|
shouldn't have any impact on FPS.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMouseGrabbed(boolean)">setMouseGrabbed</A></B>(boolean grabbed)</CODE>
|
|
|
|
<BR>
|
|
Indicate whether mouse cursor should be grabbed or not</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMultiSample(int)">setMultiSample</A></B>(int samples)</CODE>
|
|
|
|
<BR>
|
|
Indicate whether we want to try to use fullscreen multisampling.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMusicOn(boolean)">setMusicOn</A></B>(boolean on)</CODE>
|
|
|
|
<BR>
|
|
Indicate whether music should be enabled</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setMusicVolume(float)">setMusicVolume</A></B>(float volume)</CODE>
|
|
|
|
<BR>
|
|
Set the default volume for music</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setPaused(boolean)">setPaused</A></B>(boolean paused)</CODE>
|
|
|
|
<BR>
|
|
Indicates if the game should be paused, i.e.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setShowFPS(boolean)">setShowFPS</A></B>(boolean show)</CODE>
|
|
|
|
<BR>
|
|
Indicate whether the container should show the FPS</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setSmoothDeltas(boolean)">setSmoothDeltas</A></B>(boolean smoothDeltas)</CODE>
|
|
|
|
<BR>
|
|
Indicate if we want to smooth deltas.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setSoundOn(boolean)">setSoundOn</A></B>(boolean on)</CODE>
|
|
|
|
<BR>
|
|
Indicate whether sound effects should be enabled</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setSoundVolume(float)">setSoundVolume</A></B>(float volume)</CODE>
|
|
|
|
<BR>
|
|
Set the default volume for sound fx</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setTargetFrameRate(int)">setTargetFrameRate</A></B>(int fps)</CODE>
|
|
|
|
<BR>
|
|
Set the target fps we're hoping to get</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setUpdateOnlyWhenVisible(boolean)">setUpdateOnlyWhenVisible</A></B>(boolean updateOnlyWhenVisible)</CODE>
|
|
|
|
<BR>
|
|
Indicate if the display should update only when the game is visible
|
|
(the default is true)</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setVerbose(boolean)">setVerbose</A></B>(boolean verbose)</CODE>
|
|
|
|
<BR>
|
|
Inidcate we want verbose logging</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#setVSync(boolean)">setVSync</A></B>(boolean vsync)</CODE>
|
|
|
|
<BR>
|
|
Indicate whether the display should be synced to the
|
|
vertical refresh (stops tearing)</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#sleep(int)">sleep</A></B>(int milliseconds)</CODE>
|
|
|
|
<BR>
|
|
Sleep for a given period</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#supportsMultiSample()">supportsMultiSample</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Check if this hardware can support multi-sampling</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#updateAndRender(int)">updateAndRender</A></B>(int delta)</CODE>
|
|
|
|
<BR>
|
|
Update and render the game</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/newdawn/slick/GameContainer.html#updateFPS()">updateFPS</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Updated the FPS counter</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Field Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="GL"><!-- --></A><H3>
|
|
GL</H3>
|
|
<PRE>
|
|
protected static <A HREF="../../../org/newdawn/slick/opengl/renderer/SGL.html" title="interface in org.newdawn.slick.opengl.renderer">SGL</A> <B>GL</B></PRE>
|
|
<DL>
|
|
<DD>The renderer to use for all GL operations
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="SHARED_DRAWABLE"><!-- --></A><H3>
|
|
SHARED_DRAWABLE</H3>
|
|
<PRE>
|
|
protected static org.lwjgl.opengl.Drawable <B>SHARED_DRAWABLE</B></PRE>
|
|
<DL>
|
|
<DD>The shared drawable if any
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lastFrame"><!-- --></A><H3>
|
|
lastFrame</H3>
|
|
<PRE>
|
|
protected long <B>lastFrame</B></PRE>
|
|
<DL>
|
|
<DD>The time the last frame was rendered
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lastFPS"><!-- --></A><H3>
|
|
lastFPS</H3>
|
|
<PRE>
|
|
protected long <B>lastFPS</B></PRE>
|
|
<DL>
|
|
<DD>The last time the FPS recorded
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="recordedFPS"><!-- --></A><H3>
|
|
recordedFPS</H3>
|
|
<PRE>
|
|
protected int <B>recordedFPS</B></PRE>
|
|
<DL>
|
|
<DD>The last recorded FPS
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="fps"><!-- --></A><H3>
|
|
fps</H3>
|
|
<PRE>
|
|
protected int <B>fps</B></PRE>
|
|
<DL>
|
|
<DD>The current count of FPS
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="running"><!-- --></A><H3>
|
|
running</H3>
|
|
<PRE>
|
|
protected boolean <B>running</B></PRE>
|
|
<DL>
|
|
<DD>True if we're currently running the game loop
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="width"><!-- --></A><H3>
|
|
width</H3>
|
|
<PRE>
|
|
protected int <B>width</B></PRE>
|
|
<DL>
|
|
<DD>The width of the display
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="height"><!-- --></A><H3>
|
|
height</H3>
|
|
<PRE>
|
|
protected int <B>height</B></PRE>
|
|
<DL>
|
|
<DD>The height of the display
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="game"><!-- --></A><H3>
|
|
game</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/newdawn/slick/Game.html" title="interface in org.newdawn.slick">Game</A> <B>game</B></PRE>
|
|
<DL>
|
|
<DD>The game being managed
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="input"><!-- --></A><H3>
|
|
input</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/newdawn/slick/Input.html" title="class in org.newdawn.slick">Input</A> <B>input</B></PRE>
|
|
<DL>
|
|
<DD>The input system to pass to the game
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="targetFPS"><!-- --></A><H3>
|
|
targetFPS</H3>
|
|
<PRE>
|
|
protected int <B>targetFPS</B></PRE>
|
|
<DL>
|
|
<DD>The FPS we want to lock to
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="minimumLogicInterval"><!-- --></A><H3>
|
|
minimumLogicInterval</H3>
|
|
<PRE>
|
|
protected long <B>minimumLogicInterval</B></PRE>
|
|
<DL>
|
|
<DD>The minimum logic update interval
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="storedDelta"><!-- --></A><H3>
|
|
storedDelta</H3>
|
|
<PRE>
|
|
protected long <B>storedDelta</B></PRE>
|
|
<DL>
|
|
<DD>The stored delta
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="maximumLogicInterval"><!-- --></A><H3>
|
|
maximumLogicInterval</H3>
|
|
<PRE>
|
|
protected long <B>maximumLogicInterval</B></PRE>
|
|
<DL>
|
|
<DD>The maximum logic update interval
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="lastGame"><!-- --></A><H3>
|
|
lastGame</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../org/newdawn/slick/Game.html" title="interface in org.newdawn.slick">Game</A> <B>lastGame</B></PRE>
|
|
<DL>
|
|
<DD>The last game started
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="clearEachFrame"><!-- --></A><H3>
|
|
clearEachFrame</H3>
|
|
<PRE>
|
|
protected boolean <B>clearEachFrame</B></PRE>
|
|
<DL>
|
|
<DD>True if we should clear the screen each frame
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="paused"><!-- --></A><H3>
|
|
paused</H3>
|
|
<PRE>
|
|
protected boolean <B>paused</B></PRE>
|
|
<DL>
|
|
<DD>True if the game is paused
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="forceExit"><!-- --></A><H3>
|
|
forceExit</H3>
|
|
<PRE>
|
|
protected boolean <B>forceExit</B></PRE>
|
|
<DL>
|
|
<DD>True if we should force exit
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="vsync"><!-- --></A><H3>
|
|
vsync</H3>
|
|
<PRE>
|
|
protected boolean <B>vsync</B></PRE>
|
|
<DL>
|
|
<DD>True if vsync has been requested
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="smoothDeltas"><!-- --></A><H3>
|
|
smoothDeltas</H3>
|
|
<PRE>
|
|
protected boolean <B>smoothDeltas</B></PRE>
|
|
<DL>
|
|
<DD>Smoothed deltas requested
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="samples"><!-- --></A><H3>
|
|
samples</H3>
|
|
<PRE>
|
|
protected int <B>samples</B></PRE>
|
|
<DL>
|
|
<DD>The number of samples we'll attempt through hardware
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="supportsMultiSample"><!-- --></A><H3>
|
|
supportsMultiSample</H3>
|
|
<PRE>
|
|
protected boolean <B>supportsMultiSample</B></PRE>
|
|
<DL>
|
|
<DD>True if this context supports multisample
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="alwaysRender"><!-- --></A><H3>
|
|
alwaysRender</H3>
|
|
<PRE>
|
|
protected boolean <B>alwaysRender</B></PRE>
|
|
<DL>
|
|
<DD>True if we should render when not focused
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="stencil"><!-- --></A><H3>
|
|
stencil</H3>
|
|
<PRE>
|
|
protected static boolean <B>stencil</B></PRE>
|
|
<DL>
|
|
<DD>True if we require stencil bits
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="GameContainer(org.newdawn.slick.Game)"><!-- --></A><H3>
|
|
GameContainer</H3>
|
|
<PRE>
|
|
protected <B>GameContainer</B>(<A HREF="../../../org/newdawn/slick/Game.html" title="interface in org.newdawn.slick">Game</A> game)</PRE>
|
|
<DL>
|
|
<DD>Create a new game container wrapping a given game
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>game</CODE> - The game to be wrapped</DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="enableStencil()"><!-- --></A><H3>
|
|
enableStencil</H3>
|
|
<PRE>
|
|
public static void <B>enableStencil</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setDefaultFont(org.newdawn.slick.Font)"><!-- --></A><H3>
|
|
setDefaultFont</H3>
|
|
<PRE>
|
|
public void <B>setDefaultFont</B>(<A HREF="../../../org/newdawn/slick/Font.html" title="interface in org.newdawn.slick">Font</A> font)</PRE>
|
|
<DL>
|
|
<DD>Set the default font that will be intialised in the graphics held in this container
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>font</CODE> - The font to use as default</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMultiSample(int)"><!-- --></A><H3>
|
|
setMultiSample</H3>
|
|
<PRE>
|
|
public void <B>setMultiSample</B>(int samples)</PRE>
|
|
<DL>
|
|
<DD>Indicate whether we want to try to use fullscreen multisampling. This will
|
|
give antialiasing across the whole scene using a hardware feature.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>samples</CODE> - The number of samples to attempt (2 is safe)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="supportsMultiSample()"><!-- --></A><H3>
|
|
supportsMultiSample</H3>
|
|
<PRE>
|
|
public boolean <B>supportsMultiSample</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if this hardware can support multi-sampling
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if the hardware supports multi-sampling</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getSamples()"><!-- --></A><H3>
|
|
getSamples</H3>
|
|
<PRE>
|
|
public int <B>getSamples</B>()</PRE>
|
|
<DL>
|
|
<DD>The number of samples we're attempting to performing using
|
|
hardware multisampling
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The number of samples requested</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setForceExit(boolean)"><!-- --></A><H3>
|
|
setForceExit</H3>
|
|
<PRE>
|
|
public void <B>setForceExit</B>(boolean forceExit)</PRE>
|
|
<DL>
|
|
<DD>Indicate if we should force exitting the VM at the end
|
|
of the game (default = true)
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>forceExit</CODE> - True if we should force the VM exit</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setSmoothDeltas(boolean)"><!-- --></A><H3>
|
|
setSmoothDeltas</H3>
|
|
<PRE>
|
|
public void <B>setSmoothDeltas</B>(boolean smoothDeltas)</PRE>
|
|
<DL>
|
|
<DD>Indicate if we want to smooth deltas. This feature will report
|
|
a delta based on the FPS not the time passed. This works well with
|
|
vsync.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>smoothDeltas</CODE> - True if we should report smooth deltas</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isFullscreen()"><!-- --></A><H3>
|
|
isFullscreen</H3>
|
|
<PRE>
|
|
public boolean <B>isFullscreen</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if the display is in fullscreen mode
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if the display is in fullscreen mode</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getAspectRatio()"><!-- --></A><H3>
|
|
getAspectRatio</H3>
|
|
<PRE>
|
|
public float <B>getAspectRatio</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the aspect ratio of the screen
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The aspect ratio of the display</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setFullscreen(boolean)"><!-- --></A><H3>
|
|
setFullscreen</H3>
|
|
<PRE>
|
|
public void <B>setFullscreen</B>(boolean fullscreen)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Indicate whether we want to be in fullscreen mode. Note that the current
|
|
display mode must be valid as a fullscreen mode for this to work
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>fullscreen</CODE> - True if we want to be in fullscreen mode
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates we failed to change the display mode</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="enableSharedContext()"><!-- --></A><H3>
|
|
enableSharedContext</H3>
|
|
<PRE>
|
|
public static void <B>enableSharedContext</B>()
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Enable shared OpenGL context. After calling this all containers created
|
|
will shared a single parent context
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to create the shared drawable</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getSharedContext()"><!-- --></A><H3>
|
|
getSharedContext</H3>
|
|
<PRE>
|
|
public static org.lwjgl.opengl.Drawable <B>getSharedContext</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the context shared by all containers
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The context shared by all the containers or null if shared context isn't enabled</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setClearEachFrame(boolean)"><!-- --></A><H3>
|
|
setClearEachFrame</H3>
|
|
<PRE>
|
|
public void <B>setClearEachFrame</B>(boolean clear)</PRE>
|
|
<DL>
|
|
<DD>Indicate if we should clear the screen at the beginning of each frame. If you're
|
|
rendering to the whole screen each frame then setting this to false can give
|
|
some performance improvements
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>clear</CODE> - True if the the screen should be cleared each frame</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="reinit()"><!-- --></A><H3>
|
|
reinit</H3>
|
|
<PRE>
|
|
public void <B>reinit</B>()
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Renitialise the game and the context in which it's being rendered
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure rerun initialisation routines</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="pause()"><!-- --></A><H3>
|
|
pause</H3>
|
|
<PRE>
|
|
public void <B>pause</B>()</PRE>
|
|
<DL>
|
|
<DD>Pause the game - i.e. suspend updates
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="resume()"><!-- --></A><H3>
|
|
resume</H3>
|
|
<PRE>
|
|
public void <B>resume</B>()</PRE>
|
|
<DL>
|
|
<DD>Resumt the game - i.e. continue updates
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isPaused()"><!-- --></A><H3>
|
|
isPaused</H3>
|
|
<PRE>
|
|
public boolean <B>isPaused</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if the container is currently paused.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if the container is paused</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setPaused(boolean)"><!-- --></A><H3>
|
|
setPaused</H3>
|
|
<PRE>
|
|
public void <B>setPaused</B>(boolean paused)</PRE>
|
|
<DL>
|
|
<DD>Indicates if the game should be paused, i.e. if updates
|
|
should be propogated through to the game.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>paused</CODE> - True if the game should be paused</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getAlwaysRender()"><!-- --></A><H3>
|
|
getAlwaysRender</H3>
|
|
<PRE>
|
|
public boolean <B>getAlwaysRender</B>()</PRE>
|
|
<DL>
|
|
<DD>True if this container should render when it has focus
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if this container should render when it has focus</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setAlwaysRender(boolean)"><!-- --></A><H3>
|
|
setAlwaysRender</H3>
|
|
<PRE>
|
|
public void <B>setAlwaysRender</B>(boolean alwaysRender)</PRE>
|
|
<DL>
|
|
<DD>Indicate whether we want this container to render when it has focus
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>alwaysRender</CODE> - True if this container should render when it has focus</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getBuildVersion()"><!-- --></A><H3>
|
|
getBuildVersion</H3>
|
|
<PRE>
|
|
public static int <B>getBuildVersion</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the build number of slick
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The build number of slick</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getDefaultFont()"><!-- --></A><H3>
|
|
getDefaultFont</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/newdawn/slick/Font.html" title="interface in org.newdawn.slick">Font</A> <B>getDefaultFont</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the default system font
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#getDefaultFont()">getDefaultFont</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The default system font</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isSoundOn()"><!-- --></A><H3>
|
|
isSoundOn</H3>
|
|
<PRE>
|
|
public boolean <B>isSoundOn</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if sound effects are enabled
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if sound effects are enabled</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isMusicOn()"><!-- --></A><H3>
|
|
isMusicOn</H3>
|
|
<PRE>
|
|
public boolean <B>isMusicOn</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if music is enabled
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if music is enabled</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMusicOn(boolean)"><!-- --></A><H3>
|
|
setMusicOn</H3>
|
|
<PRE>
|
|
public void <B>setMusicOn</B>(boolean on)</PRE>
|
|
<DL>
|
|
<DD>Indicate whether music should be enabled
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>on</CODE> - True if music should be enabled</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setSoundOn(boolean)"><!-- --></A><H3>
|
|
setSoundOn</H3>
|
|
<PRE>
|
|
public void <B>setSoundOn</B>(boolean on)</PRE>
|
|
<DL>
|
|
<DD>Indicate whether sound effects should be enabled
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>on</CODE> - True if sound effects should be enabled</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getMusicVolume()"><!-- --></A><H3>
|
|
getMusicVolume</H3>
|
|
<PRE>
|
|
public float <B>getMusicVolume</B>()</PRE>
|
|
<DL>
|
|
<DD>Retrieve the current default volume for music
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>the current default volume for music</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getSoundVolume()"><!-- --></A><H3>
|
|
getSoundVolume</H3>
|
|
<PRE>
|
|
public float <B>getSoundVolume</B>()</PRE>
|
|
<DL>
|
|
<DD>Retrieve the current default volume for sound fx
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>the current default volume for sound fx</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setSoundVolume(float)"><!-- --></A><H3>
|
|
setSoundVolume</H3>
|
|
<PRE>
|
|
public void <B>setSoundVolume</B>(float volume)</PRE>
|
|
<DL>
|
|
<DD>Set the default volume for sound fx
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>volume</CODE> - the new default value for sound fx volume</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMusicVolume(float)"><!-- --></A><H3>
|
|
setMusicVolume</H3>
|
|
<PRE>
|
|
public void <B>setMusicVolume</B>(float volume)</PRE>
|
|
<DL>
|
|
<DD>Set the default volume for music
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>volume</CODE> - the new default value for music volume</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getScreenWidth()"><!-- --></A><H3>
|
|
getScreenWidth</H3>
|
|
<PRE>
|
|
public abstract int <B>getScreenWidth</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the width of the standard screen resolution
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#getScreenWidth()">getScreenWidth</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The screen width</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getScreenHeight()"><!-- --></A><H3>
|
|
getScreenHeight</H3>
|
|
<PRE>
|
|
public abstract int <B>getScreenHeight</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the height of the standard screen resolution
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#getScreenHeight()">getScreenHeight</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The screen height</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getWidth()"><!-- --></A><H3>
|
|
getWidth</H3>
|
|
<PRE>
|
|
public int <B>getWidth</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the width of the game canvas
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#getWidth()">getWidth</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The width of the game canvas</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getHeight()"><!-- --></A><H3>
|
|
getHeight</H3>
|
|
<PRE>
|
|
public int <B>getHeight</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the height of the game canvas
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#getHeight()">getHeight</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The height of the game canvas</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setIcon(java.lang.String)"><!-- --></A><H3>
|
|
setIcon</H3>
|
|
<PRE>
|
|
public abstract void <B>setIcon</B>(java.lang.String ref)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Set the icon to be displayed if possible in this type of
|
|
container
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>ref</CODE> - The reference to the icon to be displayed
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the icon</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setIcons(java.lang.String[])"><!-- --></A><H3>
|
|
setIcons</H3>
|
|
<PRE>
|
|
public abstract void <B>setIcons</B>(java.lang.String[] refs)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Set the icons to be used for this application. Note that the size of the icon
|
|
defines how it will be used. Important ones to note
|
|
|
|
Windows window icon must be 16x16
|
|
Windows alt-tab icon must be 24x24 or 32x32 depending on Windows version (XP=32)
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>refs</CODE> - The reference to the icon to be displayed
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the icon</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTime()"><!-- --></A><H3>
|
|
getTime</H3>
|
|
<PRE>
|
|
public long <B>getTime</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the accurate system time
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#getTime()">getTime</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The system time in milliseconds</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="sleep(int)"><!-- --></A><H3>
|
|
sleep</H3>
|
|
<PRE>
|
|
public void <B>sleep</B>(int milliseconds)</PRE>
|
|
<DL>
|
|
<DD>Sleep for a given period
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>milliseconds</CODE> - The period to sleep for in milliseconds</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMouseCursor(java.lang.String, int, int)"><!-- --></A><H3>
|
|
setMouseCursor</H3>
|
|
<PRE>
|
|
public abstract void <B>setMouseCursor</B>(java.lang.String ref,
|
|
int hotSpotX,
|
|
int hotSpotY)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Set the mouse cursor to be displayed - this is a hardware cursor and hence
|
|
shouldn't have any impact on FPS.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#setMouseCursor(java.lang.String, int, int)">setMouseCursor</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>ref</CODE> - The location of the image to be loaded for the cursor<DD><CODE>hotSpotX</CODE> - The x coordinate of the hotspot within the cursor image<DD><CODE>hotSpotY</CODE> - The y coordinate of the hotspot within the cursor image
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the cursor image or create the hardware cursor</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMouseCursor(org.newdawn.slick.opengl.ImageData, int, int)"><!-- --></A><H3>
|
|
setMouseCursor</H3>
|
|
<PRE>
|
|
public abstract void <B>setMouseCursor</B>(<A HREF="../../../org/newdawn/slick/opengl/ImageData.html" title="interface in org.newdawn.slick.opengl">ImageData</A> data,
|
|
int hotSpotX,
|
|
int hotSpotY)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Set the mouse cursor to be displayed - this is a hardware cursor and hence
|
|
shouldn't have any impact on FPS.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#setMouseCursor(org.newdawn.slick.opengl.ImageData, int, int)">setMouseCursor</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>data</CODE> - The image data from which the cursor can be construted<DD><CODE>hotSpotX</CODE> - The x coordinate of the hotspot within the cursor image<DD><CODE>hotSpotY</CODE> - The y coordinate of the hotspot within the cursor image
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the cursor image or create the hardware cursor</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMouseCursor(org.newdawn.slick.Image, int, int)"><!-- --></A><H3>
|
|
setMouseCursor</H3>
|
|
<PRE>
|
|
public abstract void <B>setMouseCursor</B>(<A HREF="../../../org/newdawn/slick/Image.html" title="class in org.newdawn.slick">Image</A> image,
|
|
int hotSpotX,
|
|
int hotSpotY)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Set the mouse cursor based on the contents of the image. Note that this will not take
|
|
account of render state type changes to images (rotation and such). If these effects
|
|
are required it is recommended that an offscreen buffer be used to produce an appropriate
|
|
image. An offscreen buffer will always be used to produce the new cursor and as such
|
|
this operation an be very expensive
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>image</CODE> - The image to use as the cursor<DD><CODE>hotSpotX</CODE> - The x coordinate of the hotspot within the cursor image<DD><CODE>hotSpotY</CODE> - The y coordinate of the hotspot within the cursor image
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the cursor image or create the hardware cursor</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMouseCursor(org.lwjgl.input.Cursor, int, int)"><!-- --></A><H3>
|
|
setMouseCursor</H3>
|
|
<PRE>
|
|
public abstract void <B>setMouseCursor</B>(org.lwjgl.input.Cursor cursor,
|
|
int hotSpotX,
|
|
int hotSpotY)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Set the mouse cursor to be displayed - this is a hardware cursor and hence
|
|
shouldn't have any impact on FPS.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#setMouseCursor(org.lwjgl.input.Cursor, int, int)">setMouseCursor</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>cursor</CODE> - The cursor to use<DD><CODE>hotSpotX</CODE> - The x coordinate of the hotspot within the cursor image<DD><CODE>hotSpotY</CODE> - The y coordinate of the hotspot within the cursor image
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the cursor image or create the hardware cursor</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setAnimatedMouseCursor(java.lang.String, int, int, int, int, int[])"><!-- --></A><H3>
|
|
setAnimatedMouseCursor</H3>
|
|
<PRE>
|
|
public void <B>setAnimatedMouseCursor</B>(java.lang.String ref,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height,
|
|
int[] cursorDelays)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Get a cursor based on a image reference on the classpath. The image
|
|
is assumed to be a set/strip of cursor animation frames running from top to
|
|
bottom.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>ref</CODE> - The reference to the image to be loaded<DD><CODE>x</CODE> - The x-coordinate of the cursor hotspot (left -> right)<DD><CODE>y</CODE> - The y-coordinate of the cursor hotspot (bottom -> top)<DD><CODE>width</CODE> - The x width of the cursor<DD><CODE>height</CODE> - The y height of the cursor<DD><CODE>cursorDelays</CODE> - image delays between changing frames in animation
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the image or a failure to create the hardware cursor</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setDefaultMouseCursor()"><!-- --></A><H3>
|
|
setDefaultMouseCursor</H3>
|
|
<PRE>
|
|
public abstract void <B>setDefaultMouseCursor</B>()</PRE>
|
|
<DL>
|
|
<DD>Set the default mouse cursor - i.e. the original cursor before any native
|
|
cursor was set
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#setDefaultMouseCursor()">setDefaultMouseCursor</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getInput()"><!-- --></A><H3>
|
|
getInput</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/newdawn/slick/Input.html" title="class in org.newdawn.slick">Input</A> <B>getInput</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the input system
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html#getInput()">getInput</A></CODE> in interface <CODE><A HREF="../../../org/newdawn/slick/gui/GUIContext.html" title="interface in org.newdawn.slick.gui">GUIContext</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The input system available to this game container</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getFPS()"><!-- --></A><H3>
|
|
getFPS</H3>
|
|
<PRE>
|
|
public int <B>getFPS</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the current recorded FPS (frames per second)
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The current FPS</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMouseGrabbed(boolean)"><!-- --></A><H3>
|
|
setMouseGrabbed</H3>
|
|
<PRE>
|
|
public abstract void <B>setMouseGrabbed</B>(boolean grabbed)</PRE>
|
|
<DL>
|
|
<DD>Indicate whether mouse cursor should be grabbed or not
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>grabbed</CODE> - True if mouse cursor should be grabbed</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isMouseGrabbed()"><!-- --></A><H3>
|
|
isMouseGrabbed</H3>
|
|
<PRE>
|
|
public abstract boolean <B>isMouseGrabbed</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if the mouse cursor is current grabbed. This will cause it not
|
|
to be seen.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if the mouse is currently grabbed</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getDelta()"><!-- --></A><H3>
|
|
getDelta</H3>
|
|
<PRE>
|
|
protected int <B>getDelta</B>()</PRE>
|
|
<DL>
|
|
<DD>Retrieve the time taken to render the last frame, i.e. the change in time - delta.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The time taken to render the last frame</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="updateFPS()"><!-- --></A><H3>
|
|
updateFPS</H3>
|
|
<PRE>
|
|
protected void <B>updateFPS</B>()</PRE>
|
|
<DL>
|
|
<DD>Updated the FPS counter
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMinimumLogicUpdateInterval(int)"><!-- --></A><H3>
|
|
setMinimumLogicUpdateInterval</H3>
|
|
<PRE>
|
|
public void <B>setMinimumLogicUpdateInterval</B>(int interval)</PRE>
|
|
<DL>
|
|
<DD>Set the minimum amount of time in milliseonds that has to
|
|
pass before update() is called on the container game. This gives
|
|
a way to limit logic updates compared to renders.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>interval</CODE> - The minimum interval between logic updates</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMaximumLogicUpdateInterval(int)"><!-- --></A><H3>
|
|
setMaximumLogicUpdateInterval</H3>
|
|
<PRE>
|
|
public void <B>setMaximumLogicUpdateInterval</B>(int interval)</PRE>
|
|
<DL>
|
|
<DD>Set the maximum amount of time in milliseconds that can passed
|
|
into the update method. Useful for collision detection without
|
|
sweeping.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>interval</CODE> - The maximum interval between logic updates</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="updateAndRender(int)"><!-- --></A><H3>
|
|
updateAndRender</H3>
|
|
<PRE>
|
|
protected void <B>updateAndRender</B>(int delta)
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Update and render the game
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>delta</CODE> - The change in time since last update and render
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates an internal fault to the game.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setUpdateOnlyWhenVisible(boolean)"><!-- --></A><H3>
|
|
setUpdateOnlyWhenVisible</H3>
|
|
<PRE>
|
|
public void <B>setUpdateOnlyWhenVisible</B>(boolean updateOnlyWhenVisible)</PRE>
|
|
<DL>
|
|
<DD>Indicate if the display should update only when the game is visible
|
|
(the default is true)
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>updateOnlyWhenVisible</CODE> - True if we should updated only when the display is visible</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isUpdatingOnlyWhenVisible()"><!-- --></A><H3>
|
|
isUpdatingOnlyWhenVisible</H3>
|
|
<PRE>
|
|
public boolean <B>isUpdatingOnlyWhenVisible</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if this game is only updating when visible to the user (default = true)
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if the game is only updated when the display is visible</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="initGL()"><!-- --></A><H3>
|
|
initGL</H3>
|
|
<PRE>
|
|
protected void <B>initGL</B>()</PRE>
|
|
<DL>
|
|
<DD>Initialise the GL context
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="initSystem()"><!-- --></A><H3>
|
|
initSystem</H3>
|
|
<PRE>
|
|
protected void <B>initSystem</B>()
|
|
throws <A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Initialise the system components, OpenGL and OpenAL.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to create a native handler</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="enterOrtho()"><!-- --></A><H3>
|
|
enterOrtho</H3>
|
|
<PRE>
|
|
protected void <B>enterOrtho</B>()</PRE>
|
|
<DL>
|
|
<DD>Enter the orthographic mode
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setShowFPS(boolean)"><!-- --></A><H3>
|
|
setShowFPS</H3>
|
|
<PRE>
|
|
public void <B>setShowFPS</B>(boolean show)</PRE>
|
|
<DL>
|
|
<DD>Indicate whether the container should show the FPS
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>show</CODE> - True if the container should show the FPS</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isShowingFPS()"><!-- --></A><H3>
|
|
isShowingFPS</H3>
|
|
<PRE>
|
|
public boolean <B>isShowingFPS</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if the FPS is currently showing
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if the FPS is showing</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setTargetFrameRate(int)"><!-- --></A><H3>
|
|
setTargetFrameRate</H3>
|
|
<PRE>
|
|
public void <B>setTargetFrameRate</B>(int fps)</PRE>
|
|
<DL>
|
|
<DD>Set the target fps we're hoping to get
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>fps</CODE> - The target fps we're hoping to get</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setVSync(boolean)"><!-- --></A><H3>
|
|
setVSync</H3>
|
|
<PRE>
|
|
public void <B>setVSync</B>(boolean vsync)</PRE>
|
|
<DL>
|
|
<DD>Indicate whether the display should be synced to the
|
|
vertical refresh (stops tearing)
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>vsync</CODE> - True if we want to sync to vertical refresh</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isVSyncRequested()"><!-- --></A><H3>
|
|
isVSyncRequested</H3>
|
|
<PRE>
|
|
public boolean <B>isVSyncRequested</B>()</PRE>
|
|
<DL>
|
|
<DD>True if vsync is requested
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if vsync is requested</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="running()"><!-- --></A><H3>
|
|
running</H3>
|
|
<PRE>
|
|
protected boolean <B>running</B>()</PRE>
|
|
<DL>
|
|
<DD>True if the game is running
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if the game is running</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setVerbose(boolean)"><!-- --></A><H3>
|
|
setVerbose</H3>
|
|
<PRE>
|
|
public void <B>setVerbose</B>(boolean verbose)</PRE>
|
|
<DL>
|
|
<DD>Inidcate we want verbose logging
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>verbose</CODE> - True if we want verbose logging (INFO and DEBUG)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="exit()"><!-- --></A><H3>
|
|
exit</H3>
|
|
<PRE>
|
|
public void <B>exit</B>()</PRE>
|
|
<DL>
|
|
<DD>Cause the game to exit and shutdown cleanly
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="hasFocus()"><!-- --></A><H3>
|
|
hasFocus</H3>
|
|
<PRE>
|
|
public abstract boolean <B>hasFocus</B>()</PRE>
|
|
<DL>
|
|
<DD>Check if the game currently has focus
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>True if the game currently has focus</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getGraphics()"><!-- --></A><H3>
|
|
getGraphics</H3>
|
|
<PRE>
|
|
public <A HREF="../../../org/newdawn/slick/Graphics.html" title="class in org.newdawn.slick">Graphics</A> <B>getGraphics</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the graphics context used by this container. Note that this
|
|
value may vary over the life time of the game.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The graphics context used by this container</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="enterOrtho(int, int)"><!-- --></A><H3>
|
|
enterOrtho</H3>
|
|
<PRE>
|
|
protected void <B>enterOrtho</B>(int xsize,
|
|
int ysize)</PRE>
|
|
<DL>
|
|
<DD>Enter the orthographic mode
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>xsize</CODE> - The size of the panel being used<DD><CODE>ysize</CODE> - The size of the panel being used</DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GameContainer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../org/newdawn/slick/Game.html" title="interface in org.newdawn.slick"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../org/newdawn/slick/Graphics.html" title="class in org.newdawn.slick"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?org/newdawn/slick/GameContainer.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="GameContainer.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
<i>Copyright © 2006 New Dawn Software. All Rights Reserved.</i>
|
|
</BODY>
|
|
</HTML>
|