320 |
img->loadInto(*t, 0, 0, w, h); |
img->loadInto(*t, 0, 0, w, h); |
321 |
mosaicbuilder->prepare(); |
mosaicbuilder->prepare(); |
322 |
releaseWindow(); |
releaseWindow(); |
323 |
DBG(dbg) << "Created tex rect\n"; |
DBG(dbg) << "Created tex rect, in "<<t->getRect().tex<<"\n"; |
324 |
return imagetiles.add(t); |
return imagetiles.add(t); |
325 |
} |
} |
326 |
|
|
334 |
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GZZGL_getTexRectTexID |
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GZZGL_getTexRectTexID |
335 |
(JNIEnv *, jclass, jint id) |
(JNIEnv *, jclass, jint id) |
336 |
{ |
{ |
337 |
return imagetiles[id]->getRect().tex; |
return imagetiles[id]->getRect().tex.getTexId(); |
338 |
} |
} |
339 |
|
|
340 |
JNIEXPORT jdouble JNICALL Java_gzz_gfx_gl_GZZGL_getTexRectTexCoord |
JNIEXPORT jdouble JNICALL Java_gzz_gfx_gl_GZZGL_getTexRectTexCoord |