Max Resolution Size of Screen?? April 18, 2011 10:38PM | Registered: 13 years ago Posts: 19 |
Re: Max Resolution Size of Screen?? April 19, 2011 12:29AM | Registered: 15 years ago Posts: 379 |
Re: Max Resolution Size of Screen?? April 19, 2011 03:42PM | Registered: 13 years ago Posts: 19 |
Re: Max Resolution Size of Screen?? April 20, 2011 01:38PM | Registered: 13 years ago Posts: 363 |
Re: Max Resolution Size of Screen?? April 27, 2011 11:28AM | Registered: 13 years ago Posts: 99 |
Re: Max Resolution Size of Screen?? April 27, 2011 05:10PM | Registered: 15 years ago Posts: 379 |
Re: Max Resolution Size of Screen?? April 27, 2011 05:36PM | Registered: 13 years ago Posts: 363 |
screen_width = rmode->fbWidth; screen_height = rmode->efbHeight;
Re: Max Resolution Size of Screen?? April 27, 2011 08:55PM | Registered: 15 years ago Posts: 686 |
Re: Max Resolution Size of Screen?? April 27, 2011 11:41PM | Registered: 13 years ago Posts: 99 |
Re: Max Resolution Size of Screen?? April 28, 2011 02:28AM | Registered: 13 years ago Posts: 19 |
Re: Max Resolution Size of Screen?? April 28, 2011 02:50AM | Registered: 13 years ago Posts: 363 |
Re: Max Resolution Size of Screen?? April 28, 2011 03:59AM | Registered: 13 years ago Posts: 19 |
Re: Max Resolution Size of Screen?? April 28, 2011 05:43AM | Registered: 13 years ago Posts: 363 |
Re: Max Resolution Size of Screen?? April 28, 2011 06:34AM | Registered: 13 years ago Posts: 19 |
Re: Max Resolution Size of Screen?? April 28, 2011 04:10PM | Registered: 13 years ago Posts: 99 |
Re: Max Resolution Size of Screen?? August 29, 2011 11:43AM | Registered: 13 years ago Posts: 363 |
Re: Max Resolution Size of Screen?? August 29, 2011 06:06PM | Registered: 13 years ago Posts: 87 |
f32 yscale, yoffset; Mtx view, m; GX_SetZMode(GX_FALSE, GX_LEQUAL, GX_TRUE); GX_SetBlendMode(GX_BM_BLEND, GX_BL_SRCALPHA, GX_BL_INVSRCALPHA, GX_LO_CLEAR); if (rmode->efbHeight >= 520) {yscale =1; yoffset=0;} else {yscale=0.87; yoffset=35;} guOrtho(m, -yoffset, rmode->efbHeight/yscale, 0, rmode->fbWidth, 0, 1000.0f); GX_LoadProjectionMtx(m, GX_ORTHOGRAPHIC); guMtxIdentity(view); guMtxTransApply(view, view, 0, 0, -100.0F); GX_LoadPosMtxImm(view, GX_PNMTX0); GX_ClearVtxDesc(); GX_SetVtxDesc(GX_VA_POS, GX_DIRECT); GX_SetVtxDesc(GX_VA_CLR0, GX_DIRECT); GX_SetVtxDesc(GX_VA_TEX0, GX_NONE); GX_SetVtxAttrFmt(GX_VTXFMT0, GX_VA_POS, GX_POS_XYZ, GX_F32, 0); GX_SetVtxAttrFmt(GX_VTXFMT0, GX_VA_CLR0, GX_CLR_RGBA, GX_RGBA8, 0); GX_SetVtxAttrFmt(GX_VTXFMT0, GX_VA_TEX0, GX_TEX_ST, GX_F32, 0); GX_SetNumTexGens(1); // One texture exists GX_SetTevOp(GX_TEVSTAGE0, GX_PASSCLR); GX_SetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR0A0); GX_SetTexCoordGen(GX_TEXCOORD0, GX_TG_MTX2x4, GX_TG_TEX0, GX_IDENTITY); GX_SetNumTevStages(1); GX_SetTevOp (GX_TEVSTAGE0, GX_PASSCLR); GX_SetNumChans(1); GX_SetChanCtrl(GX_COLOR0A0, GX_DISABLE, GX_SRC_VTX, GX_SRC_VTX, 0, GX_DF_NONE, GX_AF_NONE); GX_SetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR0A0); GRRLIB_Settings.lights = 0;
Re: Max Resolution Size of Screen?? August 29, 2011 06:37PM | Registered: 13 years ago Posts: 363 |
Re: Max Resolution Size of Screen?? August 29, 2011 07:40PM | Registered: 13 years ago Posts: 87 |
if (CONF_GetAspectRatio() == CONF_ASPECT_16_9) { yscale =......; yoffset=......; } else { yscale =......; yoffset=......; } guOrtho(m, -yoffset, rmode->efbHeight/yscale, 0, rmode->fbWidth, 0, 1000.0f);
Re: Max Resolution Size of Screen?? August 29, 2011 07:44PM | Registered: 13 years ago Posts: 363 |