You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
|
3
(9) |
|
4
(28) |
5
(1) |
6
(9) |
7
(9) |
8
|
9
(7) |
10
|
|
11
(1) |
12
(18) |
13
(8) |
14
|
15
|
16
(2) |
17
(2) |
|
18
(17) |
19
(5) |
20
(5) |
21
(12) |
22
(1) |
23
|
24
|
|
25
|
26
(1) |
27
|
28
|
29
(3) |
30
(2) |
|
|
From: Caspian Rychlik-P. <ci...@us...> - 2004-04-22 13:57:57
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/util/model/loaders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25670/src/java/org/lwjgl/util/model/loaders Modified Files: XMLLoader.java XMLUtil.java Log Message: Added wrapper tags Index: XMLLoader.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/util/model/loaders/XMLLoader.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- XMLLoader.java 21 Apr 2004 19:46:02 -0000 1.1 +++ XMLLoader.java 22 Apr 2004 13:57:48 -0000 1.2 @@ -39,13 +39,6 @@ import org.lwjgl.util.Color; import org.lwjgl.util.model.*; -import org.lwjgl.util.model.BoneFrame; -import org.lwjgl.util.model.BonedModel; -import org.lwjgl.util.model.BonedVertex; -import org.lwjgl.util.model.MeshedModel; -import org.lwjgl.util.model.Triangle; -import org.lwjgl.util.model.Vertex; -import org.lwjgl.util.model.Weight; import org.lwjgl.util.vector.Matrix4f; import org.lwjgl.util.vector.Vector2f; import org.lwjgl.util.vector.Vector3f; @@ -121,7 +114,11 @@ * @throws Exception */ private BonedVertex[] loadBonedVertices() throws Exception { - List vertexElements = XMLUtil.getChildren(src.getDocumentElement(), "vertex"); + Element verticesElement = XMLUtil.getChild(src.getDocumentElement(), "vertices"); + if (verticesElement == null) { + return null; + } + List vertexElements = XMLUtil.getChildren(verticesElement, "vertex"); if (vertexElements.size() != numVertices) { throw new Exception("Vertex count incorrect, got "+vertexElements.size()+", expected "+numVertices); } @@ -140,7 +137,11 @@ * @throws Exception */ private Vector2f[] loadSkin() throws Exception { - List skinElements = XMLUtil.getChildren(src.getDocumentElement(), "skin"); + Element skinElement = XMLUtil.getChild(src.getDocumentElement(), "skin"); + if (skinElement == null) { + return null; + } + List skinElements = XMLUtil.getChildren(skinElement, "texcoord"); if (skinElements.size() == 0) { return null; } @@ -150,8 +151,8 @@ Vector2f[] skins = new Vector2f[skinElements.size()]; int skinCount = 0; for (Iterator i = skinElements.iterator(); i.hasNext(); ) { - Element skinElement = (Element) i.next(); - skins[skinCount++] = loadTexCoord(skinElement); + Element texCoordElement = (Element) i.next(); + skins[skinCount++] = loadTexCoord(texCoordElement); } return skins; } @@ -162,7 +163,12 @@ * @throws Exception */ private Color[] loadColor() throws Exception { - List colorElements = XMLUtil.getChildren(src.getDocumentElement(), "color"); + Element colorsElement = XMLUtil.getChild(src.getDocumentElement(), "colors"); + if (colorsElement == null) { + return null; + } + + List colorElements = XMLUtil.getChildren(colorsElement, "color"); if (colorElements.size() == 0) { return null; } @@ -184,7 +190,11 @@ * @throws Exception */ private Triangle[] loadTriangles() throws Exception { - List triangleElements = XMLUtil.getChildren(src.getDocumentElement(), "triangle"); + Element meshElement = XMLUtil.getChild(src.getDocumentElement(), "mesh"); + if (meshElement == null) { + return null; + } + List triangleElements = XMLUtil.getChildren(meshElement, "triangle"); Triangle[] triangles = new Triangle[triangleElements.size()]; int triangleCount = 0; for (Iterator i = triangleElements.iterator(); i.hasNext(); ) { @@ -200,11 +210,15 @@ * @throws Exception */ private Map loadBoneAnimations() throws Exception { - List animationElements = XMLUtil.getChildren(src.getDocumentElement(), "animation"); - Map animations = new HashMap(animationElements.size()); - for (Iterator i = animationElements.iterator(); i.hasNext(); ) { - Element animationElement = (Element) i.next(); - animations.put(XMLUtil.getString(animationElement, "name"), loadBonedAnimation(animationElement)); + Element animationElement = XMLUtil.getChild(src.getDocumentElement(), "animation"); + if (animationElement == null) { + return null; + } + List sequenceElements = XMLUtil.getChildren(src.getDocumentElement(), "sequence"); + Map animations = new HashMap(sequenceElements.size()); + for (Iterator i = sequenceElements.iterator(); i.hasNext(); ) { + Element sequenceElement = (Element) i.next(); + animations.put(XMLUtil.getString(sequenceElement, "name"), loadBonedAnimation(sequenceElement)); } return animations; } @@ -215,11 +229,15 @@ * @throws Exception */ private Map loadMeshAnimations() throws Exception { - List animationElements = XMLUtil.getChildren(src.getDocumentElement(), "animation"); - Map animations = new HashMap(animationElements.size()); - for (Iterator i = animationElements.iterator(); i.hasNext(); ) { - Element animationElement = (Element) i.next(); - animations.put(XMLUtil.getString(animationElement, "name"), loadMeshAnimation(animationElement)); + Element animationElement = XMLUtil.getChild(src.getDocumentElement(), "animation"); + if (animationElement == null) { + return null; + } + List sequenceElements = XMLUtil.getChildren(src.getDocumentElement(), "sequence"); + Map animations = new HashMap(sequenceElements.size()); + for (Iterator i = sequenceElements.iterator(); i.hasNext(); ) { + Element sequenceElement = (Element) i.next(); + animations.put(XMLUtil.getString(sequenceElement, "name"), loadMeshAnimation(sequenceElement)); } return animations; } Index: XMLUtil.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/util/model/loaders/XMLUtil.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- XMLUtil.java 21 Apr 2004 19:46:02 -0000 1.1 +++ XMLUtil.java 22 Apr 2004 13:57:48 -0000 1.2 @@ -45,6 +45,28 @@ final class XMLUtil { /** + * Get a single child element + * @param child + * @return the single child element, or null + * @throws Exception if the child is present multiple times + */ + public static Element getChild(Element element, String child) throws Exception { + NodeList nodes = element.getChildNodes(); + Element ret = null; + for (int i = 0; i < nodes.getLength(); i ++) { + Node childNode = (Node) nodes.item(i); + if (childNode.getNodeName().equals(child) && childNode.getNodeType() == Node.ELEMENT_NODE) { + if (ret != null) { + throw new Exception("Child element '"+child+"' present multiple times"); + } else { + ret = (Element) childNode; + } + } + } + return ret; + } + + /** * @param name The name of the child elements you want * @return a List of child Elements */ |