Update of /cvsroot/jake2/jake2/src/jake2/render/basic
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv30988/src/jake2/render/basic
Modified Files:
Main.java Misc.java
Log Message:
better driver dependent screenshot handling
Index: Main.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/render/basic/Main.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Main.java 21 Nov 2006 00:50:46 -0000 1.2
--- Main.java 22 Nov 2006 15:05:38 -0000 1.3
***************
*** 68,72 ****
abstract void GL_ImageList_f();
! abstract void GL_ScreenShot_f();
abstract void GL_SetTexturePalette(int[] palette);
abstract void GL_Strings_f();
--- 68,72 ----
abstract void GL_ImageList_f();
! public abstract void GL_ScreenShot_f();
abstract void GL_SetTexturePalette(int[] palette);
abstract void GL_Strings_f();
***************
*** 999,1003 ****
Cmd.AddCommand("screenshot", new xcommand_t() {
public void execute() {
! GL_ScreenShot_f();
}
});
--- 999,1003 ----
Cmd.AddCommand("screenshot", new xcommand_t() {
public void execute() {
! glImpl.screenshot();
}
});
Index: Misc.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/render/basic/Misc.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Misc.java 21 Nov 2006 00:50:46 -0000 1.2
--- Misc.java 22 Nov 2006 15:05:38 -0000 1.3
***************
*** 124,143 ****
* GL_ScreenShot_f
*/
! void GL_ScreenShot_f() {
! // TODO don't forget
! // if (contextInUse) {
! // screenshot_f();
! // } else {
! // updateScreen(screenshotCall);
! // }
! }
!
! private xcommand_t screenshotCall = new xcommand_t() {
! public void execute() {
! screenshot_f();
! }
! };
!
! private void screenshot_f() {
StringBuffer sb = new StringBuffer(FS.Gamedir() + "/scrshot/jake00.tga");
FS.CreatePath(sb.toString());
--- 124,128 ----
* GL_ScreenShot_f
*/
! public void GL_ScreenShot_f() {
StringBuffer sb = new StringBuffer(FS.Gamedir() + "/scrshot/jake00.tga");
FS.CreatePath(sb.toString());
|