67 |
DBG(dbg_render) << "RENDER "<<window<<" "<<numinds<<" " |
DBG(dbg_render) << "RENDER "<<window<<" "<<numinds<<" " |
68 |
<<j_inds1<<" "<<j_pts1<<" "<< |
<<j_inds1<<" "<<j_pts1<<" "<< |
69 |
j_interpinds<<" "<<j_inds2<<" "<<j_pts2<<" "<<j_codes<<"\n"; |
j_interpinds<<" "<<j_inds2<<" "<<j_pts2<<" "<<j_codes<<"\n"; |
70 |
GLERR |
GLERR; |
71 |
DBG(dbg_render) << "1\n"; |
DBG(dbg_render) << "1\n"; |
72 |
if(standardcoords) |
if(standardcoords) |
73 |
setWindow(window); |
setWindow(window); |
109 |
|
|
110 |
Renderer::setStandardCoordinates(Vec(xywh[2], xywh[3])); |
Renderer::setStandardCoordinates(Vec(xywh[2], xywh[3])); |
111 |
} |
} |
112 |
GLERR |
GLERR; |
113 |
|
|
114 |
DBG(dbg_render) << "Did stdcoords\n"; |
DBG(dbg_render) << "Did stdcoords\n"; |
115 |
renderer.renderScene((int *)codes, vob0s, vob1s, vob2s, vob3s, vobNs); |
renderer.renderScene((int *)codes, vob0s, vob1s, vob2s, vob3s, vobNs); |
129 |
env->ReleaseIntArrayElements(j_interpinds, interpinds, JNI_ABORT); |
env->ReleaseIntArrayElements(j_interpinds, interpinds, JNI_ABORT); |
130 |
} |
} |
131 |
DBG(dbg_render) << "Did releasearrays\n"; |
DBG(dbg_render) << "Did releasearrays\n"; |
132 |
GLERR |
GLERR; |
133 |
|
|
134 |
if(standardcoords) { |
if(standardcoords) { |
135 |
releaseWindow(); |
releaseWindow(); |
154 |
DBG(dbg_render) << "RENDER "<<window<<" "<<" " |
DBG(dbg_render) << "RENDER "<<window<<" "<<" " |
155 |
<<j_inds1<<" "<<j_pts1<<" "<< |
<<j_inds1<<" "<<j_pts1<<" "<< |
156 |
" "<<j_codes<<"\n"; |
" "<<j_codes<<"\n"; |
157 |
GLERR |
GLERR; |
158 |
DBG(dbg_render) << "1\n"; |
DBG(dbg_render) << "1\n"; |
159 |
if(standardcoords) |
if(standardcoords) |
160 |
setWindow(window); |
setWindow(window); |
189 |
|
|
190 |
Renderer::setStandardCoordinates(Vec(xywh[2], xywh[3])); |
Renderer::setStandardCoordinates(Vec(xywh[2], xywh[3])); |
191 |
} |
} |
192 |
GLERR |
GLERR; |
193 |
|
|
194 |
double t0 = getTime(); |
double t0 = getTime(); |
195 |
for(int iter = 0; iter < iters; iter++) { |
for(int iter = 0; iter < iters; iter++) { |
211 |
env->ReleaseFloatArrayElements(j_pts1, pts1, JNI_ABORT); |
env->ReleaseFloatArrayElements(j_pts1, pts1, JNI_ABORT); |
212 |
|
|
213 |
DBG(dbg_render) << "Did releasearrays\n"; |
DBG(dbg_render) << "Did releasearrays\n"; |
214 |
GLERR |
GLERR; |
215 |
|
|
216 |
if(standardcoords) { |
if(standardcoords) { |
217 |
releaseWindow(); |
releaseWindow(); |