From: Rene S. <sa...@us...> - 2004-09-22 19:22:29
|
Update of /cvsroot/jake2/jake2/src/jake2/render In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11556/src/jake2/render Modified Files: medge_t.java mvertex_t.java Log Message: major refactoring in game, server and client package Index: mvertex_t.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/render/mvertex_t.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** mvertex_t.java 7 Jul 2004 19:59:35 -0000 1.1.1.1 --- mvertex_t.java 22 Sep 2004 19:22:15 -0000 1.2 *************** *** 1,25 **** /* ! Copyright (C) 1997-2001 Id Software, Inc. ! ! This program is free software; you can redistribute it and/or ! modify it under the terms of the GNU General Public License ! as published by the Free Software Foundation; either version 2 ! of the License, or (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ! ! See the GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! ! */ // Created on 20.11.2003 by RST. // $Id$ - package jake2.render; --- 1,24 ---- /* ! * Copyright (C) 1997-2001 Id Software, Inc. ! * ! * This program is free software; you can redistribute it and/or modify it under ! * the terms of the GNU General Public License as published by the Free Software ! * Foundation; either version 2 of the License, or (at your option) any later ! * version. ! * ! * This program is distributed in the hope that it will be useful, but WITHOUT ! * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS ! * FOR A PARTICULAR PURPOSE. ! * ! * See the GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License along with ! * this program; if not, write to the Free Software Foundation, Inc., 59 Temple ! * Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! */ // Created on 20.11.2003 by RST. // $Id$ package jake2.render; *************** *** 29,41 **** public class mvertex_t { ! public static final int DISK_SIZE = 3 * Defines.SIZE_OF_FLOAT; ! public static final int MEM_SIZE = 3 * Defines.SIZE_OF_FLOAT; ! public float[] position = {0, 0, 0}; ! public mvertex_t(ByteBuffer b) { ! position[0] = b.getFloat(); ! position[1] = b.getFloat(); ! position[2] = b.getFloat(); ! } ! } --- 28,41 ---- public class mvertex_t { ! public static final int DISK_SIZE = 3 * Defines.SIZE_OF_FLOAT; ! public static final int MEM_SIZE = 3 * Defines.SIZE_OF_FLOAT; ! public float[] position = { 0, 0, 0 }; ! ! public mvertex_t(ByteBuffer b) { ! position[0] = b.getFloat(); ! position[1] = b.getFloat(); ! position[2] = b.getFloat(); ! } ! } \ No newline at end of file Index: medge_t.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/render/medge_t.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** medge_t.java 7 Jul 2004 19:59:35 -0000 1.1.1.1 --- medge_t.java 22 Sep 2004 19:22:15 -0000 1.2 *************** *** 1,25 **** /* ! Copyright (C) 1997-2001 Id Software, Inc. ! ! This program is free software; you can redistribute it and/or ! modify it under the terms of the GNU General Public License ! as published by the Free Software Foundation; either version 2 ! of the License, or (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ! ! See the GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! ! */ // Created on 20.11.2003 by RST. // $Id$ - package jake2.render; --- 1,24 ---- /* ! * Copyright (C) 1997-2001 Id Software, Inc. ! * ! * This program is free software; you can redistribute it and/or modify it under ! * the terms of the GNU General Public License as published by the Free Software ! * Foundation; either version 2 of the License, or (at your option) any later ! * version. ! * ! * This program is distributed in the hope that it will be useful, but WITHOUT ! * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS ! * FOR A PARTICULAR PURPOSE. ! * ! * See the GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License along with ! * this program; if not, write to the Free Software Foundation, Inc., 59 Temple ! * Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! */ // Created on 20.11.2003 by RST. // $Id$ package jake2.render; *************** *** 29,43 **** public class medge_t { ! ! public static final int DISK_SIZE = 2 * Defines.SIZE_OF_SHORT; ! public static final int MEM_SIZE = 3 * Defines.SIZE_OF_INT; ! ! // unsigned short ! public int[] v = new int[2]; ! public int cachededgeoffset; ! ! public medge_t(ByteBuffer b) { ! v[0] = b.getShort() & 0xFFFF; ! v[1] = b.getShort() & 0xFFFF; ! } ! } --- 28,44 ---- public class medge_t { ! ! public static final int DISK_SIZE = 2 * Defines.SIZE_OF_SHORT; ! ! public static final int MEM_SIZE = 3 * Defines.SIZE_OF_INT; ! ! // unsigned short ! public int[] v = new int[2]; ! ! public int cachededgeoffset; ! ! public medge_t(ByteBuffer b) { ! v[0] = b.getShort() & 0xFFFF; ! v[1] = b.getShort() & 0xFFFF; ! } ! } \ No newline at end of file |