[DEV] update classpath

Signed-off-by: Edouard DUPIN <yui.heero@gmail.com>
This commit is contained in:
Edouard DUPIN 2021-08-23 11:16:34 +02:00
parent b469cf2bf7
commit e9541980c0
4 changed files with 9 additions and 18 deletions

View File

@ -87,7 +87,7 @@
<attribute name="test" value="true"/> <attribute name="test" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/atriasoft-egami"> <classpathentry combineaccessrules="false" exported="true" kind="src" path="/atriasoft-io-gami">
<attributes> <attributes>
<attribute name="module" value="true"/> <attribute name="module" value="true"/>
</attributes> </attributes>
@ -97,10 +97,5 @@
<attribute name="module" value="true"/> <attribute name="module" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/atriasoft-io-gami">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="out/eclipse/classes"/> <classpathentry kind="output" path="out/eclipse/classes"/>
</classpath> </classpath>

View File

@ -1,8 +1,3 @@
/** @file
* @author Edouard DUPIN
* @copyright 2011, Edouard DUPIN, all right reserved
* @license MPL v2.0 (see license file)
*/
package org.atriasoft.gale.resource; package org.atriasoft.gale.resource;
import org.atriasoft.egami.ImageByte; import org.atriasoft.egami.ImageByte;
@ -16,7 +11,7 @@ import org.atriasoft.iogami.IOgami;
public class ResourceTextureFile extends ResourceTexture2 { public class ResourceTextureFile extends ResourceTexture2 {
public static Vector2i sizeAuto = new Vector2i(-1, -1); public static Vector2i sizeAuto = new Vector2i(-1, -1);
public static Vector2i sizeDefault = new Vector2i(0, 0); public static Vector2i sizeDefault = Vector2i.ZERO;
public static ResourceTextureFile create(final Uri filename) { public static ResourceTextureFile create(final Uri filename) {
return ResourceTextureFile.create(filename, ResourceTextureFile.sizeAuto); return ResourceTextureFile.create(filename, ResourceTextureFile.sizeAuto);

View File

@ -32,7 +32,6 @@ public class ResourceVirtualBufferObject extends Resource {
* @param accesMode Access mode : ??? * @param accesMode Access mode : ???
*/ */
protected ResourceVirtualBufferObject(final int number) { protected ResourceVirtualBufferObject(final int number) {
super();
this.vbo = new int[number]; // 0 this.vbo = new int[number]; // 0
this.buffer = new Object[number]; this.buffer = new Object[number];
Log.debug("OGL : load VBO count=\"" + number + "\""); Log.debug("OGL : load VBO count=\"" + number + "\"");
@ -44,7 +43,8 @@ public class ResourceVirtualBufferObject extends Resource {
// select the buffer to set data inside it ... // select the buffer to set data inside it ...
if (this.buffer[vboidcoord] instanceof float[]) { if (this.buffer[vboidcoord] instanceof float[]) {
return ((float[]) (this.buffer[vboidcoord])).length; return ((float[]) (this.buffer[vboidcoord])).length;
} else if (this.buffer[vboidcoord] instanceof int[]) { }
if (this.buffer[vboidcoord] instanceof int[]) {
return ((int[]) (this.buffer[vboidcoord])).length; return ((int[]) (this.buffer[vboidcoord])).length;
} else if (this.buffer[vboidcoord] instanceof Vector2f[]) { } else if (this.buffer[vboidcoord] instanceof Vector2f[]) {
return ((Vector2f[]) (this.buffer[vboidcoord])).length; return ((Vector2f[]) (this.buffer[vboidcoord])).length;
@ -78,7 +78,7 @@ public class ResourceVirtualBufferObject extends Resource {
*/ */
public synchronized void flush() { public synchronized void flush() {
// request to the manager to be call at the next update ... // request to the manager to be call at the next update ...
getManager().update(this); Resource.getManager().update(this);
Log.verbose("Request flush of VBO: [" + getId() + "] '" + getName() + "'"); Log.verbose("Request flush of VBO: [" + getId() + "] '" + getName() + "'");
} }
@ -87,7 +87,8 @@ public class ResourceVirtualBufferObject extends Resource {
// select the buffer to set data inside it ... // select the buffer to set data inside it ...
if (this.buffer[index] instanceof float[]) { if (this.buffer[index] instanceof float[]) {
return 1; return 1;
} else if (this.buffer[index] instanceof int[]) { }
if (this.buffer[index] instanceof int[]) {
return 1; return 1;
} else if (this.buffer[index] instanceof Vector2f[]) { } else if (this.buffer[index] instanceof Vector2f[]) {
return 2; return 2;
@ -172,7 +173,7 @@ public class ResourceVirtualBufferObject extends Resource {
*/ */
@Override @Override
public synchronized boolean updateContext() { public synchronized boolean updateContext() {
Log.warning("updateContext (VBO Start: [" + getId() + "] '" + getName() + "' (size=" + this.buffer.length + ")"); Log.verbose("updateContext (VBO Start: [" + getId() + "] '" + getName() + "' (size=" + this.buffer.length + ")");
/* /*
if (lock.tryLock() == false) { if (lock.tryLock() == false) {
//Lock error ==> try later ... //Lock error ==> try later ...