Logo Search packages:      
Sourcecode: blender version File versions

void gla2DDrawTranslatePtv ( gla2DDrawInfo *  di,
float  world[2],
int  screen_r[2] 
)

Translate the world point from world coordiantes into screen space.

Definition at line 402 of file glutil.c.

References gla2DDrawTranslatePtv().

Referenced by gla2DDrawTranslatePtv().

{
      screen_r[0]= (world[0] - di->world_rect.xmin)*di->wo_to_sc[0];
      screen_r[1]= (world[1] - di->world_rect.ymin)*di->wo_to_sc[1];
}


Generated by  Doxygen 1.6.0   Back to index