I'm using the DrawTex extension exclusively to render my engine. Currently works out to a be well over 40FPS with a few hundred tiles on the screen, so the performance is fine. One thing I'm trying to figure out how to do, however, is the most efficient way of simply blitting a region of the screen a color. The reason I need to do this is that my font uses a transparent background, and I'd like to prep the section I'm going to render it with some white to make it more visible.
Anyone have a useful snippet of code to do this? My two main GL calls look something like this:
Using java Syntax Highlighting
- ((GL11) gl).glTexParameteriv(GL10.GL_TEXTURE_2D,
- GL11Ext.GL_TEXTURE_CROP_RECT_OES, mCropWorkspace,0);
- ((GL11Ext) gl).glDrawTexxOES(left, bottom, depth,
- (right - left), -(bottom - top));
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
So I'm not doing any rocket science here. A blit-rectangle code in terms of 'left, right, top, bottom' would be fabulous.
Cheers,
--G



