Commit a4512bd1 authored by slevy's avatar slevy
Browse files

Add parti_getpixelaspect(), parti_setpixelaspect().

parent fff1f4e0
......@@ -1019,7 +1019,16 @@ float parti_fovy( CONST char *newfovy ) {
return ppui.view->perspective() ? ppui.view->angyfov()
: 2 * ppui.view->halfyfov();
}
float parti_getpixelaspect() {
return ppui.view ? ppui.view->pixelaspect() : 1.0;
}
void parti_setpixelaspect( float pixasp ) {
if(ppui.view)
ppui.view->pixelaspect( pixasp );
}
void parti_getc2w( Matrix *c2w ) {
if(ppui.view && c2w)
......
......@@ -52,6 +52,8 @@ extern int parti_ortho( CONST char *newortho );
extern char *parti_clip( CONST char *znear, CONST char *zfar );
extern char *parti_bgcolor( CONST char *rgb );
extern char *parti_stereo( CONST char *stereosep );
extern float parti_getpixelaspect();
extern void parti_setpixelaspect( float pixasp );
extern float parti_getcensize( void );
extern void parti_nudge_camera( Point *displacement );
extern char *parti_winsize( CONST char *winsize );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment