[DEV] update classpath
Signed-off-by: Edouard DUPIN <yui.heero@gmail.com>
This commit is contained in:
parent
b469cf2bf7
commit
e9541980c0
@ -87,7 +87,7 @@
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/atriasoft-egami">
|
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/atriasoft-io-gami">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
@ -97,10 +97,5 @@
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</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"/>
|
||||
</classpath>
|
||||
|
@ -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;
|
||||
|
||||
import org.atriasoft.egami.ImageByte;
|
||||
@ -16,7 +11,7 @@ import org.atriasoft.iogami.IOgami;
|
||||
|
||||
public class ResourceTextureFile extends ResourceTexture2 {
|
||||
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) {
|
||||
return ResourceTextureFile.create(filename, ResourceTextureFile.sizeAuto);
|
||||
|
@ -32,7 +32,6 @@ public class ResourceVirtualBufferObject extends Resource {
|
||||
* @param accesMode Access mode : ???
|
||||
*/
|
||||
protected ResourceVirtualBufferObject(final int number) {
|
||||
super();
|
||||
this.vbo = new int[number]; // 0
|
||||
this.buffer = new Object[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 ...
|
||||
if (this.buffer[vboidcoord] instanceof float[]) {
|
||||
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;
|
||||
} else if (this.buffer[vboidcoord] instanceof Vector2f[]) {
|
||||
return ((Vector2f[]) (this.buffer[vboidcoord])).length;
|
||||
@ -78,7 +78,7 @@ public class ResourceVirtualBufferObject extends Resource {
|
||||
*/
|
||||
public synchronized void flush() {
|
||||
// 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() + "'");
|
||||
}
|
||||
|
||||
@ -87,7 +87,8 @@ public class ResourceVirtualBufferObject extends Resource {
|
||||
// select the buffer to set data inside it ...
|
||||
if (this.buffer[index] instanceof float[]) {
|
||||
return 1;
|
||||
} else if (this.buffer[index] instanceof int[]) {
|
||||
}
|
||||
if (this.buffer[index] instanceof int[]) {
|
||||
return 1;
|
||||
} else if (this.buffer[index] instanceof Vector2f[]) {
|
||||
return 2;
|
||||
@ -172,7 +173,7 @@ public class ResourceVirtualBufferObject extends Resource {
|
||||
*/
|
||||
@Override
|
||||
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) {
|
||||
//Lock error ==> try later ...
|
||||
|
Loading…
x
Reference in New Issue
Block a user