[Bf-committers] GL_FLOAT rect and rect32

Salvatore Russo russose at free.fr
Wed Jun 21 11:40:34 CEST 2006


Hello,

It would help me to have some information on "rect and rect32" to be sure that
BlenderPocket is not making unecessary redundant operations on pixel drawing.
We often have in the code:

if(rect32)
glaDrawPixelsSafe(****, ***, ****, ****, ****, GL_RGBA, GL_UNSIGNED_BYTE,
rect32);
else
glaDrawPixelsSafe_to32(****, ****, ****, *****, GL_RGBA, GL_FLOAT, rectf);

An optimization for BlenderPocket would be to have rect32 as often as possible
(ideally ever!).

What determine if Blender work on rect or rect32? Is it a GUI option? There is
maybe an already implemented way to say blender to keep GL_FLOAT drawing at a
minimum?

Thanks for your help,
Salvatore


More information about the Bf-committers mailing list